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.

[Spec] Mobile board & stage surface #71

Closed

Description

@64ix

Scoped by /grilling on 2026-08-27. Fork spec suite context: #21–#29, #31.

Problem Statement

The fork's delivery surface (feature board, stage groups, stage badges, task detail) is desktop-only. From the phone, the user cannot see where features stand in the pipeline, move a task between stages, or pick up an inbound GitHub issue and start work on it. The mobile app already pairs to hosts and lists workspaces, but shows no trace of the stage pipeline.

Solution

The phone becomes a stage-aware client of a paired host — not a sync peer:

  • The existing workspace list gains stage badges and a "By stage" grouping mode.
  • A per-host feature board screen shows the stage columns with the host's workspaces as cards; tap opens the workspace, long-press moves it to another stage.
  • Ghost cards (inbound GitHub issues not yet adopted) appear on the mobile board; tapping one shows the issue and offers the existing create-workspace-from-issue flow; dismissing one propagates to all machines through the host.
  • The workspace screen gains a stage row and a PR row.
  • Effective stage is computed on the phone with the shared derivation engine, from facts the host already publishes plus two new optional wire fields.

Because hosts already converge through multi-machine sync (#29), a per-host board shows the same state as every other machine — no phone-side sync layer is needed.

User Stories

  1. As a phone user, I want stage badges on workspace rows, so that I see pipeline position at a glance.
  2. As a phone user, I want a "By stage" grouping in the workspace list, so that the list can mirror the pipeline.
  3. As a phone user, I want a feature board screen per host, so that I can see the whole pipeline like on desktop.
  4. As a phone user, I want to tap a board card to open its workspace, so that I can go intervene in the task.
  5. As a phone user, I want to long-press a card and pick a target stage, so that I can move work without drag & drop.
  6. As a phone user, I want the shipped column populated automatically when a PR merges, so that the board stays truthful without manual moves.
  7. As a phone user, I want a refused stage move (shipped) explained with the same steering message as agents get, so that authority rules are legible.
  8. As a phone user, I want ghost cards for inbound GitHub issues on the board, so that I can triage from anywhere.
  9. As a phone user, I want to tap a ghost to read the issue and adopt it into a workspace, so that I can launch a diagnosis or an implementation from my phone.
  10. As a phone user, I want ghost dismissals to propagate to my other machines, so that triage decisions stick everywhere.
  11. As a phone user, I want a stage row and a PR row on the workspace screen, so that one task's delivery state is visible where I work on it.
  12. As a phone user paired to an old host, I want the surface to degrade honestly (declared stage only, no fact overrides), so that mixed versions never lie.
  13. As a phone user, I want the effective stage on my phone to match what desktop shows, so that the two surfaces never disagree.

Implementation Decisions

  • Architecture: client-of-host. The phone reads and writes over the existing paired-host RPC. The phone as a [Spec] Multi-machine sync #29 sync peer is explicitly out of scope (future spec).
  • Derivation on the phone. Mobile imports the shared pure stage-derivation engine (already reachable from mobile). No host-computed effectiveStage field.
  • Wire (Rule 1 only). Two new optional fields on the worktree catalog payload: the linked issue's state, and the consumed-merged-PR ids. Absence means unknown — the phone then renders the declared stage with no fact override, never "no fact". No new opcodes, no capability negotiation needed.
  • Writes ride the existing agent-grade path. The phone declares the six working stages and clear through the existing worktree-update RPC; shipped/de-ship stays desktop-only (fail-closed authority unchanged) and surfaces the standard steering message. Shipped still appears on the phone via the merged-PR fact.
  • Board interaction. Tap = open workspace (existing route). Long-press = stage action sheet. No drag & drop.
  • Per-host board under the existing host navigation; no cross-host aggregation.
  • Ghosts. Ghost candidates derive from the same shared derivation used by desktop (Ghost candidate derivation (pure) #35), from GitHub data the host serves. Adoption reuses the existing mobile create-workspace-from-issue flow. Dismissals go through a new optional RPC that reads/writes the host's featureBoardGhostDismissals UI state, which [Spec] Multi-machine sync #29 then syncs to other machines.
  • Task detail is a stage selector row plus a PR row on the existing mobile workspace screen — not a port of the desktop panel.

Testing Decisions

  • Test at the existing pure seams: derivation inputs/outputs (shared engine already fully tested — mobile tests cover only the fact-assembly from catalog payloads), section building (workspace-list-sections has extensive prior art), and pure card/board view models, mirroring the desktop board's *-model.ts + vitest pattern.
  • Wire skew is the critical behavior: every new field absent ⇒ declared-stage rendering, no crash, no false "not governed". Test old-host payloads explicitly.
  • Stage-write refusal path: shipped request surfaces the steering message verbatim.
  • External behavior only: sections/cards/sheets asserted through their models, not component internals — matching the existing mobile test suite style.

Out of Scope

Further Notes

  • The worktree catalog already carries workflowStage, linkedPR {number,state}, and linkedIssue to mobile today; mobile simply ignores them. The gap is two missing facts, derivation wiring, and UI.
  • Mixed client/host versions are the normal state; every change here is Rule 1 of the remote-wire-compatibility contract, with absence-as-unknown per the agentWait precedent.

Activity

  1. added
    enhancement
    needs-triage
    ready-for-agent
    on Aug 25, 2026
  2. changed the title [-]Mobile client: bring the fork's board/stage surface to the React Native app[/-] [+][Spec] Mobile board & stage surface[/+] on Aug 27, 2026
  3. removed
    needs-triage
    on Aug 27, 2026
  4. 64ix commented on Aug 27, 2026

    @64ix
    OwnerAuthor
  5. added a commit that references this issue on Aug 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

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions