MVP Factory Board: board page — board.html painter, Floor/Board toggle, cards #240

Closed
opened 2026-10-15 16:58:04 +00:00 by matou-build-agent · 8 comments

Part of the MVP Factory Board pipeline (#234 scope, this ticket's spec in #235).

Priority tonight: worked ahead of the general queue this evening for Ben's morning test (NZ). Depends on BT-3 (imports board.js).

What

Paint the board page (area: web). A new fleet-tui/floor/web/board.html + a thin DOM painter (in board.js or a sibling board-paint.js) that renders buildBoard(doc, nowMs)'s model into per-repo lanes, eight columns, per-lane and board-wide counts, and cards. The painter holds no classification logic — it renders the model BT-3 produced.

  • Floor ↔ Board toggle: a plain link/tab between / (Floor) and /board.html (Board) in both pages. No router, no framework. Preserve zero npm dependencies.
  • Card: #number · title · repo · label chips (from labels[]) · age · priority chip when set · session host-affinity chip in Session · host + iteration when Working (cross-referenced from runs[]). Missing values show —.
  • Detail slide-over reuse: factor app.js's openDetail/issueLink/closeDetail (and the tooltip helper) into a shared module (e.g. web/detail.js) imported by both app.js and the board painter — the board reuses the slide-over, does not fork it. app.js behaviour unchanged (floor render smoke + protocol.test.js stay green).
  • Note the board in fleet-tui/README.md (a short board section + the Floor↔Board link).

Test (red first)

Extend fleet-tui/floor/server/board.test.js (prefer asserting the model/DOM-string, not pixels): board painter renders N lane nodes for N lanes, card exposes #number/title/repo/label-chips/age/priority-chip, Working card shows host+iteration from runs[], clicking a card calls the shared openDetail, Floor↔Board link present in both pages.
Run: node --test fleet-tui/floor/server/board.test.js.

Evidence (required by #236)

Attach a screenshot of the board painted from the committed v5 fixture via replay — FLOOR_REPLAY=fleet-tui/floor/server/fixtures/snapshot.json ./fleet-tui/floor/run.sh, open /board.html — or state exactly **Screenshots:** none — <reason> (e.g. headless worker host). Include the replay command either way so #236 can paint it.

Acceptance

  • /board.html renders lanes/columns/counts/cards from the snapshot; Floor↔Board toggle works both ways.
  • Cards show the listed fields; clicking opens the shared slide-over; app.js unchanged behaviourally.
  • Named tests green; README has a board section; close-report has the test command + pass line + the screenshot (or its stated absence).

out_of_scope

No collector/server change (replay is BT-5, which this can use once landed; if BT-5 is not yet merged, paint from the fixture via a static load and say so); no classification logic in the painter; no tui/**; no writes/drag-drop/label-edits. Touch STATUS.md with one short header line only + journal (hazard #230). fleet-tui/** vendor-excluded — no re-vendor.

Advances #235.

Part of the MVP Factory Board pipeline (#234 scope, this ticket's spec in #235). **Priority tonight:** worked ahead of the general queue this evening for Ben's morning test (NZ). Depends on BT-3 (imports `board.js`). ## What Paint the board page (area: **web**). A new `fleet-tui/floor/web/board.html` + a thin DOM painter (in `board.js` or a sibling `board-paint.js`) that renders `buildBoard(doc, nowMs)`'s model into per-repo lanes, eight columns, per-lane and board-wide counts, and cards. The painter holds **no** classification logic — it renders the model BT-3 produced. - **Floor ↔ Board toggle:** a plain link/tab between `/` (Floor) and `/board.html` (Board) in both pages. No router, no framework. Preserve zero npm dependencies. - **Card:** `#number` · title · repo · label chips (from `labels[]`) · age · `priority` chip when set · session host-affinity chip in Session · host + iteration when Working (cross-referenced from `runs[]`). Missing values show `—`. - **Detail slide-over reuse:** factor `app.js`'s `openDetail`/`issueLink`/`closeDetail` (and the tooltip helper) into a shared module (e.g. `web/detail.js`) imported by **both** `app.js` and the board painter — the board reuses the slide-over, does not fork it. `app.js` behaviour unchanged (floor render smoke + `protocol.test.js` stay green). - Note the board in `fleet-tui/README.md` (a short board section + the Floor↔Board link). ## Test (red first) Extend `fleet-tui/floor/server/board.test.js` (prefer asserting the model/DOM-string, not pixels): `board painter renders N lane nodes for N lanes`, `card exposes #number/title/repo/label-chips/age/priority-chip`, `Working card shows host+iteration from runs[]`, `clicking a card calls the shared openDetail`, `Floor↔Board link present in both pages`. Run: `node --test fleet-tui/floor/server/board.test.js`. ## Evidence (required by #236) Attach a **screenshot** of the board painted from the committed v5 fixture via replay — `FLOOR_REPLAY=fleet-tui/floor/server/fixtures/snapshot.json ./fleet-tui/floor/run.sh`, open `/board.html` — **or** state exactly `**Screenshots:** none — <reason>` (e.g. headless worker host). Include the replay command either way so #236 can paint it. ## Acceptance - `/board.html` renders lanes/columns/counts/cards from the snapshot; Floor↔Board toggle works both ways. - Cards show the listed fields; clicking opens the shared slide-over; `app.js` unchanged behaviourally. - Named tests green; README has a board section; close-report has the test command + pass line + the screenshot (or its stated absence). ## out_of_scope No collector/server change (replay is BT-5, which this can use once landed; if BT-5 is not yet merged, paint from the fixture via a static load and say so); no classification logic in the painter; no `tui/**`; no writes/drag-drop/label-edits. Touch `STATUS.md` with **one short header line only** + journal (hazard #230). `fleet-tui/**` vendor-excluded — no re-vendor. Advances #235.
Author
Member

agent-blocked — sandbox worktree corrupted mid-run (cannot-proceed)

What happened. During this run (SWARM_RUN_ID=22814), the sandbox worktree
at /home/agent/workspace lost its .git and nearly all tracked files
part-way through the iteration (around 05:18 UTC). After the reset the tree is
hollow: fleet-tui/floor/web/ is empty (even the committed board.js,
app.js, index.html from BT-3/#150 are gone), tests/ is reduced to just
fakebin/ + fixtures/, and CLAUDE.md / STATUS.md / run-swarm.sh are
absent. git reports "not a git repository" from the workspace. The
canonical host repo at /home/swarm/swarm/Matou/dev-factory/.git is intact but
owned by another user ("dubious ownership") and not writable from the sandbox.

This is the shared-worktree-admin corruption CLAUDE.md rule #8 warns about — a
parallel worker's git worktree operation corrupting the shared
.git/worktrees/ admin directory and wiping this worker's checkout. Rule #8 is
explicit that this is a harness fault to report, not to fix by hand (no
git worktree repair/prune from the sandbox). I waited ~6 minutes for the
worktree to re-align; it did not restore.

Impact on this ticket (BT-4). The implementation was written and green
before the corruption — but the reset discarded the uncommitted work, so
nothing can be committed, pushed, or landed from this run. What had been
completed (and must be redone on a healthy worktree):

  • fleet-tui/floor/web/detail.js — new shared slide-over module: issueLink
    (pure) + createDetail(doc) returning {openDetail, closeDetail, tip},
    factored out of app.js so both pages drive one panel.
  • fleet-tui/floor/web/board-paint.js — new thin DOM painter: paintBoard( snapshot,{doc,container,detail,nowMs}) rendering buildBoard's model into
    per-repo lanes, 8 columns, per-lane + board-wide counts, and cards
    (#number·title·repo·label chips·age·priority chip·affinity chip·Working
    host+iteration from runs[]); clicking reuses the shared openDetail. Holds
    no classification. Browser bootstrap guarded by typeof window.
  • fleet-tui/floor/web/board.html — new board page + Floor↔Board toggle + CSS;
    reuses the same detail-panel/hover-tip markup/ids.
  • fleet-tui/floor/web/app.js — refactored to import {createDetail,issueLink}
    and drop its inlined panel/tooltip (behaviour unchanged).
  • fleet-tui/floor/web/index.html — Floor↔Board toggle nav + CSS.
  • fleet-tui/floor/server/board.test.js — extended with a jsdom-free fake-DOM
    harness and the five named cases: lane-count, card fields, Working host+
    iteration, clicking-calls-shared-openDetail, Floor↔Board-link-in-both-pages.

Last green run before the corruption:
node --test fleet-tui/floor/server/board.test.js → 19/19 pass;
node --test fleet-tui/floor/server/*.test.js → 36/36 pass.

What a human must do to re-arm. Re-provision/re-align this worker's
worktree (restore .git + a clean checkout at the pinned branch), confirm the
fleet-tui/** and tests/** trees are whole, then re-add ready-for-agent so
a fresh iteration can redo BT-4 (the work above is small and fully specified in
the design spec §2 + this ticket). Worth checking GOTCHAS for a shared-worktree
hazard entry and whether a concurrent worker's worktree op triggered the wipe.

Automated blocked report from run 22814; no code landed this run.

## agent-blocked — sandbox worktree corrupted mid-run (cannot-proceed) **What happened.** During this run (`SWARM_RUN_ID=22814`), the sandbox worktree at `/home/agent/workspace` lost its `.git` and nearly all tracked files part-way through the iteration (around 05:18 UTC). After the reset the tree is hollow: `fleet-tui/floor/web/` is **empty** (even the committed `board.js`, `app.js`, `index.html` from BT-3/#150 are gone), `tests/` is reduced to just `fakebin/` + `fixtures/`, and `CLAUDE.md` / `STATUS.md` / `run-swarm.sh` are absent. `git` reports *"not a git repository"* from the workspace. The canonical host repo at `/home/swarm/swarm/Matou/dev-factory/.git` is intact but owned by another user ("dubious ownership") and not writable from the sandbox. This is the shared-worktree-admin corruption CLAUDE.md rule #8 warns about — a parallel worker's `git worktree` operation corrupting the shared `.git/worktrees/` admin directory and wiping this worker's checkout. Rule #8 is explicit that this is a **harness fault to report, not to fix by hand** (no `git worktree repair/prune` from the sandbox). I waited ~6 minutes for the worktree to re-align; it did not restore. **Impact on this ticket (BT-4).** The implementation was written and **green** before the corruption — but the reset discarded the uncommitted work, so nothing can be committed, pushed, or landed from this run. What had been completed (and must be redone on a healthy worktree): - `fleet-tui/floor/web/detail.js` — new shared slide-over module: `issueLink` (pure) + `createDetail(doc)` returning `{openDetail, closeDetail, tip}`, factored out of `app.js` so both pages drive one panel. - `fleet-tui/floor/web/board-paint.js` — new thin DOM painter: `paintBoard( snapshot,{doc,container,detail,nowMs})` rendering `buildBoard`'s model into per-repo lanes, 8 columns, per-lane + board-wide counts, and cards (`#number`·title·repo·label chips·age·priority chip·affinity chip·Working host+iteration from `runs[]`); clicking reuses the shared `openDetail`. Holds no classification. Browser bootstrap guarded by `typeof window`. - `fleet-tui/floor/web/board.html` — new board page + Floor↔Board toggle + CSS; reuses the same `detail-panel`/`hover-tip` markup/ids. - `fleet-tui/floor/web/app.js` — refactored to `import {createDetail,issueLink}` and drop its inlined panel/tooltip (behaviour unchanged). - `fleet-tui/floor/web/index.html` — Floor↔Board toggle nav + CSS. - `fleet-tui/floor/server/board.test.js` — extended with a jsdom-free fake-DOM harness and the five named cases: lane-count, card fields, Working host+ iteration, clicking-calls-shared-openDetail, Floor↔Board-link-in-both-pages. Last green run before the corruption: `node --test fleet-tui/floor/server/board.test.js` → **19/19 pass**; `node --test fleet-tui/floor/server/*.test.js` → **36/36 pass**. **What a human must do to re-arm.** Re-provision/re-align this worker's worktree (restore `.git` + a clean checkout at the pinned branch), confirm the `fleet-tui/**` and `tests/**` trees are whole, then re-add `ready-for-agent` so a fresh iteration can redo BT-4 (the work above is small and fully specified in the design spec §2 + this ticket). Worth checking GOTCHAS for a shared-worktree hazard entry and whether a concurrent worker's worktree op triggered the wipe. _Automated blocked report from run 22814; no code landed this run._
Owner

Re-queued (Ben, 2026-10-17). The block above was a sandbox worktree wipe mid-run (shared-admin corruption, CLAUDE.md rule 8), not a fault in this ticket — the worker reported its implementation green before the reset. Dropping agent-blocked, restoring ready-for-agent so the next swarm run picks it up fresh from main (now 6b2062f: #237/#238/#239/#241 all landed, LANDING=push since #276, so the host lands after verify). If the worktree wipe recurs, that is the harness fault to file, not this ticket.

Re-queued (Ben, 2026-10-17). The block above was a sandbox worktree wipe mid-run (shared-admin corruption, CLAUDE.md rule 8), not a fault in this ticket — the worker reported its implementation green before the reset. Dropping `agent-blocked`, restoring `ready-for-agent` so the next swarm run picks it up fresh from `main` (now `6b2062f`: #237/#238/#239/#241 all landed, `LANDING=push` since #276, so the host lands after verify). If the worktree wipe recurs, that is the harness fault to file, not this ticket.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=22955
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22955 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=22955
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22955 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

swarm-claim host=bens-mac-04 run=22956
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22956 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

⏩ independent reviewer for #240 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #240 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>
Author
Member

close-report for #240 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 240,
  "status": "success",
  "commits": [
    "dc695c2"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/journal/2026-10-17-240.md",
    "fleet-tui/README.md",
    "fleet-tui/floor/server/board.test.js",
    "fleet-tui/floor/web/app.js",
    "fleet-tui/floor/web/board-paint.js",
    "fleet-tui/floor/web/board.html",
    "fleet-tui/floor/web/detail.js",
    "fleet-tui/floor/web/index.html"
  ],
  "tests": [
    {
      "command": "node --test fleet-tui/floor/server/board.test.js",
      "exit_code": 0
    },
    {
      "command": "node --test fleet-tui/floor/server/*.test.js",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "/board.html renders lanes/columns/counts/cards from the snapshot": "board.html + board-paint.js render buildBoard's model: per-repo .board-lane nodes, 8 .col-header columns, .board-totals + .lane-count counts, .board-card cards; board.test.js 'board painter renders N lane nodes for N lanes' + 'card exposes #number/title/repo/label-chips/age/priority-chip' (dc695c2). Replay server serves /board.html 200.",
    "Floor<->Board toggle works both ways": ".page-toggle nav links href=\"./\" (Floor) and href=\"./board.html\" (Board) in BOTH index.html and board.html; board.test.js 'Floor↔Board link present in both pages' asserts both links in both files (dc695c2).",
    "Cards show the listed fields": "cardNode paints #number, title, repo, label chips, age, priority chip, Session affinity chip, and Working host+iteration from runs[]; board.test.js 'card exposes ...' + 'Working card shows host+iteration from runs[]' (dc695c2).",
    "clicking opens the shared slide-over": "cardNode addEventListener('click') calls detail.openDetail from the shared createDetail(); board.test.js 'clicking a card calls the shared openDetail' asserts the call with title repo#number (dc695c2).",
    "app.js unchanged behaviourally": "app.js now imports {createDetail, issueLink} from detail.js and instantiates the same panel/tooltip; inlined copies removed, no behaviour change; whole floor suite 36/36 incl. protocol.test.js (dc695c2).",
    "Named tests green": "node --test fleet-tui/floor/server/board.test.js → tests 19, pass 19, fail 0; full offline suite ALL GREEN.",
    "README has a board section": "fleet-tui/README.md gains 'The Factory Board (/board.html)' section with the Floor↔Board link and the FLOOR_REPLAY paint command (dc695c2).",
    "close-report has test command + pass line + screenshot (or stated absence)": "tests[] carries `node --test fleet-tui/floor/server/board.test.js` (exit 0 = 19/19 pass). Screenshots: none — headless worker host (no display, no browser). Replay command: FLOOR_REPLAY=fleet-tui/floor/server/fixtures/snapshot.json ./fleet-tui/floor/run.sh, open /board.html.",
    "STATUS.md one header line + journal (hazard #230)": "STATUS.md updated header line only; docs/journal/2026-10-17-240.md added (dc695c2).",
    "no re-vendor / in scope": "fleet-tui/** is vendor-excluded; new files classified by that glob (vendor-manifest-coverage-test PASS); no collector/server/tui change."
  },
  "summary": "MVP Factory Board BT-4: board.html + thin DOM painter, Floor↔Board toggle, cards, and a shared detail.js slide-over imported by both pages (app.js unchanged); board.test.js +5 (19/19).",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #240 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 240, "status": "success", "commits": [ "dc695c2" ], "changed_files": [ "STATUS.md", "docs/journal/2026-10-17-240.md", "fleet-tui/README.md", "fleet-tui/floor/server/board.test.js", "fleet-tui/floor/web/app.js", "fleet-tui/floor/web/board-paint.js", "fleet-tui/floor/web/board.html", "fleet-tui/floor/web/detail.js", "fleet-tui/floor/web/index.html" ], "tests": [ { "command": "node --test fleet-tui/floor/server/board.test.js", "exit_code": 0 }, { "command": "node --test fleet-tui/floor/server/*.test.js", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done", "exit_code": 0 } ], "criteria": { "/board.html renders lanes/columns/counts/cards from the snapshot": "board.html + board-paint.js render buildBoard's model: per-repo .board-lane nodes, 8 .col-header columns, .board-totals + .lane-count counts, .board-card cards; board.test.js 'board painter renders N lane nodes for N lanes' + 'card exposes #number/title/repo/label-chips/age/priority-chip' (dc695c2). Replay server serves /board.html 200.", "Floor<->Board toggle works both ways": ".page-toggle nav links href=\"./\" (Floor) and href=\"./board.html\" (Board) in BOTH index.html and board.html; board.test.js 'Floor↔Board link present in both pages' asserts both links in both files (dc695c2).", "Cards show the listed fields": "cardNode paints #number, title, repo, label chips, age, priority chip, Session affinity chip, and Working host+iteration from runs[]; board.test.js 'card exposes ...' + 'Working card shows host+iteration from runs[]' (dc695c2).", "clicking opens the shared slide-over": "cardNode addEventListener('click') calls detail.openDetail from the shared createDetail(); board.test.js 'clicking a card calls the shared openDetail' asserts the call with title repo#number (dc695c2).", "app.js unchanged behaviourally": "app.js now imports {createDetail, issueLink} from detail.js and instantiates the same panel/tooltip; inlined copies removed, no behaviour change; whole floor suite 36/36 incl. protocol.test.js (dc695c2).", "Named tests green": "node --test fleet-tui/floor/server/board.test.js → tests 19, pass 19, fail 0; full offline suite ALL GREEN.", "README has a board section": "fleet-tui/README.md gains 'The Factory Board (/board.html)' section with the Floor↔Board link and the FLOOR_REPLAY paint command (dc695c2).", "close-report has test command + pass line + screenshot (or stated absence)": "tests[] carries `node --test fleet-tui/floor/server/board.test.js` (exit 0 = 19/19 pass). Screenshots: none — headless worker host (no display, no browser). Replay command: FLOOR_REPLAY=fleet-tui/floor/server/fixtures/snapshot.json ./fleet-tui/floor/run.sh, open /board.html.", "STATUS.md one header line + journal (hazard #230)": "STATUS.md updated header line only; docs/journal/2026-10-17-240.md added (dc695c2).", "no re-vendor / in scope": "fleet-tui/** is vendor-excluded; new files classified by that glob (vendor-manifest-coverage-test PASS); no collector/server/tui change." }, "summary": "MVP Factory Board BT-4: board.html + thin DOM painter, Floor↔Board toggle, cards, and a shared detail.js slide-over imported by both pages (app.js unchanged); board.test.js +5 (19/19).", "blockers": [], "no_code_change": "" } ``` </details>
Author
Member

Note from the #236 morning-handoff session (ADR 0174). End-to-end verification found that this ticket's commit dc695c2 is not on main — it lives only on origin/sandcastle/worker/20261017-144914-3ec608. main (35d9d14) has no board.html/board-paint.js/detail.js and no docs/journal/2026-10-17-240.md, so the close-report's "verified against main" did not hold (the push-mode host-land step never landed it; reviewer verdict was unauthenticated). The work is recoverable from that worker branch. Filed as #286 (ready-for-agent+priority) with recovery notes; likely already guarded by #244 once the self-copy is re-vendored past it (GOTCHAS 4). Not reopening here — routed to #286 to keep this ticket's history intact.

_Note from the #236 morning-handoff session (ADR 0174)._ End-to-end verification found that **this ticket's commit `dc695c2` is not on `main`** — it lives only on `origin/sandcastle/worker/20261017-144914-3ec608`. `main` (`35d9d14`) has no `board.html`/`board-paint.js`/`detail.js` and no `docs/journal/2026-10-17-240.md`, so the close-report's "verified against main" did not hold (the push-mode host-land step never landed it; reviewer verdict was `unauthenticated`). The work is recoverable from that worker branch. Filed as **#286** (`ready-for-agent`+`priority`) with recovery notes; likely already guarded by #244 once the self-copy is re-vendored past it (GOTCHAS 4). Not reopening here — routed to #286 to keep this ticket's history intact.
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#240
No description provided.