Repository navigation
feat: show every worker's status on the live board - #66
Merged
Merged
Conversation
…filter a by-project list The live board gains a Workers section between the table of contents and the project cards. A row of counts says how many workers are working, waiting for validation, waiting for a merge or CI, waiting on the captain, paused on an outside wait, finished and idle, or stuck or stopped; each count is a button that narrows the list under it. The list groups workers by project, leads with what needs cleaning up, and opens a pressed row on what that status means and the worker's last report. The status is worded from the current state the snapshot already resolved (lb_worker_status in bin/fm-live-board-projects.jq); nothing is classified anew. Workers of registered secondmate homes are included: the board input now reads each registered local home's own board input, read-only and bounded by FM_SNAPSHOT_BOARD_HOMES_TIMEOUT, and a home that is remote, invalid or not read in time is named on the page instead of counted as empty.
…stered-home workers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
The live board is the firstmate project page that groups work into the captain's named projects: one card per project with three lanes, real captain questions, a per-project timeline of pull requests, a DEV, UAT and PROD strip, a table of contents and collapsible cards (PRs #60 to #64, merged).
The captain said in chat on 2026-10-11: "Make sure that in the live lavish board I can see the status of all workers too. Like are they working, waiting for validation, etc. Please implement this into the live lavish baord so I can zoom into what all workers are doing high over."
Context: he sees many workers (the main home and the persistent AI assistant secondmate home run about 40 between them) and cannot tell which are working, which wait on validation or a merge, which wait on him, and which are finished and idle.
What Changed
lb_worker_statusinbin/fm-live-board-projects.jqand only words the state the snapshot already resolved.fm-fleet-snapshot.sh --live-board-inputnow also reads each registered local secondmate home's own board input, in parallel and read-only, each bounded by the newFM_SNAPSHOT_BOARD_HOMES_TIMEOUT(default 30 seconds). The result lands inregistered_homes[]andcoverage.registered_homes. A home that is remote, invalid or not read in time is disclosed on the board instead of silently dropped, and a registered home's own registered homes are not followed.docs/architecture.mdanddocs/configuration.mdare updated for the new scope, and the snapshot, board and render-harness tests cover the new statuses, the registered-home reads and the filtering.Risk Assessment
✅ Low: Additive, read-only Workers section that satisfies the intent (all workers, main and local secondmate homes, plain statuses, filterable); only defects are one rare mislabel of an already-merged PR and a minor row open-state desync, both small fixes.
Testing
Built an isolated firstmate home with nine workers in different states and a registered second mate home with two more, ran the real
fm-live-board.sh build, and drove the resulting page in headless Chrome at 1280 px and 390 px: counts, filtering by pressed count, pressing again and All, opening rows, phone-width fold, second mate grouping with its pull request link, and the notice for a second mate that could not be read. A second page, built with the real snapshot, view and template from the collector's input with two workers' resolved state set to a running review and a green pull request, showed all seven statuses. The two live-board test files (tests/fm-live-board.test.sh,tests/fm-live-board-snapshot.test.sh) also passed. Six screenshots, the two driver scripts and a transcript are in the evidence directory; the fixture and browser session were removed and the worktree is clean. Not driven: keeping the pressed count and open rows across a Lavish live reload in a real Lavish frame, and a second mate home that times out.fm-live-board.sh openagainst the machine's live Lavish server, which this gate run did not have authority to bi…Evidence: Transcript of what was driven and read from the page
Source: Transcript of what was driven and read from the page
Evidence: Fixture driver: homes, workers, real build
Source: Fixture driver: homes, workers, real build
Evidence: Driver for the validation and merge page
Source: Driver for the validation and merge page
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-live-board-projects.jq:237- lb_worker_status labels a worker whose PR is already merged as "Waiting for a merge or CI". Trace: bin/fm-crew-state.sh:765 (nm_reclassify_failed_run_as_held_green) emits state=done, source=run-step, detail "checks green: PR merged (ci monitor ended): <url>"; the done branch testschecks green|^run passed: PR open, matches "checks green", returns "merge", and lb_worker_say then prints "Its pull request is ready and waits to be merged." Correct status is "finished" (done, not cleaned up), so the captain is told to wait for a merge that already happened and the finished/merge counts are both off by one. Fix at the one rule: in the done branch treat a detail containing "PR merged" as finished before the checks-green test (e.g.if ($detail | test("PR merged")) then "finished" elif ($detail | test("checks green|^run passed: PR open")) then "merge" else "finished" end). Same rule feeds lb_worker_say (merge sentence) and the workers.statuses counts; no other site needs a change. Add a harness case with that detail.bin/fm-live-board-template.html:1179- The row's summary click listener records an open/close for every click that bubbles to it, including a click on the "pull request" link inside the summary. A browser follows the link and does not toggle the <details>, but pressRow still stores the row as toggled in the hiddenworkersfield; on the next live reload (about a minute) syncCrew opens a row the captain never opened, or closes one that was open. Fix: ignore clicks whose target is inside the anchor (or record state from the details'toggleevent instead of the summary click). The list summary listener at line 1313 has no nested link and is unaffected.bin/fm-live-board-projects.jq- The same task reads two ways on one page. A worker that asked for a decision in its own report (current state parked from status-log) is 'Waiting on you' in the Workers section, while its project card's Charted next lane says 'Stuck, needs help' and the page totals still say 0 questions for you. Seen live on the fixture task 'Set up the courier integration' (01-workers-all-desktop.png). The lane wording predates this change; the captain may want the two to agree.fm-live-board.sh openagainst the machine's live Lavish server, which this gate run did not have authority to bi…bash drive-fixture.sh <worktree> <fixture>- throwaway main home (9 workers, 2 projects) plus registered second mate home (2 workers) and one unregistrable home, then realbin/fm-live-board.sh buildandbin/fm-fleet-snapshot.sh --live-board-inputchrome-devtools-axi open file://.../main/data/live-board/board.htmlat 1280x1600 - read Workers section text and screenshotClicked the2 stuck or stoppedcount, clicked it again, clicked2 finished and idle, clickedAll 11- read pressed button, list summary, visible groups and rows after eachClicked four worker rows open - read each row's status explanation and last reportchrome-devtools-axi resize 390 844and reload - list folded, no sideways scroll; clicked1 waiting on you- list opened on that one rowChecked the Workers section text in the browser for task ids, state-source labels, home paths and worktree names - none presentbash drive-run-states.sh <worktree> <fixture>- realbin/fm-live-board-snapshot.sh --json --input, reallb_view, shipped template, with two workers' resolved state set tovalidating (running)andchecks green: PR ready for review; opened in Chrome and read counts and both opened rowsbash tests/fm-live-board.test.shbash tests/fm-live-board-snapshot.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.