Repository navigation
Conversation
|
The failing
The evidence points to an intermittent lock-contention race in that test, not to a regression from this change. |
|
Speaking as Kun's firstmate: thank you @mikaelz. Dropping a session that only waits on a maintainer is a real token and attention win, and This is waiting on you. Here's what's needed:
Contract-class: new-default. The opt-in part is narrow: VISION.md, rule by rule
Overlap: your #7048 also edits |
f9b8821 to
84f5a21
Compare
Live resume validation (the scenario that was untested)This run used a real Claude worker in an isolated lab, built at this PR's head
|
|
Thank you for the review. Two updates:
Could you rerun that job? https://github.com/kunchenguid/firstmate/actions/runs/39549653726/job/119055696405 |
|
Speaking as Kun's firstmate: thank you @mikaelz, that's exactly the evidence I asked for. A real Claude worker parked on a scratch PR, the watch fired on the change, I re-read the new head CI: everything passes except Behavior portable serial 2, which was cancelled at the 30-minute job ceiling (known infra limit, #7255). I re-ran just that job once (run 39549653726). Nothing is needed from you for it. Contract-class: new-default (unchanged). The worker brief's pause section and the ship-landing / validation-supervision skills change default behavior for an unconfigured fleet. So this won't auto-merge. Once that re-run is green it goes to Kun as a merge-or-leave decision (a captain-decision hold, not waiting on you). VISION.md: One captain aligns · Authority aligns (keeps endpoint/worktree/work; relaunch stays a firstmate step) · Scripts aligns · Restart aligns (durable park record + watch, teardown retires it) · Delegation aligns (resume now proven live) · Vendor partial (GitHub-only for now, refuses other forges) · Scope aligns. |
A worker whose PR waits only on a person outside the fleet (maintainer review, merge, or fork-CI approval) kept its session alive and polled for hours. Add bin/fm-pr-park.sh: park records the PR fingerprint, arms a when-park-<id> condition->action watch on fm-procevent-when, and stops the worker with fm-control exit; the watch wakes firstmate when the PR changes so it can relaunch the worker with a resume note. Teardown unparks a parked task, briefs tell workers to end their turn on such a wait, and the ship-landing, validation-supervision, and process-event-sources skills point at the new script.
…ngerprint semantics
…erbs Keep the PR-wait park owned by fm-pr-park.sh distinguishable from any fm-control.sh lifecycle verb in its header, the scripts inventory, and the ship-landing rule.
84f5a21 to
6a3b900
Compare
|
Speaking as Kun's firstmate: thank you @mikaelz. I re-read head Contract-class: new-default (my own read, unchanged). The worker brief's pause section and the ship-landing / validation-supervision skills change what an unconfigured fleet does when a worker waits on someone outside the fleet. VISION.md: One captain aligns · Authority aligns (endpoint, worktree and work are kept; relaunch stays a first-mate step) · Scripts aligns · Restart aligns (durable park record + watch; teardown retires it) · Delegation aligns (resume proven live) · Vendor partial (GitHub-only for now, refuses other forges) · Scope aligns. Where it stands: this is ready on everything I check, so it now goes to Kun as a merge-or-leave decision. That's a standing captain hold. It isn't waiting on you, and there's nothing more you need to do. |
Intent
Velocity audit fix F7 "Firstmate: park external waits without a live session", selected by the captain on the velocity audit page, then "firstmate fixes A": deliver each firstmate fix as its own upstream pull request.
The audit describes F7 as: A task waiting on a maintainer or fork-CI approval should drop its session; the watcher polls gh pr checks and respawns when something changes. The no-mistakes eval worker polled every 55 min for about 45 hours.
A scout already wrote and tested the change as a patch. This is the first slice the scout delivered:
park <id> <pr-url>records the PR fingerprint in state/.park, arms watch when-park- (poll every 300 s, fire on first change), then stops the worker with fm-control exit, keeping endpoint, worktree, and uncommitted work; it refuses a non-GitHub PR, a secondmate, an already-parked task, and an unreadable PR, and rolls back if the watch cannot be armed or the worker cannot be stopped. The fingerprint is PR state, head commit, review decision, review count, comment count, and every check reduced to pending or its result.changed <id>is the condition (0 changed, 1 unchanged, 2 error);resume-note <id>is the action and writes data//park-resume.md;unpark <id>retires the watch and removes the record, idempotently.Firstmate relaunches the worker on the watch wake (fm-control relaunch with the resume note, then unpark, then acknowledge the result). Automatic respawn, quiet parking in the watcher, other forges and automatic parking are out of scope; describe them in the PR description as the follow-up design: automatic respawn by making the watch action the relaunch once refusals can be surfaced; quiet parking by treating a valid park record as an authoritative wait in the watcher's pause resurfacing; GitLab, Forgejo, and Gerrit fingerprints through the existing PR readers; automatic park on the paused line.
What Changed
fm-pr-park.shto stop ship/scout sessions while awaiting external GitHub PR changes, retain their work, poll PR fingerprints every 300 seconds, and write a resume note for Firstmate-managed relaunch.Risk Assessment
✅ Low: The change is bounded, follows the accepted intent and recorded decisions, and uses existing lifecycle and watch interfaces without substantiated material defects.
Testing
Targeted regressions and isolated live CLI scenarios passed using real lifecycle scripts and gh against disposable PR responses. Cursor proved full worker resumption after Codex trust blocked setup. CLI transcripts and generated instructions were retained; no visual layout changed. All disposable resources were removed.
Evidence: Live park, change detection, and successful worker resumption
Source: Live park, change detection, and successful worker resumption
Evidence: Replacement worker creates RESUMED and preserves uncommitted work
Source: Replacement worker creates RESUMED and preserves uncommitted work
Evidence: API-error and deadline outcomes
Source: API-error and deadline outcomes
Evidence: Default-home parking
Source: Default-home parking
Evidence: Task cleanup retires its PR watch
Source: Task cleanup retires its PR watch
Evidence: Validation setup, limitations, and cleanup record
Source: Validation setup, limitations, and cleanup record
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
bin/fm-brief.sh- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
🔧 **Test** - 1 issue found → no changes applied ✅
bash tests/fm-pr-park.test.shbash tests/fm-brief.test.shtest_parked_task_watch_retires_with_teardownvia a temporary focused selectorpython3 .live-park/live.py: real product scripts and GitHub CLI against a disposable local TLS API, with private tmux endpointspython3 .live-park/diagnostic.py: captured condition-error and deadline outcomespython3 .live-park/cleanup.py: real task cleanup with a vanished workspaceFM_HOME="$PWD/.b" bin/fm-brief.sh emitted fixture --scoutwith wait-no-turns enabledRemoved disposable homes and temporary drivers; confirmed clean git status and no remaining named lab tmux launch processes🔧 No changes applied.
✅ Re-checked - no issues remain.
bin/fm-test-run.sh tests/fm-pr-park.test.sh tests/fm-brief.test.sh tests/fm-teardown.test.sh— exit 0python3 ~/.no-mistakes/evidence/01M5NE3CGFXBCW16A0FAHJWVYF/round2-driver-cursor.py— exit 0python3 ~/.no-mistakes/evidence/01M5NE3CGFXBCW16A0FAHJWVYF/round2-driver-diagnostic.py— exit 0python3 ~/.no-mistakes/evidence/01M5NE3CGFXBCW16A0FAHJWVYF/round2-driver-cleanup.py— exit 0python3 ~/.no-mistakes/evidence/01M5NE3CGFXBCW16A0FAHJWVYF/round2-driver-default.py— exit 0 after correcting disposable metadataCodex live attempts with invocation-only trust settings and--no-daemon; folder-trust blocker avoided by using authenticated CursorFM_HOME=<disposable-lab> bin/fm-brief.sh pause-proof widget --scoutwith wait-no-turns enabled; retained emitted instructionsVerified disposable processes stopped, removed transient setup directories, and confirmed a clean working tree✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.