Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Mobile effective stage: shared derivation + catalog fact fields #96

Closed

Description

@64ix

Parent

#71

What to build

The phone computes the same effective stage as desktop. The host's worktree catalog payload carries two new optional facts — the linked issue's state and the consumed-merged-PR ids — and the mobile client feeds them, with the already-present declared stage and linked-PR state, through the shared pure stage-derivation engine. Every mobile consumer reads one effectiveStage per workspace.

Against an old host the fields are absent and absence reads as unknown: the phone renders the declared stage with no fact override — never a false "not governed", never a crash.

Acceptance criteria

  • Worktree catalog payload gains the two facts as optional fields (Rule 1 — no opcode, no negotiation, old clients unaffected)
  • Mobile derives effective stage via the shared derivation engine — no reimplementation, no host-computed effective stage
  • Derived results match desktop for the same facts: open PR → review, unconsumed merged PR → shipped, closed PR → triage, open issue promotes only pre-work stages, consumed merges drive nothing
  • Old-host payload (fields absent) ⇒ declared stage only, explicitly tested
  • Folder workspaces follow declarations only, as on desktop

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions