Skip to content

Commit 769aad7

Browse files
committed
docs(skills, client): review round 2 — scope the confirm sentence to the queue item, keep list/get on the token client
Claude-Session: https://claude.ai/code/session_01ADHkmSoMtbbwL3w3kwCmky Co-authored-by: Claude <noreply@anthropic.com>
1 parent f407440 commit 769aad7

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎content/docs/api/client-sdk.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ await client.ai.pendingActions.get('pa_1');
420420
// Listing takes `ai:read`. Deciding (approve or reject) is the person's own
421421
// act: only the person the call ran as decides their item, on their signed-in
422422
// session to the app. Another user's `ai:approve` does not decide it; a client
423-
// on an API key or token (even the person's own) is refused, and so is an AI
424-
// identity: such a client lists, it does not decide. Handle the refusal.
423+
// on an API key or token (even the person's own) lists, it does not decide; an
424+
// AI identity is refused too. Handle the refusal.
425425
const outcome = await client.ai.pendingActions.approve('pa_1');
426426
// CHECK `outcome.status`: approve runs the tool, and a tool that fails comes
427427
// back { status: 'failed', error } on HTTP 200 — the approval succeeded, the

‎packages/client/src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7718,8 +7718,8 @@ export class ObjectStackClient {
77187718
* Deciding (approve or reject) is the person's own act: only the person
77197719
* the call ran as decides their item, and only on their signed-in session
77207720
* to the app. Another user's `ai:approve` does not decide it; a client on
7721-
* an API key or token (even the person's own) is refused, and so is an AI
7722-
* identity: such a client can list and get, never decide.
7721+
* an API key or token (even the person's own) can list and get, never
7722+
* decide; an AI identity is refused too.
77237723
*/
77247724
pendingActions: {
77257725
/** Queued actions, newest first. */

‎skills/objectstack-ai/SKILL.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ is listed in Studio's **AI Pending Actions** inbox (or via
167167
person the call ran as approves or rejects the item, in the app on their
168168
signed-in session. Another user's `ai:approve` does not decide it; an API key
169169
or token (even the person's own) is refused, and so is an AI identity and any
170-
call that arrives through an AI door. Neither the model's own confirmation nor
171-
the caller's `confirm` counts. So an operator script lists items and never
172-
decides them; a second approver goes through the approvals engine (the `held`
170+
call that arrives through an AI door. The model's own confirmation does not
171+
decide the item, and neither does a `confirm` on the call: the item waits for
172+
the person. So an operator script lists items and never decides them; a second approver goes through the approvals engine (the `held`
173173
outcome). Whether *your* action is queued is
174174
decided entirely by the skip rule above — `actionSkipReason(action, ctx)` and
175175
`actionRequiresApproval(action)` (from `@objectstack/service-ai`) answer both

0 commit comments

Comments
 (0)