Repository navigation
skills(objectstack-upgrade): the §3.3 acceptance replay names the last ported hop and can fail - #29751
Conversation
…ted hop, and reads replayedNothing as a check that never ran The §3.3 criterion replayed from the target major. At the top migration major that range is empty: no step runs, `applied` is `[]` whatever the metadata holds, and the check passes without examining anything. The replay now runs `--from <target-major − 1> --to <target-major>`, the hop the sources were ported through, and requires `applied: []` with no `replayedNothing` in the JSON — the key `os migrate meta --json` carries when no step ran. The quickstart acceptance line and the three other mentions of the same replay say the same thing, and the two evals that exercise the check expect the ported hop and the absent key. Token ratchet paid in place, no re-wrap: the §1 bullet restating the "Data migrations are not metadata migrations" section below it, and the failure-mode row restating §3.3's own callout, are deleted. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAoGi31QpTx8NiZpBWm
|
domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J Contract-review-claim: session_01J8VVAnMUWA9rufXzFaEh4J · head 1cb7088 · 2026-11-03T03:18Z The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent (the seat session is not at that tier). |
|
domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J Contract reviewServed-tier: Reviewer: an isolated contract reviewer at CONTRACT_REVIEW_TIER, read-only on GitHub (REST reads only; nothing written, pushed or commented), fed the card body and comments, the PR body, the net diff against the merge-base, the head's check-runs, contract-review.md, review-checklist.md and lanes/skills.md. The dev report was read as input, not as conclusions; every count and every claim about the CLI below is this review's own reading of the head tree. No environment variable value is printed anywhere in this record. ① Derived judgments
② Semver levelNone. No published package, no ③ Boundary flags
④ Design judgmentPer hits file, against the card's scenario (an agent following §3.3 records a canonical-metadata acceptance that never examined anything; after PR #29045 the JSON names a run that replayed nothing):
Must-fix: M1 — in §3.3 (L397–399 of the head) replace "a replay of the last hop you ported" / Check-runs at record time (2026-11-03T03:30Z): 46 check-runs on 1cb7088, 28 success, 18 skipped, 0 failure, 0 in progress on the second read; the first read three minutes earlier had 26 success and 1 in progress (Test Core 2/8), which completed success, with no non-success completion at either read. Success: Lint & Repo Gates, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · ESLint, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, TypeScript Type Check, Type Check · workspace / source gates / debt ledger / consumer gates, Build Core, Governed Surface Queue Guard, Dogfood Regression Gate, Test UI, Test Core (1/8 and 2/8), Plan Test Core shards, Live E2E UI, PR-body guards, Check Changeset, Check PR Size, Auto Label, filter. Skipped by path filter or opt-in: Build Docs, Build UI Deps, Build & E2E UI, Lint UI, Type Check UI, UI Published Artifacts, Dogfood Verify CLI, Temporal Conformance, Schedule gate, 18.x upgrade harness, Packed-tarball smoke, and the matrix-templated placeholder rows for Test UI and the Dogfood shards plus the duplicate Check Changeset / Check PR Size / Auto Label rows from a second workflow trigger. Every check-run on the head is complete; the full-battery test lanes ran on a diff that touches no package source and came back green. Implemented-by: VERDICT: FAIL Generated by Claude Code |
…orted range, and the callout invents no conversion Contract-review delta. The replay from the major below the target left out every earlier hop (`composeMigrationChain` keeps `m > fromMajor`), so the quickstart's own 16 → 18 crossing could not see a 16 → 17 chain-only residue. §3.3 and the quickstart now replay `--from <authored-major> --to <target-major>`, the range step 1 replayed, and the `--write` failure-mode row says "the ported range". `widestRange` is `null` when `--from` is the terminus, so the paragraph says that instead of promising a range that would run. The callout's example, `field-required-notnull-explicit`, is withdrawn from the conversions registry and no conversion this build ships is of the chain-only class; the callout now says so and teaches the class without a live example, and eval 4 no longer requires the name. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAoGi31QpTx8NiZpBWm
…a conversion the registry carries The mechanical-table example in the report template named the withdrawn `field-required-notnull-explicit`. It now shows the step-17 conversion `sharing-rule-access-level-full-to-edit` at the site shape the chain prints (`sharingRules[0].accessLevel`, `'full'` → `'edit'`). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAoGi31QpTx8NiZpBWm
…s the full-range replay The template's acceptance line said "replay-from-17" under a 16 → 18 chain, the last-hop form the acceptance criterion no longer uses. It now reads "replay 16 → 18 applies 0 mechanical changes", the range the chain was ported through. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAoGi31QpTx8NiZpBWm
|
domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J Contract-review-claim: session_01J8VVAnMUWA9rufXzFaEh4J · head 55e64c9 · 2026-11-03T03:48Z The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent (the seat session is not at that tier). |
|
domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J Contract reviewServed-tier: Reviewer: an isolated contract reviewer at CONTRACT_REVIEW_TIER, read-only on GitHub (REST reads only; nothing written, pushed or commented). This is a DELTA record: it judges 1cb7088 → 55e64c9 (three commits: 2063a6b the fixes for cr37's M1, S1 and the withdrawn-example point; 701f463 and 55e64c9 the two template lines the seat widened the surface to) and carries forward the full review of 1cb7088 (comment 6594719416, FAIL), whose judgments ①.1–2, ①.5–9, ①.11–12, ② and the ③ items not named below are unchanged by this delta; cr37's M1, S1 and the withdrawn-id follow-up are re-judged here. The dev report and the dev's gate record were read as input, not as conclusions; every count and every claim about the CLI below is this review's own reading of the head tree. No environment variable value is printed anywhere in this record. ① Derived judgments
② Semver levelNone. Unchanged from cr37: no published package, no ③ Boundary flags
④ Design judgmentPer hits file, against the card's scenario (an agent following §3.3 records a canonical-metadata acceptance that never examined anything):
Must-fix: none. Should-fix: none. Check-runs at record time (2026-11-03T03:57Z): 44 check-runs on 55e64c9, 26 success, 17 skipped, 0 failure, 0 cancelled, 1 in progress (Test Core 1/8) on the second read; the first read three and a half minutes earlier had 43 check-runs, 24 success, 17 skipped and 2 in progress (Test Core 1/8, Type Check · consumer gates), the second of which completed success, with no non-success completion at either read. Success: PR-body guards (claim · duplicate · Part-of · single-writer path), Governed Surface Queue Guard, Lint & Repo Gates, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · ESLint, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Type Check · consumer gates, Build Core, Plan Test Core shards, Test Core (2/8), Test UI, Dogfood Regression Gate, Live E2E UI, Check PR Size, Auto Label, filter. Skipped by path filter, label or opt-in: Check Changeset (both rows, Implemented-by: VERDICT: PASS Generated by Claude Code |
|
domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J 维护者速读
席位核对 — ACCEPT · domain:skills#1 · head
|
domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J
Requested by Irene · project thread
Fixes #29063
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-upgrade§3.3 的验收回放不再从目标主版本起跑(在最高主版本上那是空区间,applied永远是[],检查永远过)。改为回放整段移植区间--from <authored-major> --to <target-major> --json(与 quickstart 第 1 步同一区间),要求applied: []且 JSON 里没有replayedNothing(fix(cli): os migrate meta --json says when no migration step ran #29045 合入后,没跑任何一步时--json会带这个键)。quickstart 第 74 行与文内另三处同一回放的提法改成一致;两条练这项检查的 eval 的期望同步。提示框里举的field-required-notnull-explicit已在 conversions registry 撤回,提示框不再点名任何 conversion;报告模板(examples-upgrade.md)的示例行改用 registry 真有的sharing-rule-access-level-full-to-edit,其 Verified 行改为全区间回放「replay 16 → 18」。SKILL.mdL74、L388–411;evals/protocol-major-upgrade.json第 1、4 条;references/examples-upgrade.mdL48、L54。What changes
skills/objectstack-upgrade/SKILL.mdL397–411). The replay that closes the gap after a greenvalidateis nowos migrate meta --from <authored-major> --to <target-major> --json, the whole range the sources were ported through (the--fromof §0, the range quickstart step 1 replays), and the criterion isappliedmust be[]andreplayedNothingabsent.composeMigrationChainkeepsm > fromMajor && m <= toMajor, so a replay from the major below the target would leave out every earlier hop; the whole range is non-empty whenever the crossing has a step and sees every hop. The paragraph that followed, which said--todefaults to one past the installed major so onlytodoscarries the next major's residue, is replaced: it explains that--from <target-major>proves nothing, because--todefaults to the highest major this build carries a step for, so the range is empty (no step runs,appliedis[]whatever the metadata holds, and the JSON says so withreplayedNothing, whosewidestRangeisnullthere because no wider range exists from that--from) or holds only the next major's step.todosstays Layer 2's business, not a failure.--tois in the command listing at L143 already.os migrate meta --from 16 --to 18 --json # \applied` [] and no `replayedNothing` (see §3.3), which is §3.3's command for the quickstart's 16 → 18 crossing (step 1 replays--from 16). The card read L74 as unaffected;--to 18` pins the range so the two lines say the same thing on a build that already carries a later step.field-required-notnull-explicitis withdrawn frompackages/spec/src/conversions/registry.ts(its docblock exists to stop it being re-added), and every conversion this build ships isretiredFromLoadPathwith its old shape refused at parse, so no migration-chain-only conversion exists on this head. The callout keeps the class and its reason, says this build ships none and a later one can, and names no conversion. The report template's example row (references/examples-upgrade.mdL54, surface widened by the seat in 6594782842) named the same withdrawn id; it now shows the step-17 conversionsharing-rule-access-level-full-to-editat the site shape the chain prints,sharingRules[0].accessLevel'full'→'edit'(mapCollectionspells array sites by index; the conversion's own fixture is asharingRulesentry). Nonotnull-explicitmention remains underskills/. The same template's Verified line (L48, surface widened again in 6594814065) said "replay-from-17 applies 0 mechanical changes" under "Chain: 16 → 18", the last-hop form M1 retired; it now says "replay 16 → 18 applies 0 mechanical changes".--write("then replay the ported range to confirm 0 changes") and the row "Replay from the target major still applies changes" → "The acceptance replay still applies changes".evals/protocol-major-upgrade.json) expectos migrate meta --from 16 --to 17 --json(a one-hop crossing, where the ported range is that hop) withapplied: []and noreplayedNothing, and say why--from 17alone checks nothing. Eval 4'smust_containgainsreplayedNothingand dropsfield-required-notnull-explicit; itsexpected_outputno longer names a conversion. Eval fixtures are measured, not ratcheted.The
replayedNothingreading is taken from the merged CLI,packages/cli/src/commands/migrate/meta.ts:readReplayedNothingreturnsnullwhenresult.hops.length > 0, else{ reason: 'empty-range' | 'inverted-range', widestRange: { from, to, applied, manual } | null };--jsonspreads it into the payload only in that case, next toapplied,todosandabsentTodos.composeMigrationChainkeeps the majorsm > fromMajor && m <= toMajor, so--from 18on this build (steps to 17 and 18,CHAIN_TERMINUS_MAJOR18) composes zero steps.Token ratchet (paid in place, no re-wrap)
skills/objectstack-upgrade/SKILL.md: 6185 → 6160 tokens, ceiling 6188 (headroom 3 → 28).references/examples-upgrade.md: 1194 → 1189 tokens, ceiling 1197 (headroom 3 → 8), one row replaced by a shorter one and one line reworded in place (+2 bytes), no re-wrap. The ceiling row inscripts/check-skills-token-ratchet.mjsis not touched (second file, out of surface). Two genuine deletions of same-file restatement pay for the added text:validategreen from the start, so 'there was nothing to upgrade' …validategreen is necessary, not sufficient; see 3.3" (1 line)validatedoes NOT mean the chain has nothing left to do", which the row restated and pointed back toEvery other block is byte-identical to
main. Line counts: SKILL.md 482 → 482, examples-upgrade.md unchanged.Why
Card #29063 (filed from the #28947 dev, PR #29045): when the target is the highest major this build carries a step for,
os migrate meta --from <target-major> --jsonis an empty range, so an agent following §3.3 records a canonical-metadata acceptance that never examined anything. Now that--jsoncarriesreplayedNothingwhen no step ran, the skill can name a range that can fail and a key whose presence means the check never ran.Verification
On head 55e64c9 (2063a6b is the contract-review delta for 6594719416: M1, S1 and the withdrawn-example point; 701f463 and 55e64c9 are the two template lines the seat widened the surface to, L54 and L48):
node scripts/check-skills-token-ratchet.mjs: exit 0 (SKILL.md 6160 / 6188, examples-upgrade.md 1189 / 1197), and its--self-test: exit 0.pnpm check:pm-skill-id-lint,@objectstack/spec check:skill-docs,check:skill-frame-sync,check:skill-frame-freshness,check:skill-compatibility,check:skill-identifier-liveness,check-doc-route-spelling --advisory,check:doc-authoring,check:role-word,check:corpus-claim-drift: each exit 0.node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD: exit 0 (four commits).node scripts/pm/dispatch-gates.mjs --commands→ 35 families for the three paths, all run with a 900 s timeout each afterpnpm install --frozen-lockfile(exit 0), exit codes recorded before any pipe (record in the project files asgates-55e64c92.txt):check-closing-keyword-parity(+ self-test),check-comment-mask-corpus,check-doc-route-spelling --advisory(+ self-test),check-dts-emitted --self-test,check-skills-token-ratchet(+ self-test), the threescripts/ci/*self-tests,@objectstack/lint check:doc-formula-expressions(afterturbo run build --filter=@objectstack/formula --filter=@objectstack/lint),@objectstack/spec check:skill-docs,check:agent-test-spelling,check:ci-filter-parity,check:corpus-claim-drift,check:cross-package-test-inputs,check:doc-authoring,check:driver-memory-census,check:dts-closureandcheck:sourcemap-no-sources-content(both swept the 4 packages that build left indist),check:gitlink-declared,check:merge-driver,check:nul-bytes,check:pm-governed-merges,check:pm-skill-id-lint,check:refd-timer-probe,check:role-word,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:watch-hint-literal.check:dual-build-cjs-loadsandcheck:lean-entry-closurewant a fullpnpm buildof ~72 packages; the diff touches nopackages/**, so CI's Build Core is their reading.dispatch-gates --ran:35 derived famil(ies) accounted for — 33 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3), exit 0.On head 1cb7088 (first head):
node scripts/check-skills-token-ratchet.mjs: exit 0 (SKILL.md 6147 / 6188).node scripts/pm/check-skill-id-lint.mjs(with--self-test): exit 0, 108 files clean.node scripts/pm/check-skill-line-ratchet.mjs: exit 0 (its roots do not includeskills/**; run because the order named the line ratchet).node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD: exit 0.evals/protocol-major-upgrade.jsonparses.Local gates on 1cb7088: 34 derived, 30 run exit 0, 4 NOT MEASURED (`dispatch-gates --ran`)
node scripts/pm/dispatch-gates.mjs --commandson this head derived 34 commands for the two paths. All 34 ran with a 900 s timeout each afterpnpm install --frozen-lockfile; exit codes were recorded before any pipe.check-skills-token-ratchet(and its self-test),check:pm-skill-id-lint,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-compatibility,@objectstack/spec check:skill-docs,check-comment-mask-corpusandcheck-doc-route-spelling.@objectstack/lint check:doc-formula-expressionsfirst exited 3 in the fresh tree and exited 0 afterturbo run build --filter=@objectstack/formula --filter=@objectstack/lint.check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-contenteach want a fullpnpm buildof ~72 packages. The diff touches nopackages/**; CI's Build Core is the reading for them.--ranprinted:34 derived famil(ies) accounted for — 30 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3), exit 0.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintnot run locally (docs-only diff; the derived gate families above are what ran). CI's Lint & Repo Gates is the reading.main, one pull request.skip-changeset)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01J8VVAoGi31QpTx8NiZpBWm