Repository navigation
docs(skills): objectstack-ai names what replaces the retired agent keys - #37797
Conversation
…gent keys; eval case 6 grades a code spelling Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie Final head for review: |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 86f70f0 · 2026-11-27T04:19Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: PR #37797, card #37419, under ruling 7208935788 (option A; analysis 7207740184). Read: the card body and all 10 comments, the PR body, the 3-file net diff against
① Derived judgments
② Semver level
Clause-②: no. Correct on the PR body and on the changeset: nothing is narrowed and no declared capability is taken away. ③ Boundary flags
④ Design judgmentDoes the diff do what ruling A says, and only that? Yes. Item 1: case 6 as ruled, and the PR body says why. Item 2: the two tombstone rows, the paragraph untouched, one example line as the only trim. Item 3: figure recorded, marked not acceptance. Item 4: round recorded on the pushed head. Nothing else is in the diff except the changeset the changeset gate requires. No third rewording, no fall-back to B or C. Does the acceptance round meet the bar, and is 4/5 on case 5 within it? Yes on both. The card's bar is "with-skill pass rate on both cases ≥ 4 of 5"; ruling item 4 adds "case 6 without the skill ≤ 1/5". Reported on
Token ratchet (
M1 (must-fix) — the head leaves the ratchet row above the file's measurement, which current No should-fix. Nits, no effect on correctness or the contract:
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK (one row) at head The one item owed: the contract review's M1. The record on this head (posted just above, Fix. Merge Everything else holds.
Delta. If |
…easurement (6797) Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
The one conflict is the skills/objectstack-ai/SKILL.md ceiling row in scripts/check-skills-token-ratchet.mjs; this merge takes the row and its notes exactly as they landed on main (6799). The row is re-pinned to the merged measurement in the next commit. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
…merged measurement (6795) main moved the row 6801 -> 6800 -> 6799 while this branch waited. On this branch merged with main the file measures 6795 priced tokens, so the row follows the measurement down: a lowering, no raise. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
…s its case-6 paragraph Second ruling on the card (record 7217332972, option A): the two tombstone rows and the trimmed example line land; case 6 leaves this PR. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie Final head for review: |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 5b486c6 · 2026-11-27T12:16Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta review of PR #37797 for card #37419, after record 7209779352 on
M1 (must-fix): closed The row for ① Derived judgments
② Semver levelThe changeset is Clause-②: no. Correct on the PR body and the changeset. ③ Boundary flags
④ Design judgmentThe second ruling (7217332972, execution items 1 to 6), checked on the tree:
Observations N1 and N3 of 7209779352 are unchanged and stay as recorded there. N2 concerned the case-6 token and no longer applies to this diff; its subject belongs to #37928. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head 席位核对Shape and gates. Net diff against The one row owed: closed. I merged this head onto current Contract review. Delta record 7218120173 at this head: PASS, served at the contract tier ( Second ruling obeyed. I compared the net diff with the one I read at The area's question, the Landing: governed |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-27T12:22Z · PR #37797 (Fixes #37419) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang — |
…two retired agent keys (objectstack-ai#37939) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DLCo5F2y7fgbM8tstGoyyUn)_ Fixes objectstack-ai#37782 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照着 AI 技能文档写智能体的人,读到「两个已下线旧字段」那段说明时,看到的是现在真实的行为:系统把它们当未知字段拒绝,并指向升级指南网页。原文说的「带迁移提示的专用报错」和「迁移会自动删除该字段」都已不存在,这次一并改正。 - 为什么做:技能文档与平台实际行为对齐的收尾,去掉一段过期描述、表格里一句过期说法和两处指向空处的引用。 - 出错会怎样:只改了说明文字,实际报错不受影响;写错的话读者只会对报错形式有错误预期,撤回这次改动即可恢复。 - 要你做什么:这是对外发布的技能文档,席位审核通过后请你批准合并。 ## What changes `skills/objectstack-ai/SKILL.md`, the paragraph above the retired-key table, the table's header cell, and one clause of the `agent.tools` row. Nothing else in the file moves. - Paragraph, before: "Two `AgentSchema` keys are **tombstones**, not legacy options — authoring either is a parse error carrying its migration (`packages/spec/src/ai/agent.zod.ts:234, :251`)". On `main`, lines 234 and 251 of that file hold a type export and a memory-store constant, and the file declares no `tools` or `knowledge` key and no `retiredKey()` for either. - Paragraph, after: "Two `AgentSchema` keys are retired, not legacy options: the strict schema refuses each as an unknown key, naming https://objectstack.ai/docs/protocol-upgrade:". The citation is the strict-object refusal itself, stated in words. No line number is left to drift. - Header cell: "REMOVED in protocol 17" becomes "Removed in 17, tombstone gone in 18". - `agent.tools` row, one clause, before: "Not a rename: the migration deletes the key and names each tool that was listed; re-declare each in a `defineSkill` under the stack's `skills` (ADR-0064)". After: "Not a rename: the strict schema refuses the key as unknown; re-declare each tool in a `defineSkill` under the stack's `skills` (ADR-0064)". The `agent-tools-to-skills` conversion left the load path in `@objectstack/spec` 17.0.0 (`packages/spec/src/conversions/retired-after.census.json`), so no migration converts the key any more. The row's why-sentence and its replacement stay as PR objectstack-ai#37797 landed them. The L1 (7218142210) and contract review (7218120173) of objectstack-ai#37797 both carried this clause here. - The `agent.knowledge` row is untouched. - `scripts/check-skills-token-ratchet.mjs`: the `skills/objectstack-ai/SKILL.md` row is lowered 6795 to 6791, the file's measurement on this head, with a one-line note. A lowering, not a raise; no other row moves. - A patch changeset for `@objectstack/skills` carries the two declaration lines and names the clause. Head `873d3a6d` merges `main` after PR objectstack-ai#37797 (`3247e87d`) with no conflict, then rewrites the clause and lowers the row. Skill length (tokens as the ratchet counts them): | | before (`main`) | after (`873d3a6d`) | |:--|:--|:--| | `skills/objectstack-ai/SKILL.md` | 486 lines, 6795 tokens (27207 bytes) | 486 lines, 6791 tokens (27191 bytes) | Read first, by risk: 1. `skills/objectstack-ai/SKILL.md`, the "Two `AgentSchema` keys" paragraph and the `agent.tools` row: check each claim against the tests named under Tests. 2. `scripts/check-skills-token-ratchet.mjs`, the one row: 6795 to 6791 and its note. 3. `.changeset/37782-ai-skill-retired-agent-keys-refusal.md`. ## Tests No test changes: the diff is prose in a published skill, a ratchet row and a changeset. The behaviour the text describes is already pinned on `main` in `packages/spec/src/ai/agent.test.ts`: - describe `agent.tools retirement (ADR-0064) — aged out; tools move into skills`, test "REFUSES a legacy inline tools array as an unknown key naming the upgrade guide". - describe `AgentSchema`, group `Tools and Capabilities`, test "the refusal is the strict unknown-key one, naming the guide where the scoping prescription lives" (asserts `unrecognized_keys`, the key name `knowledge` and the guide URL). `AgentSchema` is built with `strictObject` in `packages/spec/src/ai/agent.zod.ts`; the URL is `PROTOCOL_UPGRADE_GUIDE_URL` in `packages/spec/src/shared/protocol-upgrade-guide.ts`. ## Acceptance notes - The card and the dispatch name an `agent.knowledge` describe in `agent.test.ts`. There is none on `main`: the `knowledge` refusal is pinned by the two tests in `AgentSchema` / `Tools and Capabilities`. The paragraph cites no describe name, so nothing depends on it. - "Removed in 17" is kept as a fact: `content/docs/ai/tools.mdx` on `main` says `agent.tools` was removed in protocol 17, and the comments in `agent.test.ts` say both tombstones left the shape at 18. - The same file cites `packages/spec/src/ai/agent.zod.ts:87-95` in its Model Configuration section. Those lines still hold the keys it names (the range has drifted by a few lines). Outside this card's paragraph, not touched. - Overlap at `873d3a6d`: `main` merges cleanly; PR 37919 and PR 37661 merge cleanly. PR 37947, PR 37937 and PR 36158 each conflict with this branch only in `scripts/check-skills-token-ratchet.mjs`, at the lowered row (`SKILL.md` merges by text with all of them). Whichever lands second merges `main` and re-measures the row. ## Verification Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `skills/objectstack-ai/SKILL.md is 6791 tokens (ceiling 6791; headroom 0)` and exits 0. <details> <summary>Local gates at 873d3a6 (exit codes captured before any pipe, under os-verify-lock)</summary> - `node scripts/check-skills-token-ratchet.mjs`: exit 0, "skills/objectstack-ai/SKILL.md is 6791 tokens (ceiling 6791; headroom 0)". `--self-test`: exit 0. - `check:skill-examples`, `check:skill-docs`, `skill-evals --dry-run`, `check:skill-identifier-liveness`, `check:skill-links`, `check:nul-bytes`, `check:doc-authoring`: exit 0 each. - NOT MEASURED this round: the rest of the derived list (it ran in full at `46fb6638`, 45 of 49 exit 0 and 4 left to CI for want of a whole-repository build); `packages/spec/scripts/platform-catalog.test.ts`, reason: the script edit is one comment line and one number. CI runs both. - Dev reports on the card: 7217962987 (round 1), 7218957386 (this round; it supersedes 7218940982, whose overlap line was wrong). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie)_ <!-- signed: repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Elon · project thread
Fixes #37419
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md, the retired-keys table (2 rows): theagent.toolsrow now says where the tools go (adefineSkillunder the stack'sskills); theagent.knowledgerow names the two keys that restrict retrieval on the knowledge source (aiExposed,source.where). Both come from the saved phase-2 patch, applied by hand.skills/objectstack-ai/SKILL.md, the skill example: one sample instruction line removed ("Escalated cases must summarise the actions already taken."). This is the whole payment for the two rows: on the base this PR was written on, the rows alone took the file to 6813 tokens against a 6801 ceiling (over by 12), and with the line gone it measured 6797 (4 under).mainhas since lowered the file and its row twice (6801, then 6800, then 6799); on the current head the file measures 6795 againstmain's 6799, the same 4 under. The other trims of the saved patch are not applied: the ratchet does not need them.main(ruling 7208935788, execution item 2; second ruling 7217332972, item 5).skills/objectstack-ai/evals/skills-tools-knowledge.jsonis not in this PR any more. Under the second ruling on the card (7217332972, option A, 「A 先上第5题,第6题另开卡」) case 6 is back atmain's bytes:git diff origin/main HEADfor that file is empty. Case 6 moved to skill-evals grader: an any-of form over literal tokens, so one case can accept any of several correct code spellings (objectstack-ai case 6 first) #37928 (the skill-evals grader gains an any-of form over literal tokens, and case 6 is graded with it).scripts/check-skills-token-ratchet.mjs: the ceiling row forskills/objectstack-ai/SKILL.mdis lowered from 6799 (the value onmain) to 6795, the file's measurement on this head.mainreds a row left above its measurement, so the 4 tokens the trim over-paid are banked in the row. A lowering, not a raise; no other row moves, and the two notesmainwrote above the row stay as they landed..changeset/37419-ai-skill-tombstone-replacements.md:@objectstack/skillspatch. Its paragraph on case 6 is removed.5b486c62is239d73bdplus one commit: the eval file restored frommainand the changeset paragraph removed (2 files, +1 / -3).mainwas not merged again: since0a3ea67c(already inside this head)mainhas moved 4 commits to73d5e347, none of them inskills/, the ratchet script or this PR's changeset, and a trial merge of73d5e347is clean with the sameskills/tree and the same ratchet script as this head. So the ratchet reading on this head is the reading on the merged tree.skills/objectstack-ai/SKILL.mdis the same blob on239d73bdand on5b486c62(3215031f):git diff 239d73bd 5b486c62for that file is empty. The skill text the239d73bdround read is the text on this head.Skills size readings
main73d5e347)5b486c62)skills/objectstack-ai/SKILL.md, linesskills/objectstack-ai/SKILL.md, tokens of ceiling (ratchet)skills/*/SKILL.md, linesNet lines across
skills/**: +2 / -3 = -1 (budget: at most +3). Themaincolumn was measured on0a3ea67c;mainhas not changedskills/or the ratchet script since.Tests
Acceptance, narrowed to case 5 by the second ruling (7217332972, item 3): the round on
239d73bd(dev report 7217136306), 5 draws per arm. Scratch worktree at the pushed head, eval file trimmed locally to ids 5 and 6 (uncommitted);pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ai --repeats 5. Driver: claude-code-cli 2.1.332, subscription login, the login's default tier, CLI default effort,--max-turns 16, 2 at once. 20 of 20 turns ran; none invalid or errored. No new round is owed on5b486c62:SKILL.mdis byte-identical to239d73bd(item 2 of the ruling's execution).Case 5 with the skill on the three earlier rounds since the two rows: 4/5, 4/5, 4/5. The case-6 rates of the same rounds stay recorded on the card (report 7217136306) and belong to #37928.
No behaviour pinned by a unit test changed, so no ablation.
Acceptance notes
overlap-check --branch=claude/area-o1B-37419at5b486c62:main(73d5e347) merges cleanly; PR 37661 (sharesskills/objectstack-ai/SKILL.md) and PR 37919 (sharesscripts/check-skills-token-ratchet.mjs) merge cleanly by text. PR 36158 is reported as conflicting inscripts/check-skills-token-ratchet.mjs(exit 1); its head (937e2f14) conflicts withmainalone in the same six regions of that file, none of them this PR's row, so the conflict is not this PR's.claude/area-o1B-37782at46fb6638, no PR open yet; it corrects a paragraph in the sameSKILL.md) merges with this head cleanly by text. The row is pinned at the measurement (headroom 0), so whichever of the two lands second mergesmainand re-measures the ratchet row.Verification
Read first, by risk:
skills/objectstack-ai/SKILL.md, the two rows of the retired-keys table: checkaiExposedandsource.whereagainst the knowledge-source table higher in the same file.skills/objectstack-ai/SKILL.md, the skill example: one instruction line gone, nothing else.scripts/check-skills-token-ratchet.mjs, the one row: 6799 to 6795 and its note.Two-minute check:
node scripts/check-skills-token-ratchet.mjs; expect exit 0 and the line "skills/objectstack-ai/SKILL.md is 6795 tokens (ceiling 6795; headroom 0)".Local gates at 5b486c6
node scripts/check-skills-token-ratchet.mjs: exit 0, "skills/objectstack-ai/SKILL.md is 6795 tokens (ceiling 6795; headroom 0)" and "61 authored bundle file(s) within their ceilings".node scripts/check-skills-token-ratchet.mjs --self-test: exit 0, "111 cases pass".packages/spec/scripts/platform-catalog.test.ts(the test that names the ratchet script): 20 of 20 pass.node scripts/pm/dispatch-gates.mjs --commands: 67 derived. 65 ran, all exit 0. 2 exit 3, NOT MEASURED, each refusing for want of a full workspace build:check:dual-build-cjs-loads,check:lean-entry-closure. CI runs them, and this PR touches no package.dispatch-gates --ran: "67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0, "0 anchored files in the change set — nothing judged".5b486c62: 29 success, 16 skipped, none failed.86f70f00:check:skill-examplesexit 0, "352 prose examples type-check across 3 surface(s)". Not re-run on this head; CI'sLint · docs & code guardsandType Check · source gatesare green on it.Generated by Claude Code