Skip to content

Support seated occupants and configurable initial activities #78

Open

Description

@chrisvuletich

Status — Editor population prerequisite implemented; awaiting review

Published for review in PR #102 on chris/building-editor: feature commit 35892da, branch head 28a71e9 after integrating main 663d089 without conflicts. The increment adds People → Around selected object…, also available from a selected rectangular object's Properties.

  • Choose a count, all/top-bottom/left-right sides, and body clearance in the current display units.
  • Responsive blueprint Canvas preview; changes stay local until Add people. Cancel, Escape, X and backdrop dismiss; stale-source protection and focus containment are included.
  • Reuse existing exact-occupant validation for workspace/wall/opening/furniture clearance, plus inter-person separation. Local placement checks reject positions beyond an intervening wall/object. Insufficient proposals are previewed with Apply disabled, never silently applied as a smaller population.
  • Add one batch as one Undo/Redo action; preserve original geometry, IDs, names, spawn counts and schedules. Generated people receive unique IDs/names and remain individually editable through the existing tools and JSON/local building storage.
  • Focused verification: 43 placement/occupant/geometry/modal/toolbar tests passed, plus the one targeted Canvas label regression. Production build/typecheck, changed-file lint/format and diff checks passed.
  • Isolated Chromium checks at desktop/laptop/mobile widths and 2× DPI cover previews, count limits, sides/feet conversion, Apply/Cancel/focus, exact JSON/Undo/Redo, import/export and renaming. A real request through the existing typed API and local Rust executable produced 5 evacuated / 5 total, 0 remaining; recorded frame zero matched every saved exact position. The same layout computed and played in the ordinary Analytics/Simulation workflow.
  • Review and merge PR #102. Post-integration verification passed 42 focused tests across six files, production build/typecheck, changed-file lint/format and diff checks. Keep the broader activity-simulation issue open.

This is a placement prerequisite, not completed seated/activity simulation. It persists ordinary independent placed_occupants, with no table links, seated state, reaction/standing delay or new physics. Moving a table later does not automatically move these people. Furniture currently has rectangular collision geometry; round-table collision semantics remain coordinated future work. No backend/shared-contract/App.tsx/analytics changes or dependencies were introduced. Cargo was unavailable in this session; the real engine check used the existing local Rust executable rather than claiming a rebuilt backend or rerun Rust suite.

The remaining activity contract, transitions and original acceptance criteria below still need Connor/team agreement. Keep this issue open.

Priority: P2
Suggested responsible subsystem: Rust agent initialization/behavior (Connor), editor and playback (Chris), with Nick/Layth reviewing reproducibility and result fields.

Objective

Let scenarios describe realistic initial occupant activities and explicit reaction/standing transitions before evacuation or shelter movement.

Background and motivation

Current occupants are seeded moving discs without a persisted seat/workstation/activity model. Individual exact placement and richer furniture should establish reliable identities and physical positions first.

Concrete requirements

  • Define configurable seated, standing, working, and waiting initial states, including validated optional chair/workstation links.
  • Coordinate explicit reaction and standing delays, units, seeded variation where used, and transitions into existing emergency behavior.
  • Keep transitions and relevant state observable in actual recorded/live frames and playback.
  • Preserve deterministic initial conditions and comparable stress-test scenarios.

Acceptance criteria

  • Each supported initial activity can be configured, saved, reloaded, and observed in a real engine recording.
  • Seat/workstation references and starting positions are validated; missing references and physically impossible transitions fail clearly.
  • Configured delays and state transitions occur at the documented simulation steps and never bypass collision constraints.
  • The same seed/configuration reproduces activity timing, and stress comparisons preserve equivalent initial activities.
  • Legacy buildings without activity settings retain their current behavior and population accounting.

Technical considerations

Agree minimal shared contracts and behavior assumptions before implementation. A visual chair symbol must not place a disc inside a solid obstruction; resolve seated-position and stand-up clearance semantics explicitly. Treat reaction times as configurable model assumptions, not validated human-behavior predictions.

Dependencies and related work

Depends on #73 (Add precise individual occupant placement and editing) (individual placement) and #72 (Expand the furniture and architectural fixtures library) (furniture/fixtures). Coordinate #39 preferences and #32 emergency objectives without implementing unrelated routing systems.

Activity

  1. added
    enhancement
    frontend
    simulation
    priority:p2
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontendpriority:p2simulation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions