Repository navigation
docs(skills): objectstack-ai teaches the unknown-key refusal for the two retired agent keys - #37939
Conversation
…two retired agent keys The paragraph above the retired-key table called agent.tools and agent.knowledge tombstones and cited two agent.zod.ts line numbers that point at neither key. Both tombstones left the schema in protocol 18; the strict AgentSchema refuses each as an unknown key and the refusal names the protocol upgrade guide (pinned in agent.test.ts). Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
…tion The clause said a migration deletes the key and names each listed tool; the agent-tools-to-skills conversion left the load path in 17.0.0. It now says the strict schema refuses the key as unknown. The ratchet row follows the measurement down, 6795 -> 6791. 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 873d3a6 · 2026-11-27T13:09Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: First record on PR #37939 for card #37782. Read: the card body and its five comments (triage 7208787937, claim 7217183680, dev reports 7217962987, 7218940982 and its correction 7218957386); the PR title, body and 3-file list; the net diff against
① Derived judgments
② Semver level
Clause-②: no. Correct on the PR body and in the changeset: nothing an author could write before is refused now, and nothing refused before is accepted. The changeset, sentence by sentence against
③ Boundary flags
④ Design judgment
The paragraph, fact by fact:
The Tried to break it: an author who writes either key gets a refusal that names the key and the URL the paragraph gives, so the text predicts the real message. The row now repeats the paragraph's refusal in six words; redundant, not wrong, and the file still shrank.
N1 (nit) — the changeset says the old clause is stale because "the conversion that did that left the load path in 17.0.0". The census confirms the fact, but it is not the cause: the protocol-17 step says its tombstoned conversions were N2 (nit) — outside the diff: N3 (nit) — outside the diff, same follow-up: 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. 3 files, +17/-6: one Ratchet, measured by me. I merged this head onto current Contract review. Record 7219261608 at this head: PASS, served at the contract tier ( Fixes is right. The stale The carry from #37797 is discharged. Record 7218120173 and my ACCEPT 7218142210 there asked this PR to cover the Nits, none blocking. N1: the changeset gives the 17.0.0 load-path retirement as the cause, where the cause is that the kit aged out at 18; the ratchet note has it right. Accepted as is. N2 and N3 are drift outside the diff: eval case 5's Overlap. PRs #37947, #37937 and #36158 conflict with this branch only at the ratchet row. Whichever lands second merges Landing: governed |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-27T13:17Z · PR #37939 (Fixes #37782) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang — |
Requested by Elon · project thread
Fixes #37782
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md, the paragraph above the retired-key table, the table's header cell, and one clause of theagent.toolsrow. Nothing else in the file moves.AgentSchemakeys are tombstones, not legacy options — authoring either is a parse error carrying its migration (packages/spec/src/ai/agent.zod.ts:234, :251)". Onmain, lines 234 and 251 of that file hold a type export and a memory-store constant, and the file declares notoolsorknowledgekey and noretiredKey()for either.AgentSchemakeys 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.agent.toolsrow, one clause, before: "Not a rename: the migration deletes the key and names each tool that was listed; re-declare each in adefineSkillunder the stack'sskills(ADR-0064)". After: "Not a rename: the strict schema refuses the key as unknown; re-declare each tool in adefineSkillunder the stack'sskills(ADR-0064)". Theagent-tools-to-skillsconversion left the load path in@objectstack/spec17.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 docs(skills): objectstack-ai names what replaces the retired agent keys #37797 landed them. The L1 (7218142210) and contract review (7218120173) of docs(skills): objectstack-ai names what replaces the retired agent keys #37797 both carried this clause here.agent.knowledgerow is untouched.scripts/check-skills-token-ratchet.mjs: theskills/objectstack-ai/SKILL.mdrow 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.@objectstack/skillscarries the two declaration lines and names the clause.Head
873d3a6dmergesmainafter PR #37797 (3247e87d) with no conflict, then rewrites the clause and lowers the row.Skill length (tokens as the ratchet counts them):
main)873d3a6d)skills/objectstack-ai/SKILL.mdRead first, by risk:
skills/objectstack-ai/SKILL.md, the "TwoAgentSchemakeys" paragraph and theagent.toolsrow: check each claim against the tests named under Tests.scripts/check-skills-token-ratchet.mjs, the one row: 6795 to 6791 and its note..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
maininpackages/spec/src/ai/agent.test.ts: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".AgentSchema, groupTools and Capabilities, test "the refusal is the strict unknown-key one, naming the guide where the scoping prescription lives" (assertsunrecognized_keys, the key nameknowledgeand the guide URL).AgentSchemais built withstrictObjectinpackages/spec/src/ai/agent.zod.ts; the URL isPROTOCOL_UPGRADE_GUIDE_URLinpackages/spec/src/shared/protocol-upgrade-guide.ts.Acceptance notes
agent.knowledgedescribe inagent.test.ts. There is none onmain: theknowledgerefusal is pinned by the two tests inAgentSchema/Tools and Capabilities. The paragraph cites no describe name, so nothing depends on it.content/docs/ai/tools.mdxonmainsaysagent.toolswas removed in protocol 17, and the comments inagent.test.tssay both tombstones left the shape at 18.packages/spec/src/ai/agent.zod.ts:87-95in 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.873d3a6d:mainmerges cleanly; PR 37919 and PR 37661 merge cleanly. PR 37947, PR 37937 and PR 36158 each conflict with this branch only inscripts/check-skills-token-ratchet.mjs, at the lowered row (SKILL.mdmerges by text with all of them). Whichever lands second mergesmainand re-measures the row.Verification
Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-ai/SKILL.md is 6791 tokens (ceiling 6791; headroom 0)and exits 0.Local gates at 873d3a6 (exit codes captured before any pipe, under os-verify-lock)
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.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.Generated by Claude Code