Skip to content

[Story] A mode lifecycle contract in the scene: no more stuck switcher #79

In review

Description

@aMonteSl

As a developer, I want switching between analyses in the scene to always end in a usable state, so that a slow or failing analysis never freezes the switcher or leaves me on an empty table.

Findings: LIFECYCLE-1 (blocker), LIFECYCLE-2, 3, 5, 6, 9, 11, DEPGRAPH-7. Design: lifecycle.md §3.

Acceptance criteria

  • enter/exit receive an AbortSignal, and every transition has a timeout.
  • A failure shows a visible in-scene error with Retry and returns to the selector. The server and the guests are told, and the echo does not re-run the failed mode.
  • Intents reach the server as one ordered stream, so a late "selection" never overrides a newer pick.
  • Re-entering a mode whose job is running attaches to the job instead of refusing.
  • Collaboration handler errors are logged and do not drop the rest of a room snapshot.
  • Harness tests cover a hung fetch, a failing fetch, rapid A→B→C switching, and ten full cycles without leaks.

Part of #72. Evidence: docs/xr-audit/ (#67).

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    tfm
    user-story
    on Nov 25, 2026
  3. added
    area: xr-scene
    stream: xr-bugfix-1.2.1
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: xr-scenestream: xr-bugfix-1.2.1tfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions