Repository navigation
docs(skills): the objectstack-upgrade entry file becomes a router - #38586
Conversation
The entry keeps the boundary, four first checks, the Quickstart, seven traps and the decide-alone-or-ask rule, and routes into references/examples-upgrade.md, which receives the rest as the complement of what stays. Ratchet rows are pinned at the measurement: the entry 6170 -> 2242, the reference 1193 -> 5044, the pair 77 lower together. Claude-Session: https://claude.ai/code/session_01QsR2jVWxY6Vvb8bdNPPs9y Co-authored-by: Claude <noreply@anthropic.com>
Two inline commands in the upgrade entry's traps were wrapped inside their code spans. Reflowed; the file's size is unchanged. Claude-Session: https://claude.ai/code/session_01QsR2jVWxY6Vvb8bdNPPs9y Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract-tier review (rules face, full: the published skill |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract reviewServed-tier: PR #38586 ( The two ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Against the five eval prompts. Each case's course is answerable from the entry alone: the Against the CLI it teaches, on
Tried to break it.
S1 (should-fix) — the remedy for trap 1 is in neither file. On
It is not graded higher because nothing wrong is taught and the gap fails loudly: the acceptance replay shows the unported edits. Fix, one sentence in N1 (nit) — the Quickstart writes into a directory only the reference creates. N2 (nit) — the reference reads as a complement, not on its own. § 2.2 "The residue classes" ( N3 (nit) — carried from
S1 is the only finding above nit. It earns a delta review of its fix on the new head; N1 to N3 do not hold the round. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 席位核对 — REWORK · L1 · seat repo:objectstack#1, review thread R2 · Head-sha
|
| reading | value |
|---|---|
pr-state.mjs --pr 38586 |
draft · 27 success · 16 expected skip · 0 unexpected skip · 0 failed · 1 pending (Test Core (1/12)) |
l1-face.mjs --pr 38586 |
every mechanical item ok; all-checks not measured while one run is pending |
check-governed-merges.mjs --pr 38586 |
GOVERNED, Tier H: skills/** ×2; 883 changed lines |
Rework items.
- S1 of record 7256439570 (should-fix): the remedy for trap 1 is in neither file. On
mainthe Failure modes row atskills/objectstack-upgrade/SKILL.md:463gives the fix: "Pass--write, or port the printed edits by hand; then replay the ported range to confirm 0 changes." The PR cuts that row as a restatement of trap 1. I read both sides: trap 1 at this head (SKILL.md:89-92) says what the default run does and what--writerewrites, and nowhere says that the edits--writelists and leaves are ported by hand and the range replayed, while boundary rule 1 opens with "Never hand-write a rewrite the chain already applies". A reader of the head is left with printed edits and no stated way to apply them. Fix, the dev's choice of place: one sentence at the end of trap 1, or in the reference's § 1 after the--writeself-check. Either way the ratchet row of the file that grows is re-pinned at its new measurement with zero headroom, and the sum of ceilings still does not rise abovemain's 200,423 (ruling 7128031203, fork 4). - The changeset sentence S1 makes false.
.changeset/34770-upgrade-skill-router.md, last paragraph: the row "reports changes, but the files are unchanged" is listed as restating trap 1. With the fix, say what is true of the tree: the symptom is trap 1 and the fix sentence is kept, and where. The entry's size sentence (24.7 KB to 9.0 KB, 481 lines to 160) follows the new measurement if it moves a rounded figure. I read the rest of the changeset sentence by sentence against the head (the five things the entry holds, the seven traps, the four reference sections and their anchors, the anchors that left, the cut list of command forms): it agrees. - N1, in the same round because the head moves anyway. The Quickstart writes the control into
.upgrade/(SKILL.md:72) andmkdir -p .upgradenow lives only in the reference (references/examples-upgrade.md:29-32). A command block a reader may copy should not fail on its first line. - Readings owed at the fix head. One single-repeat eval round (
skill-evals --skills objectstack-upgrade --model sonnet --effort medium --concurrency 4 --repeats 1), read by ruling 7249189592 againstmain's failing set (cases 2 and 4);check-skills-token-ratchetat(+0)on both rows;check:skill-linksandcheck:doc-anchors. The report names the head sha. The body's sizes table and two-minute check follow the new measurement; the seat patches the body from the report.
Answered, no action in this round.
- The dev's open question, whether to split the 20 KB reference file by layer: keep one file in this PR. A split needs new ratchet rows, which the standing ruling leaves to a human; the routing table links each section by anchor, so a later split changes link targets only.
check:dual-build-cjs-loadsNOT MEASURED locally (exit 3, no full build in that container): the diff touches no package source, and the check-runs on the head answer it once the last run concludes.- Eval parity at this head: the three-repeat reading is 9/15 against
main's 8/15, the failing set of the single round is cases 2 and 4 on both trees, and case 3 flips on both. No case fails on every run of the head whilemainpasses, so ruling 7249189592 is met.
Carried, not blocking. N2 (the reference reads as a complement of the entry: § 2.2 lists R1 and R2 only, § 1 Stored rows drops the 18.3 limit): accepted, the entry is always loaded first. N3 (trap 3 says a non-TTY --apply without --yes is refused with confirmation_required; the CLI emits that code only under --json, packages/cli/src/commands/migrate/meta.ts:1506-1518): the sentence is main's, a follow-up card at the seat's call. The eval cases that fail on both trees (2 and 4) have no carrier; filing is the seat's call.
Label. The record's Security-touching: yes is meant: two changed hunks carry the rule that an agent asks the owner before changing an authentication default or row visibility. The security label goes on with this comment.
Landing: none at this read. The PR stays a draft; it is Tier H and goes to the approver after the delta review of the fix head.
The Failure modes row that carried the fix for a default run was cut as a restatement, but trap 1 restated only its symptom and cause. Trap 1 now ends with the fix: port the printed edits by hand, or pass --write and port those it only lists, then replay. The Quickstart creates .upgrade/ before its first write into it. Paid inside the entry: comment padding in the Quickstart, one lead-in line above the routing table, and the explicit anchor of the decide-or-ask heading, whose own slug is now the same id. The entry is 9000 bytes; its ratchet row is re-pinned at the measurement (2244), and the changeset says where the cut row's fix lives. Claude-Session: https://claude.ai/code/session_01QsR2jVWxY6Vvb8bdNPPs9y Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Delta contract-tier review (rules face; closes or restates S1 of record 7256439570) at this head by an isolated sub-agent of seat 1's L1 thread; the record follows on this PR. |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract reviewServed-tier: DELTA review from Read for this round: the card body and its 50 comments (rulings 7128031203, 7168461386, 7176941587, 7249189592; claim 7255682669; the newest dev report is still 7256284613, written for the earlier head), the PR body as rewritten for this head, the four PR comments (the earlier record and the seat's rework note 7256460372 among them), the delta line by line, both skill files whole on this head, the entry on The judgment of every line the delta does not touch carries from record 7256439570. The PR's net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Tried to break the delta.
N4 (nit) — one command line now sits in both files.
Nits alone remain on this head: N2 and N4 are accepted deviations, N3 waits on a follow-up card. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 维护者速读
席位意见:建议批准。第一轮复审发现搬文字时丢了一句「打印出来的改动怎么落到源文件」的做法,开发已补回入口文件,增量复审确认关闭。开发问要不要把 20 KB 的参考文件按步骤拆成几份:这次不拆,拆分要新增字节上限行,按规定留给您定。 席位核对 — ACCEPT · L1 · seat repo:objectstack#1, review thread R2 · Head-sha
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Tier H approval request · 2026-11-29T13:50Z · PR #38586 (
The ask: approve the PR. After an authorized approval the seat re-runs the pre-landing checks at the then-current head and lands it through the queue; the seat does not flip it ready or queue it before that. |
Requested by Jianguo · project thread
Part of #34770
Clause-②: no
Metadata-protocol: none
Part of, not the closing form: the catalog-size line of the card's Done-when is not met by this PR. This is PR 2 of the per-skill split (claim 7247529795), taken over under claim 7255682669.维护者速读
Rulings this executes
references/examples-upgrade.md; no new file underskills/(a new file needs a new ratchet row, which stays with a human).mainpasses is a regression.What changes
The entry file becomes a router.
skills/objectstack-upgrade/SKILL.md: 24,707 → 9,000 bytes, 481 → 159 lines, 6,170 → 2,244 tokens. Frontmatter (description, triggers) is byte-identical. It now holds:## ⛔ The boundary: the four "never" rules and oneconversionIdper commit, as before.## First checks, four:--fromis the authored major (the floor of the declared range, never the upper bound, ask when the manifest and the lockfile disagree); keep anos validatecontrol of the un-upgraded source; read the prescriptions from the install; re-install the skills.## Quickstart: the command block. It creates.upgrade/before its first write into it; its comment lines are shorter.## Traps, seven, each one a state that looks finished and is not:os migrate metarewrites no source file by default (the trap ends with how the printed edits reach the sources); a greenvalidatedoes not mean the chain has nothing left; storedsys_metadatarows are rewritten only at read and only while the release carries their conversions; data migrations are per-deployment gates; code on a retired API can keep compiling while it readsundefined; prose that teaches the old shape fails nothing; the parse-gate probe is a plain data literal.## Decide alone, or ask: the rule, whole (three conditions to decide, four to ask, how to ask, how to park).## Where to go: one row per section of the reference file.Where each old section went. "Reference" is
references/examples-upgrade.md..upgrade/workspace in reference § 0os migrate metaactually does, and "the one fact that surprises every operator"--writeself-check in reference § 1; the list of command forms is cut to a pointer atos migrate meta --help--jsonerror codes; two rows left the table (see Acceptance notes)The three blocks the reference file already held (the worked R1, the report template, the v17-canonical shapes with the one type-checked example) are byte-identical. Each moved section was cut to the complement of what the entry still says, so no sentence is stated in both files.
Sizes (bytes · lines · ratchet tokens):
30141766)2ade9792)SKILL.md(entry)references/examples-upgrade.mdskills/objectstack-upgrade/**(3 files)SKILL.mdtogetherskills/tree (115 files)evals/(73 files)Budget reading: the entry is 9,000 B, at the top of the card's 6–9 KB line and not over it, and 159 lines against the 500-line cap. The skill's two authored files are 305 bytes smaller together (29,479 → 29,174). The cut is small beside the move because the skill had one short reference file and little restated text: what leaves the entry is run detail a model needs only at the step it is on.
Ratchet rows (
scripts/check-skills-token-ratchet.mjs), each pinned AT its measurement, zero headroom: entry 6170 → 2244 (−3926),references/examples-upgrade.md1193 → 5044 (+3851). The two rows sum 7,363 → 7,288 (−75); the sum of all ceilings goes 200,423 → 200,348, so both conditions of fork 4 = A hold.Tests
Eval parity
Judged by ruling record 7249189592. No case fails on every run of the head while
mainpasses. The with-skill failing set of the single-repeat round is the same onmainand on the head: cases 2 and 4.Skill evals, both arms, one command line for every round (
skill-evals --skills objectstack-upgrade --model sonnet --effort medium --concurrency 4, with--repeats 1or--repeats 3; CLI 2.1.332, subscription login). 5 cases inevals/protocol-major-upgrade.json, untouched.301417663014176671f51e9b71f51e9b1fc4d10d1fc4d10d2ade9792conditionalRequiredafter atscfailure) fails onmainin 4 of 4 readings and on this branch in 7 of 9: the answer omits the literalconversionIdor shows a??fallback while saying not to write one.os validateis green, so there was nothing to upgrade, right?") fails in every reading on both trees: the answer gives the stored-row course and omits the literalapplyConversionsToStoredItem, which the entry carries on both trees.transform) flips on both trees, 2/3 in each three-repeat reading: the failing answer quotes the retired shape while asking the owner.1fc4d10ddiffers from71f51e9bby a reflow of two paragraphs of the entry (seven lines, no word changed), so that two commands sit on one line each.2ade9792is the review round: one sentence at the end of trap 1, onemkdir -p .upgradeline in the Quickstart, and the cuts that pay for them (see Acceptance notes).Round records
71f51e9b: 10 of 10 turns, 0.7 min. Three repeats: 30 of 30 turns, 2 min.1fc4d10d: 10 of 10 turns, 0.7 min. Three repeats: 30 of 30 turns, 2 min.2ade9792: 10 of 10 turns, 0.7 min. Case 2 carried a??fallback while advising against it; case 4 omittedapplyConversionsToStoredItem.must_containliteral of the 5 cases that the skill's files carried before is still carried after (18 literals checked; 0 lost). Each one the entry carried before, it still carries.Other tests
On
1fc4d10dand again on2ade9792, under the verify lock (VERDICT command-exit 0on each), the same counts both times:pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts src/shared/retired-key-migrate-sentence.test.ts src/integration/connector-sync-retirement.test.ts(the suite that names the ratchet script, and two that scan this skill's files):Test Files 3 passed (3),Tests 54 passed (54).pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts(it names the skill in its catalog list):Test Files 1 passed (1),Tests 12 passed (12).No ablation: the diff changes prose and one ledger, no tested behaviour.
Acceptance notes
Open question for the seat or the approver:
Decided here (small, no shipped behaviour), each open to reversal in review:
--writeself-check (it restores the files and exits 1), a stored-only flag without--stored(refused, with an error code), a--frombelow the support floor (MigrationFloorError).os migrate metacommand forms is cut to a pointer atos migrate meta --help, which prints the same forms and describes every flag. The Quickstart keeps the forms a run needs.--writeand port those it only lists; then replay (trap 2)."). "Findings that have nothing to do with retired keys" restated first check 2, the control.2ade9792(contract review 7256439570, S1 and N1; seat read 7256460372). S1: the first head cut that row whole, and no sentence of either file said how the printed edits reach the sources; trap 1 now ends with it. N1: the Quickstart runsmkdir -p .upgradebefore its first write into.upgrade/. Both are paid inside the entry, which stays at 9,000 B: the comment padding of four Quickstart lines, four words of one comment, the lead-in line above the routing table, a shorter header cell there, and the explicitdecide-alone-or-askanchor, which the heading's own slug now provides (the heading reads "Decide alone, or ask"; the link to it resolves undercheck:skill-links). The changeset's last paragraph says where the cut row's fix lives.SKILL.mdand where each section is now. No file in this repository links one of them (check:skill-linksandcheck:doc-anchorsare green).Noted, not changed (outside this claim's file surface):
mainand on the head alike, and case 3 flips on both. In each failing answer the course is right and one literal is missing or one forbidden literal is quoted. That is a reading of the eval file, which this claim does not touch.overlap-checkreads it as merging cleanly.Verification
Read first, by risk:
skills/objectstack-upgrade/SKILL.md, the whole file: is anything a model needs before opening a second file missing? The risk hunks are## Trapsand## First checks.skills/objectstack-upgrade/references/examples-upgrade.md§ 1 · Mechanical layer and § 2.4: these were rewritten as the complement of the entry, not moved verbatim.scripts/check-skills-token-ratchet.mjs: the twoobjectstack-upgraderows.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsratcheted (authored) 200348 / 200348 (+0)and bothobjectstack-upgraderows at(+0);wc -c skills/objectstack-upgrade/SKILL.mdprints 9000.Gates, local (each exit code captured before any pipe). The whole derived list ran on
1fc4d10d;2ade9792differs from it by one sentence, one command line and whitespace in the entry, one ratchet row with its comments and three sentences of the changeset, so the families that read those were run again on it.On `2ade9792`: the families the review round reaches, all exit 0
node scripts/check-skills-token-ratchet.mjs:ratcheted (authored) 200348 / 200348 (+0),skills/objectstack-upgrade/SKILL.md 2244 / 2244 (+0),references/examples-upgrade.md 5044 / 5044 (+0); its--self-testexit 0.pnpm check:skill-links:290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.pnpm check:doc-anchors:1179 internal #fragment link(s) across 366 source file(s) all resolve to a real heading.pnpm check:skill-identifier-liveness,check:skill-compatibility,check:nul-bytes,check:role-word,check:corpus-claim-drift, speccheck:skill-examples(352 examples), speccheck:skill-docs,check-changeset-no-major: exit 0.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0before the push.On
1fc4d10d:Derived families: 70 derived, 69 run green, 1 NOT MEASURED
✓ dispatch-gates --ran: 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).pnpm check:dual-build-cjs-loads, exit 3,Run pnpm build first. This is NOT a pass: nothing was measured.It reads every package's builtdist/, and this container holds no full build. The diff touches no package source; CI's run is the reading.node scripts/check-skills-token-ratchet.mjs:✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.(ratcheted (authored) 200346 / 200346 (+0)); its--self-testexit 0.pnpm check:skill-links:290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.pnpm check:skill-identifier-liveness:Leg 1: 544 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).pnpm --filter @objectstack/spec run check:skill-docs: exit 0.check:skill-refs:10 generated files in sync with packages/spec.pnpm check:skill-compatibility:14 SKILL.md file(s) reconciled against 94 workspace packages.pnpm check:nul-bytes:no raw ASCII control bytes.pnpm check:role-word,check:corpus-claim-drift,check:doc-authoring,check:published-files, the changeset gates,check:pm-dispatch-gates(fast tier, 2615 cases): exit 0.Beside the derived list, all exit 0
pnpm --filter @objectstack/spec run check:skill-examples:352 prose examples type-check across 3 surface(s).pnpm check:doc-anchors:1179 internal #fragment link(s) across 366 source file(s) all resolve to a real heading.pnpm --filter @objectstack/spec run check:skill-served-sections:24 served section(s), each heading exactly once in its file(the hosted door serves no section of this skill).pnpm check:published-readme-links,pnpm check:skill-top-level-keys: exit 0.node scripts/check-platform-checklist.mjs --changed-from origin/main:0 anchored files in the change set — nothing judged.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0before each push.check-changeset-no-major,check-adr-0087-registration,check-closing-keyword-parity,check-partof-closing-keyword): exit 0.Base: the branch is cut from
30141766;mainhas moved since (tod55ee70a), with no commit touchingskills/or the ratchet script. CI on the head is the seat's reading.Generated by Claude Code