Skip to content

Rest-surface stage has no cross-bucket occupancy dedup: PC and stage_cell'd NPC can share a cell in direct seeds #1663

Description

@100yenadmin

Found during #1639/#1662 (viewer _scene_stage): in a DIRECT current-room seed, the PC (no seeded stage_cell) and a stage_cell'd NPC can land on the SAME cell (measured: Maera+Aidan both at (5,3) in tavern_snug). Pre-existing on main, not introduced by #1662. During a real walk the PC gets a unique arrival cell from _seed_stage_cells_on_arrival, so it only bites fresh/direct seeds — i.e. a brand-new campaign could open with the party standing inside the quest-giver. Fix shape: occupancy-aware placement across the party/NPC/foe buckets in _scene_stage (or at seed time), mirroring the arrival-cell uniqueness rule. Evidence: /Volumes/LEXAR/Codex/session-notes/2026-07-22/cast-presence-1639/artifacts/live_curl_proof.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions