MVP Factory Board: scoping session — decide the surface, columns and data seam; commit the scope brief #234

Closed
opened 2026-10-15 16:40:41 +00:00 by ben · 1 comment
Owner

Filed 2026-10-15 by Ben's Claude Code session after the Mastra Factory evaluation (research: ~/Documents/Last30Days/mastra-factory-software-factory-raw.md on Ben's workstation). Ben's instruction: ticket a first MVP UI for the factory, borrowing the existing factory TUI's data seam and Mastra Factory's kanban-board idea; run design -> tickets -> build unattended overnight so he can test it in the morning (NZ).

The pipeline this ticket belongs to

Three ready-for-session tickets, chained by Forgejo dependencies, each one session:

  1. #234 scoping session: decide surface, columns, data; commit a scope brief. No build tickets yet.
  2. #235 design session (blocked by 1): commit a design spec; file the swarm-sized build tickets as ready-for-agent + priority; make 3 depend on every build ticket.
  3. #236 morning handoff (blocked by 2 and by every build ticket): verify the landed board end to end, write Ben's test guide, hand to ready-for-human.

Why three sessions and not one: each is bounded to a single unattended run (the runner escalates after two unadvanced attempts), and the design output has to be decision-complete before anything is ticketed, the way Mastra Factory gates Build behind an approved Plan.

Goal of this session

Produce one decision-complete scope brief at docs/superpowers/specs/2026-10-15-factory-board-scope.md, committed to main, so the design session (#235) can write a spec and file build tickets without reopening any question. Post the decisions as a comment here, then close this ticket.

Do not file build tickets from this session. Do not start building.

What Ben asked for

A first MVP UI for the factory: a kanban board over the work the factory already tracks, in the spirit of Mastra Factory's board (Intake > Triage > Planning > Build > Review > Done, one card per work item, counts per stage, a lane per repo), built on the existing factory TUI data seam rather than a new data path.

Facts to build on (read these first)

  • fleet-tui/floor/ is already a browser UI: raw-Node WebSocket server (server/server.js, server/protocol.js, EXPECTED_SNAPSHOT_VERSION = 4) that spawns fleet-tui/collector.py --watch and broadcasts its versioned JSON snapshot; web/app.js paints an SVG floor from it; zero npm dependencies; node --test server/*.test.js; fixture at server/fixtures/snapshot.json. Vendor-excluded (fleet-tui/**), operator-side, read-only, localhost-bound by default. Deployment runbook for dev-factory.matou.nz in floor/deploy/README.md (#169, still ready-for-human).
  • The snapshot already carries most of a board: queue[] (repo, number, title, state, blocked), repos[] summary (ready / working / blocked / awaiting_merge / human / session), runs[] (host, repo, issue, iteration, worker), session_runners[], asks[], hosts[], tracker_web, tracker_error. State vocabulary comes from tui/data/tracker.py::classify_state and fleet-tui/repostats.py::summary (ready-for-agent, in-progress, awaiting-merge, ready-for-human, ready-for-session, blocked flag).
  • Label state machine: docs/agents/triage-labels.md. Untriaged is "none of the pipeline labels"; priority, model-*, landing-pr are additive.
  • Design precedents: docs/superpowers/specs/2026-08-24-fleet-monitor-design.md (explicit decisions list; stated-never-guessed missing values; unreachable host keeps last snapshot greyed).
  • The fleet TUI already has eight tabs (Fleet / Runs / Session / Drive / Queue / Asks / Usage / Loss). The board is a new view, not a ninth tab: Ben wants something he can open in a browser in the morning.
  1. Surface. Recommended: a Board view inside fleet-tui/floor/web/ (same server, same snapshot, a route or toggle between Floor and Board). Reject a new server or a new data path unless the brief proves the snapshot cannot carry the board.
  2. Columns and their exact mapping from snapshot/label state. Recommended starting set: Intake (untriaged + needs-info), Ready (ready-for-agent, unblocked), Blocked (blocked or agent-blocked), Working (in-progress, card shows host + run + iteration from runs[]), Review (awaiting-merge, landing-pr PRs), Human (ready-for-human + open asks), Session (ready-for-session, with host affinity), Done (closed in the last 24 h). State which columns the current snapshot cannot populate and what the collector must add (likely: untriaged/needs-info rows, label chips, closed-in-24h, priority flag).
  3. Card contents. Recommended: #number, title, repo, label chips, age, host/run when working, click opens the existing detail slide-over with the tracker link (tracker_web).
  4. Lanes. Recommended: one swimlane per repo, with per-column counts in the header (Mastra-style stage counts).
  5. Testability without ssh doors. Recommended and important for the morning test: a replay mode (FLOOR_REPLAY=<snapshot.json>) that serves a fixture snapshot without spawning the collector, so the board can be exercised on any machine, in CI, and by #236. Decide whether this is in the MVP (recommended: yes).
  6. Snapshot contract changes. Any new field bumps snapshot_version in collector.py, protocol.js and the fixture together, with a note in fleet-tui/README.md. Decide and write it down.
  7. Explicit non-goals for the MVP. Recommended: no writes (no drag-and-drop, no label changes), no auth or deployment change (#169 stays separate), no per-card chat, no new credentials, no Textual tab.
  8. Overnight budget. The swarm lands one ticket per run per host, runs at :15/:45, and two hosts are usable (#191: bens-mac-04 cannot resolve the forge). The brief must size the MVP so the design session can split it into at most six swarm-sized build tickets.

Borrowed ideas to record in the brief (so they are not re-derived)

  • Mastra Factory: one card per work item; stage counts; per-stage manual/auto is out of scope here but the column names should leave room for it; a Review stage separate from Build.
  • Factory TUI / floor: one versioned snapshot is the only seam; identity resolved from the shell libs, never re-derived; missing values are stated, never guessed; unreachable hosts keep the last snapshot greyed.

Acceptance (what "done" means for this ticket)

  • docs/superpowers/specs/2026-10-15-factory-board-scope.md on main, with a numbered Decisions section covering every item above and a Non-goals section.
  • STATUS.md updated in the same commit (repo rule); bash tests/docs-budget-test.sh green if it applies to the path.
  • A comment here listing the decisions in brief.
  • Ticket closed by the session (success criterion of the session-runner prompt).

Bounds

One session, target under 45 minutes of wall clock. If a decision genuinely needs Ben, take the recommended default above, mark it "Ruled by agent under ADR 0174 — veto anytime" in the brief, and continue. Never relabel this ticket ready-for-human for a surface or column choice; those are two-way doors.

_Filed 2026-10-15 by Ben's Claude Code session after the Mastra Factory evaluation (research: `~/Documents/Last30Days/mastra-factory-software-factory-raw.md` on Ben's workstation). Ben's instruction: ticket a first MVP UI for the factory, borrowing the existing factory TUI's data seam and Mastra Factory's kanban-board idea; run design -> tickets -> build unattended overnight so he can test it in the morning (NZ)._ ## The pipeline this ticket belongs to Three `ready-for-session` tickets, chained by Forgejo dependencies, each one session: 1. #234 scoping session: decide surface, columns, data; commit a scope brief. **No build tickets yet.** 2. #235 design session (blocked by 1): commit a design spec; file the swarm-sized build tickets as `ready-for-agent` + `priority`; make 3 depend on every build ticket. 3. #236 morning handoff (blocked by 2 and by every build ticket): verify the landed board end to end, write Ben's test guide, hand to `ready-for-human`. Why three sessions and not one: each is bounded to a single unattended run (the runner escalates after two unadvanced attempts), and the design output has to be decision-complete before anything is ticketed, the way Mastra Factory gates Build behind an approved Plan. ## Goal of this session Produce **one decision-complete scope brief** at `docs/superpowers/specs/2026-10-15-factory-board-scope.md`, committed to `main`, so the design session (#235) can write a spec and file build tickets without reopening any question. Post the decisions as a comment here, then close this ticket. Do **not** file build tickets from this session. Do **not** start building. ## What Ben asked for A first MVP UI for the factory: a **kanban board** over the work the factory already tracks, in the spirit of Mastra Factory's board (Intake > Triage > Planning > Build > Review > Done, one card per work item, counts per stage, a lane per repo), built on the **existing factory TUI data seam** rather than a new data path. ## Facts to build on (read these first) - `fleet-tui/floor/` is already a browser UI: raw-Node WebSocket server (`server/server.js`, `server/protocol.js`, `EXPECTED_SNAPSHOT_VERSION = 4`) that spawns `fleet-tui/collector.py --watch` and broadcasts its versioned JSON snapshot; `web/app.js` paints an SVG floor from it; zero npm dependencies; `node --test server/*.test.js`; fixture at `server/fixtures/snapshot.json`. Vendor-excluded (`fleet-tui/**`), operator-side, read-only, localhost-bound by default. Deployment runbook for `dev-factory.matou.nz` in `floor/deploy/README.md` (#169, still `ready-for-human`). - The snapshot already carries most of a board: `queue[]` (repo, number, title, state, blocked), `repos[]` summary (ready / working / blocked / awaiting_merge / human / session), `runs[]` (host, repo, issue, iteration, worker), `session_runners[]`, `asks[]`, `hosts[]`, `tracker_web`, `tracker_error`. State vocabulary comes from `tui/data/tracker.py::classify_state` and `fleet-tui/repostats.py::summary` (`ready-for-agent`, `in-progress`, `awaiting-merge`, `ready-for-human`, `ready-for-session`, blocked flag). - Label state machine: `docs/agents/triage-labels.md`. Untriaged is "none of the pipeline labels"; `priority`, `model-*`, `landing-pr` are additive. - Design precedents: `docs/superpowers/specs/2026-08-24-fleet-monitor-design.md` (explicit decisions list; stated-never-guessed missing values; unreachable host keeps last snapshot greyed). - The fleet TUI already has eight tabs (Fleet / Runs / Session / Drive / Queue / Asks / Usage / Loss). The board is a **new view, not a ninth tab**: Ben wants something he can open in a browser in the morning. ## Decisions this brief must make (with the recommended default) 1. **Surface.** Recommended: a Board view inside `fleet-tui/floor/web/` (same server, same snapshot, a route or toggle between Floor and Board). Reject a new server or a new data path unless the brief proves the snapshot cannot carry the board. 2. **Columns and their exact mapping** from snapshot/label state. Recommended starting set: Intake (untriaged + `needs-info`), Ready (`ready-for-agent`, unblocked), Blocked (`blocked` or `agent-blocked`), Working (`in-progress`, card shows host + run + iteration from `runs[]`), Review (`awaiting-merge`, `landing-pr` PRs), Human (`ready-for-human` + open asks), Session (`ready-for-session`, with host affinity), Done (closed in the last 24 h). State which columns the current snapshot cannot populate and what the collector must add (likely: untriaged/`needs-info` rows, label chips, closed-in-24h, `priority` flag). 3. **Card contents.** Recommended: `#number`, title, repo, label chips, age, host/run when working, click opens the existing detail slide-over with the tracker link (`tracker_web`). 4. **Lanes.** Recommended: one swimlane per repo, with per-column counts in the header (Mastra-style stage counts). 5. **Testability without ssh doors.** Recommended and important for the morning test: a **replay mode** (`FLOOR_REPLAY=<snapshot.json>`) that serves a fixture snapshot without spawning the collector, so the board can be exercised on any machine, in CI, and by #236. Decide whether this is in the MVP (recommended: yes). 6. **Snapshot contract changes.** Any new field bumps `snapshot_version` in `collector.py`, `protocol.js` and the fixture together, with a note in `fleet-tui/README.md`. Decide and write it down. 7. **Explicit non-goals for the MVP.** Recommended: no writes (no drag-and-drop, no label changes), no auth or deployment change (#169 stays separate), no per-card chat, no new credentials, no Textual tab. 8. **Overnight budget.** The swarm lands one ticket per run per host, runs at :15/:45, and two hosts are usable (#191: bens-mac-04 cannot resolve the forge). The brief must size the MVP so the design session can split it into **at most six** swarm-sized build tickets. ## Borrowed ideas to record in the brief (so they are not re-derived) - Mastra Factory: one card per work item; stage counts; per-stage manual/auto is **out of scope** here but the column names should leave room for it; a Review stage separate from Build. - Factory TUI / floor: one versioned snapshot is the only seam; identity resolved from the shell libs, never re-derived; missing values are stated, never guessed; unreachable hosts keep the last snapshot greyed. ## Acceptance (what "done" means for this ticket) - `docs/superpowers/specs/2026-10-15-factory-board-scope.md` on `main`, with a numbered **Decisions** section covering every item above and a **Non-goals** section. - `STATUS.md` updated in the same commit (repo rule); `bash tests/docs-budget-test.sh` green if it applies to the path. - A comment here listing the decisions in brief. - Ticket closed by the session (success criterion of the session-runner prompt). ## Bounds One session, target under 45 minutes of wall clock. If a decision genuinely needs Ben, take the recommended default above, mark it "Ruled by agent under ADR 0174 — veto anytime" in the brief, and continue. Never relabel this ticket `ready-for-human` for a surface or column choice; those are two-way doors.

Close-report — scope brief landed (commit 3b7b21a on main).

Ruled by agent under ADR 0174 — veto anytime. One session, docs-only, all two-way doors.

What landed: docs/superpowers/specs/2026-10-15-factory-board-scope.md — a decision-complete scope brief; STATUS.md header + docs/journal/2026-10-15-234.md in the same commit (repo rule); oldest STATUS paragraph trimmed to stay under the docs budget (preserved byte-for-byte in the journal). bash tests/docs-budget-test.sh green (3/3; STATUS.md 14761 < 16384 B). No build tickets filed, no build started — that is #235.

Decisions (brief):

  1. Surface — a Board page fleet-tui/floor/web/board.html + board.js on the EXISTING floor server + snapshot WebSocket feed. No new server, process, or data path. Rejected a new server/tracker path (the snapshot provably carries, or with decision 6 can carry, every field).
  2. Eight columns — Intake / Ready / Blocked / Working / Review / Human / Session / Done, mapped by a pure function over the enriched snapshot row (state + labels[] + blocked + priority + affinity). The brief records the exact per-column mapping and the "cannot-populate-today" list (only Ready + Session are directly populatable by the v4 queue[]).
  3. Card — #/title/repo/label chips/age/host+iteration-when-Working/priority chip; click reuses app.js's detail slide-over + tracker_web links; missing values shown —, never guessed.
  4. Lanes — one swimlane per repo, per-lane column counts; a repo's tracker_error stated inline, never blanked.
  5. Replay mode — FLOOR_REPLAY=<snapshot.json> IN the MVP: serve a fixture without spawning the collector, so the board runs with no ssh doors / no reachable forge (decisive for the #191 forge-unreachable host and the #236 morning test).
  6. Snapshot contract 4→5 — widen collector.py::_queue_rows to carry EVERY state tracker.py::queue_snapshot already classifies, plus labels[]/priority/blocked_by/age + session host-affinity; add a new done[] closed-in-24h read (the one genuinely new read); bump the three pins (collector.py, protocol.js, fixture) + README in lockstep. Additive — app.js keeps reading v5 unchanged.
  7. Non-goals — no writes (no drag/label/dispatch/chat), no auth/deploy change (#169 stays separate), no new credentials/server, no Textual tab, no manual/auto split, no history charts, no backlog reconstruction.
  8. Budget — sized for ≤6 swarm-sized build tickets, with a suggested split (critical path: the collector-widening ticket; forge-touching work avoids the #191 host).

Proof the gaps are real (verified against code): the collector's _queue_rows emits only ready-for-agent/ready-for-session rows trimmed to 5 fields, discarding the richer rows queue_snapshot already classifies (in-progress/awaiting-merge/ready-for-human/needs-triage/…) along with labels[]/priority/blocked_by; tracker.py reads state=open only (nothing reads closed issues); session host-affinity lives in a separate reader (fleet_session_queue), not the fleet_queue path the snapshot uses.

Closing this scoping ticket; #235 (design) is unblocked and can proceed without reopening a scope question.

**Close-report — scope brief landed (commit `3b7b21a` on `main`).** Ruled by agent under ADR 0174 — veto anytime. One session, docs-only, all two-way doors. **What landed:** `docs/superpowers/specs/2026-10-15-factory-board-scope.md` — a decision-complete scope brief; `STATUS.md` header + `docs/journal/2026-10-15-234.md` in the same commit (repo rule); oldest STATUS paragraph trimmed to stay under the docs budget (preserved byte-for-byte in the journal). `bash tests/docs-budget-test.sh` green (3/3; STATUS.md 14761 < 16384 B). No build tickets filed, no build started — that is #235. **Decisions (brief):** 1. **Surface** — a Board page `fleet-tui/floor/web/board.html` + `board.js` on the EXISTING floor server + snapshot WebSocket feed. No new server, process, or data path. Rejected a new server/tracker path (the snapshot provably carries, or with decision 6 can carry, every field). 2. **Eight columns** — Intake / Ready / Blocked / Working / Review / Human / Session / Done, mapped by a pure function over the enriched snapshot row (`state` + `labels[]` + `blocked` + `priority` + affinity). The brief records the exact per-column mapping and the "cannot-populate-today" list (only Ready + Session are directly populatable by the v4 `queue[]`). 3. **Card** — #/title/repo/label chips/age/host+iteration-when-Working/priority chip; click reuses `app.js`'s detail slide-over + `tracker_web` links; missing values shown `—`, never guessed. 4. **Lanes** — one swimlane per repo, per-lane column counts; a repo's `tracker_error` stated inline, never blanked. 5. **Replay mode** — `FLOOR_REPLAY=<snapshot.json>` IN the MVP: serve a fixture without spawning the collector, so the board runs with no ssh doors / no reachable forge (decisive for the #191 forge-unreachable host and the #236 morning test). 6. **Snapshot contract 4→5** — widen `collector.py::_queue_rows` to carry EVERY state `tracker.py::queue_snapshot` already classifies, plus `labels[]`/`priority`/`blocked_by`/age + session host-affinity; add a new `done[]` closed-in-24h read (the one genuinely new read); bump the three pins (`collector.py`, `protocol.js`, fixture) + README in lockstep. Additive — `app.js` keeps reading v5 unchanged. 7. **Non-goals** — no writes (no drag/label/dispatch/chat), no auth/deploy change (#169 stays separate), no new credentials/server, no Textual tab, no manual/auto split, no history charts, no backlog reconstruction. 8. **Budget** — sized for **≤6** swarm-sized build tickets, with a suggested split (critical path: the collector-widening ticket; forge-touching work avoids the #191 host). **Proof the gaps are real (verified against code):** the collector's `_queue_rows` emits only `ready-for-agent`/`ready-for-session` rows trimmed to 5 fields, discarding the richer rows `queue_snapshot` already classifies (`in-progress`/`awaiting-merge`/`ready-for-human`/`needs-triage`/…) along with `labels[]`/`priority`/`blocked_by`; `tracker.py` reads `state=open` only (nothing reads closed issues); session host-affinity lives in a separate reader (`fleet_session_queue`), not the `fleet_queue` path the snapshot uses. Closing this scoping ticket; #235 (design) is unblocked and can proceed without reopening a scope question.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/dev-factory#234
No description provided.