Repository navigation
feat(bin): probe the gate ref before a no-mistakes run and route a stale one to a decision - #7218
markhomexa wants to merge 4 commits into
Conversation
…ale one to a keyed decision axi sync --check can read custody_returned with run_pipeline while the gate's branch ref still holds the pre-rebase head, so the push is rejected non-fast-forward and no supported command offers a way out. fm-gate-ref-probe.sh reads that one ref without writing anything and names whether it is stale (nothing unique to it) or holds work the copy lacks. The worker driving text runs it before a run on a touched branch and reports a keyed needs-decision instead of retrying or forcing.
…not clear The trigger no longer depends on a worker judging whether a crash touched the branch, a probe never precedes a flagless reattach or an offered recovery, and the skill states that the fresh-branch route is a re-dispatch because the ship branch is recorded in the brief, spawn metadata and PR checks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Speaking as Kun's firstmate: thank you @markhomexa. This is a clear write-up, and I appreciate that the body is honest about what it does not solve. I reviewed tip One blocker, on your side: the PR body has no no-mistakes pipeline attestation, so the required no-mistakes check can't pass. When you have a moment, could you re-raise through Contract-class: new-default. Every no-mistakes ship worker's Definition of done now runs the probe before each new VISION.md, rule by rule:
Overlap, for awareness: #3957 rewrites the same no-mistakes Definition of done block in Main is currently red on unrelated Pi type drift. If CI here fails only on those same shards, that's not on you. Status: waiting-author (re-raise through no-mistakes). After that it goes to Kun's merge-or-leave when green. |
Problem
After a validation daemon crash, a lane's gate ref is left stale and no supported command moves it. The gate repository now holds
-v2or-v3rebuild refs for about twenty lanes, not the four first measured on 12 October, so this has cost far more than one bad afternoon.Each affected lane recovered its own copy, rebased, and tried to validate again. The push to the gate was rejected as non-fast-forward because the gate's
refs/heads/<branch>still held the pre-rebase head.no-mistakes axi sync --checkmeanwhile reportedcustody_returned,relation: equal,next_action.code: run_pipeline.Cause (no-mistakes v1.72.0 source,
internal/branchsync/sync.go)relationcompares the local head with the run's own recorded head, never the gate's branch ref that the push is judged against. Itscustody_returnedplusrun_pipelineis a promise nothing verified.--recover --keep-localis then an accepted no-op.What this PR does
bin/fm-gate-ref-probe.sh: a read-only check of the one ref the push is judged against. Verdicts: absent, in-sync, stale (exit 10), holds-work (exit 11), unanswerable (exit 2). It writes nothing to the gate or the copy.axi runthat starts a new run, and routes exit 2, 10 and 11 to a keyedneeds-decision [key=gate-ref-stale]carrying the exit code and both refs by name and value, instead of retrying or forcing.validation-supervisionrecords firstmate's side of that decision.What it does NOT do
axi run.NOT covered:
blocked_recover_manual_reconciliationTwo lanes last night hit a different shape and nothing here helps them:
tx-task-title-edit-any-task(the lane that got exit 1 and no plan) andtx-land-3123-team-address. In both, the run finished failed with "daemon crashed during execution", the terminal head was never verified, andpipeline_ownedwithinspect_and_reconcile_manuallyblocks every run. Ontx-task-title-edit-any-taskthe gate ref equals the local head, so the probe exits 0 and does not address the block. Fortx-land-3123-team-addressthe head was not in the gate, so the probe was not run on it. The crash case is NOT solved by this change.Per-lane verdicts (probe run against each lane's real head and the real gate)
Checks: awaiting maintainer approval
Both checks finished
action_requiredwith zero jobs on this head, so nothing ran. GitHub holds workflow runs from a fork pull request until a maintainer approves them in the Actions interface. Neither failure comes from this change. A maintainer needs to approve:Durable fix is a decision, already filed
Reporting the cause upstream, updating the installed no-mistakes (1.72.0 to a newer release, not shown to fix the equal case), and whether rebuilding under a fresh name is an acceptable permanent answer are the captain's call and are not decided here. Anyone reading this later should not conclude the daemon-crash case is handled.