Repository navigation
docs: retired agent keys are refused as unknown keys, not tombstones (eval case 5 prose, ai/agents page, agent.zod.ts comment) - #38003
Conversation
Eval case 5's expected_output, the tools and knowledge rows of the ai/agents page and the AIKnowledgeSchema comment in agent.zod.ts now say what protocol 18 does: the strict AgentSchema refuses each key as an unknown key naming the upgrade guide. Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
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 1c2e51f · 2026-11-27T15:37Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: First record on PR #38003 for card #37967 (the follow-up to N2 and N3 of record 7219261608 on PR #37939). Read: the card body and its three comments (triage 7220504340, claim 7220959162, dev report 7221579739); the PR title, body, its 4-file list and its comments (docs-drift 7221594747, head comment 7222267895, review claim 7222287329); the net diff against the merge base
① Derived judgments
② Semver level
Clause-②: no. Correct on the PR body and in the changeset: no accept set moves. The changeset, sentence by sentence against the tree:
③ Boundary flags
④ Design judgment
N1 (nit) — N2 (nit) — the rows no longer mention 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. 4 files, +23/-5, all text. Check-runs at 1c2e51f: 60 success, 10 skipped, 0 failed. The head merges cleanly into current Contract review. Record 7222359751 at this head: PASS at the contract tier ( What I read myself.
Follow-up. N1: Landing: governed |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-27T15:43Z · PR #38003 (Fixes #37967) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang — text only: eval case 5's |
Requested by Elon · project thread
Fixes #37967
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Text only, three places.
agent.toolsandagent.knowledgewere removed in protocol 17 and their tombstones left the shape at protocol 18. Since then the strictAgentSchemarefuses each as an unknown key, and the refusal names https://objectstack.ai/docs/protocol-upgrade (pinned inpackages/spec/src/ai/agent.test.ts, theagent.tools retirementandknowledgeblocks).skills/objectstack-ai/evals/skills-tools-knowledge.json, case 5,expected_outputonly. "are protocol-17 tombstones" becomes "were removed in protocol 17: the strict schema refuses each as an unknown key, naming" the guide. The prompt,filesandassertionsare unchanged, so the case hash does not move and no eval round is owed. No other case is touched.content/docs/ai/agents.mdx, thetoolsandknowledgerows. "typednever, so writing it failstsc, and a value that reaches the runtime is rejected at parse" becomes "the key is not on the type, and the strict schema refuses it as an unknown key, naming the upgrade guide". "Removed in protocol 17", each row's why and its replacement stay.packages/spec/src/ai/agent.zod.ts, the comment on the removedAIKnowledgeSchema. It saidagent.knowledgeis "tombstoned below"; no key below declares it. Comment only. ThelongTerm.store"tombstoned below" further down is a live tombstone and is not touched.One changeset:
@objectstack/skillspatch and@objectstack/specpatch (the spec package shipssrc/**/*.zod.ts, so the comment is published bytes).Read first, by risk:
skills/objectstack-ai/evals/skills-tools-knowledge.json: the one changed line must stay inside case 5'sexpected_output.content/docs/ai/agents.mdx: the two table rows.packages/spec/src/ai/agent.zod.ts: the comment hunk near line 100.Skills readings (
skills/**diff): the eval file is 125 lines before and 125 after (13680 bytes before, 13784 after). AllSKILL.mdfiles together are 4958 lines before and after; noSKILL.mdis in the diff. The eval file is an eval fixture, which the token ratchet measures and does not ratchet.Tests
All on head
1c2e51ffc1.Spec tests that read agent.zod.ts
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2onsrc/ai/agent.test.ts,src/ai/agent-memory-store-retirement.test.ts,src/ai/agent-model-provider-retirement.test.ts,src/type-alias-convention.pin.test.ts,scripts/file-description.test.tsandscripts/liveness/tombstoned-row-status.test.ts:Test Files 6 passed (6),Tests 214 passed (214), lock verdictVERDICT command-exit 0.Case 5 byte identity
A key-by-key comparison of all 12 cases against
origin/mainreports one difference: case 5, keyexpected_output. The case hash reads the prompt, the assertions,should_triggerandfiles, none of which changed.Token ratchet
node scripts/check-skills-token-ratchet.mjsexit 0:61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted. Ratcheted authored total199679 / 199679 (+0). No ceiling line is changed.Derived gate families (dispatch-gates --commands, 110)
check:doc-formula-expressions,check:doc-security-posture,check:skill-examples,check:docs-transcript-drift,check:dts-closure,check:lean-entry-closure.pnpm check:dual-build-cjs-loads, exit 3,PREREQUISITE NOT MET: it needs every package built. Not built locally for a comment-only change; CI measures it.dispatch-gates --ran:110 derived, 109 run, 1 NOT-MEASURED, 0 UNRUN.node scripts/check-nul-bytes.mjsexit 0.Acceptance notes
ai/agentspage was read for the same stale claim. The code sample's comment on the removedknowledgeblock states only the removal and is true. Nothing else on the page calls either key a tombstone or typednever.test:repoand the repo-wide lint are left to CI.Verification
Two minutes:
git grep -n 'typed .never.\|protocol-17 tombstones' -- content/docs/ai/agents.mdx skills/objectstack-ai/evals/skills-tools-knowledge.jsonprints nothing, andpnpm --filter @objectstack/spec exec vitest run src/ai/agent.test.tspasses, which is the behaviour the three texts now describe.Generated by Claude Code