Repository navigation
feat(control): add task-pinned legacy handoff - #4
Merged
ryannmicua merged 8 commits intoSep 27, 2026
Merged
Conversation
…dence is excluded while maintained `docs/*.txt` remains covered. The checker, inventory, and behavior fixture now agree; retained evidence was untouched. `bin/fm-doc-audience-check.sh` passed (102 surfaces, 458 links). The attestation failure is external: its log reports attested head `bf6ce01` versus PR head `4ff8afb`, so the outer executor must handle a fresh no-mistakes attestation. The full Test turn remains outstanding
ryannmicua
deleted the
fm/firstmate-guarded-worker-handoff-replacement
branch
September 28, 2026 21:27
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
yes do the new support pr route
Create a clean, separate support branch and a new PR containing the preserved handoff implementation, the remote documentation change, and the retained CI repair. Run the full validation there. Leave the original support PR #2 and both of its histories untouched; do not merge either PR.
This replaces the blocked attempt to continue the existing support PR. The original support PR is #2; its remote head is
4ff8afb4a3b4f70e853ca36b21516322fd66ebac, and the unpublished CI repair is764ff54baacf9afa19897514aa4847805b7e652b. Preserve their content in the new branch, not by changing, merging, or deleting the original histories.The handoff implementation allows an attended handoff only for the stranded
paseo-backend-adaptertask. It requires the pinned endpoint, worktree, and HEAD, an operator note, and confirmations that the original worker stopped and the no-mistakes run is terminal. It creates a unique tmux session using the recorded worktree, preserves tracked and untracked changes, and refuses live endpoints and identity conflicts. The remote documentation change adds a blank line between the data-plane and control-plane descriptions indocs/agent-control.md. The CI repair excludes retained.validation-tmp/**evidence from the documentation-audience check while keeping maintaineddocs/*.txtclassified, with a regression fixture.What Changed
paseo-backend-adapter, requiring the pinned endpoint, worktree, branch, and HEAD, a recovery note, and operator confirmations. It creates a unique tmux session, preserves the existing worktree and its changes, and refuses live endpoints or conflicting task records.docs/agent-control.md..validation-tmp/**evidence from documentation-audience checks while keeping maintaineddocs/*.txtclassified, with a regression fixture.Risk Assessment
Testing
The focused handoff and documentation-audience suites ran, prior same-run live transcripts cover successful Codex handoff and fail-closed guards, and the live whitespace-only note-file refusal was captured. The Markdown HTML artifact is available, but browser inspection and screenshot capture were blocked by BRIDGE_NOT_READY, so visual verification remains outstanding.
Evidence: Live Codex handoff with preserved task state
Source: Live Codex handoff with preserved task state
Evidence: Live handoff refusal cases
Source: Live handoff refusal cases
Evidence: Live handoff identity refusals
Source: Live handoff identity refusals
Evidence: Live documentation-audience behavior
Source: Live documentation-audience behavior
Evidence: Live whitespace-only note-file refusal
Source: Live whitespace-only note-file refusal
Evidence: Rendered agent-control documentation HTML
Source: Rendered agent-control documentation HTML
Evidence: Browser viewer unavailable
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed (2) ✅
bin/fm-control.sh:299- The intent says the handoff “requires ... an operator note,” but the new guard atbin/fm-control.sh:299only checks[ "$NOTE_SET" = 1 ] && [ -n "$NOTE" ]. A whitespace-only--noteor note file passes; the repeated guard atbin/fm-control.sh:1026does too, and the replacement receives no recovery context. Require non-whitespace note content.🔧 Fix applied.
2 issues (1 error, 1 warning) still open:
bin/fm-spawn.sh:1611- The intent requires “an operator note, and confirmations that the original worker stopped and the no-mistakes run is terminal.” A directfm-spawn.sh <id> --relaunchcaller can setFM_CONTROL_HANDOFF_TXandFM_CONTROL_RELAUNCH_TXand write a journal containing the expected lines; this check accepts those self-asserted values without provingfm-controlperformed either confirmation. The launcher then skips the note requirement and takes the missing-endpoint bypass to create a replacement. This contradicts the required handoff conditions. Related sites:bin/fm-control-lib.sh:92(string-only journal validation),bin/fm-spawn.sh:1703(bypasses absence proof),bin/fm-spawn.sh:3234(creates session),docs/agent-control.md:202(claims the journal is fromfm-control). Tie launch authorization to the confirmed control transaction or restrict the alternate launch path.bin/fm-control-lib.sh:94- The journal validator repeats the pinned endpoint and branch literals already defined byfm_control_handoff_expected_endpointandfm_control_handoff_expected_branchatbin/fm-control-lib.sh:73and:78. No intent requirement needs this second definition; remove the duplicate literals and derive them from the existing helpers to avoid independent drift.🔧 Fix applied.
✅ Re-checked - no issues remain.
.validation-tmpevidence is excluded, while omitting maintained.txtor classifying excluded evidence is rejected.tests/fm-control-relaunch.test.shtests/fm-documentation-audiences.test.shDrovebin/fm-control.sh paseo-backend-adapter handoffandbin/fm-spawn.sh paseo-backend-adapter --relaunchagainst real tmux and Codex in isolated temporary homes; checked refusal cases, journal, endpoint, worktree, and preserved task state.Ranbin/fm-doc-audience-check.sh --root <fixture>and verified missing maintained.txtand included.validation-tmpentries fail semantically.Inspectedgit diff --unified=0 d5bdf07f47b69ef1c2f90c1fb198fa24764bbfb1..HEAD -- docs/agent-control.mdfor the requested paragraph break.🔧 No changes applied.
2 warnings still open:
docs/agent-control.md:7- The requested visual check of the data-plane/control-plane paragraph break is still missing. The Markdown was rendered to HTML, but chrome-devtools-axi open and start both failed with BRIDGE_NOT_READY because no live Chrome DevTools target was available, so I could not inspect or capture the rendered page. Provide a running Chrome/Chromium DevTools endpoint through CHROME_DEVTOOLS_AXI_BROWSER_URL and rerun this visual scenario.tests/fm-control-relaunch.test.shtests/fm-documentation-audiences.test.shDrovebin/fm-control.sh ... handoff --note-filewith a whitespace-only note in an isolated FM_HOME; captured the refusal transcript.Rendereddocs/agent-control.mdto HTML with MarkdownIt and attempted to open and screenshot it usingchrome-devtools-axi.Reviewed the same-run live handoff, identity-refusal, and documentation-audience evidence artifacts.✅ **Document** - passed
✅ No issues found.
🔧 **Lint** - 1 issue found → auto-fixed ✅
🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Push** - passed
✅ No issues found.