Skip to content

fix: pin local-only landing to the accepted commit - #287

Merged
dnth merged 3 commits into
mainfrom
fm/fm-bp-local-done-pin
Nov 1, 2026
Merged

dnth merged 3 commits into
mainfrom
fm/fm-bp-local-done-pin

Conversation

@dnth

@dnth dnth commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

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

  • Before: the regression accepted a branch advanced beyond the reported head and moved the default branch.
    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.

  • Live validation: ✅ go - 8 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Accept a synthetic local ready report through the real CLI and tmux endpoint; automatically record the full head and preserve it on repeated reads ✅ pass live Live CLI transcript
Append an unapproved commit after acceptance; state parks, landing refuses, and the pin and default branch remain unchanged ✅ pass live Live CLI transcript
Submit an invalid report followed by a fresh valid ready report; only the valid report accepts the revised commit ✅ pass live Live CLI transcript
Attempt landing with missing, abbreviated, nonhex, or duplicate pins; each refuses with ready-again guidance and preserves main ✅ pass live Live CLI transcript
Attempt landing into a dirty checkout or divergent main; existing guards refuse and preserve main ✅ pass live Live CLI transcript
Attempt landing with a synthetic accepted-blocked criterion; require an explicit captain instruction and record its verbatim text ✅ pass live Live CLI transcript
Hold each real task-control, metadata, and project landing lock; prevent landing while occupied and succeed after release ✅ pass live Live CLI transcript
Land a fully evidenced synthetic branch matching its accepted pin; main fast-forwards to exactly that commit ✅ pass live Ordinary pinned landing
  • TMPDIR="$PWD/.live-validation/tmp" bash tests/fm-merge-local.test.sh — exit 0
  • TMPDIR="$PWD/.live-validation/tmp" bash tests/fm-crew-state.test.sh — exit 0
  • Ran the current landing regression against an archived base commit — failed because the unapproved follow-up landed
  • python3 .live-validation/drive.py — real CLI, Git repositories, isolated tmux endpoint, synthetic task records, and lock owners; exit 0
  • Ran ordinary pinned landing without an override and compared main with the persisted accepted commit
  • Read the owner documentation's in-flight re-report instruction
  • Stopped 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.

@dnth
dnth merged commit d571f60 into main Nov 1, 2026
35 of 36 checks passed
@dnth
dnth deleted the fm/fm-bp-local-done-pin branch November 1, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant