Skip to content

[Story] One modular launcher and launch registry for every analysis type #77

In review

Description

@aMonteSl

As a maintainer of Code-XR, I want every analysis type and surface to be launched through one registry driven by descriptors, so that launches are consistent and can be cancelled, and adding a new analysis type means writing one descriptor.

Findings: LAUNCHER-3, 4, 5, 6, 7, 8, 10, 14, 17 and 18. The design is in launcher.md §4.

Acceptance criteria

  • There is a LaunchKind descriptor for each surface (XR, LivePanel, DOM) and an AnalysisTypeDescriptor for each in-scene analysis (classic, dependency graph, historical comparison, project evolution).
  • One LaunchRegistry, keyed by session id instead of the raw path, owns reservation, abort, a teardown stack and a single close path. It replaces the duplicate guard, the per-launch SessionServerManager and the SSE file map.
  • The server starts first, then the watcher. If any step fails, everything already started is torn down and the user is told.
  • Concurrency and teardown are safe:
    • A double click creates one session.
    • Close during an analysis leaves no orphan server or watcher.
    • Close never stops an unrelated server.
    • The same target open in two modes keeps live reload in both.
  • Every launch has a timeout and can be cancelled from the UI.
  • Paths are normalised once, covering Windows drive letters and case, macOS and Linux.
  • docs/ gets a short "how to add an analysis type" guide.
  • All existing launch commands behave as before, and the existing tests stay green.

Part of #72. The evidence is in docs/xr-audit/ (#67).

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    tfm
    user-story
    area: extension
    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: extensionstream: 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