Repository navigation
feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' - #37314
objectstack-fleet[bot] wants to merge 12 commits into
Conversation
…dshake reads '^19' Claude-Session: https://claude.ai/code/session_01QSeKYnLptCbfzwtkTrDG3j Co-authored-by: Claude <noreply@anthropic.com>
…edited fixtures Claude-Session: https://claude.ai/code/session_01QSeKYnLptCbfzwtkTrDG3j Co-authored-by: Claude <noreply@anthropic.com>
…l, and its changeset Claude-Session: https://claude.ai/code/session_01QSeKYnLptCbfzwtkTrDG3j Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnLptCbfzwtkTrDG3j Co-authored-by: Claude <noreply@anthropic.com>
…otocol-version-19
…t change graded major Claude-Session: https://claude.ai/code/session_01QSeKYnLptCbfzwtkTrDG3j Co-authored-by: Claude <noreply@anthropic.com>
…nd prints the tag's commit Claude-Session: https://claude.ai/code/session_01QSeKYnLptCbfzwtkTrDG3j Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 6 package(s): ⛔ 5 release-owned page(s) name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 182 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 09d601ca4abbce1f7842cd397b464b480084917e && git checkout 09d601ca4abbce1f7842cd397b464b480084917e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c2f8bff93f6484c43b7667955a0a3541c1454440 43133e8ce5093a29ef8587213c3d2266651731fc && git checkout -B drift-repro c2f8bff93f6484c43b7667955a0a3541c1454440 && git merge --no-ff 43133e8ce5093a29ef8587213c3d2266651731fc
node scripts/docs-audit/affected-docs.mjs --json c2f8bff93f6484c43b7667955a0a3541c1454440
|
… 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
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: 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>
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>
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Fixes #37229
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none in this PR — the three
skills/**files that declare'^18'(skills/objectstack-platform/SKILL.md,skills/objectstack-platform/evals/config-plugins-ops.json,skills/objectstack-upgrade/SKILL.md) move in the sibling Tier H PR #37298 (PR 2 of #37229), which lands with this one or right after it.维护者速读
What changes
On the shape of the v18 move (#22215, commit
4e9fe9f), minusskills/**.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).engines.protocolfrom'^18'to'^19'. Each is a manifest that stands for "an app on the current protocol", and none of them asserts on the range.examples/(crm, showcase, todo, multi-package ×2)packages/apps/connector-{docusign,github,stripe}packages/cli(tests)packages/qa(7 dogfood tests, the sql-perf bench app, the scenarios exporter test)packages/lint,packages/spec,packages/metadata(tests)packages/mcp/README.mdcontent/docs(cli, your-first-project, upgrading)docs/qa/scenarios/builds/travel_expense.jsondocs/qa/platform-checklist/areas/cli.json: one prose fact, "the stock showcase declares'^18'", now reads'^19'.packages/spec/src/migrations/registry.ts.templateopensstep19, 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. The upgrade guide now generates three hop sections (17, 18, 19). See "Why a step-19 entry" below.validate-flow-region-shape.test.ts,plugin-artifact-packages-attribution.test.ts).check:test-source-aliasjudges 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, the two declaration lines, a BREAKING note with the FROM → TO and the command, andregistered protocol-18-range-refused.main:.changeset/37223-v19-line-opens.mdnow reads: "The first change gradedmajoris@object-ui/i18n's retirement of the translation keys 18.6.0 shipped and no code reads any more; a secondmajorin the samefixedgroup still gives one 19.0.0." It used to say "The first is …". This PR's protocol move, a breaking change gradedminor, makes that untrue. No other sentence of that note moves.ui/packages/i18n/scripts/released-keys-removed.mjsrefuses 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.0is a tag object0dbef86ce3, and the script now prints its commit958ee03594. The script is not in the package'sfiles[], so it publishes nothing and needs no changeset.Judgments: every
'^18'left in place, with its reasonskills/**(3 files)packages/create-objectstack/src/templates/blank/objectstack.config.ts:38@objectstack/*versions, andtemplate-consistency.test.tsholds 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'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.tsPROTOCOL_VERSIONruns.packages/metadata/src/plugin-artifact-forward-conversion-{major-step,package-body}.test.tscontent/docs/releases/**,docs/adr/**,**/CHANGELOG.md,.github/workflows/release.yml(comment), script commentsui/**tests,packages/runtime/src/domains/packages-ensure-customization.test.ts,scripts/docs-audit/affected-docs.mjsrequiredRangeof a later refusal, a package-dependency range, a React peer range).Moved to
'>=18.0.0'(5 sites, commite05fdf6f):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, asparseRangeFloorreads^18) and admits 19. This is the same move as #22215's two runtime fixtures (>=17.1.0).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 isnarrowed, and theClause-②arm isnarrowing, as in #22215. On a declarednarrowed,check:adr-0087-registrationrefusesnot-required (no-migration-prescription)outright and asks for a registered entry. Measured: "not-required (no-migration-prescription)is refused on a changeset that declaresMetadata-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
latest. The three docs pages show'^19', as in 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. npmlateststays 18.6.0 until 19.0 GA, and an 18.x runtime refuses'^19'. The changeset says to move the range together with the@objectstack/*versions.main, under the 3,000-line threshold.check:release-notesis red:@objectstack/specships 19.x and there is no curatedcontent/docs/releases/v19page. It is red on the control leg too (main + chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230, without this PR), so chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230'smajorcauses it, not this PR. Release pages are release-owned, so this PR does not write one. Until one exists, the version-PR lane still refuses the 19.0.0-next refresh, on that gate alone.main,os migrate meta --from 18replays only step 19, so a retirement that ships on the v19 line and is filed under step 18 is not listed to an 18 → 19 upgrader. Noted for that PR's seat; not filed.yes (narrowing)+narrowedwith a step-19 entry, rather thansemantic.'^18', and the version pass stamps it.'>=18.0.0'.Verification
Two-minute check:
node scripts/check-changeset-no-major.mjs --base origin/mainprints✓ 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:
.changeset/37229-protocol-19.mdandpackages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts: what an upgrading author is told.packages/spec/src/migrations/registry.ts.template, the newstep19: the ledger's protocol 19 step opens here.'^18'left in place.Readings (the dev's, on 9da4c1d plus the fixture fix, through the verify lock)
@objectstack/metadata-coreon protocol 19:'^18'→incompatible OS_PROTOCOL_INCOMPATIBLE … Run: objectstack migrate meta --from 18;'^19'→ok.'^18'copy ofexamples/app-todo:os migrate meta --from 18lists the step-19 entry, and--writerewrites the range to'^19'.'^19'now turnstemplate-consistency.test.tsred (expected 19 to be 18).release.ymlversion-pass rehearsal. Theversion-prRender and Validate blocks were extracted verbatim and run in a throwaway clone:PROTOCOL_VERSION already 19.0.0; the template is stamped'^19'; unvalidated surfaces 0; 14 of 15 content gates green;check:release-notesred.protocol-version.tsis unvalidated, with the same release-notes red.validateexits 0 for 4 examples and 3 connector apps.check-changeset-no-major --base origin/mainexits 0.check:adr-0087-registrationexits 0 withregistered protocol-18-range-refused. Control:no-migration-prescriptionexits 1.check:upgrade-guide:protocol 19.0.0, 3 major hop section(s).dispatch-gates --commandsderived 124 families: 120 exit 0, and 4 were NOT MEASURED because of prerequisite refusals (teardown-shape self-test, skill-examples, dual-build-cjs-loads, type-check-debt). CI runs those four.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 relaypr_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 ase05fdf6f(fast-forward, five sites in one test file) by a seat-dispatched dev, on the maintainer's authorization 「#37229 夹具修复推送放行」. Branchclaude/issue-37229-protocol-version-19@e05fdf6f.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ