Repository navigation
Conversation
When a task's merge poll finds the PR still open and the task meta records yolo=on, the watcher now invokes bin/fm-pr-merge.sh itself instead of only reporting the still-open PR and waiting for a firstmate turn. The merge path's own live verification remains the only green check: a red, unmergeable, or unverifiable PR is refused there and the poll stays armed. A confirmed landing is recognized by the merge-notified marker the merge path commits with its durable outcome, so a queued or unconfirmed acceptance keeps polling and the landed wake is emitted exactly once. The task's recorded yolo posture now resolves as standing merge authority ahead of the away-posture record, which is consulted only for a task without it.
…its refreshed poll snapshot
…r command substitution
…y authority races
mdc2122
force-pushed
the
fm/yolo-automerge-v2
branch
from
September 26, 2026 02:32
e9b7726 to
c9d3fcf
Compare
Author
|
Closing: stale and conflicting with main; superseded on our side by a different merge-authority model. |
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.
Supersedes #4663 (rebased onto current main, reconciled with #5534).
Intent
Fix upstream PR #4663 (automatically merge green yolo pull requests): it conflicts with upstream main and has never been triaged. Rebase it once onto current upstream main keeping only its own commits, and reconcile it with upstream's newer merge guard #5534. The follow-up commit ensures the watcher never invokes the yolo merge path while the away-posture record exists.
What Changed
yolo=ontasks through the existing guarded merge entrypoint, with a configurable timeout and continued polling for refused, queued, or unconfirmed merges.Risk Assessment
✅ Low: The change reuses existing merge guards, serializes away-state admission, and preserves polling on refusals, timeouts, queued merges, and PR replacement.
Testing
Focused behavioral tests passed, including both away-entry races. Captured a live CLI refusal transcript and removed the disposable lab. Forge-dependent scenarios remain unverified live; the previously declined missing-repository finding was not repeated.
Evidence: Real merge CLI refuses watcher authority while away
Source: Real merge CLI refuses watcher authority while away
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
bin/fm-watch.sh:2792- The requirement says the watcher “never invokes the yolo merge path while the away-posture record exists,” but the new! fm_afk_contract_presentcheck is unlocked. Away entry can publish the record after line 2792 and before the invocation at line 2797. The merge script then accepts the new record as away authority through require_current_away_authority, allowing a green PR to merge even when the away words prohibit merging. Entry during merge verification has the same consequence. Serialize automatic-merge admission with the existing away-record lock and enforce the watcher caller's attended-only restriction at the merge script's locked authority boundary.🔧 Fix applied.
✅ Re-checked - no issues remain.
bash tests/fm-pr-check-security.test.sh --yolo-onlyCreated an isolated worktree-local lab home; ranfm-afk-contract.sh enter --words 'do not merge anything', then the realfm-pr-merge.shwithFM_PR_MERGE_WATCHER=1; verified refusal and absent landing state; removed the lab.git merge-base --is-ancestor 4299683d5b656a70ced609d7d929499ddc0d675a HEADgit status --shortconfirmed a clean worktree.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.