Repository navigation
docs(skills): objectstack-ai teaches the unknown-key refusal for the two retired agent keys - #37939
Draft
objectstack-fleet[bot] wants to merge 1 commit into
Draft
objectstack-fleet[bot] wants to merge 1 commit into
objectstack-fleet[bot] wants to merge 1 commit into
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 and the table's header cell. 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(73d5e34) 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.Skill length, both readings (lines are the measure, tokens as the ratchet counts them):
skills/objectstack-ai/SKILL.mdskills/*/SKILL.mdtogetherThe new words are paid for inside the same paragraph: the five replaced lines are 244 bytes before and 244 bytes after (the bold on one word and the test-file path went to make room for the URL). The file stays at its ceiling with headroom 0, so the ratchet row in
scripts/check-skills-token-ratchet.mjsis not edited.A patch changeset for
@objectstack/skillscarries the two declaration lines.Read first, by risk:
skills/objectstack-ai/SKILL.md, the one hunk at the "TwoAgentSchemakeys" paragraph: check each claim against the tests named under Verification..changeset/37782-ai-skill-retired-agent-keys-refusal.md.Tests
No test changes: the diff is prose in a published skill plus a changeset. The behaviour the paragraph 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.agent.toolsrow still says "the migration deletes the key and names each tool that was listed".agent-tools-to-skillsandagent-knowledge-removedappear onmainonly inpackages/spec/src/conversions/retired-after.census.jsonas retired entries, so that sentence describes a conversion that has aged out too. The row belongs to PR docs(skills): objectstack-ai names what replaces the retired agent keys #37797 and is not touched here. Read-only observation, not filed.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.Verification
Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-ai/SKILL.md is 6799 tokens (ceiling 6799; headroom 0)and exits 0.Local readings at head
46fb66389f(the union ran after the final commit;git statusclean afterwards). Every exit code was captured before any pipe. Heavy steps ran underscripts/pm/os-verify-lock.sh(both lock verdicts:VERDICT command-exit 0).Skills gates (all exit 0)
node scripts/check-skills-token-ratchet.mjs: exit 0,skills/objectstack-ai/SKILL.md is 6799 tokens (ceiling 6799; headroom 0).node scripts/check-skills-token-ratchet.mjs --self-test: exit 0.pnpm --filter @objectstack/spec run check:skill-docs: exit 0,Skill docs in sync.pnpm --filter @objectstack/spec run check:skill-examples: exit 0,352 prose examples type-check across 3 surface(s).pnpm --filter @objectstack/scenarios run skill-evals --dry-run: exit 0,dry run: no login read, no model called, nothing written.pnpm check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-links: exit 0 each.Derived list reconciliation (dispatch-gates)
node scripts/pm/dispatch-gates.mjs --commandsderived 49 commands for this change set (2 paths against merge base 73d5e34).--ran:49 derived, 45 run, 0 NOT-MEASURED, 4 UNRUN; the 45 exited 0.NOT MEASURED locally, reason: each exits 3 (PREREQUISITE NOT MET) without a whole-repository build, and each reads the built output of packages this diff does not touch. They are left to CI:
pnpm check:dts-closurepnpm check:dual-build-cjs-loadspnpm check:lean-entry-closurepnpm check:sourcemap-no-sources-contentcheck:skill-examplesandskill-evals --dry-runare outside the derived list and were run because the dispatch names them. Build closure for the gates that read built output:spec,formula,client-react,lintand the dependencies ofscenarios.Overlap with open pull requests
node scripts/pm/overlap-check.mjs --branch=claude/area-o1B-37782:VERDICT clean exit 0. Againstorigin/main(73d5e34): merges cleanly. #37797 and #37661 shareskills/objectstack-ai/SKILL.mdand both merge cleanly by text. This PR leaves the file's byte count unchanged, so it does not move the measurement another PR records for the ratchet row.Generated by Claude Code