Repository navigation
fix(ci): align the auto-merge engine to the org-wide guarded canonical with the finalize-guard fix - #13
Conversation
…l with the finalize-guard fix The org-wide auto-merge engine gains the sdk tag-scheme guard (tag_ver(), the Go-module v0.<YYYYDDD>.<HHMM> form — inert on non-sdk repos) and the CHANGELOG already-finalized guard fix: the check now requires the marker to carry the file's OWN basename stamp (the stamp-suffixed form the finalize writes), which author prose cannot contain — so a placeholder whose prose describes the merge-time finalize is no longer mistaken for already-finalized, the finalize always fires, and the release tag is minted at the merge-time CalVer instead of the author's placeholder stamp. Validated: the stub-gh harness (24 scenarios, 108 assertions, incl. the prose-collision regression) passes; the same harness against the old naive substring grep fails exactly that scenario. The check-coverage ships in .github/scripts/. Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — the sole engine change tightens the already-finalized guard ( Checklist: All applicable rules PASS or NA. Verified from the CURRENT state:
Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — the sole engine change tightens the already-finalized guard ( Checklist: All applicable rules PASS or NA. Verified from the CURRENT state:
Comment intake: the single prior Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
fix(ci): align the auto-merge engine to the org-wide guarded canonical with the finalize-guard fix
The change
The org-wide auto-merge engine (the sole merge executor: wait for ALL status
checks → CHANGELOG finalize at merge → API re-run of the validator → re-validate
→ native auto-merge → tag) is aligned to the guarded canonical with two
additions:
tag_ver()): sdk tags under its Go-module formv0.<YYYYDDD>.<HHMM with all leading zeros stripped>(a semver requirement,not an exemption). Inert on every non-sdk repo — this PR's repo included.
placeholder CHANGELOG file for the literal finalize-marker name. A
placeholder whose prose legitimately described the merge-time finalize
(naming that phrase) matched the guard, the finalize was silently
skipped, and the release tag was minted at the author's placeholder stamp
instead of the merge-time stamp — observed live on the org canary's previous
cutover (tagged
v2026.232.0001, the placeholder, instead of a merge-timeCalVer). The guard now requires the marker to carry the file's own
basename stamp — the exact form the finalize writes — which author prose
cannot contain, so a genuine placeholder is always finalized to the
merge-time CalVer and tagged with the merge stamp.
Change class
ci/config — the engine workflow (
.github/workflows/auto-merge.yml), itscheck-coverage (
.github/scripts/auto-merge-harness.sh+.github/scripts/auto-merge-runblock.sh), and the CHANGELOG entry. No code, nocandies, no runtime packaging.
How tested (pasted output, not a promise)
The check-coverage ships in this PR: the stub-
ghharness drives the exact(de-templated) engine run block against a stub
gh+ a real local git repo. 24scenarios, 108 assertions. Scenario s24 is the regression for the guard defect —
a placeholder whose prose names the finalize marker must still be finalized to
the merge stamp and tagged with it. It is the check that fails without the
change.
Fixed engine (
bash .github/scripts/auto-merge-harness.sh):The same harness against the old naive substring grep (the negative):
How tested (live)
The canary for this batch (distro-arch PR #17) landed through the engine: the
placeholder was finalized to the merge-time CalVer, the re-run validator
re-approved the finalized head, the merge landed, and the tag was minted at the
merge stamp (
v2026.232.2103on the merged HEAD) — full narrative pasted inthat PR. This repo's engine run is the live proof here: it must finalize this
PR's placeholder to the merge-time CalVer and tag the merged HEAD with the
merge stamp. The engine is the only merge executor; the author does not
merge.
Project-rulebook compliance
matching prose), not papered over; the failing-without-it regression scenario
ships here with its negative proven above.
(extracted from the workflow, committed once).
carries the file's own stamp) instead of a prose-colliding substring.
only in the CHANGELOG.
main; the branch accumulates thisauthor commit, then the validator squash-merges.
Attribution
Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) —
the stub harness ran deterministically; this PR's own engine landing is the live
proof that follows.
Auto-merge finalization
This run finalized the CHANGELOG at merge time: the placeholder was
renamed to
CHANGELOG/2026.232.2116.md(H1 rewritten to# 2026.232.2116). The current diffcarries the finalized file.