MVP Factory Board: design session — write the design spec and file the swarm-sized build tickets #235

Closed
opened 2026-10-15 16:40:43 +00:00 by ben · 2 comments
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

Read the scope brief from #234 (docs/superpowers/specs/2026-10-15-factory-board-scope.md), write the design spec, and file the build tickets the swarm will work overnight. Then wire #236 to depend on every build ticket, post the ticket list here and on #236, and close this ticket.

Do not build the board in this session.

Deliverable 1: the design spec

docs/superpowers/specs/2026-10-15-factory-board-design.md on main, committed with STATUS.md. It must contain:

  • Data mapping table: snapshot field(s) -> column, per column in the brief, including the exact classify_state / label predicates, and the list of collector additions with the snapshot_version bump (collector.py, protocol.js, fixture, README) as one coherent change.
  • Module layout: recommended fleet-tui/floor/web/board.js as a pure mapping module (snapshot -> lanes/columns/cards, no DOM) that is unit-tested with node --test beside server/*.test.js, plus a thin DOM painter and a Floor/Board toggle in index.html. Keep the zero-npm-dependency posture.
  • Replay mode (if the brief kept it): FLOOR_REPLAY=<file> in server/server.js serving a fixture without spawning the collector; how run.sh exposes it.
  • Test plan per build ticket: the test file and the named cases that go red first (repo rule: TDD, test updated in the same commit as the lib).
  • Evidence rule for the morning: each build ticket's close-report must include its test command; the final rendering ticket must attach a screenshot (or state **Screenshots:** none — <reason>) so #236 has evidence to check.

Deliverable 2: the build tickets

File four to six issues in this repo. For each:

  • Labels at creation, ids resolved by name at run time: enhancement, ready-for-agent, priority (Ben wants these worked ahead of the rest of the queue tonight; say so in the body). Never put labels in a PATCH (GOTCHAS 2).
  • Title prefix MVP Factory Board:; body opens with Part of the MVP Factory Board pipeline (#234 scope, this ticket's spec in #235).
  • Sized for one swarm iteration: one module or file area, one test file, a crisp Acceptance list, an out_of_scope line. A worker that needs to touch two of {collector, server, web} is a sign the split is wrong.
  • Dependencies in build order via POST /issues/{n}/dependencies (the swarm respects the DAG and skips blocked tickets). Suggested order: (1) collector additions + snapshot_version bump + fixture; (2) board.js pure mapping + tests; (3) board painter + toggle + CSS; (4) card detail + tracker links + stale/unreachable rendering; (5) replay mode in server + run.sh; (6) README/run docs + tests/fleet-tui-test.sh hook for the node tests. Merge or drop steps to stay within six.
  • Never write closes #N anywhere. Use "advances #N".

Then: POST /issues/236/dependencies for each build ticket so the handoff cannot start before they land; post the numbered ticket list as a comment here and on #236.

Known hazards to design around

  • #230 (open, ready-for-agent): swarm runs go red on STATUS.md concurrent-write conflicts. Keep each build ticket's STATUS.md touch to one short line so rebases stay trivial, and say so in each ticket.
  • protocol.js rejects a snapshot whose snapshot_version differs from EXPECTED_SNAPSHOT_VERSION; the collector bump and the server bump must land in the same ticket.
  • fleet-tui/** is vendor-excluded; nothing here may reach a consumer. Do not touch tui/ or .sandcastle/.
  • Two hosts can run swarm workers tonight; runs are at :15/:45. Six tickets is the ceiling, four is comfortable.

Acceptance

  • Design spec on main; STATUS.md updated in the same commit.
  • Build tickets exist with labels, bodies, and a dependency chain; #236 depends on all of them.
  • Comment here and on #236 listing the tickets in build order.
  • This ticket closed by the session.

Bounds

One session, target under 45 minutes. If the scope brief is missing or contradicts itself, write the smallest coherent spec that honours its Decisions list, note the contradiction in a comment, and proceed; do not bounce it back to Ben.

_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 Read the scope brief from #234 (`docs/superpowers/specs/2026-10-15-factory-board-scope.md`), write the **design spec**, and **file the build tickets** the swarm will work overnight. Then wire #236 to depend on every build ticket, post the ticket list here and on #236, and close this ticket. Do **not** build the board in this session. ## Deliverable 1: the design spec `docs/superpowers/specs/2026-10-15-factory-board-design.md` on `main`, committed with `STATUS.md`. It must contain: - **Data mapping table:** snapshot field(s) -> column, per column in the brief, including the exact `classify_state` / label predicates, and the list of collector additions with the `snapshot_version` bump (collector.py, protocol.js, fixture, README) as one coherent change. - **Module layout:** recommended `fleet-tui/floor/web/board.js` as a **pure mapping module** (snapshot -> lanes/columns/cards, no DOM) that is unit-tested with `node --test` beside `server/*.test.js`, plus a thin DOM painter and a Floor/Board toggle in `index.html`. Keep the zero-npm-dependency posture. - **Replay mode** (if the brief kept it): `FLOOR_REPLAY=<file>` in `server/server.js` serving a fixture without spawning the collector; how `run.sh` exposes it. - **Test plan per build ticket:** the test file and the named cases that go red first (repo rule: TDD, test updated in the same commit as the lib). - **Evidence rule for the morning:** each build ticket's close-report must include its test command; the final rendering ticket must attach a screenshot (or state `**Screenshots:** none — <reason>`) so #236 has evidence to check. ## Deliverable 2: the build tickets File **four to six** issues in this repo. For each: - Labels at creation, ids resolved by name at run time: `enhancement`, `ready-for-agent`, `priority` (Ben wants these worked ahead of the rest of the queue tonight; say so in the body). Never put labels in a PATCH (GOTCHAS 2). - Title prefix `MVP Factory Board:`; body opens with `Part of the MVP Factory Board pipeline (#234 scope, this ticket's spec in #235).` - Sized for **one swarm iteration**: one module or file area, one test file, a crisp **Acceptance** list, an **out_of_scope** line. A worker that needs to touch two of {collector, server, web} is a sign the split is wrong. - **Dependencies** in build order via `POST /issues/{n}/dependencies` (the swarm respects the DAG and skips blocked tickets). Suggested order: (1) collector additions + snapshot_version bump + fixture; (2) `board.js` pure mapping + tests; (3) board painter + toggle + CSS; (4) card detail + tracker links + stale/unreachable rendering; (5) replay mode in server + run.sh; (6) README/run docs + `tests/fleet-tui-test.sh` hook for the node tests. Merge or drop steps to stay within six. - Never write `closes #N` anywhere. Use "advances #N". Then: `POST /issues/236/dependencies` for **each** build ticket so the handoff cannot start before they land; post the numbered ticket list as a comment here **and** on #236. ## Known hazards to design around - `#230` (open, `ready-for-agent`): swarm runs go red on `STATUS.md` concurrent-write conflicts. Keep each build ticket's `STATUS.md` touch to one short line so rebases stay trivial, and say so in each ticket. - `protocol.js` rejects a snapshot whose `snapshot_version` differs from `EXPECTED_SNAPSHOT_VERSION`; the collector bump and the server bump must land in the **same** ticket. - `fleet-tui/**` is vendor-excluded; nothing here may reach a consumer. Do not touch `tui/` or `.sandcastle/`. - Two hosts can run swarm workers tonight; runs are at :15/:45. Six tickets is the ceiling, four is comfortable. ## Acceptance - Design spec on `main`; `STATUS.md` updated in the same commit. - Build tickets exist with labels, bodies, and a dependency chain; #236 depends on all of them. - Comment here and on #236 listing the tickets in build order. - This ticket closed by the session. ## Bounds One session, target under 45 minutes. If the scope brief is missing or contradicts itself, write the smallest coherent spec that honours its Decisions list, note the contradiction in a comment, and proceed; do not bounce it back to Ben.

Close-report — MVP Factory Board design session (#235)

Landed on main (commit b3fcc11, docs-only — spec path not vendored, fleet-tui/** vendor-excluded, no re-vendor):

  • docs/superpowers/specs/2026-10-15-factory-board-design.md — the build-ready design spec implementing the #234 scope brief's eight Decisions: the eight-column classifier as a pure classifyColumn(row,nowMs) in board.js with exact per-column predicates; the v5 collector additions in lockstep (version pins + fixture + README); module layout (pure board.js + thin painter + Floor/Board toggle + shared detail.js factored from app.js, zero npm deps); FLOOR_REPLAY= replay mode; a red-first test plan per build ticket; the morning evidence rule.
  • STATUS.md header line + docs/journal/2026-10-15-235.md, same commit; the oldest already-journaled #223 paragraph retired from the status surface to stay under the docs budget (tests/docs-budget-test.sh: 3 passed, 0 failed).

Build tickets filed (enhancement+ready-for-agent+priority, each confined to one {collector,server,web} area; DAG wired via /dependencies):

  1. #237 collector widen + bump 4→5 (root) — the one contract-mandated cross-area ticket (collector + protocol version pins in one commit).
  2. #238 collector done[] — blocked by #237.
  3. #239 board.js pure mapping + node tests + suite hook — blocked by #237.
  4. #240 board page painter + toggle + cards + screenshot — blocked by #239.
  5. #241 server FLOOR_REPLAY — blocked by #237.

#236 now depends on all five (verified: #236 blocked by 237/238/239/240/241). Ticket list also posted on #236.

Ruling — one scope-hint correction (Decision intact)

The scope brief's Decision 6 sketched threading per-row age through tui/data/tracker.py::queue_snapshot. I kept the Decision (rows gain age) but redirected the implementation: the age enrichment lands in fleet-tui/repostats.py/collector.py, not tui/data/tracker.py, because tui/** is the vendored harness TUI (in vendor-manifest, reaches every consumer at the next pin bump) whereas fleet-tui/** is vendor-excluded and operator-only — changing tui/ for an operator-only board would be a cross-consumer blast-radius edit with no benefit. The per-tick repostats.memo_fetch() makes the extra fetch_open_issues a cache hit, so no new page walk. BT-1's body states this explicitly. A refinement of an implementation hint, not a reversal of any Decision — fully within #235's remit per the scope brief ("the design session owns the final split").

Ruled by agent under ADR 0174 — veto anytime. Two-way throughout: docs committed (revertible), build tickets revertible/closable, no one-way door touched. Closing #235.

## Close-report — MVP Factory Board design session (#235) **Landed on `main`** (commit `b3fcc11`, docs-only — spec path not vendored, `fleet-tui/**` vendor-excluded, no re-vendor): - `docs/superpowers/specs/2026-10-15-factory-board-design.md` — the build-ready design spec implementing the #234 scope brief's eight Decisions: the eight-column classifier as a pure `classifyColumn(row,nowMs)` in `board.js` with exact per-column predicates; the v5 collector additions in lockstep (version pins + fixture + README); module layout (pure `board.js` + thin painter + Floor/Board toggle + shared `detail.js` factored from `app.js`, zero npm deps); `FLOOR_REPLAY=` replay mode; a red-first test plan per build ticket; the morning evidence rule. - `STATUS.md` header line + `docs/journal/2026-10-15-235.md`, same commit; the oldest already-journaled #223 paragraph retired from the status surface to stay under the docs budget (`tests/docs-budget-test.sh`: 3 passed, 0 failed). **Build tickets filed** (`enhancement`+`ready-for-agent`+`priority`, each confined to one `{collector,server,web}` area; DAG wired via `/dependencies`): 1. **#237** collector widen + bump 4→5 *(root)* — the one contract-mandated cross-area ticket (collector + protocol version pins in one commit). 2. **#238** collector `done[]` — blocked by #237. 3. **#239** `board.js` pure mapping + node tests + suite hook — blocked by #237. 4. **#240** board page painter + toggle + cards + screenshot — blocked by #239. 5. **#241** server `FLOOR_REPLAY` — blocked by #237. **#236 now depends on all five** (verified: #236 blocked by 237/238/239/240/241). Ticket list also posted on #236. ### Ruling — one scope-hint correction (Decision intact) The scope brief's Decision 6 sketched threading per-row **age** through `tui/data/tracker.py::queue_snapshot`. I kept the *Decision* (rows gain age) but redirected the *implementation*: the age enrichment lands in `fleet-tui/repostats.py`/`collector.py`, **not** `tui/data/tracker.py`, because `tui/**` is the vendored harness TUI (in `vendor-manifest`, reaches every consumer at the next pin bump) whereas `fleet-tui/**` is vendor-excluded and operator-only — changing `tui/` for an operator-only board would be a cross-consumer blast-radius edit with no benefit. The per-tick `repostats.memo_fetch()` makes the extra `fetch_open_issues` a cache hit, so no new page walk. BT-1's body states this explicitly. A refinement of an implementation hint, not a reversal of any Decision — fully within #235's remit per the scope brief ("the design session owns the final split"). **Ruled by agent under ADR 0174 — veto anytime.** Two-way throughout: docs committed (revertible), build tickets revertible/closable, no one-way door touched. Closing #235.

Note from the standing session-runner (ADR 0174). This host picked up #235 as ready-for-session, but a concurrent session had already landed the full deliverable: the design spec docs/superpowers/specs/2026-10-15-factory-board-design.md (commit b3fcc11), the five build tickets #237–#241 (enhancement+priority+ready-for-agent), and the dependency DAG. I independently verified the pipeline is intact and took no duplicate action (discarded my own in-flight duplicate spec/commit without pushing):

  • DAG: #237 (root) → #238, #239, #241; #239 → #240.
  • #236 (morning handoff) depends on all five build tickets (237–241).
  • Ticket-list comment present on #236.

No gaps found; #235 was already correctly closed. Ruled by agent under ADR 0174 — veto anytime.

_Note from the standing session-runner (ADR 0174)._ This host picked up #235 as `ready-for-session`, but a concurrent session had already landed the full deliverable: the design spec `docs/superpowers/specs/2026-10-15-factory-board-design.md` (commit `b3fcc11`), the five build tickets #237–#241 (`enhancement`+`priority`+`ready-for-agent`), and the dependency DAG. I independently verified the pipeline is intact and took **no duplicate action** (discarded my own in-flight duplicate spec/commit without pushing): - DAG: #237 (root) → #238, #239, #241; #239 → #240. - #236 (morning handoff) depends on all five build tickets (237–241). - Ticket-list comment present on #236. No gaps found; #235 was already correctly closed. Ruled by agent under ADR 0174 — veto anytime.
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#235
No description provided.