fix(release): self-consistent prepare plan + v0.44.0-beta.2 dev-state repair (#1288) - #1316
Merged
Merged
Conversation
added 2 commits
September 4, 2026 23:28
…hors (#1288) The v0.44.0-beta.2 bump commit passed the fast prepare gates but failed dev CI (run 33885147030) and promotion PR #1315 (run 33885139920) on every derived-truth gate the prepare plan did not re-run: content-graph:check (bump rewrites graph sources), release:truth:check (release-state planning anchors), docs:check-version-anchors (VERSION_PLAN STATUS-form head pair) and www:check-truth (zh roadmap CURRENT entry). The prepare/release plan now advances the release-state planning anchors (activeTarget/nextPlannedTrain; published fields stay finalize-owned), regenerates the content graph, and stages both artifacts in the bump commit. buildVersionAnchorReplacements covers the VERSION_PLAN repository/registry head pair and the next-public-prerelease anchors, and bumpProjectConstantsText advances NEXT_PUBLIC_PRERELEASE with the prerelease successor (the #813 binding #1283 fixed by hand). The roadmap version anchor now rewrites both CURRENT-stamped entries (en + zh).
Follow-up to the 10744cc bump commit, which failed dev CI (run 33885147030) and promotion PR #1315 (run 33885139920) on the derived-truth gates the prepare plan did not re-run. Applies exactly the steps the fixed prepare plan now performs, plus the human release prose the gates deliberately reserve for a human: - regenerate www/app/data/_generated-content-graph.json (bump rewrote graph sources version.ts/roadmap.tsx) - release-state.json planning anchors: activeTarget v0.44.0-beta.2, nextPlannedTrain v0.44.0-beta.3 (published fields stay on the beta.1 prepare-window lag; finalize owns them) - VERSION_PLAN.md STATUS-form head pair (Repository package line / npm registry line) advanced to v0.44.0-beta.2 with the prerelease dist-tag annotation release:truth:check requires - NEXT_PUBLIC_PRERELEASE and the next-public-prerelease doc anchors advance to v0.44.0-beta.3 (the #813 in-flight binding #1283 fixed by hand for Beta.1) - www roadmap CURRENT entries (en + zh): zh version advanced, and the Beta.2 theme/copy written (productization + governance offload, ADR-0151) — the superseded-theme gate is human by design - README/README.zh/VERSION_PLAN/STATUS/ROADMAP head-zone prose updated to the Beta.2 line Gates now green locally: content-graph:check, release:truth:check, docs:check-version-anchors, www:check-truth, www:check-current-truth, docs:truth, release:state-machine:check, release:evidence:check, api-reference:check, content:examples-check, text-integrity:check, build (incl. www:check-artifact-truth + www:check-links).
Deploying openelement with
|
| Latest commit: |
1d904c1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://80df800f.lessjs.pages.dev |
| Branch Preview URL: | https://kimi-v044-beta2-prepare-cons.lessjs.pages.dev |
Contributor
|
APIError: Insufficient Balance |
3 tasks
This was referenced Sep 4, 2026
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.
Problem
deno task autoflow:release-prepare --to 0.44.0-beta.2 --approved-plan ADR-0151produced bump commit10744cc3, which passed the fast prepare gates but failed dev CI (run 33885147030) and the promotion PR #1315 (run 33885139920) identically. Beta.2 added derived-truth gates whose regeneration/consistency steps the prepare plan never performed:content-graph:check— the bump rewrites content-graph sources (www/app/data/version.ts,www/app/routes/roadmap.tsx) but the plan never regeneratedwww/app/data/_generated-content-graph.json.release:truth:check—docs/release/release-state.jsonplanning anchors (activeTarget/nextPlannedTrain) are pinned toACTIVE/NEXT_EXECUTION_VERSION, which the bump advances; nothing moved the state file with it. (Beta.1 passed only because the ADR-0151 retopology commit had pre-staged those fields by hand.)docs:check-version-anchors— the VERSION_PLAN head zone carries a STATUS-form pair (Repository package line/ barenpm registry line) that fix(v0.44): Beta.1 release-truth copy — prerelease dist-tag anchors and roadmap theme #1283 wrote as human copy;buildVersionAnchorReplacementshad no rules for them, and the prerelease registry anchor release-truth requires was left stale.www:check-truth— the roadmap version anchor replaced only the first (en) CURRENT-stamped timeline entry; the zh entry stayed onv0.44.0-beta.1.NEXT_PUBLIC_PRERELEASEwas not advanced, re-opening the docs: three current-truth docs half-updated after alpha.11 release, self-contradicting in the same section #813 in-flight binding as soon as beta.2 publish evidence completes (fix(v0.44): Beta.1 release-truth copy — prerelease dist-tag anchors and roadmap theme #1283 fixed this by hand for Beta.1).build/test:coverage:checkfailed as cascade.Refs #1288. The Beta.2 rehearsal could not reach this far (evidence guard), so the gap surfaced on the real prepare — this PR closes it permanently.
Owner
Implementer role, dispatch packet "Beta.2 release-lane repair: self-consistent prepare plan + dev state repair" under
.agents/v044-kimi-implementer.md(main-agent dispatch explicitly authorizing branch/PR creation).Before
Prepare plan steps: bump → constants → anchors → ui-manifest → fmt → stage → commit → fast gates. No content-graph regeneration, no release-state planning update, no staging of either artifact. Dev CI red at 10744cc on the gates listed above;
release-state.jsonplanning anchors on the beta.1 window; VERSION_PLAN head pair on beta.1; zh roadmap CURRENT entry on beta.1;NEXT_PUBLIC_PRERELEASE = v0.44.0-beta.2.After
Tooling (commit
c2695e23):createReleasePlan/createPreparePlangain two steps afterupdate current version anchorsand inside the bump commit:update release-state planning anchors(newupdatePrepareReleaseState/advancePrepareReleaseStateTextin version-anchors.ts — advancesactiveTarget/nextPlannedTrainonly;sourceVersion/publishedVersion/latestLandedTrain/maturitystay finalize-owned per the prepare-window semantics fix(release): make check-release-truth prerelease- and prepare-window-aware #1284 encoded in the checker) andregenerate content graph(deno task generate:content-graph). Both artifacts are staged instage release bump.buildVersionAnchorReplacementsadds the VERSION_PLANRepository package lineand barenpm registry line(current + lag forms) rules — ordered after theCurrent npm registry linerules so the substring rule cannot eat them first — and prerelease-only rules advancing theNext planned public train/Next public prereleasedoc anchors fromNEXT_PUBLIC_PRERELEASEto the prerelease successor.bumpProjectConstantsTextadvancesNEXT_PUBLIC_PRERELEASEwith the prerelease successor (stable cuts leave it human-owned, same rule asNEXT_EXECUTION_VERSION).version: '…'anchor now rewrites all occurrences (both CURRENT-stamped entries, en + zh; historical entries never use that form).advancePrepareReleaseStateText, the new anchor rules, and the constants advancement.Repair (commit
1d904c1b, append-only follow-up to 10744cc — the bump commit is not rewritten, and prepare was NOT re-run since the source line is already 0.44.0-beta.2):_generated-content-graph.json;release-state.jsonplanning anchors via the new tooling function; VERSION_PLAN/STATUS/ROADMAP/head anchors advanced;NEXT_PUBLIC_PRERELEASE = v0.44.0-beta.3.productization + governance offload, ADR-0151) — the superseded-theme gate is designed to block until a human writes it — and the README/README.zh/VERSION_PLAN head-zone narrative.release:state-machine:checkviews the repair commit as neutral: it touches nodocs/release/autoflow3/**evidence, so the in-flight beta.2 line still replays the completed beta.1 line; the durable prepare record folded into 10744cc needs no amendment (verifyPrepareRecord checks kind/status/target/gates-step, all unchanged).Why-not-second-owner
One owner per surface: the plan builder (
tools/autoflow/release.ts), the anchor/state generator (tools/autoflow/version-anchors.ts), their existing test file, and in-place repair of the governed docs/artifacts the bump already owns. No new checker, package, or abstraction.Evidence
Base
10744cc3(dev HEAD), branchkimi/v044-beta2-prepare-consistency, commitsc2695e23+1d904c1b.RED first: new tests failed against the pre-fix implementation (TS2724
advancePrepareReleaseStateTextmissing; then assertion failures on plan shape and anchor rules).deno test -A tools/autoflow/__tests__/— 142 passed / 0 faileddeno task content-graph:check— byte-identical, exit 0deno task release:truth:check/docs:check-version-anchors/www:check-truth/www:check-current-truth— exit 0deno task docs:truth/release:state-machine:check/release:evidence:check/api-reference:check/content:examples-check/text-integrity:check/docs:check-current/docs:check-strategy/docs:check-claims/docs:check-public/docs:check-role-neutral— exit 0deno task build— exit 0 (incl.www:check-artifact-truth+www:check-links, pagefind 150 pages)deno task test— exit 0 (root suite + starter suite)deno task pack:dry-run+deno task package-artifacts:check— exit 0, 5 tarballsdeno task fmt:check(1618 files) /deno task lint(938 files) — exit 0deno task autoflow:release-prepare --to 0.44.0-beta.3 --approved-plan ADR-0151 --dry-run— plan now includes both new steps and stages both artifacts (dry-run only; no re-prepare, no double bump)Scope
Tools:
tools/autoflow/release.ts,tools/autoflow/version-anchors.ts,tools/autoflow/__tests__/release.test.ts. Repair:README.md,README.zh.md,docs/current/VERSION_PLAN.md,docs/release/release-state.json,docs/roadmap/ROADMAP.md,docs/status/STATUS.md,tools/project-constants.ts,www/app/data/_generated-content-graph.json,www/app/routes/roadmap.tsx. No ADR-0122 frozen paths, no product code, no prepare record edits, no force-push; #1315 untouched (superseded — a new promotion PR follows once dev is green).Risk
docs:check-version-anchorshead-zone enforcement means any future bump-time prose naming the superseded line still fails loudly — intended fail-closed behavior.