Repository navigation
fix(bin): read the latest status event so buried declarations and open decisions aren't lost - #3753
Conversation
Confidence Score: 5/5The PR appears safe to merge because the previously reported socket-blocker conflation is fixed and no blocking failure remains. No blocking failure remains. Reviews (6): Last reviewed commit: "no-mistakes(ci): Greptile P1 (bin/fm-cre..." | Re-trigger Greptile |
|
Speaking as Kun's firstmate: First look on HEAD Attestation: MISSING (fork cannot supply). CI/NM: first-time fork workflows approved this pass ( VISION.md (each rule)
Contract-class: restore. Merge-eligible N until attestation MATCH and CI/NM green. Waiting on the author for attestation rebind (not a captain hold). Do not auto-merge yet. |
53658f8 to
5269b73
Compare
5269b73 to
85b1b3f
Compare
|
Speaking as Kun's firstmate: this is waiting on the captain (not the author). Tip Merge blocker: squash via the triage Captain: please land with a token that has |
85b1b3f to
444a3b9
Compare
|
Speaking as Kun's firstmate: this is waiting on the captain (not the author). Newer activity since stamp Contract-class: restore — status/crew readers already promised current declared state; multiline continuation prose was breaking that contract (Fixes #3186). Workflow delta remains fleet-view expected-count 18→19 only — not a gate weaken. VISION.md (each rule): One captain/interface — aligns (stops false quiet/undeclared-idle). Authority — aligns. Scripts/agents — aligns (exact status parse). Restart non-event — aligns (durable verb survives). Delegation spine — aligns. Fleet outlives vendor — aligns. Scope — aligns (watcher/crew-state; field incident → regression). Merge blocker unchanged in kind: Captain: please land with a token that has |
|
Checking in, five days on. As far as I can verify there is nothing outstanding from my side, but I would rather ask than assume. Re-verified against the live PR just now:
Your triage put the remaining blocker on branch policy plus Is there anything needed from me to unblock it? On the workflow file specifically: the only change there is the snapshot/fleet-view expected count, 18 to 19, which is the counterpart to the fleet-view test this PR adds, so dropping it on its own would make that guard fail. If your policy would rather this PR not touch a workflow file at all, I can land the count bump as its own small PR first, or drop the added test, whichever you prefer. Happy to follow your lead. |
|
Another brief check-in. Head is still As far as we can verify: attestation still binds that head; the only red body-compliance entry is the superseded pre-attestation synchronize run. Mergeable stays true; mergeStateStatus remains BLOCKED on the workflow-scope / branch-policy class you already named. Is there anything needed from us, or does it still only need the scoped merge on your side? |
…eader performance
…erminal chronology
This branch adds a fleet-snapshot regression, so the stock macOS Bash lane's hardcoded guard of 18 'ok - ' lines fails on the new count. Bump the guard and its message to 19.
Intent
Remove the incidental
.github/workflows/ci.ymlchange from #3753.The branch added one top-level
fm-fleet-snapshot-viewtest and changed the expected suite count from 18 to 19, but that workflow change is not required product behavior.Preserve all regression coverage by integrating the new assertions into an existing semantically related top-level test, or by another minimal arrangement that keeps all behavior exercised while the suite still reports 18 top-level tests.
Update the existing pull request only through the no-mistakes pipeline, verify the workflow file has zero diff, checks pass, and the pull request is mergeable, then report the new exact head.
Do not merge the pull request.
What Changed
last_status_lineinbin/fm-classify-lib.shnow returns the latest recognized status event instead of the last non-blank line, so trailing notes can no longer hide ablocked/needs-decision/doneline. It reads a 200-line tail and falls back to the whole file. A newstatus_current_linereturns the newest still-open decision, or the latest event when nothing is open.fm-crew-state.sh,fm-watch.shandfm-inactive-reconcile.shnow use these shared readers instead of their own last-line reads.done:/failed:line from a ship or scout closes its stale open decisions, but a secondmate's does not. Only lines with a colon or a full[key=...]tag count as decisions.status_open_decisionstakes an optional kind (the fleet snapshot passes it),fm-captain-hold.shdrops its ownorigin_open_decisionswrapper, and the open-decisions cursor moves to version 8 with the kind included. Old cursors are rebuilt.fm-crew-state.shnow applies only while that blocker is still the log's latest event. A later event hands the reading back to the run record. Regression tests are added or updated across the classify, crew-state, fleet-snapshot view, inactive-reconcile, watch-triage, captain-hold and cursor suites. The new fleet-snapshot assertions go into an existing test, so the CI workflow is unchanged. Related docs (docs/architecture.md, the fmx-respond skill) are updated.🤖 Generated with Claude Code
Risk Assessment
✅ Low:
.github/workflows/ci.ymlnow has zero diff against the base, and the terminal-cleanup assertions were merged into the related completed-scout test with no assertion dropped, so the suite still lists 18 top-level tests; the rest of the branch's status-reader changes were already fixed in earlier review rounds and look consistent.Testing
I confirmed
ci.ymlis identical to the base commit and still expects 18 tests. I ran the fleet-snapshot suite under the stock/bin/bash3.2, the same way CI does: it passed with exactly 18 top-level tests. I also broke the product on purpose in scratch copies to confirm the merged checks still work: turning off onlyfailed:shipclearing fails the moved terminal-cleanup assertion. Pushing to the PR, CI status, whether the PR can merge, and the new head commit are handled by later pipeline phases, not this one.git diff --stat 795e5e4 64e0762 -- .github/workflows/ci.ymlis empty; line 429 still checks-eq 18)/bin/bash tests/fm-fleet-snapshot-view.test.sh→ exit 0, 18ok -, 0not ok(fleet-snapshot-view-bash32.txt)failedstops clearing decisionsfailed:shipremoved from the clearing rule →not ok - terminal snapshot revived a completed decision or lost a current one(mutation-disable-failed-ship-supersession.txt)Evidence: CI workflow zero diff + suite count under /bin/bash 3.2
Source: CI workflow zero diff + suite count under /bin/bash 3.2
Evidence: fm-fleet-snapshot-view suite transcript under stock /bin/bash 3.2
Source: fm-fleet-snapshot-view suite transcript under stock /bin/bash 3.2
Evidence: Deliberate bug: failed:ship clearing turned off, caught by merged checks
Source: Deliberate bug: failed:ship clearing turned off, caught by merged checks
Evidence: Deliberate bug: all ship/scout clearing turned off, caught by original assertion
Source: Deliberate bug: all ship/scout clearing turned off, caught by original assertion
Evidence: Deliberate change: kind argument removed, no effect because kind comes from .meta
Source: Deliberate change: kind argument removed, no effect because kind comes from .meta
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.
git diff --stat 795e5e4 64e0762 -- .github/workflows/ci.ymlis empty; line 429 still checks-eq 18)/bin/bash tests/fm-fleet-snapshot-view.test.sh→ exit 0, 18ok -, 0not ok(fleet-snapshot-view-bash32.txt)failedstops clearing decisionsfailed:shipremoved from the clearing rule →not ok - terminal snapshot revived a completed decision or lost a current one(mutation-disable-failed-ship-supersession.txt)git diff --stat 795e5e4 64e0762 -- .github/workflows/ci.yml(empty) andgit show 39c74c5, which confirms the checks were moved into another test, not deleted/bin/bash tests/fm-fleet-snapshot-view.test.shunder GNU bash 3.2.57 with tasks-axi and jq, the same way CI runs it: exit 0, 18ok -lines, nonot okBreak-it check in a scratch copy: removed the"$kind"argument in bin/fm-fleet-snapshot.sh. The suite still passes, because the function looks up the kind from the task's.metafile when no argument is given, so this change alters nothingBreak-it check in a scratch copy: turned off all ship/scout done/failed clearing in bin/fm-classify-lib.sh. The suite fails at the original completed-scout assertionBreak-it check in a scratch copy: turned off only thefailed:shipclearing. The suite fails withnot ok - terminal snapshot revived a completed decision or lost a current one, which comes from the merged checks✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.