Skip to content

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
mainfrom
claude/area-o1B-37782
Draft

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/area-o1B-37782

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #37782

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:照着 AI 技能文档写智能体的人,读到「两个已下线旧字段」那段说明时,看到的是现在真实的行为:系统把它们当未知字段拒绝,并指向升级指南网页;原文说的「带迁移提示的专用报错」已不存在。
  • 为什么做:属于技能文档与平台实际行为对齐的收尾,替读文档的作者和 AI 去掉一段过期描述和两处指向空处的引用。
  • 出错会怎样:只改了说明文字,实际报错不受影响;如果写错,读者只会对报错形式有错误预期,撤回这次改动即可恢复。
  • 要你做什么:这是对外发布的技能文档,席位审核通过后请你批准合并。

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.

  • 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 (73d5e34) 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.
  • 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".
  • The two table rows are untouched, so the replacements they teach stay as taught. PR docs(skills): objectstack-ai names what replaces the retired agent keys #37797 edits those two rows.

Skill length, both readings (lines are the measure, tokens as the ratchet counts them):

before after
skills/objectstack-ai/SKILL.md 487 lines, 6799 tokens (27222 bytes) 487 lines, 6799 tokens (27222 bytes)
all skills/*/SKILL.md together 4959 lines, 262167 bytes 4959 lines, 262167 bytes

The 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.mjs is not edited.

A patch changeset for @objectstack/skills carries the two declaration lines.

Read first, by risk:

  1. skills/objectstack-ai/SKILL.md, the one hunk at the "Two AgentSchema keys" paragraph: check each claim against the tests named under Verification.
  2. .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 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 protocol 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 agent.tools row still says "the migration deletes the key and names each tool that was listed". agent-tools-to-skills and agent-knowledge-removed appear on main only in packages/spec/src/conversions/retired-after.census.json as 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.
  • 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.

Verification

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints skills/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 status clean afterwards). Every exit code was captured before any pipe. Heavy steps ran under scripts/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 --commands derived 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-closure
  • pnpm check:dual-build-cjs-loads
  • pnpm check:lean-entry-closure
  • pnpm check:sourcemap-no-sources-content

check:skill-examples and skill-evals --dry-run are 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, lint and the dependencies of scenarios.

Overlap with open pull requests

node scripts/pm/overlap-check.mjs --branch=claude/area-o1B-37782: VERDICT clean exit 0. Against origin/main (73d5e34): merges cleanly. #37797 and #37661 share skills/objectstack-ai/SKILL.md and 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

…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>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants