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..49a89032ae7 --- /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. 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 3215031f60e..a3721649ab6 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -451,13 +451,13 @@ 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 `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` | ---