From 46fb66389f0a619f2eb77ce7affe3a597f38539b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 11:35:55 +0000 Subject: [PATCH 1/2] docs(skills): objectstack-ai teaches the unknown-key refusal for the 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 --- .../37782-ai-skill-retired-agent-keys-refusal.md | 10 ++++++++++ skills/objectstack-ai/SKILL.md | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 .changeset/37782-ai-skill-retired-agent-keys-refusal.md diff --git a/.changeset/37782-ai-skill-retired-agent-keys-refusal.md b/.changeset/37782-ai-skill-retired-agent-keys-refusal.md new file mode 100644 index 00000000000..e0e3fa1d65c --- /dev/null +++ b/.changeset/37782-ai-skill-retired-agent-keys-refusal.md @@ -0,0 +1,10 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): the `objectstack-ai` skill describes the refusal the two retired agent keys get today + +Clause-②: no +Metadata-protocol: none + +`skills/objectstack-ai/SKILL.md`: the paragraph above the retired-key table called `agent.tools` and `agent.knowledge` tombstones whose parse error carries its migration, and cited two line numbers of `agent.zod.ts` that no longer point at either key. Both tombstones left the schema in protocol 18. The paragraph now says what the strict `AgentSchema` does: it refuses each as an unknown key, and the refusal names https://objectstack.ai/docs/protocol-upgrade. The table header says the same in short. The two table rows and what they teach as replacements are unchanged, and the file's token count is unchanged. diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index 881fcef3a6a..6f7734e1052 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -452,11 +452,11 @@ absent or `true` = the binding rule above. part), auto-registered **only** when an analytics service (`IAnalyticsService`) is wired — `query_data` / `aggregate_data` return numbers, not charts. -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`): +Two `AgentSchema` keys are retired, not legacy options: the strict schema +refuses each as an unknown key, naming +https://objectstack.ai/docs/protocol-upgrade: -| Retired key | REMOVED in protocol 17 — why, and what replaces it | +| Retired key | Removed in 17, tombstone gone in 18 — why, and what replaces it | |:--|:--| | `agent.tools` | The inline slot resolved names against the *full* registry with no surface check. Not a rename: the migration deletes the key and names each tool that was listed; re-declare each in a skill (ADR-0064) | | `agent.knowledge` | Declaring sources/indexes on an agent never scoped retrieval — `search_knowledge` takes `sourceIds` from the model's tool-call arguments. Restrict at the knowledge-service / source level; describe intended grounding in `instructions` | From 873d3a6d0edb6e11a79b527ac98040a35d753b67 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 12:52:40 +0000 Subject: [PATCH 2/2] docs(skills): the agent.tools row no longer teaches an aged-out migration 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 --- .changeset/37782-ai-skill-retired-agent-keys-refusal.md | 2 +- scripts/check-skills-token-ratchet.mjs | 3 ++- skills/objectstack-ai/SKILL.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.changeset/37782-ai-skill-retired-agent-keys-refusal.md b/.changeset/37782-ai-skill-retired-agent-keys-refusal.md index e0e3fa1d65c..49a89032ae7 100644 --- a/.changeset/37782-ai-skill-retired-agent-keys-refusal.md +++ b/.changeset/37782-ai-skill-retired-agent-keys-refusal.md @@ -7,4 +7,4 @@ docs(skills): the `objectstack-ai` skill describes the refusal the two retired a Clause-②: no Metadata-protocol: none -`skills/objectstack-ai/SKILL.md`: the paragraph above the retired-key table called `agent.tools` and `agent.knowledge` tombstones whose parse error carries its migration, and cited two line numbers of `agent.zod.ts` that no longer point at either key. Both tombstones left the schema in protocol 18. The paragraph now says what the strict `AgentSchema` does: it refuses each as an unknown key, and the refusal names https://objectstack.ai/docs/protocol-upgrade. The table header says the same in short. The two table rows and what they teach as replacements are unchanged, and the file's token count is unchanged. +`skills/objectstack-ai/SKILL.md`: the paragraph above the retired-key table called `agent.tools` and `agent.knowledge` tombstones whose parse error carries its migration, and cited two line numbers of `agent.zod.ts` that no longer point at either key. Both tombstones left the schema in protocol 18. The paragraph now says what the strict `AgentSchema` does: it refuses each as an unknown key, and the refusal names https://objectstack.ai/docs/protocol-upgrade. The table header says the same in short. In the `agent.tools` row, the clause that said a migration deletes the key and names each listed tool now says the strict schema refuses the key as unknown: the conversion that did that left the load path in 17.0.0. The replacements both rows teach are unchanged, and the file is 4 tokens shorter. diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index ad5205a8f82..108a6c3f2e2 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -446,7 +446,8 @@ export const CEILINGS = new Map([ // 6799 -> 6795 (#37797): LOWERED to the measurement on that PR's head merged // with `main`. Two retired-key rows name their replacements; one sample // instruction line left the skill example and over-paid by 4 tokens. - ['skills/objectstack-ai/SKILL.md', 6795], // -18 (was 6824), then -5 A2′ (was 6806) + // 6795 -> 6791 (#37782): the `agent.tools` row no longer teaches an aged-out migration; LOWERED to the measurement. + ['skills/objectstack-ai/SKILL.md', 6791], // -18 (was 6824), then -5 A2′ (was 6806) // -12 (was 6331): the `http.server` decision-table row dropped a trailing // clause that taught `contributes.routes` as a key that "parses but serves // nothing". The key is retired — an authored entry is now REFUSED, carrying diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index ceccc3874ac..a3721649ab6 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -457,7 +457,7 @@ https://objectstack.ai/docs/protocol-upgrade: | Retired key | Removed in 17, tombstone gone in 18 — why, and what replaces it | |:--|:--| -| `agent.tools` | The inline slot resolved names against the *full* registry with no surface check. 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) | +| `agent.tools` | The inline slot resolved names against the *full* registry with no surface check. 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) | | `agent.knowledge` | Declaring sources/indexes on an agent never scoped retrieval — `search_knowledge` takes `sourceIds` from the model's tool-call arguments. Restrict on the knowledge source (`aiExposed`, `source.where`); describe intended grounding in `instructions` | ---