Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/37782-ai-skill-retired-agent-keys-refusal.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 2 additions & 1 deletion scripts/check-skills-token-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions skills/objectstack-ai/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

---
Expand Down
Loading