Skip to content

ci(release): the post-version validation also runs the registry template's region pin - #38119

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-8fcc2p
Nov 28, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-8fcc2p

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #37587
repo:objectstack#3 · os-tesla · session_01L9qibxRSo4RBpRknKqBLmy

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

  • .github/workflows/release.yml, job "Version PR maintenance", step "Validate the post-version tree":
    • One new content gate after the protocol-version.test.ts line: run_gate pnpm --filter @objectstack/spec --fail-if-no-match exec vitest run --project local scripts/build-migration-registry-entry.test.ts. That file holds the registry template's region pin (from fix(spec,test): unblock the 19 Version PR: open the major-19 registry regions, parse prerelease versions in the MCP save test, key the objectui pin claim on the spec major #37557). It checks that every migration kind has an os-generated region for the spec package's major and for PROTOCOL_MAJOR, the majors a new entry registers under.
    • The header's "WHAT IS CHECKED" list gains the entry. It says why the gate runs here: the version pass moves the spec major, so on a boundary train this is the first tree where the new major is the package's own. It also says what the gate adds next to the existing refusal of a moved protocol-version.ts: the same run names a missing region, rather than the run after the refusal is resolved. And it says why the other three files that reddened the 19 Version PR are not added (readings below).
  • No other step, job, permission or trigger changes. Nothing publishes; no changeset.

Tests

Readings at dc29936 (5746ba60 measured on origin/main 6e06729, then cherry-picked onto 447757d, the merge of #38089)
  • Premise at 815e882 and 6e06729: the step ran one spec test file, src/kernel/protocol-version.test.ts (l.825).
  • The new gate's command on this tree (spec 19.0.0-next.1, PROTOCOL_VERSION 19), after install and with no build, which is this job's state: Tests 7 passed (7), 2.2 s.
  • Ablation: with the retired-key:19 region deleted from registry.ts.template, the same command exits 1: × opens and closes 'retired-key:19', "src/migrations/registry.ts.template has no <os-generated retired-key:19> region, but major 19 is current (spec package 19.0.0-next.1, PROTOCOL_VERSION major 19)…", Tests 1 failed | 6 passed (7). Restored with git checkout HEAD -- <file>; git status --porcelain empty.
  • Measured and left out:
    • scripts/build-schemas-check-mode.retired-keys.test.ts (repo project): 13 passed, 132 s. Its failure on chore: version packages (next) #35129 is the missing region itself, which the pin judges structurally.
    • packages/runtime/src/domains/mcp-authoring.test.ts: does not start without a build (Failed to resolve entry for package "@objectstack/objectql").
    • ui/scripts/__tests__/doc-version-claims.test.ts: 2.0 s. Its version-step input is the objectui skill's compatibility: pin, which check:skill-compatibility already judges in this step.
  • The workflow still parses as YAML (yaml.safe_load).
  • At dc29936 the new gate's command reads Tests 7 passed (7) again.
Gates
  • dispatch-gates --ran on .github/workflows/release.yml: 40 derived, 40 run, every one exit 0, 0 NOT-MEASURED (a derived zero), 0 unrun.
Affected step, before and after (advisory)
  • Before: "Validate the post-version tree" on the last four scheduled runs and one dispatch took 33 s, 27 s, 33 s, 27 s and 33 s (median 33 s).
  • After: one more file at 2.2 s measured locally, so about +2 to 3 s. Nothing else in the job moves.

Acceptance notes

  • Tier H by path (check-governed-merges.mjs, the release.yml row of the workflows split). It lands only after an authorized approval, then by the owning seat.

Generated by Claude Code

…ate's region pin

The version step's content gates ran one spec test, protocol-version.test.ts. The
region pin in build-migration-registry-entry.test.ts checks that the registry template
opens a region per migration kind for the spec package's major and PROTOCOL_MAJOR; the
version pass moves the spec major, so a boundary train now names a missing region in
the same run. One file, local project, no build, 2.3 s.

Claude-Session: https://claude.ai/code/session_01L9qibxRSo4RBpRknKqBLmy
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibxRSo4RBpRknKqBLmy

Final head: dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05 (one commit on origin/main 447757d). CI is green on the latest attempt of every check: 30 success, 18 skipped, 0 failure, Governed Surface Queue Guard included. Diff: +25 / −0, in one file, .github/workflows/release.yml.

Tier H by path. This PR lands only after an authorized approval, then by the owning seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head dc29936 · 2026-11-28T03:23Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:27Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05
Local-runs: none
Scope: .github/workflows/release.yml + none

Read: card #37587 with all four comments, PR #38119 (body, file list, net diff against 447757d0, +25/−0 in one file), and the 48 check-runs on the head (30 success, 18 skipped, 0 failed). The tree was read at the head with git show; nothing was built or run.

① Derived judgments

  • Accept-set of the version job: one more content gate. Right. run_gate pnpm --filter @objectstack/spec --fail-if-no-match exec vitest run --project local scripts/build-migration-registry-entry.test.ts sits after the protocol-version.test.ts line and has the same shape. A post-version tree with no os-generated region for the spec package's major or for PROTOCOL_MAJOR, in any of the three kinds, now fails "Validate the post-version tree". The Version PR step does not run, and the standing PR keeps its last validated content.
  • The filter selects the file. Right. packages/spec/vitest.config.ts gives local the include scripts/**/*.test.ts minus vitest.repo-tests.json, and that list does not name this file. pnpm --filter … exec runs in packages/spec, so the relative path resolves. A renamed or moved file selects nothing, and vitest exits non-zero, so the gate cannot go green on an empty run.
  • It runs in the job's state (install, no build). Right, by reading. The test imports scripts/build-migration-registry.ts (node builtins only, behind an entry guard) and src/kernel/protocol-version.ts (no imports). It spawns packages/spec/node_modules/.bin/tsx, which the install provides. It does not read the generated registry.ts. The config's preflight import is a source path, and the adjacent protocol-version.test.ts gate already loads it in this job.
  • It leaves the tree as it found it. Right. The three spawned runs are --self-test (exits before the write) and an import probe. The files it writes are under os.tmpdir(). The moved-path list is captured in the step before, so nothing here can enter the Version PR.
  • Public surface: none. No package, schema, script or trigger changes. The job stays schedule / workflow_dispatch only.

② Semver level

Clause-②: no

skip-changeset is right: the diff is a workflow file and publishes nothing. Check Changeset is green on the head.

③ Boundary flags

  • open_questions in os-dev-report 7232717040: empty. out_of_scope_findings: empty.
  • Deviation (the head branch was pushed as a new branch after the queue deleted it): no effect on the diff. One commit on 447757d0.
  • No check-run on this head runs the changed step, because the job never runs on a pull request. The first live run is the next scheduled refresh after merge. The evidence that the command runs there is the reading in ① plus the dev's measurement (7 passed, 2.2 s; ablation red naming the region). A failure there is loud and leaves the Version PR stale, never broken.
  • SQL push-down: not applicable. The diff holds no query.
  • Tier H by path: landing needs an authorized approval. This record does not replace it.

④ Design judgment

.github/workflows/release.yml, against the card's item 1 and the code it cites.

No must-fix, no should-fix.

Nits (prose only, in the header comment):

  • N1 (nit) — "pin check:skill-compatibility already judges above": the WHAT IS CHECKED list has no check:skill-compatibility entry. "Above" is true only of the run_gate order, 300 lines further down.
  • N2 (nit) — "judged here by this pin structurally, at 132 s": the time belongs to the excluded retired-keys test, but it reads as the pin's, five lines after "2.3 s measured".
  • N3 (nit) — the header says 2.3 s; the PR body and the os-dev-report say 2.2 s. The list's opening totals ("7 s total", "44 s") predate this gate and are not restated.

Implemented-by: claude/project-thread-8fcc2p
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record:

Contract review brief — PR #38119 @ dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05 (card #37587)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths .github/workflows/release.yml — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37587: its body and EVERY comment (rulings and earlier records included)
· PR #38119: its body, its file list, and the net diff against main at dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05
· the check-runs on dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .github/workflows/release.yml;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38119/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:29Z

L1-a: ACCEPT at dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05

  • The face is governed rules: .github/workflows/release.yml, which is Tier H by path. The CONTRACT_REVIEW_TIER record above is PASS, with no must-fix and no should-fix. Its three nits are header-comment prose: "above" for check:skill-compatibility, a 132 s that reads as the pin's own time, and 2.3 s against 2.2 s. None asks for a change.
  • The new run_gate works in the job's install-only state. The test is in the local project's include, imports only build-migration-registry.ts and protocol-version.ts, and writes only to os.tmpdir(). A renamed file selects nothing, and vitest then exits non-zero, so there is no empty green. The step is collected, not exited on, so the refusal of a moved protocol-version.ts and the pin's verdict land in the same run, as the header says.
  • The header's account of the three excluded files is true against the tree.
  • Fixes #37587 is right. Item 1 is this PR, item 2 was already fixed by fix(runtime): save_metadata_draft's clientSpecVersion example names the server's own spec version #37821, and item 3 landed in test(ui): doc-version-claims reads the spec major from the package it resolves, not a fixed workspace path #38089, which is this head's base.
  • No check-run on this head executes the changed step: the job runs on schedule / workflow_dispatch only. Its first live run is the next scheduled refresh after merge. The evidence that it runs there is the reading above and the dev's local measurement (7 passed, ablation red).
  • The branch was re-pushed because the queue deleted the old head branch after test(ui): doc-version-claims reads the spec major from the package it resolves, not a fixed workspace path #38089 merged. There was no force push, so I record no deviation.
  • Face clean (l1-face.mjs, 13 items): Clause-②: no · Metadata-protocol: none. CI at this head: 30 success, 18 skipped, 0 failed, including Governed Surface Queue Guard.
  • Tier H: the maintainer merges by hand after the seat's hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-28T03:30Z.

维护者速读

  • 改了什么:发版流程里,在打开版本 PR 之前的那组校验里多跑一个约 2 秒的测试。它检查迁移登记模板有没有为当前大版本开好区段。
  • 为什么:19 预发布那次,版本 PR 就是被这类缺口挡住的。以后跨大版本时漏开了区段,同一次运行里就会报出来,不用等版本 PR 变红。卡上另两项已由别的 PR 合入。
  • 风险:只在校验步骤里加一行检查和一段注释,不碰发布、打 tag 或部署。误报的话,版本 PR 只是暂时不刷新,撤回这一行就恢复。
  • 要你做什么:请审阅并批准,或者亲手合并。改的是发版工作流,所以属于 Tier H。契约审核 PASS 7233094665,Head-sha: dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05。

席位意见:可以合。只加一行 run_gate,挂在 protocol-version 那条之后。消融掉 19 的区段,它会点名报错。这个 job 只在定时和手动触发时跑,所以这个 head 上没有任何 check 执行到改动的步骤,第一次真正运行是合并后的下一次定时刷新。

席位核对 — ACCEPT · repo:objectstack#3 · head dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05

  1. 形态:Fixes #37587。第 1 项是本 PR,第 2 项是 fix(runtime): save_metadata_draft's clientSpecVersion example names the server's own spec version #37821,第 3 项是 test(ui): doc-version-claims reads the spec major from the package it resolves, not a fixed workspace path #38089(已合)。只改 .github/workflows/release.yml 一个文件,+25 / −0。
  2. 前提实测:spec: the registry template has no <os-generated retired-key:19> region, so Test Core fails on the 19.0.0-next.0 version tree and the first 19 pre-release cannot merge #37549 是 19 预发布时的版本 PR,被缺失的迁移登记区段挡住。新 gate 只 install 不 build 时 7/7 通过,用时 2.2 s。删掉 retired-key:19 区段后 exit 1,报错点名该区段和两个大版本。
  3. 门禁 check-runs:head 上 30 success、18 skipped、0 failure,含 Governed Surface Queue Guard。本地 dispatch-gates --ran 40/40 exit 0。check-governed-merges ⇒ GOVERNED,Tier H。
  4. 接受的偏差:test(ui): doc-version-claims reads the spec major from the package it resolves, not a fixed workspace path #38089 合入时队列删了远端 head 分支,所以本 PR 是推的新分支,没有 force push。L2 PASS 7233094665,无 should-fix,三个 nit 都只涉及头注措辞。简报 7233105505,L1 ACCEPT 7233117218。
  5. 范围外去向:无新增。
  6. 落地条款:Tier H ⇒ 维护者亲手合并,或 GOVERNED_APPROVERS(os-zhuang)批准后由本席照落地前检落地。认领 7231771009,报告 7232717040。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Tier H approval request at 2026-11-28T03:31Z. Seat record: the newest ## 席位核对 above (ACCEPT, Head-sha: dc29936fcbbfe9a6a5419b9be6ee0aa6b68b8c05). Contract review PASS 7233094665.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 03:33
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 94fdf16 Nov 28, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-8fcc2p branch November 28, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review follow-ups of PR #37557

3 participants