Repository navigation
Conversation
|
|
Speaking as Kun's firstmate: Status: waiting on CI, then a captain decision · contract-class: new-default · head Thank you for this. The ask is stored as structured data, never guessed from prose, CI: I approved the fork workflow runs at this head (CI On the class: Two things the decision will weigh, worth a sentence from you if you have one (not blocking):
VISION.md per-rule: One captain, one interface: aligns (a fleet page can show real asks without parsing prose). Authority explicit: aligns (an ask exists only when written at hold time). Scripts/agents split: aligns (structured fields, no prose matching). Restart is a non-event: cannot tell (the v1/v2 mixed-version window above). Delegation with a spine: n/a. Outlives any vendor: aligns. Scope: cannot tell (shared surface shaped by one home's external dashboard contract; default-on schema bump, while presentation features are expected to be opt-in). |
…age fields Record a validated ask at captain-hold time (hold --ask-file, owned by bin/fm-hold-ask-lib.sh) and surface it in the fleet snapshot only while the captain's answer is what restarts the work. Add title_plain, since_epoch, produces, and open_url to active children; project, title_plain, and open_url to landed rows; project, title_plain, and a structured restart condition to holds, plus an omitted entry when the holds list is capped. decisions_open keeps every live hold and gains the ask additively with counts.asks. Bump fm-secondmate-home-summary to v2 and fm-fleet-snapshot to v2; parents and the reconcile intake still accept v1 documents.
… CI and "Require no-mistakes" never ran. Both runs (37511816384, 37511816605) completed with conclusion `action_required` and zero jobs. The PR is cross-repository (dsdevq fork into kunchenguid/firstmate), so the workflows await maintainer approval. Not caused by this PR's code; no code change applies. 2. Greptile Review failed on one P2 comment at bin/fm-fleet-snapshot.sh:1194, and it was correct. The child-state parked row for an in-flight paused/parked/blocked child evaluated `restart` on `{}` instead of the backlog row `$work`, and hard-coded `blocked_by:null, blocked_by_ids:[], unresolved_blocker_ids:[]`. A paused child with a recorded unresolved blocker therefore reported `restart.kind: "event"` (and a blocked one `null`) with empty blocker fields, so the fleet page could not show which work must finish first. Reproduced with a new fixture before fixing. Fix (bin/fm-fleet-snapshot.sh, child-state branch of $holds_all): source `blocked_by`, `blocked_by_ids`, `unresolved_blocker_ids`, and `restart` from `$work`, matching the backlog-row branch. Fixing restart alone would have left the row contradicting itself (empty unresolved_blocker_ids beside restart.blocker_ids). The other restart kinds are unaffected: this branch already excludes rows with hold_reason+hold_kind, so `$work.ask` is always null there and date/captain_word/external cannot fire; paused-without-blockers still yields `event`. The header comment already documents after_work for unresolved blockers, so no doc change. No schema shape change (restart and the blocker fields already existed on holds rows), so no schema bump. Regression test (tests/fm-fleet-snapshot-view.test.sh, test_home_summary_page_fields_come_from_structured_state): added in-flight child `blocked-e` with `blocked-by: ship-a`, idle, status `paused: waiting for ship-a to land`; asserts source child-state, restart.kind after_work with blocker_ids ["ship-a"], unresolved_blocker_ids ["ship-a"], blocked_by "ship-a", title_plain. The capped-list totals moved from 8/5 to 9/6. The test failed before the fix (row showed kind event and empty blockers) and passes after. Verification: tests/fm-fleet-snapshot-view.test.sh 20/20 ok; tests/fm-home-summary-refresh.test.sh 21/21 ok; tests/fm-secondmate-reconcile.test.sh 22/22 ok; shellcheck -x on both changed files clean. tests/fm-captain-hold-lifecycle.test.sh was still running in the background when this result was returned; it does not exercise the changed jq branch. Changes are left uncommitted in the worktree for the outer executor
87d6151 to
e54693f
Compare
|
Thanks for the two questions.
|
Intent
Extend bin/fm-fleet-snapshot.sh so a fleet page can render four sections - real asks, working, landed, parked - from structured fields without parsing prose. This is step 4 of the dashboard fleet-layout investigation; its substance:
askobject present only when the restart condition is the captain's answer - {question, options[{id,label,recommended}], free_text_allowed, link}, the shape of decision contract v1 (feat(notify-relay): typed decision contract with one push per decision id lifekit-hq/lifekit-stack#290) - with decisions_open keeping only rows that carry one. The snapshot's own rule stands: no hold reason or body prose is ever matched, so the ask comes from structured data written at hold time by the existing captain-hold owner; choosing that field is part of this task. If narrowing decisions_open would hide existing holds from current consumers (Bearings, the parent fleet view), keep decisions_open as it is and expose asks additively (ask on the row plus a count), and say in the PR which was chosen and why.Out of scope: the lifekit-stack publisher (board link from the hold binding, serving reports as URLs), the dashboard page itself, and any change to how holds are bucketed.
On the maintainer's two questions on #6717 (mixed v1/v2 upgrade order; describing the ask shape without depending on lifekit-stack), answered 2026-10-07: "1. yes. 2. yes". That accepts both recommendations: keep the v2 snapshot and home-summary format with readers accepting v1 and v2, and document that the parent upgrades first; reword the ask shape in the doc so it stands on its own, without depending on lifekit-stack; then reply on the PR to those two questions as recommended, in the project's own voice, with no agent names.
What Changed
fm-captain-hold.sh holdaccepts a new--ask-fileoption. It validates and normalizes a structured ask (question,options[{id,label,recommended}],free_text_allowed,link) and stores it on aCaptain hold ask:body line. The ask is tied to one hold lifecycle: repeating an active hold keeps it, a new lifecycle drops it, and a refused hold restores the previous line. The ask's shape and storage are defined only in the newbin/fm-hold-ask-lib.sh.fm-fleet-snapshot.v2and the home summary is nowfm-secondmate-home-summary.v2. The snapshot reads the ask back without parsing any prose.decisions_openstill lists every live hold, and each row now carriesask(or null), with a newcounts.asks. The list is not narrowed to asks because Bearings and the parent fleet view treat it as the live Captain's Call. The summary rows gain new fields:active_children:title_plain,since_epoch,produces,open_urllanded:project,title_plain,open_urlholds:project,title_plain, and a structured-onlyrestart {kind,until?,blocker_ids?,text}.proposalsis reserved and never emitted. The cappedholdslist reports its real total and adds anomittedentry when rows are cut.fm-fleet-snapshot.sh,fm-home-summary-refresh.sh,fm-secondmate-reconcile.sh) now accept both v1 and v2 documents. Mixed-version fleets must upgrade the parent home first, and the docs say so. The docs also describe the ask shape on its own terms, cover the new lib, and update the schema ids. New regression tests cover ask lifecycle, page fields, and child-state restart rows.fm-test-run.shroutes the new lib to its test families, and the CI snapshot test count goes from 18 to 20.Risk Assessment
✅ Low: The new fields are additive, decided only from structured state, and covered by tests that run the script. The latest commits only add a case-insensitive status-word strip and doc wording, and the v1/v2 compatibility window and parent-first upgrade order follow the user's recorded decisions.
Testing
I ran the four targeted suites for the snapshot, hold-ask, home-summary and reconcile paths, and all pass. I also ran the realfm-fleet-snapshot.sh --secondmate-home-summaryon the page-fields fixture and saved its JSON as evidence. The output matches the intent: - Asks: only the hold with a valid stored ask line gets anaskobject. Options stay in the order the hold author wrote them, andcounts.asksis 1.decisions_openstill lists every live hold, so asks are added alongside rather than replacing anything. - Working: each child hastitle_plain(prefixes and status words removed),since_epoch,produces(pr, report or landing) andopen_url(the issue, or the PR once one exists). A scout with no linked issue or PR has a null link, as agreed earlier. - Landed: rows carryprojectandtitle_plain, andopen_urlis filled only when a link is recorded. - Parked:restart.kindis one of captain_word, date, after_work or event, and is null where no structured field proves it. The capped list of 3 still reports the real total of 9, with 6 marked as omitted. This is a JSON producer with no rendered page, so the evidence is the emitted JSON rather than screenshots. The PR reply to the maintainer's two questions is a delivery step outside this test phase, so I did not check it.Evidence: Page-field view of the emitted v2 home summary (asks, working, landed, parked, capped total)
Source: Page-field view of the emitted v2 home summary (asks, working, landed, parked, capped total)
Evidence: Full fm-secondmate-home-summary.v2 document emitted for the page-fields fixture
Source: Full fm-secondmate-home-summary.v2 document emitted for the page-fields fixture
Evidence: fm-fleet-snapshot-view test run log
Source: fm-fleet-snapshot-view test run log
Evidence: fm-captain-hold-lifecycle test run log
Source: fm-captain-hold-lifecycle test run log
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-fleet-snapshot-view.test.sh(20 ok, including the page-fields test, the word-boundary plain-title test, and the child-state blocker regression)bash tests/fm-captain-hold-lifecycle.test.sh(62 ok, including the test that validates the hold ask, keeps it through the hold's lifecycle and restores it when the hold is refused, with the multi-document and boolean-link refusal cases)bash tests/fm-home-summary-refresh.test.sh(21 ok; its 'Terminated' lines come from the timeout cases that end workers on purpose)bash tests/fm-secondmate-reconcile.test.sh(22 ok; it reads both v1 and v2 snapshots)Manual end-to-end check: ran the fixture fromtest_home_summary_page_fields_come_from_structured_statethrough a temp copy of the test (outside the worktree) withbin/fm-fleet-snapshot.sh --secondmate-home-summarywrapped in a tee, then pulled the page fields out with jqRead commit 7e713840: the bin/fm-fleet-snapshot.sh header says the parent home upgrades first, and the ask shape in bin/fm-hold-ask-lib.sh is now described without pointing at lifekit-stack✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.