Skip to content

feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' - #37314

Merged
os-zhuang merged 17 commits into
mainfrom
claude/issue-37229-protocol-version-19
Nov 26, 2026
Merged

os-zhuang merged 17 commits into
mainfrom
claude/issue-37229-protocol-version-19

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Fixes #37229
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37298

维护者速读

  • 协议版本从 18 升到 19:仓库里每个示例应用、连接器应用和文档示例都改为声明 19,新建项目模板在出预发布版时自动改成 19;只有装 19 预发布版的人会碰到。
  • 属于「19.0.0 大版本」路线(你选的方案「A」第 2 项);它解开 19.0.0-next 的版本 PR:出版本的流水线不接受顺手改协议版本,所以由这一单先改好。
  • 装了 19 预发布版、但应用仍声明 18 的人,启动时会被拒绝并提示改成 19(单一配置文件的应用有一条命令可自动改;多包组合的应用要逐个包手改);18.x 正式版用户不受影响;撤回即还原本单。
  • 按你对冲突的裁决「A」,本单还改了一道检查:预发布模式下且 spec 已排定大版本时,下架提示写「19.0.0」不再被拦;五条下架提示因此写 19.0.0。
  • 要你做的:「进入预发布模式」那一单已合并;本单是大版本变更,请你亲自把关合并。「Check Changeset」是有意的红:本单改了别人已合并的两条变更说明(各改一处事实)。另一单 docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts #37298 改三个技能文件,在本单合入之后合并。

What changes

On the shape of the v18 move (#22215, commit 4e9fe9f), minus skills/**.

  • packages/spec/src/kernel/protocol-version.ts: PROTOCOL_VERSION = '19.0.0'. The docblock names protocol 19 as the pre-mode lockstep exception (ruling records 6049734955 and 7153441862), and says the blank template follows at the version pass and the published skills' examples in a change of their own.
  • Handshakes: 85 sites in 67 files move engines.protocol from '^18' to '^19'. Each is a manifest that stands for "an app on the current protocol", and none of them asserts on the range.
Directory Files Sites
examples/ (crm, showcase, todo, starter, multi-package ×2) 6 6
packages/apps/connector-{docusign,github,stripe} 3 3
packages/cli (tests) 40 56
packages/qa (7 dogfood tests, the sql-perf bench app, the scenarios exporter test) 9 9
packages/lint, packages/spec, packages/metadata (tests) 4 5
packages/mcp/README.md 1 2
content/docs (cli, your-first-project, upgrading) 3 3
docs/qa/scenarios/builds/travel_expense.json 1 1

examples/app-starter arrived from main (#37399) declaring '^18' and moves with the merge. Its boot test, which installs the starter through MarketplaceInstallLocalPlugin, passes 5/5 at '^19'. At '^18' it reads 3 failed | 2 passed, refused OS_PROTOCOL_INCOMPATIBLE.

  • docs/qa/platform-checklist/areas/cli.json: one prose fact, "the stock showcase declares '^18'", now reads '^19'.
  • docs/qa/scenarios/builds/travel_expense.provenance.json: sha256 is the build's hash as it now stands, and a second amended entry names the one edit (engines.protocol '^18' → '^19') and the hash it replaced. cardSha256 is unchanged.
  • The protocol 19 migration step (ADR-0087). packages/spec/src/migrations/registry.ts.template opens step19, with no conversions yet. Its first semantic entry, entries/semantic/19.protocol-18-range-refused.ts, is the refusal this PR causes, with the prescription: --write rewrites the range of a root defineStack manifest; for a manifest composeStacks composes, it writes nothing and lists the range for a hand edit in each package manifest. Its acceptance text claims only what the hop does: it edits or refuses the range. A key retired in this release that the metadata still carries is refused at parse by its own message, which names its own remedy. The text no longer says that validate passes or that every package installs. The upgrade guide now generates three hop sections (17, 18, 19). See "Why a step-19 entry" below.
  • Removal prescriptions stamped after 18.6.0 name @objectstack/spec 19.0.0. retired-key-removal-version.pin.test.ts derives the removing release's major from PROTOCOL_MAJOR, so at 19 the retirements not in the published 18.6.0 name 19.0.0, not 18.7.0, a release the v19 line never cuts: object-grid singleClickEdit (component.zod.ts), the boolean field.inlineEdit (field.zod.ts), listView.columnState and view.columnState (view.zod.ts), and seed.mode 'insert' / 'replace' (seed.zod.ts). Their text pins, the regenerated content/docs/references/ui/{component,view}.mdx, content/docs/data-modeling/seed-data.mdx and the metadata-protocol seed pin follow.
  • scripts/check-future-spec-major.mjs reads the pre-mode window (ruling record 7176929521, option A). On a stable @objectstack/spec label, with .changeset/pre.json at "mode": "pre" and a pending changeset declaring "@objectstack/spec": major, the next publish is label + 1, so the gate judges citations against 19 here. That is why the prescriptions above can name @objectstack/spec 19.0.0. The window is read through check-changeset-no-major.mjs's readProtocolLockstepInputs, the reader the protocol lockstep already uses; there is no second parser. That file's docblock now names its three importers (check-docs-image-tag.mjs, check-future-spec-major.mjs, pm/l1-face.mjs); the change is a comment. Label + 2, pre mode without a pending spec major, a pending spec major outside pre mode and a prerelease label each open nothing; five new self-test rows pin those five cases (34 → 39 cases). An unreadable .changeset/ opens nothing either, by the code; no row pins it. The stable-label condition is the same one judgeProtocolLockstep applies: on a 19.0.0-next.N label the label's own major is already the carrier. Reverse verification: with the window condition ablated, the gate reads 14 problems, the 14 sites.
  • Two fixtures pay a dynamic load at module top (validate-flow-region-shape.test.ts, plugin-artifact-packages-attribution.test.ts). check:test-source-alias judges every test file a diff edits, and both edits here are the range literal. The gate prescribes exactly these imports.
  • .changeset/37229-protocol-19.md: "@objectstack/spec": minor and "@objectstack/mcp": patch (its shipped README.md changes), the two declaration lines, a BREAKING note with the FROM → TO and the command, and registered protocol-18-range-refused.
  • DELIBERATE CORRECTION of two existing changesets. Check Changeset stays red on both by design: each note is on the merge base, and each changes only the facts this PR makes false.
    • .changeset/37223-v19-line-opens.md (carried N1 of chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230's L1, and N3 of this PR's L1), two sentences. "The first is @object-ui/i18n's retirement …" now reads "The first change graded major is @object-ui/i18n's retirement …", because this PR's protocol move is a breaking change graded minor. "PROTOCOL_VERSION follows @objectstack/spec's major at version time." now reads "PROTOCOL_VERSION moves to 19 ahead of the version pass, in its own changeset."
    • .changeset/37042-skills-inline-edit-boolean.md, one clause: "The spec parse refuses true and false on a relationship field's inlineEdit since 18.7.0" now reads "… since 19.0.0", the release the retirement ships in.
  • Carried from chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230's L1, N3 — ui/packages/i18n/scripts/released-keys-removed.mjs refuses an argument it does not know (exit 2, naming it), and prints the tag's commit: ^{commit} peels the annotated tag. Measured: the tag @object-ui/i18n@18.6.0 is a tag object 0dbef86ce3, and the script now prints its commit 958ee03594. The script is not in the package's files[], so it publishes nothing and needs no changeset.

Judgments: every '^18' left in place, with its reason

Site Reason
skills/** (3 files) Governed Tier H; the sibling PR #37298.
packages/create-objectstack/src/templates/blank/objectstack.config.ts:38 The version pass stamps it with the template's @objectstack/* versions, and template-consistency.test.ts holds it equal to the scaffolder major (create-objectstack is 18.6.0). Measured: moved to '^19' now, that test goes red; the version-pass rehearsal below stamps it '^19'. Same judgment as #22215.
packages/cli/src/utils/protocol-version-gap.test.ts:82 Paired with an explicit installed '17.2.0': "a newer major is silent". The subject is the pairing, not the current protocol.
packages/metadata-core/src/artifact-forward-conversion*.test.ts, protocol-handshake.test.ts The subject is the artifact's floor against an injected runtime label (the v18 prerelease major-step window), or a range/major pair. No handshake against PROTOCOL_VERSION runs.
packages/metadata/src/plugin-artifact-forward-conversion-{major-step,package-body}.test.ts The same age subject at the metadata door, which runs no handshake.
docs/qa/platform-checklist/areas/platform-core.json, item platform-core.protocol-18-handshake-and-stored-replay Revised in place to protocol 19 (revision 6, with its history entry). The id keeps its protocol-18 slug because ids are immutable. Its '^18' now stands for the refused case: '^18' → 422 OS_PROTOCOL_INCOMPATIBLE naming os migrate meta --from 18, '^19' admitted, and the artifact step edits the copy's range to '>=18.0.0', as the option-B fixture does.
content/docs/releases/**, docs/adr/**, **/CHANGELOG.md, .github/workflows/release.yml (comment), script comments Release-owned, governed or historical prose.
ui/** tests, packages/runtime/src/domains/packages-ensure-customization.test.ts, scripts/docs-audit/affected-docs.mjs Not a protocol handshake (requiredRange of a later refusal, a package-dependency range, a React peer range).

Moved to '>=18.0.0' (5 sites, commit e05fdf6f): packages/runtime/src/standalone-stack-option-b-forward-conversion.test.ts. It boots through the load seam, which refuses '^18' at protocol 19. Measured: ProtocolIncompatibleError: package 'com.test.ob.core' targets protocol ^18 … Run: objectstack migrate meta --from 18, 3 cases. Its subject is the conversion window, which opens on the floor. '>=18.0.0' keeps the floor (18.0.0, as parseRangeFloor reads ^18) and admits 19. This is the same move as #22215's two runtime fixtures (>=17.1.0). The fixture's docblock now says why, so a later sweep to '^19' does not close the window.

Why a step-19 entry (the ADR-0087 disposition)

Metadata-protocol: is judged from content. A 19 runtime refuses an authored value, engines.protocol: '^18', that 18 admitted. That is narrowed, and the Clause-② arm is narrowing, as in #22215. On a declared narrowed, check:adr-0087-registration refuses not-required (no-migration-prescription) outright and asks for a registered entry. Measured: "not-required (no-migration-prescription) is refused on a changeset that declares Metadata-protocol: narrowed … fix: register an entry under packages/spec/src/migrations/entries/semantic/". No entry at the merge base covers the refusal, so this PR opens step 19 with one entry, and the upgrade guide carries the prescription.

Acceptance notes

Verification

Two-minute check: node scripts/check-future-spec-major.mjs prints ✓ check-future-spec-major: no @objectstack/spec citation names a major above 19 and pre-mode window: label major 18, pre mode next, pending major for @objectstack/spec in .changeset/37223-v19-line-opens.md — the next publish carries 19, and exits 0. node scripts/check-changeset-no-major.mjs --base origin/main prints ✓ Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 — the one exception, evidenced: pre mode (tag next) and a pending major for @objectstack/spec (.changeset/37223-v19-line-opens.md). and exits 0.

Read first:

  1. .changeset/37229-protocol-19.md and packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts: what an upgrading author is told.
  2. packages/spec/src/migrations/registry.ts.template, the new step19: the ledger's protocol 19 step opens here.
  3. scripts/check-future-spec-major.mjs, judgedMajor and the five new self-test rows: the one gate this PR changes.
  4. The Judgments table: every '^18' left in place.
Readings at 3811cd10f5a (the dev's, through the verify lock, and the seat's L1)
  • CI at 3811cd10f5a: 70 check-runs, 60 success, 9 skipped, 1 failure. The failure is Check Changeset, by design: its two file annotations name the two DELIBERATE CORRECTION notes, and its ADR-0087 and no-major steps are green. All eleven required contexts are success, Test Core 10/10 included, and so is Type Check · source gates.
  • Tests:
    • dogfood full battery (os-dev-report 7183121949 on 19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229): Test Files 487 passed | 3 skipped (490), Tests 4129 passed | 68 skipped (4197), VERDICT command-exit 0.
    • whole spec suite: Test Files 896 passed (896), Tests 28442 passed | 1 todo (28443).
    • examples/app-starter boot test: 5/5 (re-run by the seat). With the range put back to '^18' through ablation-replace, it reads 3 failed | 2 passed, refused OS_PROTOCOL_INCOMPATIBLE; the restore was proven with git diff HEAD empty.
    • retired-key-removal-version.pin.test.ts and protocol-version.test.ts: 2 files, 68/68 (re-run by the seat).
  • Guards:
    • check-future-spec-major exits 0, and --self-test reads 39 cases pass (re-run by the seat). The gate file is byte-identical to 9ed0f5e41f6, where the seat ablated stable, the pending-major condition, the pre-mode condition and + 1 in turn: one self-test row went red each time, and with the window off the scan read the 14 sites. Each ablation was restored with git diff HEAD empty.
    • check-changeset-no-major --base origin/main exits 0.
    • check:adr-0087-registration exits 0 with registered protocol-18-range-refused.
    • dispatch-gates --commands derives 150 families on this diff. Two are red: check-empty-changeset by design (the two DELIBERATE CORRECTION notes), and check:platform-checklist on areas/automation.json: ABSENT SYMBOL … FlowItemMoreMenu.tsx#FlowItemMoreMenu, which main itself carries (reproduced on origin/main ecbe854bda; this diff touches neither path). The other 148 exit 0.
  • Against current main (5d21d431ec, 9 commits past the merge base): git merge-tree --write-tree is clean, and the merged tree carries the same '^18' lines as this head. main added no other handshake at '^18'.
Earlier readings (the dev's, on 9da4c1d plus the fixture fix, and at 8852bcb for the --write reach)

Not re-run at 3811cd10f5a. Of the code these read, this PR changed only the step-19 entry's text and the examples/app-starter range after them. The merges of main brought other changes in, and CI at the head is green.

  • Handshake, from the built @objectstack/metadata-core on protocol 19: '^18' → incompatible OS_PROTOCOL_INCOMPATIBLE … Run: objectstack migrate meta --from 18; '^19' → ok.
  • Prescription, with the built CLI. On a '^18' copy of examples/app-todo, os migrate meta --from 18 lists the step-19 entry, and --write rewrites objectstack.config.ts:48 to '^19'. On examples/app-multi-package with both package manifests at '^18', --write writes nothing and prints the range for a hand edit (manifest is composed by composeStacks(…)).
  • Template control leg: moving the blank template to '^19' now turns template-consistency.test.ts red (expected 19 to be 18).
  • release.yml version-pass rehearsal. The version-pr Render and Validate blocks were extracted verbatim and run in a throwaway clone:
  • Tests: cli 677 files, 8441 tests passed; runtime 647 files, 11978 passed | 25 skipped (the option-B file fails 3 cases at 9da4c1d and passes 6/6 at e05fdf6); metadata, metadata-core, lint, mcp, create-objectstack, scenarios and the example tests all green; validate exits 0 for 4 examples and 3 connector apps.

Provenance

Opened by seat repo:objectstack#4 on the maintainer's authorization in the seat session (「#37229 的两个 PR 开 PR 时被拦了:放行」). The dev session (session_01QSeKYnLptCbfzwtkTrDG3j, zone a4-S) had three writes refused by its permission check, and none was retried: its relay pr_create, the hand-off of the payload to the seat, and the push of the runtime fixture fix. The seat read the prepared body from that session's final message. The fixture fix was then re-applied and pushed as e05fdf6f (fast-forward, five sites in one test file) by a seat-dispatched dev, on the maintainer's authorization 「#37229 夹具修复推送放行」. Rework round 1 (seat L1 7170046632) pushed 3fdf3490b9 to 43133e8ce5. After ruling record 7176929521, c871272e47 merged origin/main db77cc493a, e5a7e35bff regenerated the two ui reference pages from the merged tree, and 9ed0f5e41f changed the gate. Rework round 2 (seat L1 7181615974, L2 7181629335): d47c169db75 merged origin/main da7c559990, and 3811cd10f5a moved examples/app-starter to '^19', narrowed the step-19 entry's acceptance text, and corrected a comment in check-changeset-no-major.mjs. Branch claude/issue-37229-protocol-version-19 @ 3811cd10f5a.


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ

@github-actions github-actions Bot added documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 6 package(s): @objectstack/connector-app-docusign, @objectstack/connector-app-github, @objectstack/connector-app-stripe, @objectstack/mcp, @objectstack/dogfood, @objectstack/spec, touching 8 documentable anchor(s). ⚠️ 6 changed file(s) yielded no anchor (packages/apps/connector-docusign/objectstack.config.ts, packages/apps/connector-github/objectstack.config.ts, packages/apps/connector-stripe/objectstack.config.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

⛔ 5 release-owned page(s) name something this change touched. These are read-only:

  • content/docs/releases/v12.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v13.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v14.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v18/18-0.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v18/index.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 6 changed file(s) yielded no anchor (packages/apps/connector-docusign/objectstack.config.ts, packages/apps/connector-github/objectstack.config.ts, packages/apps/connector-stripe/objectstack.config.ts, …) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 182 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json da7c559990d879de9038ccf54e294e58bbaa647f → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c7a37cdfd91515f412c403822748315939c24a79 — the merge of head 3811cd10f5ac58e39fcde695911503c06ba1e872 into base da7c559990d879de9038ccf54e294e58bbaa647f, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c7a37cdfd91515f412c403822748315939c24a79 && git checkout c7a37cdfd91515f412c403822748315939c24a79
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin da7c559990d879de9038ccf54e294e58bbaa647f 3811cd10f5ac58e39fcde695911503c06ba1e872 && git checkout -B drift-repro da7c559990d879de9038ccf54e294e58bbaa647f && git merge --no-ff 3811cd10f5ac58e39fcde695911503c06ba1e872

node scripts/docs-audit/affected-docs.mjs --json da7c559990d879de9038ccf54e294e58bbaa647f

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs da7c559990d879de9038ccf54e294e58bbaa647f → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… protocol 19

At protocol 19 the load seam refuses an engines.protocol of '^18', so the
three boot suites failed in beforeAll with ProtocolIncompatibleError. The
file's subject is the conversion window, which opens on the 18.0.0 floor:
'>=18.0.0' keeps that floor and admits 19, the same move the runtime
fixtures made for the protocol-18 bump ('>=17.1.0').

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head e05fdf6f1895c288104746e9d54416eb3cdb6b45 · 2026-11-25T17:48Z

PR #37314, PR 1 of 2 for #37229: PROTOCOL_VERSION 18 → 19, 84 handshakes to '^19', the step-19 ADR-0087 entry. Read against GitHub and the tree at this head, not against the report. The direction is right and the dev's three questions are answered as built. CI is red at this head on a test the constant move breaks. Two must-fix and two should-fix are open.

Checklist

  • Shape. Open, draft, base main, first line Fixes #37229, no closing keyword on another card. Title carries !. Author objectstack-fleet[bot], opened by relay.
  • Diff, read whole. 74 files, +206 / −95 against merge base dfdebfadd5 (8 commits). 84 engines.protocol sites in 66 files move '^18' → '^19', counted from the diff; the body's per-directory table matches. The other hunks are the constant and its docblock, step19 in registry.ts.template, the new semantic entry, two module-top imports in edited fixtures, the option-B fixture, the cli.json checklist fact, the two changesets and the i18n script.
  • Premise. chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230 merged (2026-11-25T12:51Z, 5cf9941d3f); .changeset/pre.json reads mode: pre, tag next. main added no '^18' handshake between the merge base and dbc1765a24.
  • Card's Done-when. protocol-version.test.ts 3/3 at this head; the guard output is quoted in the body and reproduced below.
  • Tier. check-governed-merges.mjs --pr 37314: not governed, 301 changed lines. record-recognisers.mjs --template on the 74 paths: the schema face, CONTRACT_REVIEW_TIER. The declared narrowing sends it to the maintainer.
  • Declarations. Body and changeset both read Clause-②: yes (narrowing) and Metadata-protocol: narrowed. Skills-docs: is present; the three skill files move in docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts #37298.

Gates

  • Check-runs at this head (all complete, read 2026-11-25T17:46Z). 78 runs: 59 success, 13 expected skip, 0 pending, 6 not green. Test Core (2/10) and its roll-up Test Core are failure: M1. Check Changeset is failure twice (two runs of this head) and red by design, next bullet. One Check Changeset and one PR-body guards run are cancelled, superseded by later runs of the same head; the later PR-body guards run is green. Lint, type check, Test UI 16/16 and the other nine Test Core shards are green.
  • Check Changeset is red by design. It refuses the edit to .changeset/37223-v19-line-opens.md, a changeset on the merge base (DELIBERATE CORRECTION). Its later steps ran and are green in the same job: check-adr-0087-registration (registered protocol-18-range-refused (new here)), This diff introduces no major bump, the LEVEL AXIS line for yes (narrowing) + narrowed, and the protocol lockstep line. The correction is confirmed in the record (record-37314.md, ②), sentence quoted before and after. A PR comment naming the gate and the reason is still owed before any landing.
  • Run here, read-only, in a throwaway worktree at this head (since removed).
    • node scripts/check-changeset-no-major.mjs --base origin/main: exit 0. ✓ Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 — the one exception, evidenced: pre mode (tag next) and a pending major for @objectstack/spec (.changeset/37223-v19-line-opens.md).
    • check:adr-0087-registration: self-test exit 0 (819 assertions), then exit 0, registered protocol-18-range-refused (new here: protocol-18-range-refused).
    • Option-B test, built dist reads PROTOCOL_VERSION = "19.0.0": Test Files 1 passed (1) · Tests 6 passed (6), lock VERDICT command-exit 0. Positive control, the five sites put back to '^18': 1 failed, 3 passed | 3 skipped, the three boot suites refused with targets protocol ^18 (engines.protocol) but this runtime is protocol 19.0.0.
    • Kept sites: metadata-core 3 files 513/513, metadata 3 files 19/19, template-consistency.test.ts 41/41, protocol-version-gap.test.ts 16/16.
  • git merge-tree against origin/main dbc1765a24: clean. The two PRs share no path.
  • K. landing-k.mjs --pr 37314: CAN'T ANSWER, exit 3: no completed run on this PR's commits has a green Test Core. Not a 0. The red run printed its affected-set base as fbb62e1cca, one first-parent commit behind origin/main dbc1765a24. Read K again on the reworked head.

The dev's open questions, as seat L1 judgments

Judgments table against the tree

git grep at this head: 180 lines hold ^18 outside CHANGELOG.md, content/docs/releases/**, docs/adr/** and the lockfile. Each was read. The table covers all but the sites in S2. Not in the table by name, and correctly left: retired specVersion: '^18.0.0' fixtures, tedious@^18.0.0, React peer ranges, 10^18, scripts/sync-template-versions.mjs comments, and the docblocks in packages/cli/src/commands/migrate/meta.ts and packages/metadata-core/src/protocol-handshake.ts; none is a handshake against the current protocol.

Changesets and docs, sentence by sentence

  • .changeset/37229-protocol-19.md: every sentence holds except the --write claim for multi-package manifests (S1).
  • .changeset/37223-v19-line-opens.md: the one rewritten sentence is true (record ②). See N3 for a neighbour.
  • content/docs/deployment/cli.mdx, content/docs/getting-started/your-first-project.mdx, content/docs/upgrading.mdx: one literal each, '^19'. True for the tree; see N4 for npm latest.

Findings

  • M1 (must-fix) — Test Core (2/10) is red at this head, and this PR causes it. packages/spec/src/shared/retired-key-removal-version.pin.test.ts fails three cases: object-grid-single-click-edit-removed, field-inline-edit-boolean-removed, view-column-state-removed. First error: "object-grid.singleClickEdit (parse): retiredAfter 18.6.0 (newest published stable 18.6.0) derives @objectstack/spec 19, but the prescription names 18 — … was removed in @objectstack/spec 18.7.0". Reproduced here at the head itself, without main merged in: Tests 3 failed | 62 passed (65), lock VERDICT command-exit 1. The same shard is green on main fbb62e1cca. The pin derives the removing release's major from PROTOCOL_MAJOR; at 19 the retirements stamped retiredAfter 18.6.0 must name the 19 line, and their prescriptions still say 18.7.0, a release the v19 line never cuts. The three entries were on the merge base, so the dev's run would have shown it; the body's test list names "the spec kernel/migrations/conversions suites", not the whole spec suite. The text lives in packages/spec/src/ui/component.zod.ts:5469, packages/spec/src/data/field.zod.ts:1674 and packages/spec/src/ui/view.zod.ts:3497 and :6392. git grep "18\.7\.0" at this head finds 14 lines in 10 files outside CHANGELOG.md: also packages/spec/src/data/seed.zod.ts:50 and :54, the generated content/docs/references/ui/{component,view}.mdx, content/docs/data-modeling/seed-data.mdx:147 and :175, docs/qa/platform-checklist/areas/platform-core.json:3260, and the pending .changeset/37042-skills-inline-edit-boolean.md (another DELIBERATE CORRECTION if it is touched). The dev measures which of these the move makes false and moves them with the constant; the fix cannot land ahead of it, because the pin holds them at 18 while PROTOCOL_MAJOR is 18.
  • M2 (must-fix) — packages/mcp/README.md changes (two snippets) and @objectstack/mcp ships README.md (files: ["dist","README.md","CHANGELOG.md"], private: false), but no changeset names the package. .changeset/37229-protocol-19.md names @objectstack/spec alone. feat(spec)!: PROTOCOL_VERSION 17 → 18 in an ordinary PR — regenerated spec-changes.json and upgrade guide, ^18 handshakes, pre-mode lockstep exception (#22085 Q1 → B) #22215 touched the same README and declared '@objectstack/mcp': patch. A published package without its changeset does not enter the queue. The other packages the diff touches change test files only, which do not ship, and ui/packages/i18n/scripts/ is outside that package's files[]. Fix: a patch entry for @objectstack/mcp; re-run check-changeset-no-major on the result.
  • S1 (should-fix) — the step-19 entry and the changeset promise more than --write does. 19.protocol-18-range-refused.ts says --write "rewrites the declared range at the key the handshake reads" and, under acceptanceCriteria, "Grep every manifest the project declares (objectstack.config.ts and each package manifest) … which rewrites each to '^19'"; the changeset says the same of "every package manifest in a multi-package app". Measured at this head on examples/app-multi-package with both package manifests put back to '^18': os migrate meta --from 18 --write wrote nothing and printed "The declared protocol range was left for you to change by hand … not written [helper]: manifest is composed by composeStacks(…) from all of its inputs, so no one literal is its source". On a single-manifest app (examples/app-todo) it does rewrite objectstack.config.ts:48 … '^18' → '^19'. Fix the three strings: --write rewrites a range that is one literal in the config, and reports a composed manifest for a hand edit in each package manifest. The entry text ships in spec-changes.json, the upgrade guide and the CLI's own advisory.
  • S2 (should-fix) — docs/qa/platform-checklist/areas/platform-core.json, item platform-core.protocol-18-handshake-and-stored-replay (active, P1): its title, a fixture, a step and the acceptance clause "^17 → 422 OS_PROTOCOL_INCOMPATIBLE with migrateCommand naming --from 17; ^18 admitted" are false once the runtime is protocol 19, and its step "boot a ^18 dist/objectstack.json built before a retirement" is now refused at the handshake. The Judgments table has no row for it, while the PR did correct the same kind of fact in cli.json. Either revise the item here, or give it a row and a filed follow-up card; the seat chooses.
  • N1 — body: "74 files, +210 / −95". GitHub and git diff --stat both read +206 / −95.
  • N2 — protocol-version.ts docblock: "every in-repo manifest that means the current protocol declares '^19' with it". The blank template and three skill files do not until the version pass and docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts #37298. It is published TSDoc; soften it in the rework push.
  • N3 — .changeset/37223-v19-line-opens.md still says "PROTOCOL_VERSION follows @objectstack/spec's major at version time". After this PR the constant is already 19 and the sync is a no-op. Loosely true; the note is being corrected anyway.
  • N4 — the three docs pages show '^19' while npm latest is 18.6.0, whose runtime refuses '^19'. Same as feat(spec)!: PROTOCOL_VERSION 17 → 18 in an ordinary PR — regenerated spec-changes.json and upgrade guide, ^18 handshakes, pre-mode lockstep exception (#22085 Q1 → B) #22215; the changeset says to move the range with the versions. Accepted, and named in the maintainer summary.
  • N5 — the option-B fixture carries no comment saying why its range is '>=18.0.0'. A later sweep to '^19' would close the window and red the file, so it is self-protecting.
  • N6 — packages/cli/test/migrate-meta-protocol-range.test.ts:46 still says "since the runtime implements protocol 18". Comment only.
  • N7 — Skills-docs: none in this PR — … would read more exactly as follow-up #37298.

Dogfood

Owed, and not yet on record. The title's ! and the (narrowing) arm both mark this PR. The newest trusted os-dev-report on #37229 is 7160769126: pr: null, dogfood_battery: "n/a — no PR". landDogfoodGate in scripts/pm/label-write.mjs fails closed on that. The dev's full battery (487 files passed, 3 skipped; 4128 tests passed, 68 skipped) ran on 9da4c1d4 plus an unpushed copy of the fixture fix, not on this head, and is recorded only in the PR body. e05fdf6f18 is a one-parent commit on 9da4c1d4, so the gate's first-parent walk over merges of the base cannot reach 9da4c1d4 either. The delta is one runtime test file outside packages/qa/dogfood, so the old run is good evidence; it is not the record the gate reads. Because M1, M2 and S1 move the head, run the full battery once on the final head and post #37229 an os-dev-report whose pr names #37314 and whose dogfood_battery opens with that head's sha.

Seat-side items (no dev work)

Verdict

REWORK, round 1: M1, M2, S1, and S2 if the seat chooses the in-PR fix. M1 widens the file surface to four *.zod.ts prescription strings and their generated docs, so the claim's file surface is amended in the same stroke. Then the full spec suite and the full dogfood battery on the final head. The contract-review record on this head is FAIL (record-37314.md, M1 and S1). No hand-off is written.

Landing

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e05fdf6f1895c288104746e9d54416eb3cdb6b45
Local-runs: probe — the seat ordered local reads in a throwaway worktree at this head: the two changeset guards, the option-B test with a '^18' control, the kept-site test files, the failing retired-key-removal-version.pin.test.ts, and os migrate meta --from 18 --write on examples/app-todo and examples/app-multi-package put back to '^18'; nothing was pushed and the worktree is removed
Scope: packages/spec/src/kernel/protocol-version.ts, packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts, packages/spec/src/migrations/registry.ts.template + packages/runtime/src/standalone-stack-option-b-forward-conversion.test.ts, packages/metadata/src/plugin-artifact-packages-attribution.test.ts, packages/spec/src/system/translation-contributed-nav-bundle.test.ts, the five example manifests under examples/, the three connector manifests under packages/apps/, the 40 packages/cli test files, the nine packages/qa files, the two packages/lint test files, docs/qa/scenarios/builds/travel_expense.json, docs/qa/platform-checklist/areas/cli.json, packages/mcp/README.md and ui/packages/i18n/scripts/released-keys-removed.mjs (the whole diff outside the prose faces, since a narrowing is declared)

① Derived judgments

  • Face. Read off the committed tree: three paths under packages/spec/src/**, the schema face. The declared (narrowing) arm widens the scope to every path outside the prose faces.
  • Clause-②: yes (narrowing) holds. At this head the handshake refuses a range that admits 18 and not 19, which 18 admitted (measured: targets protocol ^18 (engines.protocol) but this runtime is protocol 19.0.0), and admits '^19', which 18 refused. One accept set narrows and one widens; the exported PROTOCOL_VERSION value moves. feat(spec)!: PROTOCOL_VERSION 17 → 18 in an ordinary PR — regenerated spec-changes.json and upgrade guide, ^18 handshakes, pre-mode lockstep exception (#22085 Q1 → B) #22215 (4e9fe9f) declared the same arm for 17 → 18.
  • Metadata-protocol: narrowed holds. AGENTS.md grades "a value refused" as narrowed, and narrowed outranks semantic. The claim's semantic (comment 7160363498) was written before the dev measured the refusal.
  • ADR-0087 disposition. registered protocol-18-range-refused. check-adr-0087-registration at this head: [BREAKING+clause-②-narrowing+metadata-protocol-narrowed] registered protocol-18-range-refused (new here), exit 0, in CI and here. The gate refuses not-required (no-migration-prescription) on a declared narrowed, so an entry is the only route.
  • PR body and changeset agree on both lines, read through readClause2Line and readMetadataProtocolLine.

② Semver level

  • @objectstack/spec: minor is right. A kind other than none takes at least minor on a package the diff moves. major is refused in this lane and is already carried by .changeset/37223-v19-line-opens.md (chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230). CI's LEVEL AXIS line is green for this pair.
  • Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 — the one exception, evidenced: pre mode (tag next) and a pending major for @objectstack/spec. Exit 0 here and in CI.
  • @objectstack/mcp has no entry although its shipped README.md changes. That is the seat's L1 item M1; the changeset is a prose face and outside this record.
  • DELIBERATE CORRECTION, confirmed. One note, .changeset/37223-v19-line-opens.md, one sentence.
    • Before: "The first is @object-ui/i18n's retirement of the translation keys 18.6.0 shipped and no code reads any more; a second major in the same fixed group still gives one 19.0.0."
    • After: "The first change graded major is @object-ui/i18n's retirement of the translation keys 18.6.0 shipped and no code reads any more; a second major in the same fixed group still gives one 19.0.0."
    • Judgment: the old sentence followed "Each breaking change on the line says so in its own changeset", so "the first" meant the first breaking change. This PR adds a breaking change graded minor, which makes that reading false. The new wording is true: .changeset/37223-i18n-removed-released-keys.md is the retirement and is graded major; this PR's changeset is minor. No other sentence of the note is changed. Check Changeset stays red on it by design.

③ Boundary flags

  • Q1, declaration. Answered in ①: yes (narrowing) + narrowed with a registered step-19 entry.
  • Q2, the blank template. Kept at '^18', correctly. sync-template-versions.mjs stamps '^${major}' from the scaffolder's version at the version pass, and template-consistency.test.ts (41/41 here) holds it to create-objectstack's major.
  • Q3, the floor-subject sites. Kept, correctly: the metadata-core and metadata files pass unchanged at protocol 19 (513/513 and 19/19) because their '^18' is the window's floor and no handshake against PROTOCOL_VERSION runs. The option-B file moves to '>=18.0.0', correctly: floor 18.0.0 kept, 19 admitted, 6/6, and the '^18' control reds the three boot suites.
  • Author. objectstack-fleet[bot]. The head commit e05fdf6f18 re-applies the fixture fix by a seat-dispatched dev on the maintainer's word quoted in the body; it is one file, five literals.
  • Dogfood. Marked by ! and the arm; no os-dev-report on 19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229 pins a battery to this head. Owed on the final head.
  • Check-runs at this head. 59 success, 13 expected skip, 0 pending. Red: Test Core (2/10) with its roll-up (④, M1), and Check Changeset, by design (②).
  • SQL push-down. No query code in the diff.
  • Out of scope, raised to the seat. Step-18 entries registered on main after the 18.6.0 tag (30 semantic files, feat(service-knowledge)!: one splitter (whole / recursive / markdown, Chinese-aware), the chunk channel and the split key; KnowledgeChunk.metadata and knowledge.chunk_overlap retired #37287 among the PRs) are not replayed by --from 18 once step 19 exists. Not this diff's defect; a card is owed.

④ Design judgment

  • packages/spec/src/kernel/protocol-version.ts, against ruling 7153441862 item 2 and its consumers.
    • Against the handshake it holds. PROTOCOL_MAJOR derives from the constant; protocol-version.test.ts is 3/3 with the lockstep exception evidenced by pre mode and the pending major.
    • M1 (must-fix) — against its second consumer it does not. packages/spec/src/shared/retired-key-removal-version.pin.test.ts derives the release that removes a key stamped retiredAfter 18.6.0 from PROTOCOL_MAJOR. At 19 it fails three cases at this head (object-grid-single-click-edit-removed, field-inline-edit-boolean-removed, view-column-state-removed; Tests 3 failed | 62 passed (65) here, and Test Core (2/10) is failure in CI, green on main fbb62e1cca): "derives @objectstack/spec 19, but the prescription names 18 — … was removed in @objectstack/spec 18.7.0". Those prescriptions are published refusal and describe text in packages/spec/src/ui/component.zod.ts, packages/spec/src/data/field.zod.ts and packages/spec/src/ui/view.zod.ts. With this constant they name a release the v19 line never cuts, and the diff leaves them. They move with the constant, in this PR.
    • Nit — the docblock's last clause overstates repo state: the blank template and three skill files do not yet declare '^19'.
  • packages/spec/src/migrations/registry.ts.template, against its consumers (gen:migration-registry, os migrate meta). Holds. step19 has toMajor: 19, empty conversionIds, the generated marker pair semantic:19, and a 19: step19 row. CI's prepare step generated the registry from it, and the CLI at this head prints Chain: protocol 18 → 19.
  • packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts, against the code it describes.
    • surface and reason hold: resolveDeclaredRange reads engines.protocol, else engines.platform, else engine.objectstack; assertProtocolCompat runs in the app plugin, the package install and commit doors and the marketplace local install; the refusal names the range, the runtime protocol and objectstack migrate meta --from 18.
    • S1 (should-fix) — replacement and acceptanceCriteria say --from 18 --write rewrites the declared range, and "rewrites each" of "objectstack.config.ts and each package manifest". Measured at this head on examples/app-multi-package with both package manifests at '^18': nothing is written, and the CLI prints "The declared protocol range was left for you to change by hand … not written [helper]: manifest is composed by composeStacks(…) from all of its inputs, so no one literal is its source". On examples/app-todo the rewrite does happen (objectstack.config.ts:48 manifest.engines.protocol: '^18' → '^19'). The entry names the multi-package case and then prescribes a command that leaves it undone. This text ships in spec-changes.json, the upgrade guide and the CLI advisory. The changeset repeats the claim.
  • Implementing files. The moved fixtures agree with the contract: each stands for an app on the current protocol and none asserts on the range. The two module-top imports are what check:test-source-alias prescribes for an edited test. released-keys-removed.mjs (carried N3 of chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230) refuses an unknown argument with exit 2 and peels the tag with ^{commit}; it is outside @object-ui/i18n's files[].
  • The narrowing against the published spec. It makes the spec's own refusal real rather than taking a declared capability away: ADR-0087 D1 says a consumer pinned to ^N is refused, with a diagnostic, when the runtime crosses into N+1. Only installs of a 19.0.0-next.N prerelease meet it.
  • Outside the contract faces: docs/qa/platform-checklist/areas/platform-core.json still asserts "^18 admitted". It is the seat's L1 item S2 and does not weigh on this verdict.

Implemented-by: session_01QSeKYnLptCbfzwtkTrDG3j
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: FAIL

…tated, mcp gets its changeset

With PROTOCOL_VERSION at 19 the release-name pin derives @objectstack/spec 19
for every retirement stamped after 18.6.0, so the three joined prescriptions
(object-grid singleClickEdit, field inlineEdit boolean, view columnState) and
the two seed-mode prescriptions, none of them in the published 18.6.0, name
19.0.0 instead of 18.7.0, a release the v19 line never cuts. Their text pins,
the seed-data guide, the seed-mode checklist item and the pending skills
changeset follow.

The step-19 entry and the changeset say what `os migrate meta --from 18
--write` does: it rewrites a root defineStack manifest's range and lists a
composeStacks-composed one for a hand edit in each package manifest.

The protocol checklist item is revised to the protocol-19 truth, the
changeset names @objectstack/mcp (its README ships), and four comment nits.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
The one-word comment edit pulled the file under check:test-source-alias's
edited-file half, which then owes thirteen module-top imports unrelated to
this change. The sentence reads true at protocol 19 as written.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
…llow the protocol move

The metadata-protocol seed refusal pin reads the 19.0.0 prescription the
seed modes now carry. The travel_expense build's provenance records the
sha256 of the build as it now stands, with an amended entry naming the one
edit (engines.protocol '^18' to '^19') and the sha256 it replaced.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 204356a Nov 26, 2026
77 of 80 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37229-protocol-version-19 branch November 26, 2026 06:03
This was referenced Nov 26, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…d; run --template warns on a stale cardSha256 (objectstack-ai#37339)

Fixes objectstack-ai#36491
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户无感:只影响内部场景评测工具,差旅报销的已验证构建记录改成指向现在这张卡,评测跑在不匹配的记录上时会先提示一句。
- 属于场景卡评测的固定样本维护,替每日问数评测解决"记录指向旧卡"的问题。
- 出错时只是多一行或少一行提示,评测照常打分;改动可直接撤回。
- 无

## What changes

- `docs/qa/scenarios/builds/travel_expense.provenance.json`:
`cardSha256` `29162eef…` ->
`212abedb6b59a5ac0c6921c25bdcc4dc057cbc25e866a9cd2ed962920368a00d`, the
sha256 of the raw bytes of `docs/qa/scenarios/travel_expense.json` on
`dbc1765a24`. That is the hash the loader computes (`loader.ts`
`fileSha256`, `createHash('sha256').update(bytes)`) and every run record
stamps (`CardStamp`); there is no canonical form. The issue body names
`a8a67be3…`; the card moved again since (objectstack-ai#36503 to `68eb89a9…`, objectstack-ai#36617
to `212abedb…`).
- `packages/qa/scenarios/src/runner/cli.ts`:
`templateProvenanceWarning(path, card)` reads `F.provenance.json` beside
the `--template F` file; when it names the same card with another
`cardSha256` (or none, or is not JSON), `run` prints a `warning:
template provenance:` line before the card runs. It never refuses; a
missing provenance or one for another card says nothing. It lives in the
CLI entry, not the `./runner` export, so the published import surface is
unchanged.
- `packages/qa/scenarios/README.md`: one sentence under "Template and
ask modes".
- Changeset: `@objectstack/scenarios` patch.

## Acceptance notes

- **Provenance honesty.** The build was authored from card `9d0c7dad…`
(the card when objectstack-ai#35222 committed it). Practice since objectstack-ai#35764 and objectstack-ai#36065
has been to refresh `cardSha256` on a card edit with the build
untouched, so the field reads as "the card this fixture is current
against", while objectstack-ai#36617's body reads it as "the card at build time". This
PR follows the practice. Measured to back it: between `9d0c7dad…` and
`212abedb…` only the card's `prompt` and `run` keys differ; `expect` and
`iterate` are byte-identical (top-level `JSON.stringify` compare). A
scratch `scoreGraph(artifactToEvalGraph(build), expect)` re-score gives
61/61 on both the `29162eef…` card and the current one. So the
`verified` scores still hold for the current card, but `built`/`author`
describe a run made against an older prompt (the step-two routing prose
from objectstack-ai#35098 and the record-triggered flow prose from objectstack-ai#36617 are not in
it). The provenance still does not record that, and this PR does not add
a field for it.
- **Other provenances.** `builds/` holds one provenance, so there are no
others to refresh.
- **Not in this PR: a fixture pin.** I wrote a test that reads
`docs/qa/scenarios/builds/` and holds each `cardSha256` equal to its
card. That turns the next stale card edit into a red CI run, not only a
run-time warning. `check:cross-package-test-inputs` refused it because
the radius is undeclared, and declaring it means editing
`scripts/cross-package-test-inputs.mjs` and the root `turbo.json`, both
outside this card's file surface. I left it out.
- **Open PR objectstack-ai#37314** changes
`docs/qa/scenarios/builds/travel_expense.json` (`protocol ^18 -> ^19`)
without touching the provenance. Once it lands, the provenance's
`sha256` (`4ab7e603…`) no longer matches the build file, and no
`amended` entry records the change. That PR does not overlap these
files.

## Verification

First read (by risk):
1. `packages/qa/scenarios/src/runner/cli.ts`,
`templateProvenanceWarning`: when it stays silent and when it warns.
2. `docs/qa/scenarios/builds/travel_expense.provenance.json`: the
one-line hash change.

Two-minute check: `sha256sum docs/qa/scenarios/travel_expense.json`
prints `212abedb6b59a5ac…`, the same value the provenance now holds.

<details><summary>Tests and gates (head 0d4f42e)</summary>

- `os-verify-lock.sh -c "pnpm --filter @objectstack/scenarios build && …
typecheck && … test"` on `af13a9a6a5` (the test/src tree of the final
head): VERDICT command-exit 0; Test Files 43 passed (43), Tests 1342
passed (1342).
- Ablation (committed first, restored with `git checkout HEAD --`, `git
diff HEAD` empty, blob hash matched): `scripts/ablation-replace.mjs`
replaced `if (provenance.cardSha256 === card.sha256) return undefined;`
with `return undefined;` (anchor 1 -> 0).
`test/runner/template-provenance.test.ts` then went 2 failed / 4 passed,
the two warning cases red.
- `node scripts/pm/dispatch-gates.mjs --commands` on `af13a9a6a5`: 65
commands, all run; `--ran` reconciliation: 65 derived, 65 run, 0 UNRUN.
Non-zero: `check:dual-build-cjs-loads` exit 3 PREREQUISITE NOT MET
(needs a whole-workspace build, so NOT MEASURED locally; CI runs it).
`check:dts-closure` exit 1 in the batch because `plugin-audit` dist was
half-built in this shared tree; after `pnpm --filter
@objectstack/plugin-audit build` it exits 0. On `0d4f42ec49` (changeset
declaration lines only) the changeset family ran again:
`check-changeset-no-major`, `check-empty-changeset`,
`check-adr-0087-registration`, `check:changeset-gate-self-tests` and
`check:nul-bytes` all exit 0.
- `scripts/pm/overlap-check.mjs`: VERDICT clean exit 0. objectstack-ai#37314's file
list does not intersect this diff.
</details>

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… its REST twin) (objectstack-ai#37378)

<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wg8ZBQe4UHadd2fGHGeWRW9V)_

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Fixes objectstack-ai#35868

Clause-②: no
Metadata-protocol: none

## 维护者速读

-
用户能看到什么变化:运维与租户管理员在文档站能读到「把已存的自由文本单位换成单位代码」的命令与接口说明,并新增一页「计量单位」;功能本身不变。
- 为什么做:单位保存被拒时提示里点名的修复命令,文档此前只字未提;属于计量单位(单位代码)这条线的文档补齐。
- 出错会怎样:只影响文档与一段配置项说明文字,写错只会误导读者,可随时撤回。
- 要你做什么:无。

## What changes

- `content/docs/deployment/cli.mdx`: a row for `os migrate unit-codes`
in the `os migrate` table, and a new `os migrate unit-codes` section
beside `os migrate record-currency-codes` — dry-run (no mapping, then
with mapping) and apply examples, the mapping file shape with the `""`
entry for a blank unit beside a quantity, the `--org` /
`--all-organizations` scope rule, what is never rewritten, and the REST
twin `POST /api/v1/meta/_migrate-unit-codes` (body, preview posture,
403s, the maintenance switch). Every claim measured against
`packages/cli/src/commands/migrate/unit-codes.ts`,
`packages/objectql/src/unit-code-backfill.ts` and
`packages/rest/src/meta-unit-code-backfill-route.ts` at 98bda0a.
- `content/docs/data-modeling/units.mdx` (new, listed in `meta.json`
after `currency` and in the section's landing index): the three
`unitConfig` modes, and "Converting a field that already holds rows" —
the two 409 findings, the dry run, the mapping, `--apply` — linking the
CLI section. Overlap check (A3): no data-modeling page explained units
or `unitConfig` (`field-types.mdx`, `fields.mdx`,
`field-type-decision-tree.mdx`: zero `unitConfig` hits), so a new page
beside `currency.mdx`.
- `packages/spec/src/api/rest-server.zod.ts`: the
`metadata.endpoints.maintenance` describe names `POST
/meta/_migrate-unit-codes` beside the currency door (the route already
registers behind that switch, and `rest-config-mount-table.pin.test.ts`
already pins it). `content/docs/references/api/rest-server.mdx`
regenerated by `check:generated --fix` (only `check:docs` was stale).
Patch changeset for `@objectstack/spec`.

## Acceptance notes

- The card names the findings `unit_mode_to_record` and
`unit_mode_to_code`; main raises `unit_mode_to_record` and
`unit_code_field_declared`
(`packages/metadata-protocol/src/protocol-write-face.ts`). The docs
follow the code.
- No SDK method exists for the unit door (no `migrateUnitCodes` in
`packages/client/src`), so unlike the currency section there is no SDK
example.
- **Open fence item:** adding the page makes `pnpm
check:docs-audit-scope` red: `scripts/docs-audit/handwritten-docs.json`
must list `content/docs/data-modeling/units.mdx` (one generated line,
`node scripts/docs-audit/check-audit-scope.mjs --write`). That path is
outside the claim's file surface, so it is not in this PR; it waits for
the seat's word.

## Tests

<details><summary>Local runs at 9ec53fc</summary>

- `pnpm --filter @objectstack/spec build` → VERDICT command-exit 0
- `pnpm --filter @objectstack/spec check:generated` → 1 of 14 stale
(`check:docs`), fixed with `--fix`, rest-server.mdx 1 line
- `pnpm --filter @objectstack/spec typecheck` + `vitest run
src/api/rest-server.test.ts` → Test Files 1 passed, Tests 53 passed
- `dispatch-gates --commands` derived 104 families; all run; `--ran`
reconciliation 104/104. Red: `check:docs-audit-scope` (the fence item
above). Not measured locally (exit 3, prerequisite: whole-workspace
build): `check:dual-build-cjs-loads`, `check:lean-entry-closure`,
`check:skill-examples`, `check-plugin-teardown-shape --self-test`
(shallow clone) — CI runs them. After building the lint closure:
`check:doc-formula-expressions`, `check:doc-security-posture`,
`check:docs-transcript-drift` exit 0.
- `overlap-check --branch=HEAD` → clean against origin/main and objectstack-ai#37314.

</details>

## Verification

Read first: `content/docs/deployment/cli.mdx` (the new section; risk: a
claim that drifts from the command),
`content/docs/data-modeling/units.mdx`.
Two-minute check: `git grep -n "_migrate-unit-codes" --
packages/spec/src/api/rest-server.zod.ts content/docs` shows the
describe, its reference row, the CLI section and the units page.

---

_Generated by [Claude
Code](https://claude.ai/code/session_01Utp6CbdHk3orAeensH6EzS)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CbdHk3orAeensH6EzS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…'^19', the major the 19.x boot handshake accepts (objectstack-ai#37298)

<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgFiXLbrG7d8JVydkmtSf4Bt)_

Fixes objectstack-ai#37460

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 客户项目里的 AI 助手照着技能包写应用配置时,声明的协议大版本从 18 变成 19;技能包的考题也同步改成 19。
- 属于「19.0.0 大版本」这条线:运行时的协议版本升到 19 之后,技能包要教同一个数,否则照抄的配置启动就被拒。
- 若它早于协议升 19 的那个改动上线,照着技能写的新项目会在 18 版运行时上启动被拒;纯文字改动,可以直接撤回。
- 要你做一件事:「进入预发布阶段」和「协议升到 19」两个改动都已合入,请审批这个受管的技能包改动。

## What changes

PR 2 of 2 for the card (seat direction: option A on the shape of the v18
move). This is the `skills/**` half, split off because `skills/**` is a
governed surface. The sibling PR 1 moves `PROTOCOL_VERSION` to `19.0.0`
and every other tracked `'^18'` on branch
`claude/issue-37229-protocol-version-19` (PR objectstack-ai#37314). PR 1 and objectstack-ai#37230
(pre mode plus the pending `@objectstack/spec` major) are both on
`main`, so the landing order this PR waited on is met. It stays draft
because `skills/**` is Tier H.

Four lines in three files, each rewritten in place at equal byte length:

- `skills/objectstack-platform/SKILL.md` L111: the `defineStack`
manifest example declares `engines: { protocol: '^19' }` (was `'^18'`).
- `skills/objectstack-platform/evals/config-plugins-ops.json` L6 and L7:
eval 1's prompt asks for `protocol 19` and its expected output is
`'^19'`, so the eval stays consistent with the skill it scores.
- `skills/objectstack-upgrade/SKILL.md` L89: the sentence that says what
every scaffold and example writes now says `'^19'`.
- `.changeset/37229-skills-protocol-19.md`: `@objectstack/skills` patch.

`git grep -n "protocol: '\^18'" -- skills/` at head `3536f9ac1c` matches
nothing.

**Rework round (head `3536f9ac1c`).** Two commits on top of `c9ad209e`:
a merge of `origin/main` `a46efa8c62` (clean, no conflict, no generated
artifact deferred) and one sentence in the changeset. The changeset's
last sentence used to end "no conversion is registered at step 19, so
the chain an author replays still ends at 18"; with PR 1 on `main` the
chain ends at 19. It now ends: "step 19 carries no conversion and one
semantic entry (`protocol-18-range-refused`)." The entry id was read on
`origin/main` `a46efa8c62` at
`packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts`,
the only `19.*` file under `entries/`. The changeset file is new in this
PR, so this is not an edit to a landed note. The PR's own hunks in the
three skill files are unchanged from `c9ad209e`. The eval file and the
upgrade skill keep the same blobs.
`skills/objectstack-platform/SKILL.md` changed blob only by main's
merged hunks (objectstack-ai#37409, objectstack-ai#37303).

**Declarations, judged from content.** The diff is skill prose and one
eval fixture. It changes nothing a metadata author can write and nothing
the runtime accepts or refuses; the refusal of `'^18'` is PR 1's. So
`Clause-②: no` and `Metadata-protocol: none`, the same pair the v18
skills move (objectstack-ai#25688) declared, and the changeset is `patch`. No
`Skills-docs:` line is owed for a `none` kind.

## Published-skills readings

Lines, and tokens as ceil(UTF-8 bytes / 4); `origin/main` `a46efa8c62`
to head `3536f9ac1c`.

| File | Before | After |
|---|---|---|
| `skills/objectstack-platform/SKILL.md` | 422 lines · 6154 tokens | 422
· 6154 |
| `skills/objectstack-platform/evals/config-plugins-ops.json` | 399 ·
6067 | 399 · 6067 |
| `skills/objectstack-upgrade/SKILL.md` | 481 · 6175 | 481 · 6175 |
| Whole bundle (sum of every `skills/*/SKILL.md`) | 4961 · 65472 | 4961
· 65472 |

Net for `skills/**`: 0 lines added, 0 removed.
`check-skills-token-ratchet` at head: `61 authored bundle file(s) within
their ceilings; 11 generator-owned file(s) and 42 eval fixture(s)
measured, not ratcheted.`

## Tests

No workspace package source is touched, so no package test is owed. The
marked `defineStack` example in `objectstack-platform/SKILL.md` is
type-checked by `check:skill-examples`: `350 prose examples type-check
across 3 surface(s)`, exit 0, after a full core build (121 of 121 turbo
tasks, lock `VERDICT command-exit 0`).

## Acceptance notes

- **No 18 → 19 step is added to `objectstack-upgrade`.** The skill does
not walk the majors one by one; it teaches one procedure (`os migrate
meta --from N`, then the residue). On `main` `a46efa8c62` step 19
carries no conversion and one semantic entry
(`protocol-18-range-refused`), whose own replacement text names `migrate
meta --from 18`, the procedure the skill already teaches, so no step-19
text is added.
- **Left unchanged on purpose in `objectstack-upgrade/SKILL.md`:**
- L74, `os migrate meta --from 16 --to 18 --json`. It names the last
ported hop, not the current major. The chain now has steps for 17, 18
and 19. Step 19 carries no conversion, so the `--to 18` replay gives the
same result as the default terminus 19 today. The skill's own eval pins
the same replay form.
- L91, the `'^17'` to `--from 17` worked example (it shows taking the
floor of a range).
- L122 ("not in the 18 catalog") and L178 to L183 ("18.3 drops", "on
18.2 or earlier"): statements about 18.x releases, still true.
- **Frontmatter is the version pass's.** `compatibility: Requires
@objectstack/spec 18.x` and `metadata.version: "18.6.0"` in the skill
frontmatter are stamped at release; `check:skill-compatibility` exits 0
at this head.
- **Order risk, now past.** Before PR 1 the skill would have taught
`'^19'` to an 18 runtime. PR 1 is on `main`.
- Noted, not filed (carrier: none): nothing cross-checks a `protocol:`
literal in skill prose against `PROTOCOL_VERSION`; the v18 skills move
noted the same.

## Verification

Two-minute check: `git diff origin/main...HEAD --stat -- skills/` shows
3 files, 4 insertions, 4 deletions; `node
scripts/check-skills-token-ratchet.mjs` exits 0.

Read first (by risk):
1. `skills/objectstack-platform/evals/config-plugins-ops.json` L6 and
L7: prompt and expected output must move together.
2. `skills/objectstack-platform/SKILL.md` L111: the block is
type-checked.
3. `skills/objectstack-upgrade/SKILL.md` L89, and L74 and L91 beside it,
which stay.

<details><summary>Local gates at 3536f9a (rework head): 50 derived
families, 47 exit 0, 3 NOT MEASURED</summary>

`node scripts/pm/dispatch-gates.mjs --ran` at `3536f9ac1c`: `50 derived
famil(ies) accounted for — 47 run, 3 NOT-MEASURED (3 DERIVED from a
recorded exit 3)`. The three answered `PREREQUISITE NOT MET` (exit 3)
because only `@objectstack/spec` was built in this worktree:
`check:doc-formula-expressions`, `check:dual-build-cjs-loads`,
`check:lean-entry-closure`. This narrowing is declared; CI's `Lint &
Repo Gates` runs them and is `success` at this head. Also run, exit 0:
`check:skill-refs` (`10 generated files in sync with packages/spec`),
`check:skill-served-sections` (`24 served section(s), each heading
exactly once in its file`), `check-skills-token-ratchet` (`61 authored
bundle file(s) within their ceilings`), `check-nul-bytes` (OK).
`check:skill-examples` was not re-run at this head (it needs the full
core build); the PR's own hunks are unchanged from the head it passed
on, and CI's `Lint & Repo Gates` runs it at this head.

</details>

<details><summary>Earlier round, local gates at c9ad209 (main with
objectstack-ai#37230 merged in): 56 commands, all exit 0 (50 of 50 derived families
run)</summary>

`node scripts/pm/dispatch-gates.mjs --commands` derived 50 families for
this diff; `--ran`: `50 derived famil(ies) accounted for — 50 run, 0
NOT-MEASURED`. Exit codes were captured before any pipe. All exit 0,
among them `check-adr-0087-registration`, `check-changeset-no-major`,
`check-empty-changeset`, `check-skills-token-ratchet`,
`check:skill-docs`, `check:skill-examples`, `check:skill-refs`,
`check:skill-served-sections`, `check:skill-compatibility`,
`check:skill-frame-freshness`, `check:skill-frame-sync`,
`check:skill-identifier-liveness`, `check:skill-links`,
`check:skill-top-level-keys`, `check:pm-governed-merges`,
`check:test-source-alias`, `overlap-check` (`VERDICT clean exit 0`, also
clean with objectstack-ai#35129). `check:skill-examples` first answered exit 3
(PREREQUISITE NOT MET: `packages/client-react/dist` unbuilt in a fresh
worktree) and exit 0 after the full build.

</details>

## Provenance

Opened by seat repo:objectstack#4 on the maintainer's authorization in
the seat session (「objectstack-ai#37229 的两个 PR 开 PR 时被拦了:放行」). The dev session
(`session_01QSeKYnFjnB9bU95RVja6w5`, zone a4-S)'s own relay `pr_create`
and report comment were refused by its permission check and not retried;
it sent the prepared body and its os-dev report to the seat. The gate
list above is condensed from the dev's full list (all 56 exit 0). Branch
`claude/issue-37229-skills-protocol-19` @ `c9ad209e` at that point.

The card moved from objectstack-ai#37229 (closed when PR 1 merged) to its follow-up
card, and seat repo:objectstack#5 (zone o5-A) took the PR over on the
claim there. The rework round was done by a dev subagent of
`session_01Utp6CZmwqAVSYHM1nQUDTq`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01Utp6CZmwqAVSYHM1nQUDTq)_

<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CYtTDvfPQDzMbZnN5X -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…Fields is the one every-field bit (objectstack-ai#37371)

<!-- claude-projects-attribution: {"github_login":"os-alice"} -->
_Requested by **Alice** · [project
thread](https://claude.ai/code/project/chan_01NoziMoftaSPmzgKNjJGePH?thread=cmsg_01NoziMoftaSPmzgKNjJGePHV51tYVEf6EoB92QzbNcTG5)_

Fixes objectstack-ai#36055

Draft. objectstack-ai#37314 has merged (protocol 19, `step19`); this branch merged
main and carries both halves: the 19 field-axis switch and the ADR-0087
conversion with ruling A's exclusions.

## Maintainer quick read

- From 19.0.0, View All (`viewAllRecords`) and Modify All
(`modifyAllRecords`) widen records only. They cast no field vote.
`viewAllFields` is the only "every field" channel: read only, never
edit, and a set's own `readable: false` row beats it.
- Error direction: an unconverted set sees fewer fields, never more. No
hidden field opens.
- Stored permission sets (Studio-saved) are read with the 19 meaning,
never rewritten (ruling A, comment 7177446075). Source sets get
`viewAllFields: true` from `os migrate meta --from 18 --write`. Studio
has no `viewAllFields` control today, so a stored set is fixed by adding
`viewAllFields: true` through the metadata API; a review list of
affected stored sets is follow-up objectstack-ai#37375.
- Beyond the card's premise: Modify All's cross-set EDIT re-open is lost
too, because `viewAllFields` votes read only. That includes the built-in
admin beside an app set's edit lock (it still reads every field). This
is the ruled field-axis split (ruling 6912661484); the D3 entry names
it.
- Beside Modify All, a set's own field rows now bind on both halves: its
own `readable: false` row hides that field from its holders even with
`viewAllFields: true`, and its own field row without `editable: true` no
longer edits it. The D3 entry's one-step check and the changeset state
both, with the fix for each (delete the own hide row; write `editable:
true` on the row).

## What changes

- `@objectstack/core`: `superuserFieldVote` is replaced by
`viewAllFieldsReadVote(sets, object, field)`.
`buildEffectiveFieldPermissions` asks it. `holdsSuperuserBypass` is
unchanged and answers the record bypass only.
- `@objectstack/plugin-security`: `getFieldPermissions` asks the same
vote. Explain drops the "superseded by the Modify All Data field vote"
branch (and `ConditionedFieldEntry.supersededBy`): a row-conditioned
lock binds per row for every caller.
- `@objectstack/lint`: `security-superuser-field-mask-inert` is retired
(constant, catalog text, explanation, export).
`security-cross-set-field-reopen` reports only a hidden field another
set's `viewAllFields` re-opens, in all 11 locales. The
controlled-by-parent master-reference rule and the roll-up
source-visibility rules no longer skip a mask beside Modify All.
- `@objectstack/scenarios`: persona-grant scoring no longer treats
Modify All as overriding a field lock.
- `@objectstack/spec`:
- `viewAllRecords` / `modifyAllRecords` / `viewAllFields` descriptions
state the new meaning (generated reference docs regenerated). The
liveness ledger anchors `viewAllFields` at `#viewAllFieldsReadVote`.
- New ADR-0087 D2 conversion
`permission-view-all-fields-beside-record-bypass`
(`packages/spec/src/conversions/entries/19/`): writes `viewAllFields:
true` on every `objects` entry, `'*'` included, that has
`viewAllRecords: true` or `modifyAllRecords: true` and no
`viewAllFields` (an authored `viewAllFields: false` is left alone). A
default flip: `retiredFromLoadPath: true`, `retiredAfter: '18.6.0'`,
fixture with 3 notices. Registered in a new `MAJOR_19_CONVERSIONS` (the
sorted `{ conversion, order }` shape of major 18) as
`CONVERSIONS_BY_MAJOR[19]`; `step19.conversionIds` derives from it.
- New D3 semantic entry
`permission-view-all-modify-all-cast-no-field-vote`
(`packages/spec/src/migrations/entries/semantic/`): every behaviour
change, ruling A's one-step operator check with both own-row cases
beside Modify All (an own `readable: false` row keeps hiding its field
after the bit is added; an own field row without `editable: true` loses
the edit), the source and stored paths, and the error direction. It says
where the conversion replays: the authoring funnel skips it (retired
from the load path), and the artifact door and the stored-row seam
refuse it by id. It judges the conversion's edits (`conversionIds`).
- `ADMIN_FULL_ACCESS_CAPABILITIES` (`identity/eval-user.zod.ts`): the
comment on its `'*'` `viewAllFields: true` states the 19 meaning (the
bit, not the record bits, keeps the platform administrator reading every
field; it votes read, never edit). Comment only.
- Ruling A, stored rows: `applyConversionsToStoredItem` refuses the id
by name (module-local `STORED_ROWS_NOT_REWRITTEN`, merged into any
caller's `excludeConversionIds`), so the database loader, the ObjectQL
stored-row read, the metadata-protocol read and `os migrate meta
--stored` never rewrite a stored set.
- `@objectstack/metadata-core`: the artifact-ingestion door refuses the
id (`DEFAULT_FLIPS_NOT_REPLAYED_HERE`, docblock extended with its
reason).
- Showcase: `showcase_auditor` (four View All entries) and ops'
`showcase_announcement` Modify All entry carry `viewAllFields: true`,
migrated by hand; the access-matrix snapshot records the five grants
(the build's ADR-0090 D6 drift check named them).
- Docs: field-level-security, authorization, permissions-matrix and the
showcase security tour describe the 19 meaning.
- Changeset: names the conversion id (ADR-0087 marker), the one-step
check with both own-row cases beside Modify All, the stored-set reading
and the D3 entry; `@objectstack/metadata-core` added as `minor`.

## Where the 19 upgrade guidance lives

- D3 entry:
`packages/spec/src/migrations/entries/semantic/19.permission-view-all-modify-all-cast-no-field-vote.ts`.
- Generated guide: `pnpm --filter @objectstack/spec gen:upgrade-guide`
writes `content/docs/protocol-upgrade/19.md` (gitignored, built by the
docs site, served at `/docs/protocol-upgrade/19`): the conversion row
and the D3 entry, both saying stored sets are read with the 19 meaning
and the fix is `viewAllFields: true`.
- Changeset: `.changeset/36055-view-all-stops-voting-on-fields.md`
(ships as `CHANGELOG.md`).

## Why

Card objectstack-ai#36055, step 3 of the field-axis split (objectstack-ai#34365, ruling of record
6912661484): View All / Modify All widen records, `viewAllFields` reads
fields.

## Tests

-
`packages/spec/src/conversions/entries/19/permission-view-all-fields-beside-record-bypass.test.ts`
(10 tests): registration and step-19 wiring, the three rewrite sites and
their notices, entries left alone, field rows untouched, idempotence,
the authoring funnel never replays it, the stored seam refuses it for
both row spellings and a caller cannot opt back in, a firing control,
and other retired entries still replay over a stored permission row.
- `packages/metadata-core/src/artifact-forward-conversion.test.ts`: a
new block, six tests: refused inside the floor window, after the strict
parse, inside the per-entry window and the major-step half; a shut
window; a firing control.
- `packages/spec/src/shared/retired-key-removal-version.pin.test.ts`: a
`semantic` row kind joins a default flip to the D3 entry an author meets
(a default flip has no tombstone or refusal); it reads the entry's
`reason` and `acceptanceCriteria`, which name protocol 19 and `--from
18`.

## Acceptance notes

- Acceptance measurement (one-shot script, not committed): pre-PR
sources under the v18 merge vs the same sources converted, under the v19
merge, every single set and every pair. Built-in default sets alone: 9
sets, 45 combinations, 507 field cells, 0 conversion notices (their
`'*'` entries already carry the bit), read 507/507 and edit 507/507
identical. Showcase + default sets: 18 sets, 171 combinations, 1314
cells, 5 conversion notices; read 1314/1314 identical; edit 1302/1314,
the 12 differences all ruled (`admin_full_access` / `organization_admin`
beside `showcase_contributor` / `showcase_client_liaison` no longer edit
`showcase_project.budget` / `spent` / `budget_remaining`, which those
sets lock). CRM + default sets: 11 sets, 66 combinations, 663 cells, all
identical. No cell opened a field or an edit. The conversion of the
pre-PR showcase source equals the branch's hand migration on all 9 sets.
Control: an unconverted View All set beside a set hiding a field reads
it under v18 (`readable: true`) and not under v19 (`readable: false`).
- Other seams checked: the flow-only exclusions
(`CONVERSIONS_NOT_REPLAYED_AT_REHYDRATION`,
`FLOW_FALLBACK_VERDICT_NOT_REPLAYED`) never see a permission set; every
stored-row caller (database loader, ObjectQL, metadata-protocol, `os
migrate meta --stored`, translation and datasource rows) goes through
`applyConversionsToStoredItem`; the only other `includeRetired` caller
is the artifact door. No seam outside the two edited ones replays this
id.
- Mechanical consequences outside the card's listed surface, all test or
fixture data: the major-18 fixture
`permission-modify-all-allow-delete-false-to-true` carries
`viewAllFields: true` beside its Modify All entries so the fixture table
stays disjoint; `scripts/conversions-major18-merge.test.ts` reads major
18's slice of `ALL_CONVERSIONS` instead of its tail; the retired-key pin
row above; the showcase access-matrix snapshot.
- Ablation (one-shot): removing the id from `STORED_ROWS_NOT_REWRITTEN`
turns 3 stored-seam tests red; removing it from
`DEFAULT_FLIPS_NOT_REPLAYED_HERE` turns 4 door tests red; both restored
byte-identical to `HEAD` (blob hashes matched, `git diff HEAD` empty).
The first stored-seam attempt was refused by the replacement tool (its
marker already occurred in the file) and changed nothing; it was rerun
with a distinct marker.
- The major-step leg of the door block expects `authored-current` while
the permission flip is step 19's only retired entry: the refusal leaves
nothing for that half to open.

## Verification

Head 71a5990 is a text-only round on bad558d (the Contract review's
S1, N1 and N2: the D3 entry, the changeset and one code comment).
Nothing that runs changed, so the readings at bad558d below stand; this
round's local runs are in the first block.

<details><summary>Fix round at 71a5990</summary>

- `@objectstack/spec` build (lock VERDICT command-exit 0), then
`check:generated --fix`: exit 0, all 14 generated artifacts up to date,
nothing rewritten.
- `gen:upgrade-guide` exit 0 (`content/docs/protocol-upgrade/19.md`
carries the new criteria; gitignored), `gen:spec-changes` exit 0
(gitignored); no tracked file changed.
- `@objectstack/spec` `vitest run src/migrations/
scripts/upgrade-guide-docs.test.ts
scripts/upgrade-guide-surface-span.test.ts
src/shared/retired-key-removal-version.pin.test.ts
src/identity/platform-admin-capabilities.test.ts`: 9 files / 305 tests
green (lock VERDICT command-exit 0).
- Gates for the three touched files, exit 0:
`check-adr-0087-registration --base origin/main`,
`check-changeset-no-major`, `check-empty-changeset`,
`check-closing-keyword-parity`, `check-issue-citations`,
`check-drift-comment`, `check:changeset-fixed`, `check:doc-authoring`,
`check:keyed-text-bounds`, `check:closed-ceremony-text`,
`check:corpus-claim-drift`, `check:role-word`, `check:nul-bytes`,
`check:spec-docblock-symbol-anchors`, `check:adr-anchors`,
`check:issue-citations`, `check:upgrade-guide`, `check:spec-changes`,
`check:liveness`. Exit 1, expected and unchanged:
`check:adr-symbol-anchors`, the one ADR-0066:146 finding below. The
other derived families were not rerun this round (declared narrowing);
CI runs the full set.

</details>

Local on bad558d (the affected tests, the derived gate families and the
dogfood battery; the rest is cited from CI on the same head):

<details><summary>Tests</summary>

- `@objectstack/spec` `vitest run --project local`: 901 files, 28514
passed and 1 failed before the retired-key pin row
(`permission-view-all-fields-beside-record-bypass` unjoined); after the
row, `src/conversions`, `src/migrations` and the pin: 29 files / 1072
tests green; `scripts/conversions-major18-merge.test.ts` green.
- `@objectstack/metadata-core` `test`: 27 files / 1070 tests green.
- `@objectstack/cli` `vitest run --project unit migrate`: 44 files / 449
tests green (the integration tier is CI's).
- After the merge with main: `@objectstack/core` `src/security` 75 files
/ 1493 tests green; `@objectstack/lint` 236 files / 9658 tests green.
`@objectstack/plugin-security` and `@objectstack/scenarios` are cited
from CI (`Test Core` success).
- `typecheck`: `@objectstack/spec` and `@objectstack/metadata-core`
green.
- Ablation: stored seam 3 red, artifact door 4 red, each restored
byte-identical (see Acceptance notes).
- Dogfood battery (`pnpm --filter @objectstack/dogfood test`, lock
VERDICT command-exit 0): 488 passed and 3 skipped of 491 files; 4137
passed and 68 skipped of 4205 tests.

</details>

<details><summary>Gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands`: 132 families derived
at bad558d; `--ran` reconciliation: 132 accounted, 128 run, 4 NOT
MEASURED, 0 unrun.
- 127 exit 0, among them `check-adr-0087-registration` (green now that
the id is registered), `@objectstack/spec check:generated`,
`check:spec-changes`, `check:upgrade-guide`, `check:api-surface`,
`check:authorable-surface`, `check:docs`, `check:liveness`,
`check:type-check-debt`, `check:nul-bytes`, `check:platform-checklist`,
`check:doc-security-posture`.
- Red, outside this surface (exit 1): `check:adr-symbol-anchors` on
`docs/adr/0066-unified-authorization-model.md:146`, which anchors
`effective-object-permissions.ts#superuserFieldVote`. `docs/adr/**` is
out of this PR's surface; the anchor re-points to
`#viewAllFieldsReadVote` in the ADR PR of weekly card objectstack-ai#37245, which
merges before this PR leaves draft.
- NOT MEASURED (exit 3, prerequisite refused):
`check-plugin-teardown-shape --self-test` (shallow clone),
`check:skill-examples`, `check:dual-build-cjs-loads`,
`check:published-readme-exports` (packages outside this diff not built
here). CI runs them.
- `pnpm --filter @objectstack/spec gen:upgrade-guide` writes
`content/docs/protocol-upgrade/19.md` with the conversion row and the D3
entry.
- CI at bad558d: 58 success, 10 skipped, 2 failure: `Lint & Repo Gates`
and `Lint · docs & code guards`, whose log names the one
`check-adr-symbol-anchors` finding above and nothing else. `TypeScript
Type Check`, `Test Core`, `Build Core` success.

</details>

Clause-②: yes (narrowing)
Metadata-protocol: semantic

Skills-docs: follow-up objectstack-ai#37374

## ADR-0066 D2 ⑧ end-state note (text for the weekly ADR card objectstack-ai#37245)

> **Note (19.0.0): View All and Modify All cast no field vote (objectstack-ai#36055,
step 3 of the field-axis split objectstack-ai#34365, ruling of record 6912661484).** A
set's `viewAllRecords` or `modifyAllRecords` on an object widens which
records it reaches and casts no vote in either field merge. The one
object-wide field vote is `viewAllFields`: `readable: true` on every
field of the object, never `editable: true`, and a set's own explicit
`readable: false` row on a field beats its own bit (the note of
2026-11-15, now carried by `viewAllFields` alone). Both merges ask one
function,
`packages/core/src/security/effective-object-permissions.ts#viewAllFieldsReadVote`.
Consequences: a set's own field rows bind beside its own View All or
Modify All; another set's View All or Modify All re-opens no hidden or
locked field; nothing re-opens a field edit lock across sets (the
built-in admin sets read every field through their `'*'` `viewAllFields`
and no longer edit a field another held set locks). The ADR-0087
conversion `permission-view-all-fields-beside-record-bypass` adds
`viewAllFields: true` beside the bits in source; it is a default flip,
refused by id at the artifact door and at stored-row reads, so stored
sets take this meaning on upgrade (ruling A on objectstack-ai#36055).
`security-superuser-field-mask-inert` is retired;
`security-cross-set-field-reopen` reports the `viewAllFields` re-open
only.

## Follow-ups to file

- hotcrm `sales_manager`: convert the migrated `viewAllFields: true` to
explicit field rows (objectstack-ai#34365 step 4).

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ

<!-- signed: repo:objectstack#7 · os-alice ·
session_011y7As8wf3DSPRevwNnYLcM -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… move from step 18 to step 19, so `os migrate meta --from 18` shows them (objectstack-ai#38239)

repo:objectstack#3 · os-tesla · session_01L9qibvcTXi4hWgjz8G8ium

<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoT8rr3zveNwye1npfS2EynC)_

Fixes objectstack-ai#38142

Clause-②: no
Metadata-protocol: none

## 维护者速读
- 从 18 升级到 19 的作者,以前在升级提示里看不到三条变化(表单工具改名、表单类型、发布时拒收存不住的数据模型字段),现在这三条会列在
18 → 19 的升级提示里。
- 修正第 19 版升级说明,替用升级命令从 18.x 升上来的团队补上漏掉的提示。
- 只是把三条说明挪到正确的大版本下,内容一字不改,不碰任何数据或配置;出错也只是提示位置不对,可以直接撤回。
- 无

## What changes
- Three ADR-0087 semantic entries move from protocol major 18 to 19:
`semantic/18.ID.ts` becomes `semantic/19.ID.ts` for
`define-form-studio-helper-renamed-define-metadata-form`,
`form-type-define-form-and-packageless-list-at-form-name` (both from
objectstack-ai#37366) and
`publish-refuses-data-model-fields-that-save-and-do-not-work` (from
objectstack-ai#37513). The ids and the file contents are unchanged (pure renames, 100%
similarity).
- Why 19: `gen:migration-registry` files an entry by its filename's
major, and `composeMigrationChain(fromMajor)` keeps only the steps above
`fromMajor` (`packages/spec/src/migrations/chain.ts:42`). All three were
added after `PROTOCOL_VERSION` moved to 19 (`204356a6e`, objectstack-ai#37314). None
is in `@objectstack/spec@18.6.0`, the last 18.x release; objectstack-ai#37513 first
shipped in `19.0.0-next.0`, objectstack-ai#37366 in `19.0.0-next.2` (tag ancestry).
Filed under 18, they were skipped by exactly the 18 → 19 upgrade they
describe.
- `form-type-…` still follows `define-form-…` in id order, so its "since
the previous entry" sentence still reads right.
- The id-keyed `adr-0087: registered` markers in `.changeset/pre/*` and
the released CHANGELOGs stay valid and are not edited.
- One `@objectstack/spec` patch changeset. The registry,
`spec-changes.json` and the upgrade guide are generated and not
committed, so nothing else changes in the diff.

## Tests
No test file changes: the pins that read the chain
(`semantic-relevance.test.ts`, `migrations.test.ts`) read the generated
step lists, not counts or ids for these entries. The before/after
readings below are probes against the generated registry, kept in the
project, not in this PR.

<details><summary>Readings (head fc06c4d, base origin/main
23fa361)</summary>

Generated registry and `composeMigrationChain(18)`:

| | step 18 semantic | step 19 semantic | chain `--from 18` lists the
three |
|:--|:--|:--|:--|
| before (main) | 582, holds all three | 21, holds none | MISSING ×3 |
| after (this branch) | 579 | 24, holds all three | LISTED ×3 |

`applyMetaMigrations(stack, 18)` on a minimal stack: before, `todos=21`,
all three NOT LISTED; after, `todos=24`, all three are `todos`.

Local runs at fc06c4d:
- `pnpm exec turbo run build --filter='./packages/**'
--filter='@objectstack/dogfood^...'` under `os-verify-lock`:
command-exit 0.
- `pnpm --filter @objectstack/spec typecheck`: command-exit 0.
- `pnpm --filter @objectstack/spec test`: `Test Files 911 passed (911)`,
`Tests 28851 passed | 1 todo (28852)`.
- Derived gates (`dispatch-gates.mjs --commands`): 83 run, each exit 0;
`--ran` reconciles 83 derived, 83 run, 0 NOT MEASURED (a derived zero:
every line records its exit code).
- `overlap-check.mjs` before the first push: merges cleanly with
origin/main, 0 open PR heads overlap.
</details>

## Acceptance notes
- **Should `check-adr-0087-registration` read the major?** Not built
here (claim). The measured answer: in the window the per-entry files
exist (`f293d454b`, 2026-08-10, to origin/main `23fa3619`), every entry
added landed at or above the protocol major of its day, except these
three.
- Protocol 17 (to `4e9fe9ff6`, the 17 → 18 bump): 50 added under 17 and
717 under 18 (the next major, filed before the bump), 0 below 17. The
one explicit backfill in the window (`5823d593db`, "backfill nine
ADR-0087 ledger entries missing from the v17 stock") landed under 17,
equal to the protocol major then.
- Protocol 18 (to `204356a6e`, the 18 → 19 bump): 345 under 18, 0 below.
The bump commit itself added one entry under 19.
- Protocol 19 (since): 33 under 19, 3 under 18. Those 3 are this card's,
renamed here.
- So a rule "a newly added entry's major is equal to `PROTOCOL_MAJOR` or
above it" would have fired on exactly these three in about 1,150
additions, and on no backfill. "Equal to `PROTOCOL_MAJOR`" would have
been wrong: it refuses the 717 entries filed ahead of the 17 → 18 bump.
The gate already reads the paths of the entries a diff adds, so the
check would close a blind spot of an existing gate rather than add a new
one. A later backfill below the current major would still need a named
exemption. Whether to file the card is the seat's decision.
- Reach, corrected by the contract review (comment 7237861973): that
reading measures the protocol move, not the release. 34 more
`semantic/18.*` entries were added between `spec@18.6.0` (`958ee0359`)
and the move, ship in no 18.x release, and are skipped by `--from 18`
the same way; each was filed while `PROTOCOL_MAJOR` read 18, so the
at-or-above rule would not have refused them. They are outside this PR's
claim; the carrier is the seat's.
- Releases already out: `19.0.0-next.0` and `next.2` carry these entries
under 18, so `os migrate meta --from 18` on those prereleases still
skips them. The fix ships with the next prerelease. No released text is
edited (AGENTS.md: CHANGELOGs are release-owned).

## Verification
Read first (by risk):
1. The three renames: `git diff --stat -M origin/main...HEAD` shows
`R100` for each.
2. The changeset.

Two-minute check: in `packages/spec`, `pnpm gen:migration-registry` and
then `grep -n
"publish-refuses-data-model-fields-that-save-and-do-not-work"
src/migrations/registry.ts`. On this branch the id sits inside the
`semantic:19` region; on main it sits inside `semantic:18`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L9qibvcTXi4hWgjz8G8ium)_

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…hat first ship in 19 move to protocol 19 (objectstack-ai#38627)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9CGtGeksBgFXURAQ8CAJhT8)_

Fixes objectstack-ai#38256

Clause-②: no
Metadata-protocol: none

## 维护者速读
- 从 18 升级到 19 的团队用升级命令时,以前看不到 34 条变化说明,其中三项旧写法也不会被自动删掉;现在这些说明都列在 18 → 19
的升级提示里,三项旧写法会被自动删除。
- 修正第 19 版的升级说明,替用升级命令从 18.x 升上来的团队补上漏掉的提示和自动修改。
- 只是把说明和自动修改挪到正确的大版本下,说明内容不改,三项自动修改的先后顺序也不变;出错只影响升级提示与自动修改落在哪个版本,可以直接撤回。
- 无

## What changes
- **The set, re-derived on `origin/main` (Ask 1).** `semantic/18.*`
entries present at the protocol move `204356a6e` (objectstack-ai#37314) and absent at
`@objectstack/spec@18.6.0` (`958ee0359`): 579 − 545 = 34, the same 34
ids the card lists. Each is in no `@objectstack/spec@18.*` tag (all 12
read: 0 hits each) and in `19.0.0-next.0` (34 of 34).
- **34 semantic entries move to step 19 (Ask 2).**
`entries/semantic/18.ID.ts` becomes `19.ID.ts`, R100, ids and bytes
unchanged. `gen:migration-registry` files an entry by its file name's
major, and `composeMigrationChain(fromMajor)` keeps only the steps above
`fromMajor`, so under 18 the 18 → 19 upgrade never listed them.
- **Three of the 34 move as whole families, not entries alone.**
`object-grid-single-click-edit-retired`, `view-column-state-retired` and
`field-inline-edit-boolean-retired` are each the D3 record of a D2
conversion from the same window
(`object-grid-single-click-edit-removed`, `view-column-state-removed`,
`field-inline-edit-boolean-removed`: absent at 18.6.0, first shipped in
19.0.0-next.0). Ruling B in `migrations.test.ts` and each family's pin
hold the D3 entry in its conversion's own step, and under 18 `os migrate
meta --from 18` did not run those conversions either. So, per the seat's
amended claim:
- the three conversions move to `src/conversions/entries/19/`, `toMajor:
19`, `retiredAfter` unchanged (`18.6.0` is still the last stable release
that accepted the old shape);
- `src/conversions/registry.ts`: they leave `MAJOR_18_CONVERSIONS` and
join `MAJOR_19_CONVERSIONS` at `order` 0.1 / 0.1 / 0.2. They were the
last three of major 18 (orders 83, 83, 84), so `ALL_CONVERSIONS` runs in
exactly the same sequence as before; only the step each is reported
under changes. Read off the built registry: major 18's tail is now
`manifest-packaging-manifest-deps-removed`,
`form-view-drawer-keys-removed`, `view-personal-declarations-removed`,
and major 19 starts `object-grid-single-click-edit-removed`,
`view-column-state-removed`, `field-inline-edit-boolean-removed`;
- each conversion's docblock says protocol 19 and `--from 18`, and the
two schema comments that name a moved conversion
(`src/ui/component.zod.ts` above `singleClickEdit`,
`src/data/field.zod.ts` above the boolean `inlineEdit` refusal) say
protocol 19.
- **Four retired-key rows move to 19 (Ask 3).**
`ai/KnowledgeChunk:metadata`, `ui/ObjectGridProps:singleClickEdit`,
`ui/ViewItemWire:columnState`, `ui/ViewMetadata:columnState`: each is in
no 18.x tag and in 19.0.0-next.0, so the card's criterion holds. The
aging reading: `build-schemas.ts` check (c) proof 1 allows deleting a
tombstone once `CURRENT_MAJOR - registeredAt >= 1`. At 18 these rows
were deletable now, at major 19, before any stable release ever carried
them; at 19 they become deletable at 20, the same as every other
retirement that first ships on the 19 line. Proof 2 (the
`@objectstack/spec@18.0.0` dating tag) does not date them, since none
was `[RETIRED]` there. So the move corrects a verdict rather than
changing one wrongly. One row's comment named the 18.x line as its
reason and now says why it is under 19.
- **Step 18 rationale → step 19 rationale.** The `STEP18_RATIONALE`
fragments of the four moved retirements
(`object-grid-single-click-edit-retired`, `view-column-state-retired`,
`field-inline-edit-boolean-retired`, `knowledge-chunk-metadata-retired`)
leave step 18 and their text, unchanged, joins step 19's rationale,
before the form view `modalSize` sentence (placed there so it does not
share the tail line objectstack-ai#38550 edits).
- **Refusal text the moves made false.**
`retired-key-removal-version.pin.test.ts` derives a prescription's `os
migrate meta --from N` from the conversion's `toMajor`, so the
`singleClickEdit`, boolean `inlineEdit` and `columnState` refusals now
say `--from 18`. `KnowledgeChunk.metadata`'s tombstone said "removed in
@objectstack/spec 18"; it now says 19.0.0, as its three siblings already
did. That pin did not catch it because it derives the version only for
retirements with a D2 conversion, and this one has none. Reference pages
regenerated (`content/docs/references/ai/knowledge-document.mdx`,
`ui/component.mdx`, `ui/view.mdx`).
- **A sibling entry's wording.** `19.ui-form-view-modal-size-retired`
(not one of the 34) called `internal-record-forms-not-loaded` "the
protocol-18 semantic entry"; it now says protocol-19, since that entry
moves to step 19 here and the sentence prints under the 18 → 19 hop
(contract review, S1). The boolean `inlineEdit` prescription's docblock
says protocol 19 too.
- **Built artifacts declaring a bare `^19`.** The artifact door replays
a retired conversion for a `19.0.0` floor only when its step is 19
(`converted-major-step`,
`packages/metadata-core/src/artifact-forward-conversion.ts`). Such an
artifact that still carried one of the three keys was refused before; it
is now converted at ingestion. Artifacts declaring a floor below 19
replayed them already. The changeset says so.
- **Order-dependent wording.** None of the 34 says "since the previous
entry" or similar. Where an entry names another (for example
`18.action-body-does-not-compile-refused` names
`body-regexp-pattern-refused`, now under 19), it names the id, not a
position, so it still reads right.
- One `@objectstack/spec` patch changeset (Ask 4). The id-keyed
`adr-0087: registered` markers in `.changeset/pre/*` and the released
CHANGELOGs, which say "step 18" for these families, stay as published
(AGENTS.md: release-owned).

## Tests
Forced test changes, each because the family it pins moved to 19:
- `src/data/field-inline-edit-boolean.pin.test.ts`: the conversion's
`toMajor` and the step it is wired into read 19; the prescription regex
reads `--from 18`.
- `src/ui/object-grid-single-click-edit.pin.test.ts`: the same, plus
`RETIRED_KEYS_BY_MAJOR[19]`.
- `src/ui/view-column-state-retirement.test.ts`: the retired-key rows,
the conversion and the D3 entry are read from major 19; the prescription
regex reads `--from 18`.

No other test changes. The chain pins (`migrations.test.ts`,
`semantic-relevance.test.ts`, `step18-rationale-merge.test.ts`,
`conversions-major18-merge.test.ts`) read the generated lists and pass
unchanged.

<details><summary>Readings (head
367d09d, base origin/main
ee9fd3d)</summary>

Built registry (`dist/migrations`):

| | step 18 semantic | step 19 semantic | conversions 18 / 19 | retired
keys 18 / 19 | `composeMigrationChain(18)` lists the 34 + the 3 of
objectstack-ai#38239 | `composeMigrationChain(17, 18)` lists any |
|:--|:--|:--|:--|:--|:--|:--|
| before (main) | 579 | 34 | 98 / 8 | 282 / 9 | the 3 only | the 34 |
| after | 545 | 68 | 95 / 11 | 278 / 13 | all 37 | none |

The semantic id set over every step: 690 ids, 690 unique, before and
after.

Local runs:
- `pnpm --filter @objectstack/spec build` under `os-verify-lock`:
command-exit 0.
- `pnpm --filter @objectstack/spec test` under `os-verify-lock` at
367d09d (`build` and `check:generated` clean there): `Test Files 913
passed (913)`, `Tests 28893 passed | 1 todo (28894)`.
- `pnpm --filter @objectstack/spec typecheck`: command-exit 0.
- `pnpm --filter @objectstack/spec check:generated --fix`: regenerated
the three reference pages it proved stale.
- Derived gates (`dispatch-gates.mjs --commands`) at 367d09d: 122
derived, 122 run, each exit 0; `--ran` reconciles 0 NOT-MEASURED (after
`turbo run build --filter=./packages/**` and `git fetch --unshallow`,
without which nine exit 3 on unmet prerequisites).
- `overlap-check.mjs` before every push: clean with origin/main and with
objectstack-ai#38594 (which edits
`18.publish-refuses-flows-that-save-and-do-not-run.ts`; `git merge-tree`
against its head applies that edit to the renamed `19.` file). One
overlap, see Acceptance notes.
</details>

## Acceptance notes
- **Textual overlap with objectstack-ai#38550.** Both PRs insert a line into
`MAJOR_19_CONVERSIONS`'s imports and list directly after
`permissionViewAllFieldsBesideRecordBypass` (this one
`viewColumnStateRemoved`, objectstack-ai#38550 `viewBulkActionsToActionSelection`), so
whichever lands second merges main and resolves it mechanically: both
lines kept, in identifier order (`viewBulk…` before `viewColumn…`).
`registry.ts.template` merges clean with objectstack-ai#38550. The seat chose to open
this PR rather than wait.
- Released prereleases (`19.0.0-next.0` to `next.2`) carry these
entries, rows and conversions under 18 and stay as published; the fix
ships with the next prerelease.

## Verification
Read first (by risk):
1. `packages/spec/src/conversions/registry.ts`: the three entries' new
`order` values and the docblock that says why.
2. `packages/spec/src/migrations/registry.ts.template`: the four
fragments moved from `STEP18_RATIONALE` into step 19's rationale.
3. The renames: `git diff --stat -M origin/main...HEAD` shows R100 for
the 34 semantic entries and the three columnState / KnowledgeChunk rows.

Two-minute check: in `packages/spec`, run `pnpm gen:migration-registry`,
then `grep -n "object-grid-single-click-edit-retired"
src/migrations/registry.ts`. On this branch the id sits inside the
`semantic:19` region; on main it sits inside `semantic:18`.

<!-- signed: repo:objectstack#3 · os-steve ·
session_01ADHkmQcqpJwkeqnruAv4md -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:data protocol:system protocol:ui size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后)

3 participants