Repository navigation
fix: pin local-only landing to the accepted commit - #287
Merged
Merged
Conversation
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.
Summary
Fresh valid ready report -> pin the current full commit id
Repeated read -> preserve the accepted pin
Branch moves -> refuse landing; leave default branch unchanged
New valid report -> replace the pin
Landing -> verify and fast-forward exactly the pinned commit under task and project locks
Evidence
After: live CLI validation refused the moved head without moving the default branch; a fresh report pinned B and landing advanced exactly to B. All 18 PR checks passed.
Merge Danger
Door: Two-way. A mistaken local landing can be reversed with a follow-up commit.
Blast Radius: Local-only task landings.
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed ✅
bin/fm-crew-state.sh:190- Accept head A, revise or rebase to B, then append a fresh valid ready report: this check still parks the task forever because its pin remains A. The same refusal occurs at bin/fm-crew-state.sh:215, making the recovery instructions at bin/fm-merge-local.sh:114, :121, and :133 ineffective. Bind freezing to the accepted report so a genuinely fresh report can accept B. The remedy requires authorization if it introduces durable report identity beyond the requested head field.docs/architecture.md:17- Intent requires that “the owner documentation includes a one-line note that in-flight local-only tasks must re-report.” The added sentence describes pinning and locks but omits that migration instruction; it appears only in bin/fm-merge-local.sh:6. Add the required note to this owner document.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
TMPDIR="$PWD/.live-validation/tmp" bash tests/fm-merge-local.test.sh— exit 0TMPDIR="$PWD/.live-validation/tmp" bash tests/fm-crew-state.test.sh— exit 0Ran the current landing regression against an archived base commit — failed because the unapproved follow-up landedpython3 .live-validation/drive.py— real CLI, Git repositories, isolated tmux endpoint, synthetic task records, and lock owners; exit 0Ran ordinary pinned landing without an override and compared main with the persisted accepted commitRead the owner documentation's in-flight re-report instructionStopped the disposable tmux server, removed temporary repositories and driver, and verified a clean worktree✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.