From 86f70f00f180b7f4e5b6915ae4470802ccdf9d83 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 03:26:12 +0000 Subject: [PATCH 1/4] docs(skills): objectstack-ai names the replacements for the retired agent keys; eval case 6 grades a code spelling Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude --- .changeset/37419-ai-skill-tombstone-replacements.md | 12 ++++++++++++ skills/objectstack-ai/SKILL.md | 5 ++--- .../objectstack-ai/evals/skills-tools-knowledge.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .changeset/37419-ai-skill-tombstone-replacements.md diff --git a/.changeset/37419-ai-skill-tombstone-replacements.md b/.changeset/37419-ai-skill-tombstone-replacements.md new file mode 100644 index 00000000000..17cf0dbf6eb --- /dev/null +++ b/.changeset/37419-ai-skill-tombstone-replacements.md @@ -0,0 +1,12 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): the `objectstack-ai` skill names what replaces the two retired agent keys + +Clause-②: no +Metadata-protocol: none + +`skills/objectstack-ai/SKILL.md`: the `agent.tools` tombstone row now says where the tools go (a `defineSkill` under the stack's `skills`), and the `agent.knowledge` row names the two keys that restrict retrieval on the knowledge source (`aiExposed`, `source.where`). The words are paid for in the same file: the skill example loses one sample instruction line. No fact is removed. + +The skill's eval case on deciding a pending action from an operator script now checks the permission name `ai:approve` in the answer instead of two English phrases; the forbidden approve call is checked as before. The eval file is a test fixture and teaches nothing by itself. diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index 7a89e6400d0..8864f5685e4 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -90,7 +90,6 @@ export default defineSkill({ When managing cases: - Always check for duplicate cases before creating a new one. - Set priority by customer tier: Enterprise → High, Pro → Medium, Free → Low. - - Escalated cases must summarise the actions already taken. `, // Two platform tools (rung 2) and this stack's own Action (rung 3). tools: ['query_records', 'get_record', 'action_crm_escalate_case'], @@ -456,8 +455,8 @@ is a parse error carrying its migration | Retired key | REMOVED in protocol 17 — 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` | +| `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.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` | --- diff --git a/skills/objectstack-ai/evals/skills-tools-knowledge.json b/skills/objectstack-ai/evals/skills-tools-knowledge.json index 9282e6562da..6d385d1f0cd 100644 --- a/skills/objectstack-ai/evals/skills-tools-knowledge.json +++ b/skills/objectstack-ai/evals/skills-tools-knowledge.json @@ -57,7 +57,7 @@ "expected_output": "Does not decide on the token: the script may list the queue (`client.ai.pendingActions.list({ status: 'pending' })`), but approving or rejecting an item is the person's own act, done in the app on their signed-in session by the person the assistant call ran as. An API key or token is refused on the decide door, even the person's own, and so is an AI identity; another user's `ai:approve` does not decide the item, and the model's own confirmation does not count. The script reports or notifies the stale items instead; where a second person must approve the write, that is the approvals engine's `held` outcome.", "files": [], "assertions": { - "must_contain": ["signed-in session", "refused"], + "must_contain": ["ai:approve"], "must_not_contain": ["pendingActions.approve("] } }, From 9ce0cca93229d4300d54b66ded17bddbfed15449 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 04:27:08 +0000 Subject: [PATCH 2/4] chore(skills): lower the objectstack-ai SKILL.md ratchet row to its measurement (6797) Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude --- scripts/check-skills-token-ratchet.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index 90f6d45fe5c..444d031ca07 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -439,7 +439,10 @@ export const CEILINGS = new Map([ // CEILING_BASIS.strippedInternalIds. `(was N)` is the ceiling this replaced. // Every SKILL.md row was later lowered by exactly 5 when its release-stamp // line left the count (A2′, see STAMP_LINE_REPIN) — its headroom did not move. - ['skills/objectstack-ai/SKILL.md', 6801], // -18 (was 6824), then -5 A2′ (was 6806) + // 6801 -> 6797 (#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', 6797], // -18 (was 6824), then -5 A2′ (was 6806), then -4 (was 6801) // -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 From 239d73bd49f9349c95874c72809ea61e97f93cf1 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 10:48:50 +0000 Subject: [PATCH 3/4] chore(skills): re-pin the objectstack-ai SKILL.md ratchet row to the merged measurement (6795) main moved the row 6801 -> 6800 -> 6799 while this branch waited. On this branch merged with main the file measures 6795 priced tokens, so the row follows the measurement down: a lowering, no raise. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie --- scripts/check-skills-token-ratchet.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index 7ebfaaec6c6..ad5205a8f82 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -443,7 +443,10 @@ export const CEILINGS = new Map([ // Modify All cast no field vote). 27230 -> 27225 bytes; the row follows the measurement down. // 6800 -> 6799 (card #37304): the `supportKb` example's two renamed keys add // two bytes and its comment gives back six; the row follows the measurement down. - ['skills/objectstack-ai/SKILL.md', 6799], // -18 (was 6824), then -5 A2′ (was 6806) + // 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) // -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 From 5b486c6252ee7f90c192672968e10607a9a1fd48 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 11:45:03 +0000 Subject: [PATCH 4/4] docs(skills): eval case 6 returns to main's bytes; the changeset drops its case-6 paragraph Second ruling on the card (record 7217332972, option A): the two tombstone rows and the trimmed example line land; case 6 leaves this PR. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie --- .changeset/37419-ai-skill-tombstone-replacements.md | 2 -- skills/objectstack-ai/evals/skills-tools-knowledge.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.changeset/37419-ai-skill-tombstone-replacements.md b/.changeset/37419-ai-skill-tombstone-replacements.md index 17cf0dbf6eb..e5cec2adc78 100644 --- a/.changeset/37419-ai-skill-tombstone-replacements.md +++ b/.changeset/37419-ai-skill-tombstone-replacements.md @@ -8,5 +8,3 @@ Clause-②: no Metadata-protocol: none `skills/objectstack-ai/SKILL.md`: the `agent.tools` tombstone row now says where the tools go (a `defineSkill` under the stack's `skills`), and the `agent.knowledge` row names the two keys that restrict retrieval on the knowledge source (`aiExposed`, `source.where`). The words are paid for in the same file: the skill example loses one sample instruction line. No fact is removed. - -The skill's eval case on deciding a pending action from an operator script now checks the permission name `ai:approve` in the answer instead of two English phrases; the forbidden approve call is checked as before. The eval file is a test fixture and teaches nothing by itself. diff --git a/skills/objectstack-ai/evals/skills-tools-knowledge.json b/skills/objectstack-ai/evals/skills-tools-knowledge.json index 4d4d2d20226..4e5fc58b3a5 100644 --- a/skills/objectstack-ai/evals/skills-tools-knowledge.json +++ b/skills/objectstack-ai/evals/skills-tools-knowledge.json @@ -57,7 +57,7 @@ "expected_output": "Does not decide on the token: the script may list the queue (`client.ai.pendingActions.list({ status: 'pending' })`), but approving or rejecting an item is the person's own act, done in the app on their signed-in session by the person the assistant call ran as. An API key or token is refused on the decide door, even the person's own, and so is an AI identity; another user's `ai:approve` does not decide the item, and the model's own confirmation does not count. The script reports or notifies the stale items instead; where a second person must approve the write, that is the approvals engine's `held` outcome.", "files": [], "assertions": { - "must_contain": ["ai:approve"], + "must_contain": ["signed-in session", "refused"], "must_not_contain": ["pendingActions.approve("] } },