Repository navigation
feat(dashboard): add read-only Fleet Dashboard with truthful task lifecycle state - #2
Merged
Merged
Conversation
* Add instruction owners foundation * no-mistakes(document): Refresh project-management owner pointers
…kunchenguid#626) * docs: compress firstmate operating contract * docs: make delivery rigor single-owner PR B already removed personal and stacked review requirements, but it did not explicitly assign rigor to the selected delivery path or forbid risk-based manual clean gates. That gap still permitted the Hi Bit inversion. * no-mistakes(review): Honor configured merge authority across faster delivery paths * no-mistakes(document): Align docs with compressed operating contract
* Add durable captain decision holds * no-mistakes(review): Validate decision hold retries and origin paths * no-mistakes(review): Enforce durable decision lifecycle boundaries * no-mistakes(review): Harden decision display and partial retry recovery * no-mistakes(test): Update scout teardown fixtures for decision inventory * no-mistakes(document): Align decision lifecycle and scout teardown documentation * no-mistakes: apply CI fixes * no-mistakes(review): Reconcile terminal decision holds * no-mistakes(document): Align captain decision-hold documentation
* fix: harden PR check artifacts * fix: close PR check migration gaps * fix: close PR check retry gaps * fix: clarify migration outcomes and ESM boundary * fix: keep failed migrations authoritative * test: use inert PR validation fixtures * no-mistakes(review): Reserve noncanonical PR quarantine namespace * no-mistakes(review): Prevalidate final PR-check teardown artifacts * no-mistakes(review): Preserve X metadata and validate teardown IDs * no-mistakes(review): Initialize migration state before watcher exclusion * no-mistakes(review): Isolate failed poll migrations from bootstrap recovery * no-mistakes(review): Allow safe polling during incomplete private repairs * no-mistakes(review): Authenticate watcher checks at execution time * no-mistakes(review): Preserve custom checks with hash-bound registration * no-mistakes(review): Clean custom check snapshots on watcher signals * no-mistakes(review): Stop watcher checks promptly on signals * no-mistakes(review): Terminate watcher check groups before cleanup * no-mistakes(document): Correct stale X-mode watcher documentation * fix: drain returned watcher check groups * no-mistakes(review): Harden quarantine links and recover validated replacement polls * no-mistakes(review): Preserve X mode across shim version transitions * no-mistakes(review): Refresh legacy X shims before marker short-circuits * no-mistakes(document): Correct persisted PR-check artifact documentation * no-mistakes(document): Correct stale PR-check documentation * fix: bind PR poll repair provenance * no-mistakes(review): Enforce single-link ownership for custom check artifacts * no-mistakes(review): Preserve private checks, X polling, and lifecycle IDs * no-mistakes(review): Separate task creation and legacy teardown validation * no-mistakes(review): Restore safe legacy operations and teardown validation * no-mistakes(review): Disambiguate migration obligations and preserve legacy retries * no-mistakes(review): Preserve fail-closed diagnostics and legacy quarantine evidence * no-mistakes(review): Reconcile legacy migration retries and teardown collisions * no-mistakes(review): Force legacy namespace reconciliation before marker short-circuits * no-mistakes(document): Document private poll artifact safety contracts * no-mistakes(lint): Suppress intentional literal-dollar lint finding * fix: migrate historical X poll identity * fix: harden PR check artifacts * no-mistakes(review): Preserve fail-closed diagnostics and legacy quarantine evidence * no-mistakes(review): Reconcile legacy migration retries and teardown collisions * fix: migrate historical X poll identity * no-mistakes(review): Harden X-mode artifact publication against symlink corruption * no-mistakes(review): Guard X artifact publication * no-mistakes(review): Enforce private X artifact reads * no-mistakes(test): Fix backend compatibility fixture dependencies * no-mistakes(document): Refresh PR-check documentation * no-mistakes(lint): Remove unused x-mode test locals * no-mistakes: apply CI fixes
…st non-URL output
* Add instruction owners foundation * no-mistakes(document): Refresh project-management owner pointers
…kunchenguid#626) * docs: compress firstmate operating contract * docs: make delivery rigor single-owner PR B already removed personal and stacked review requirements, but it did not explicitly assign rigor to the selected delivery path or forbid risk-based manual clean gates. That gap still permitted the Hi Bit inversion. * no-mistakes(review): Honor configured merge authority across faster delivery paths * no-mistakes(document): Align docs with compressed operating contract
* Add durable captain decision holds * no-mistakes(review): Validate decision hold retries and origin paths * no-mistakes(review): Enforce durable decision lifecycle boundaries * no-mistakes(review): Harden decision display and partial retry recovery * no-mistakes(test): Update scout teardown fixtures for decision inventory * no-mistakes(document): Align decision lifecycle and scout teardown documentation * no-mistakes: apply CI fixes * no-mistakes(review): Reconcile terminal decision holds * no-mistakes(document): Align captain decision-hold documentation
* fix: harden PR check artifacts * fix: close PR check migration gaps * fix: close PR check retry gaps * fix: clarify migration outcomes and ESM boundary * fix: keep failed migrations authoritative * test: use inert PR validation fixtures * no-mistakes(review): Reserve noncanonical PR quarantine namespace * no-mistakes(review): Prevalidate final PR-check teardown artifacts * no-mistakes(review): Preserve X metadata and validate teardown IDs * no-mistakes(review): Initialize migration state before watcher exclusion * no-mistakes(review): Isolate failed poll migrations from bootstrap recovery * no-mistakes(review): Allow safe polling during incomplete private repairs * no-mistakes(review): Authenticate watcher checks at execution time * no-mistakes(review): Preserve custom checks with hash-bound registration * no-mistakes(review): Clean custom check snapshots on watcher signals * no-mistakes(review): Stop watcher checks promptly on signals * no-mistakes(review): Terminate watcher check groups before cleanup * no-mistakes(document): Correct stale X-mode watcher documentation * fix: drain returned watcher check groups * no-mistakes(review): Harden quarantine links and recover validated replacement polls * no-mistakes(review): Preserve X mode across shim version transitions * no-mistakes(review): Refresh legacy X shims before marker short-circuits * no-mistakes(document): Correct persisted PR-check artifact documentation * no-mistakes(document): Correct stale PR-check documentation * fix: bind PR poll repair provenance * no-mistakes(review): Enforce single-link ownership for custom check artifacts * no-mistakes(review): Preserve private checks, X polling, and lifecycle IDs * no-mistakes(review): Separate task creation and legacy teardown validation * no-mistakes(review): Restore safe legacy operations and teardown validation * no-mistakes(review): Disambiguate migration obligations and preserve legacy retries * no-mistakes(review): Preserve fail-closed diagnostics and legacy quarantine evidence * no-mistakes(review): Reconcile legacy migration retries and teardown collisions * no-mistakes(review): Force legacy namespace reconciliation before marker short-circuits * no-mistakes(document): Document private poll artifact safety contracts * no-mistakes(lint): Suppress intentional literal-dollar lint finding * fix: migrate historical X poll identity * fix: harden PR check artifacts * no-mistakes(review): Preserve fail-closed diagnostics and legacy quarantine evidence * no-mistakes(review): Reconcile legacy migration retries and teardown collisions * fix: migrate historical X poll identity * no-mistakes(review): Harden X-mode artifact publication against symlink corruption * no-mistakes(review): Guard X artifact publication * no-mistakes(review): Enforce private X artifact reads * no-mistakes(test): Fix backend compatibility fixture dependencies * no-mistakes(document): Refresh PR-check documentation * no-mistakes(lint): Remove unused x-mode test locals * no-mistakes: apply CI fixes
…st non-URL output
…local-only landings
…d completed-unverified state
…ding-unverified completion states
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
Fix Firstmate’s local fleet dashboard so its displayed state and terminology accurately reflect the real task lifecycle. Separate read-only scouts and report-backed completed work from shipped or merged work, and never call a scout landed. Let explicit meaningful state such as needs-decision, blocked, paused, and done with a known ship handoff stage outrank stale runtime shell or pane presence; neither elapsed time nor an empty shell implies active work. Use a derived display classifier without rewriting historical state records or breaking compatible readers. Distinguish committed handoff, validation running, PR-open/CI-pending, ready for captain merge, merged/landed, completed report, blocked, waiting for captain, and truly working. Keep locally completed reports visible in a dedicated Recent reports/completed section. Cover the three observed incidents: an Eating Reorder diagnostic must be completed-report rather than landed; implement-app-onboarding-completion-m4 must be waiting-for-captain despite stale runtime metadata; add-shadow-lifecycle-client-a2 must be committed rather than landed. Captain additionally chose that structured secondmate state outranks ambiguous raw done/paused events, and generic local-only done records remain in completed history with terminology that does not imply a PR merge. Limit work to Firstmate dashboard/state presentation; do not touch captain projects, production systems, or GitHub outside the Firstmate PR. Do not broaden scope.
What Changed
bin/fm-dashboard-server.mjs,bin/fm-dashboard.sh) that lives-reads fleet state and applies a derived display classifier: explicit meaningful state (needs-decision, blocked, paused, done with a known ship handoff stage) now outranks stale runtime shell or pane presence, and the surface distinguishes committed handoff, validation running, PR-open/CI-pending, ready-for-captain-merge, merged/landed, completed-report, blocked, waiting-for-captain, and truly-working. Read-only scouts and report-backed completed work are separated into a dedicated Recent reports/completed section and are never labeled landed; merge/landing terminology requires structured or PR-backed evidence, structured secondmate state outranks ambiguous raw done/paused events, and refresh failures retain prior truth instead of blanking.bin/fm-pr-check-migrate.sh), validated PR poll sidecars and registration provenance (bin/fm-pr-poll.sh,bin/fm-pr-lib.sh), and byte-bound custom-check trust registration (bin/fm-check-register.sh,bin/fm-check-lib.sh), with the watcher gated to run only trusted/validated checks.bin/fm-decision-hold.sh) with lifecycle skill and tests, and land the compressed Firstmate contract / instruction-ownership foundation (largeAGENTS.mdrewrite, new and updated.agents/skills/, and instruction-owner test coverage).Risk Assessment
✅ Low: The change is a well-bounded dashboard presentation fix that correctly implements all three previously-approved findings with consistent wiring and focused regression coverage, and no new material issues were found.
Testing
Baseline suite already passed; I re-ran the dashboard behavior test (which includes the two new lifecycle-truth tests) and it passes. For product-level evidence I launched the actual read-only Fleet Dashboard against a fixture reproducing all three named incidents and the full lifecycle vocabulary, verified the JSON classifier output, and captured a screenshot of the rendered dashboard showing waiting-for-captain overriding a stale busy pane, committed-not-landed handoff, a completed scout in a dedicated Completed-reports section, and merged-vs-landed terminology kept honest. A transient double-listing was traced to the fixture (same id in both In flight and Done) and confirmed not a product bug. Working tree left clean; live fixture torn down.
/var/folders/jp/p1l75rcj5vl_xw5ggksf870c0000gn/T/no-mistakes-evidence/01KXNJYZFRDEMXXBC2H6PR4DCW/dashboard-full.png)Evidence: Fleet classification summary (states, counts, recent sections)
Evidence: Raw /api/v1/fleet JSON response
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 3 issues found → auto-fixed ✅
bin/fm-dashboard-server.mjs:299- projectionDetail's secondmate branch still testsstateKey === 'waiting', but the mate classifier now returns 'paused_external' for externally_held. The branch is dead, so an externally-held secondmate falls through tomate.current?.reason || 'Structured secondmate state is unavailable.'; because structured-home records set current.reason to null (fm-fleet-snapshot.sh:1111), the dashboard displays 'Structured secondmate state is unavailable.' for a state that IS known, instead of the previous hold reason. Update the branch to 'paused_external' (returning mate.holds?.[0]?.reason).bin/fm-dashboard-server.mjs:252- hasMergeEvidence OR's a loose/\b(merged|landed)\b/imatch over joined free-form lifecycle text independently of the structured completion checks. Negated phrasing such as 'not yet merged' or 'un-landed' (hyphen is a word boundary) matches and misclassifies an in-progress ship as terminal green 'Merged / landed' in the active table, undermining the truthfulness goal. Consider dropping the free-text fallback or requiring structured/pr-backed evidence.bin/fm-dashboard-server.mjs:382- landedDelivery returns non-null only for merge evidence or a local-onlydonewith local_note, and projectCompletedReport requires report/scout/reported evidence. A structureddoneship record with none of these is now dropped from both Recent-landed and Recent-reports, whereas the previous projectLanded surfaced any structureddone. Silent removal of a genuinely completed record; confirm this is intended.🔧 Fix: fix(dashboard): honest merge/landing evidence and completed-unverified state
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"bash tests/fm-dashboard.test.sh(includes newtest_truthful_lifecycle_incidentsandtest_paused_secondmate_hold_reason) - all passStood up the real read-only Fleet Dashboard (bin/fm-dashboard.sh start) against an incident fixture and polled/api/v1/fleet: implement-app-onboarding-completion-m4 → waiting_for_captain (source pane, overriding stale busy shell), add-shadow-lifecycle-client-a2 → committed (not landed), eating-reorder-readonly-diagnostic-f6 → completed_report with recently_landed=falseCaptured the rendered dashboard HTML surface via chrome-devtools-axi screenshot showing Recent merged/landed vs Recent reports/completed sections and honest 'landed local main' vs 'merged' terminologyConfirmed the twice-listed scout was a fixture artifact (id in both In flight and Done); realistic Done-only state deduped to a single snapshot record✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.