Skip to content

Commit 7eb79ca

Browse files
committed
docs(skills): objectstack-ai no longer teaches an authored AI button on a record page
The subsection that taught the AI action type on a record page leaves skills/objectstack-ai/SKILL.md with its os:check example (ADR-0160 D6, "Entry point": the shell's entry is the only one). One sentence stands in its place. Eval case 10 keeps its prompt and expects no authored action. The file's token-ratchet row follows the measurement down, 6799 to 6617. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC
1 parent 73d5e34 commit 7eb79ca

4 files changed

Lines changed: 26 additions & 29 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): `objectstack-ai` no longer teaches an authored AI button on a record page
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
ADR-0160, seventh amendment (D6, "Entry point"): the entry to the in-app assistant is the shell's 「问 AI」 entry, and no page declares an AI button of its own.
11+
12+
`skills/objectstack-ai/SKILL.md`: the subsection *The Ask AI button — `type: 'ask_ai'`* under *Actions as AI Tools* is removed, with its `defineAction` example. One sentence stands in its place: no page declares an AI button of its own, so there is no action to write for one, and the shell's 「问 AI」 entry opens the in-app assistant and carries the current record automatically. The file's token ceiling follows the measurement down, 6799 to 6617.
13+
14+
`evals/skills-tools-knowledge.json`: case 10 keeps its prompt, an Ask AI button on the contract record page, and now expects the opposite answer: no action is written, and the answer names the shell's 「问 AI」 entry. Its `must_contain` is that entry's name, and its `must_not_contain` holds `defineAction(` and `locations:`, two tokens that only an authored action carries.
15+
16+
The `objectstack-ui` action-type table is unchanged: it is held row for row to the members of `ActionType`, which still include `ask_ai`.

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ export const CEILINGS = new Map([
443443
// Modify All cast no field vote). 27230 -> 27225 bytes; the row follows the measurement down.
444444
// 6800 -> 6799 (card #37304): the `supportKb` example's two renamed keys add
445445
// two bytes and its comment gives back six; the row follows the measurement down.
446-
['skills/objectstack-ai/SKILL.md', 6799], // -18 (was 6824), then -5 A2′ (was 6806)
446+
// 6799 -> 6617: the section that taught an authored AI button on a record
447+
// page is replaced by one sentence (ADR-0160 D6, "Entry point": the shell's
448+
// entry is the only one); the row follows the measurement down.
449+
['skills/objectstack-ai/SKILL.md', 6617], // -18 (was 6824), then -5 A2′ (was 6806)
447450
// -12 (was 6331): the `http.server` decision-table row dropped a trailing
448451
// clause that taught `contributes.routes` as a key that "parses but serves
449452
// nothing". The key is retired — an authored entry is now REFUSED, carrying

‎skills/objectstack-ai/SKILL.md‎

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -171,31 +171,9 @@ decided entirely by the skip rule above — `actionSkipReason(action, ctx)` and
171171
`actionRequiresApproval(action)` (from `@objectstack/service-ai`) answer both
172172
questions, and Studio's "AI exposure" diagnostics use the same predicates.
173173

174-
### The **Ask AI** button — `type: 'ask_ai'` ☁️
175-
176-
Pins the assistant's conversation to the record the action runs on and opens
177-
it, sending no message. Declare it on the object, in
178-
`locations: ['record_header']` or `['record_more']`:
179-
180-
<!-- os:check -->
181-
```typescript
182-
import { defineAction } from '@objectstack/spec';
183-
184-
export default defineAction({
185-
name: 'ask_about_contract',
186-
label: 'Ask AI',
187-
objectName: 'contract',
188-
type: 'ask_ai',
189-
locations: ['record_header'],
190-
});
191-
```
192-
193-
It names nothing and is never a tool: the parse refuses a `target`,
194-
`ai.exposed: true`, and `actionType: 'ask_ai'` on a dashboard header (a header
195-
runs on no record). Nothing serves it headless: `list_actions` skips it,
196-
`run_action` refuses it, and no `action_` tool exists for it. The console draws
197-
it only where the assistant surface is on **and** the AI service honours a
198-
conversation focus; elsewhere it is absent, not disabled.
174+
**No page declares an AI button of its own**, so there is no action to write
175+
for one: the shell's 「问 AI」 entry opens the in-app assistant and carries the
176+
current record automatically.
199177

200178
---
201179

‎skills/objectstack-ai/evals/skills-tools-knowledge.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@
9494
{
9595
"id": 10,
9696
"prompt": "Add an Ask AI button to the contract record page, so a user can ask the assistant about the contract they are looking at. Write the action.",
97-
"expected_output": "Emits a `defineAction` with `type: 'ask_ai'`, `objectName: 'contract'` and `locations: ['record_header']` (or `['record_more']`), with no `target` and no `ai.exposed: true`: the action pins the assistant's conversation to the record and opens it, sending no message. States that it is never a tool (`list_actions` skips it, `run_action` refuses it, no `action_` tool exists for it) and that the console draws it only where the in-app assistant is on and honours a conversation focus; elsewhere it is absent, not disabled.",
97+
"expected_output": "Writes no action: no page declares an AI button of its own. The in-app assistant is opened from the shell's 「问 AI」 entry, which carries the current record automatically, so a user on the contract record page asks about that contract with nothing authored. Adds no `defineAction`, no entry under the object's `actions`, and no button on the page for it.",
9898
"files": [],
9999
"assertions": {
100-
"must_contain": ["ask_ai", "record_header", "locations"],
101-
"must_not_contain": ["target:"]
100+
"must_contain": ["问 AI"],
101+
"must_not_contain": ["defineAction(", "locations:"]
102102
}
103103
},
104104
{

0 commit comments

Comments
 (0)