Repository navigation
feat(control): add guarded legacy worker handoff - #2
Closed
ryannmicua wants to merge 4 commits into
Closed
ryannmicua wants to merge 4 commits into
ryannmicua wants to merge 4 commits into
Conversation
Clarify the roles of the data plane and control plane in agent communication.
Owner
Author
|
Superseded by #4, which landed the same handoff support from a clean branch. |
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
resolve the safe handoff then
I know the worker is no longer running there.
This is the stranded Firstmate worker for the Paseo backend change intended for #1. Its former terminal session is unreachable after reboot, while its local copy and unpublished work remain. Make it safe to hand that work to a replacement so the existing PR can later be completed without discarding work or bypassing review. This task delivers only the necessary handoff support, not a merge or a duplicate Paseo implementation PR.
What Changed
handoffforpaseo-backend-adapterthat checks the recorded endpoint, worktree, and HEAD, requires typed worker and run attestations, and rebinds the same task and worktree to a unique tmux session.fm-spawnvalidate the handoff transaction and task identity again; reject conflicting owners and keep ordinary tmux missing-endpoint recovery fail-closed while preserving local work and the original task record if launch fails before publication.Risk Assessment
Testing
Confirmed tmux and jq availability, then drove the guarded handoff and three refusal paths using real isolated tmux servers; all assertions passed and CLI evidence was saved. This change has no rendered UI surface, so screenshot evidence was not applicable.
Evidence: Isolated live tmux handoff proof
Source: Isolated live tmux handoff proof
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ No issues found.
🔧 **Test** - 2 issues found → auto-fixed → no changes applied (2) ✅
git -C ~/.no-mistakes/worktrees/ff5e17b6f5de/01M3F8JET9SEC9H6AFSR173VCH statusandgit -C ~/.no-mistakes/worktrees/ff5e17b6f5de/01M3F8JET9SEC9H6AFSR173VCH diff). Respond with fix to validate it, or abort.🔧 No changes applied.
2 issues (1 error, 1 warning) still open:
/bin/bash -lc 'rm -rf .validation-tmp/live/active-endpoint .validation-tmp/live/active-endpoint-retry .validation-tmp/live/round2 .validation-tmp/task-tmp/round2'rejected: rm -f style commands are not permitted. Use a safer approach&fix(watcher): make check wakes lossless via watcher-side suppression kunchenguid/firstmate#34;)" }. This is a budget or provider-slowness cut, not a code failure. Re-running the same request costs another full budget, so no further attempt is made automatically. If this repository's targeted tests or evidence gathering routinely approach the default 30m0s, raise test_agent_timeout in global config. Respond with fix to spend another budget: a repair turn runs only for selected findings other than this budget cut, then validation re-runs. Or abort and retry after raising the budget.git -C ~/.no-mistakes/worktrees/ff5e17b6f5de/01M3F8JET9SEC9H6AFSR173VCH statusandgit -C ~/.no-mistakes/worktrees/ff5e17b6f5de/01M3F8JET9SEC9H6AFSR173VCH diff). Respond with fix to validate it, or abort.🔧 No changes applied.
1 warning still open:
bash .validation-tmp/run-live-handoff.sh handoff-before-fix2-20260927reproduced the wrong-directory refusal before the fix.REAL_CODEX=1 bash .validation-tmp/run-live-handoff.sh handoff-real-codex-adversary-20260927exercised success and live-endpoint refusal with real tmux and Codex; credential and XDG config variables were unset.bash tests/fm-control-relaunch.test.shwith a fresh externalTMPDIR,FM_TEST_SKIP_ORPHAN_REAP=1, and task temp redirected into.validation-tmp/live/test-suite-20260927/task-tmp.Saved the live transcript to the evidence artifact.🔧 Fix applied.
✅ Re-checked - no issues remain.
command -v tmux && command -v jq/bin/bash .validation-tmp/run-live-handoff.sh refusal-proof-verification-20260927Captured success, live-endpoint refusal, conflicting-identity refusal, and wrong-confirmation before/after evidence at~/.no-mistakes/evidence/01M3F8JET9SEC9H6AFSR173VCH/handoff-live-proof.txt.validation-tmp/- The documentation audience check exits 1 because it reports retained.validation-tmp/**/*.txtvalidation evidence as unclassified. These are not maintained prose, and this document phase cannot alter or remove them; resolving the checker scope is out of scope.🔧 **Lint** - 1 issue found → no changes applied (2) ✅
🔧 No changes applied.
1 warning still open:
🔧 No changes applied.
✅ Re-checked - no issues remain.
✅ **Push** - passed
✅ No issues found.