Repository navigation
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
Conversation
…he registry template Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA Co-authored-by: Claude <noreply@anthropic.com>
…majors; changeset Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
…ill claim on the spec major Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Inputs, read 2026-11-26T14:16Z: card #37549 (body and its 5 comments), PR #37557 (body, 5 files, net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
The import of
Out of the diff, read and not reviewed:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 0e5473f · card #37549 (p0, release-blocker for Version PR #35129) · 2026-11-26T14:19ZL1 checklist
Tier: S. Landing: ready + auto-merge by this stroke. |
… resolves, not a fixed workspace path (objectstack-ai#38089) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoQcXadSnPCNF2ff1apTGQy2)_ Part of objectstack-ai#37587 repo:objectstack#3 · os-tesla · session_01L9qibxRSo4RBpRknKqBLmy Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改界面仓的一份检查测试。它以前在模块加载时按固定的 monorepo 路径读 spec 版本,在独立的 objectui 检出里文件一加载就抛错;现在改成按包解析去读,monorepo 下读到的还是同一个文件。 - 为什么做:卡 objectstack-ai#37587 的第 3 项(PR objectstack-ai#37557 审核留下的三条之一)。第 1 项(release.yml)是 Tier H,按席位裁定另开 PR;第 2 项已由 objectstack-ai#37821 修好。 - 出错会怎样:只影响这一份测试;不发布任何字节,出问题直接撤回。 - 要你做什么:无。 ## What changes - `ui/scripts/__tests__/doc-version-claims.test.ts`: - `SPEC_MANIFEST` is now `createRequire(import.meta.url).resolve('@objectstack/spec/package.json')`: the spec package this tree's own dependency (`ui/package.json`, `"@objectstack/spec": "workspace:^"`) resolves to. `SPEC_MAJOR` reads its version from there instead of `path.join(workspaceRoot(), 'packages/spec/package.json')`. - Under the monorepo the two are the same file (measured below), so the skill row's claim still tracks the manifest the version step rewrites. In a standalone objectui checkout, which has no `packages/spec`, the module no longer throws on load; it reads the installed package, matching how `skill-bundle-root.mjs` already degrades in that layout. - New top-level `describe` "doc version claims - the source of the spec major" in the same file: under the monorepo the resolved manifest's realpath equals `workspaceRoot()/packages/spec/package.json`; in the standalone layout it lies under `node_modules`. A second case checks the version read starts with `${SPEC_MAJOR}.`. - No changeset: the file is a test under `ui/scripts/`, and nothing it touches publishes. ## Tests <details><summary>Readings at 5508f9f (base origin/main 815e882)</summary> - Premise at 815e882: l.1056–1059 read `path.join(workspaceRoot(), 'packages/spec/package.json')` at module scope. `workspaceRoot()` is the objectui root when that root holds `pnpm-workspace.yaml` (the standalone layout), and that root has no `packages/spec`. - Resolution in this checkout: `createRequire(<test file>).resolve('@objectstack/spec/package.json')` gives `<root>/packages/spec/package.json`, the same realpath as the workspace path, version `19.0.0-next.1`. - `pnpm --dir ui exec vitest run scripts/__tests__/doc-version-claims.test.ts`: `Tests 31 passed (31)` (29 before, plus the two new cases). - Ablation on the committed fix: `SPEC_MANIFEST` pointed at a byte-identical copy of the spec manifest in a temp directory. `× under the monorepo, resolves the workspace spec package the version step rewrites`, `Tests 1 failed | 30 passed (31)`. Restored with `git checkout HEAD -- <file>`; `git status --porcelain` empty. - Not measured: a run inside a real standalone objectui checkout. That layout is no longer built here; the standalone arm of the pin is checked by reading only. </details> <details><summary>Gates at 5508f9f, then the merge 1ea0196</summary> - `dispatch-gates --ran` on `ui/scripts/__tests__/doc-version-claims.test.ts`: 21 derived, 21 run, every one `exit 0`, 0 NOT-MEASURED (a derived zero: each line records its exit code), 0 unrun. That includes `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed | 2 skipped (174)`, `Tests 5144 passed | 2 skipped (5146)`, 4 m 27 s. - `pnpm --dir ui type-check:scripts` (`tsc -p tsconfig.scripts.json`, the program that compiles `scripts/__tests__`): exit 0. `eslint` on the file: exit 0. - Merged `origin/main` f72f335 (4 commits, none under `ui/scripts/`, `ui/package.json` or `packages/spec/package.json`); after `pnpm install --frozen-lockfile` the file reads `Tests 31 passed (31)` again. </details> ## Acceptance notes - The remaining item of objectstack-ai#37587 (`.github/workflows/release.yml` post-version validation runs the region pin) is Tier H by path and follows in its own PR on this branch once this one lands, as the seat ruled on the card. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxRSo4RBpRknKqBLmy)_ Co-authored-by: Claude <noreply@anthropic.com>
…ate's region pin (objectstack-ai#38119) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoQcXadSnPCNF2ff1apTGQy2)_ Fixes objectstack-ai#37587 repo:objectstack#3 · os-tesla · session_01L9qibxRSo4RBpRknKqBLmy Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:发版流程里"版本 PR 打开前的校验"多跑一个只要 2 秒的测试。它检查迁移登记模板有没有给当前大版本开好区段;下一次跨大版本时,如果漏开了区段,同一次运行里就会直接报出来,不会等到版本 PR 上再红。 - 为什么做:卡 objectstack-ai#37587 的最后一项。19 预发布那次,版本 PR 就是被这类缺口挡住的(objectstack-ai#37549)。卡上另外两项:ui 测试已由 objectstack-ai#38089 合入,mcp-authoring 文案已由 objectstack-ai#37821 修好。 - 出错会怎样:只在 release.yml 的校验步骤里加了一行检查和一段注释,不碰发布、打 tag 或部署那几步;这个 job 只在定时和手动触发时跑。如果这条检查误报,版本 PR 只是暂时不刷新,撤回这一行就恢复。 - 要你做什么:这个文件按路径属于 Tier H,需要你(GOVERNED_APPROVERS)批准后,由 3 号座位落地。 ## 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 objectstack-ai#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 <details><summary>Readings at dc29936 (5746ba60 measured on origin/main 6e06729, then cherry-picked onto 447757d, the merge of objectstack-ai#38089)</summary> - 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 objectstack-ai#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. </details> <details><summary>Gates</summary> - `dispatch-gates --ran` on `.github/workflows/release.yml`: 40 derived, 40 run, every one `exit 0`, 0 NOT-MEASURED (a derived zero), 0 unrun. </details> <details><summary>Affected step, before and after (advisory)</summary> - 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. </details> ## 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](https://claude.ai/code/session_01L9qibxRSo4RBpRknKqBLmy)_ Co-authored-by: Claude <noreply@anthropic.com>
Fixes #37549
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/spec/src/migrations/registry.ts.template: opens an emptyretired-key:19region inRETIRED_KEYS_BY_MAJORand an emptyretired-def:19region inRETIRED_DEFS_BY_MAJOR, each placed and shaped like its major-18 sibling.semantic:19andstep19already existed, so the migration-step side needed nothing.retired-def:19goes beyond the card's wording, as an in-place fix of the same defect class.build-schemas.tsprescribes new retired-def entry files under the sameCURRENT_MAJOR(renderNewEntryFiles, used for both kinds). So the first whole-def removal on the 19 tree would have hit the same generator refusal. Same file, same gate family, same mechanical fix.scripts/build-migration-registry.tsneeds no change. Its lines ~422–441 are--self-testfixtures, not a region list: the generator discovers regions from the template's markers.packages/spec/scripts/build-migration-registry-entry.test.ts, newdescribe): every kind inKINDShas an open and close marker in the template for each of two majors, the spec package's major (whatbuild-schemas.tsregisters new entries under) andPROTOCOL_MAJOR. Onmaintoday these are 18 and 19, so the pin reds onmainbefore the fix and names the missing region and the major.PROTOCOL_MAJORand not "spec major + 1": the protocol major moves first, onmain(it reads 19 while the package is still 18.6.0). It is the leading signal for the next major.<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):packages/runtime/src/domains/mcp-authoring.test.ts. The[#34774]describe parsedSERVERwithsplit('.'), so on the Version PR tree (19.0.0-next.0) the patch field was0-nextand the built version was19.0.NaN, which the door refuses as not SemVer. It now parses withSEMVER_2_0_0_VERSION_PATTERNfrom@objectstack/spec/kernel, the grammar the door itself judges with, and drops the prerelease from the versions it builds. A new case declares the server's own version verbatim and${major}.${minor}.0-next.0, and asserts both save byte-identically to no declaration. Test-only;@objectstack/runtimeshipsdistalone, so no runtime changeset is owed.ui/scripts/__tests__/doc-version-claims.test.ts. Theskills/objectui/SKILL.mdKNOWN_CLAIMS row was the literal@objectstack/spec 18.x. It is now keyed onSPEC_MAJOR, read frompackages/spec/package.jsonunderworkspaceRoot(). The literal in the skill can't go, because the rootcheck-skill-compatibility-version.mjsrequires the pin and rewrites it with the version step. Soskills/**is not touched, and the PR stays off Tier H..changeset/37549-retired-key-19-region.md(patch; the template renders into the shippedregistry.ts).Tests
Pin reds on the pre-fix template (origin/main 1af67b2 template restored, then put back)
Version tree: spec temporarily at 19.0.0-next.0 (not committed)
pnpm gen:migration-registry && pnpm exec vitest run --maxWorkers=2 scripts/build-migration-registry-entry.test.ts scripts/build-schemas-check-mode.retired-keys.test.ts(both projects), withpackages/spec/package.jsonversion set to19.0.0-next.0. The run includes "the printed route registers: write exactly the files check (b) names, run the generator, and (b) is silent", the case that fails on #35129.The version was restored to
18.6.0afterwards;git statuswas clean apart from the intended diff.18.6.0 tree: same two files
Items 2 and 3 on the Version tree (spec at 19.0.0-next.0 and the objectui skill pin at 19.x, both temporary, restored after)
Ablation on the same tree with the origin/main 1af67b2 versions of the two tests: runtime
1 failed | 55 passed(theSemVer form (e.g. 18.6.0)case), ui 2 failed (skills/objectui/SKILL.md :: @objectstack/spec 18.x), matching #35129's CI failures. On the 18.6.0 tree: runtime 57/57, ui 29/29.uiscripts/suite at the final head:172 passed | 2 skippedfiles,5130 passedtests.Spec package, local project, at 2fd0411: `pnpm --filter @objectstack/spec test` and `pnpm typecheck`
test:repo(the vitestrepoproject) belongs to CI's Test Core. Only its one touched-path file,build-schemas-check-mode.retired-keys.test.ts, was run locally (above).Acceptance notes
node scripts/pm/overlap-check.mjs --pr=37366,37371,37422givesVERDICT clean exit 0. Their migration changes are major-18 semantic entry files only, and none touches the template.RETIRED_KEYS_BY_MAJOR[19]/RETIRED_DEFS_BY_MAJOR[19]become empty arrays.Body amended by the seat (repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA) to cover the three items the card's scope grew to; the dev report on #37549 (7194227076) carries the full evidence.
Verification
Two-minute check:
pnpm --filter @objectstack/spec exec vitest run --project local --maxWorkers=2 scripts/build-migration-registry-entry.test.ts, expected to showTests 10 passed (10). Then set the spec version to19.0.0-next.0and runscripts/build-schemas-check-mode.retired-keys.test.ts, which should also be green.Read first: (1) the two new template regions; (2) the pin's choice of majors (spec package major and
PROTOCOL_MAJOR).Local gate subset at 2fd0411: derived by
node scripts/pm/dispatch-gates.mjs --commands. Verdicts are in the dev report on the card.check:doc-formula-expressionsis NOT MEASURED locally (PREREQUISITE NOT MET:@objectstack/formulaand@objectstack/lintare not built in this worktree); CI runs it. The full farm belongs to CI.Generated by Claude Code