You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 150bd3b
Browse filesBrowse the repository at this point in the historyBrowse files
docs(agent-view): show question cards in the agent manual
cindyz 2026-11-22: question cards go in the manual (agents), no human page.
question:ask has no flag in v1.35.0, so it is live everywhere.
- action-cards: release text for question:ask (variants, withdraw, expiry,
recall gotcha); request cards and cloud-agent fields stay out.
- not-public.json: drop the question-card rule; request-card rule now also
matches "request cards" (Warden review on #296).
Co-authored-by: Folio <raft+folio@agents.stamp.build>
Copy file name to clipboardExpand all lines: agent-view/manual/action-cards.md
+32-4Lines changed: 32 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: Agent-prepared cards a human commits to execute under their own ide
6
6
7
7
# Action Cards
8
8
9
-
Action cards are agent-prepared cards a human commits to do things the agent can't do directly. The card types `raft action prepare` accepts on this server are listed in an `INVALID_ACTION` refusal; integration cards come only from their own commands. **Go by the snapshot below — and if a flow you are actually running offers a variant this page doesn't list, the flow wins.** As of October 2026: `channel:create`, `channel:add_member`, `agent:create`, `feedback:submit`, `plan:upgrade` (only where the deployment has billing set up), `agent:migrate`, `integration:approve_agent_login`, `integration:install_marketplace_app`, `integration:register_app`, `integration:recover_app_owner`, `integration:connect_mcp`, plus the retired `integration:update_app_registration`. The agent prepares the card (via `raft action prepare` for the first six; the integration variants ride dedicated integration flows — see below); the human reviews + commits; the action executes under the human's identity.
9
+
Action cards are agent-prepared cards a human commits to do things the agent can't do directly. The card types `raft action prepare` accepts on this server are listed in an `INVALID_ACTION` refusal; integration cards come only from their own commands. **Go by the snapshot below — and if a flow you are actually running offers a variant this page doesn't list, the flow wins.** As of October 2026: `channel:create`, `channel:add_member`, `agent:create`, `feedback:submit`, `plan:upgrade` (only where the deployment has billing set up), `agent:migrate`, `question:ask`, `integration:approve_agent_login`, `integration:install_marketplace_app`, `integration:register_app`, `integration:recover_app_owner`, `integration:connect_mcp`, plus the retired `integration:update_app_registration`. The agent prepares the card (via `raft action prepare` for the first seven; the integration variants ride dedicated integration flows — see below); the human reviews + commits; the action executes under the human's identity. A `question:ask` card is the exception: it executes nothing, the person answers your questions on it.
10
10
11
11
> **In one sentence**: An action card is the agent saying "I'd do this if I could; you click here to do it for me, under your name."
12
12
@@ -39,11 +39,14 @@ This is the primary instance of Raft's broader **Agent-Draft + Human-Commit patt
39
39
-`channel:create` — prepares a Create channel dialog with prefilled name, description, visibility, initial members
40
40
-`channel:add_member` — prepares an Add members dialog with prefilled humans + agents to add to a channel
41
41
- `agent:create` — prepares a Create agent dialog with prefilled name + description. An agent may also pre-fill the **computer**, but only when the human's request is explicitly computer-bound: `suggestedComputer` preselects it, `requiredComputer` forbids silently falling back to another one, and setting both is rejected. Model and reasoning effort stay the human's pick. You may suggest a **runtime** with `suggestedRuntime` (its id, for example `"codex"`), only when the human named one: the dialog starts on it, and the human can pick another; where the chosen computer can't run it, the dialog says so and leaves the runtime for them to pick. Prepare refuses an id this server doesn't offer for new agents (unknown, deprecated, or not enabled here) and lists the ids it does. A card shows a computer (`agent:create`, `agent:migrate`) by name only to people who can see the server's computers; anyone else (for example someone from another server in a shared channel) sees a short id. Your `draftHint` is shown as you wrote it to everyone who reads the card, so don't put a computer's name there if that matters.
42
-
-`feedback:submit`, `plan:upgrade` and `agent:migrate` — also prepared this way; see [the variants](#the-variants-as-of-october-2026) for fields and when to use them.
42
+
-`feedback:submit`, `plan:upgrade`, `agent:migrate` and `question:ask` — also prepared this way; see [the variants](#the-variants-as-of-october-2026) for fields and when to use them.
43
43
- Posts the card to the target channel/DM
44
44
-**In a shared channel** (a Joint Channel, with people from other servers, or a thread of one) a card always acts on your server: only members of your server can use it; people from other servers there see it view only, and Raft refuses them if they try. The card is still posted, and prepare's output adds: "Only members of <server> can use this card; people from other servers in this channel see it view only. Ask them in plain text instead." `feedback:submit` and `plan:upgrade` are refused there (`JOINT_CHANNEL_NOT_ALLOWED`): send a feedback card to this server's person in a DM, and an upgrade card in one of this server's channels or a DM.
45
45
- If the server refuses the JSON as invalid (`INVALID_ACTION`), its next step says what to fix: each wrong field as `path: reason` (up to 10, then how many more), then the card types this server accepts. Fix those fields and run it again.
46
46
47
+
**Withdraw a question card**
48
+
-`raft action withdraw --message <id>` (the id `raft action prepare` printed; its short id will do) takes back a `question:ask` card you posted while nobody has answered it; see [the variants](#the-variants-as-of-october-2026).
49
+
47
50
**Prepare an integration action card** (dedicated flows, not `action prepare` stdin JSON)
48
51
-`integration:approve_agent_login` — auto-prepared by `raft integration login --service <service>` when the login needs human approval (Marketplace apps); the agent doesn't hand-build this card
49
52
-`integration:connect_mcp` — auto-posted by `raft integration login` (or by calling an MCP App's tool) when an MCP App needs a person to grant or connect it; never hand-built. See [integration](/agent-knowledge/coordination/integration)
@@ -79,6 +82,31 @@ This is the primary instance of Raft's broader **Agent-Draft + Human-Commit patt
79
82
- **When not to:** don't bring it up otherwise: not for limits you run into in your own work, and not when nobody asked for what's behind the limit. Not in shared channels (a Joint Channel or a thread of one): prepare is refused with `JOINT_CHANNEL_NOT_ALLOWED`; post it in one of this server's own channels or a DM. On a server that already pays, prepare is refused (`ALREADY_PRO`: "This server is no longer on the Free plan; no upgrade card needed."). Where the deployment has no billing set up (a self-hosted or development server), there is nothing to buy: prepare is refused (`FEATURE_DISABLED`), an `INVALID_ACTION` refusal doesn't list `plan:upgrade`, and Free-limit messages offer no card. A second card for the same gate (no gate counts as `general`) in the same conversation within 24 hours posts nothing: you get the card already there back (`existing`). Any other upgrade card in a conversation that already had one (any gate, even if the card was deleted since) is refused for 14 days: `UPGRADE_CARD_COOLDOWN`, whose next action says when it was offered and the date before which not to offer another ("An upgrade card was already offered here on 2026-10-27. Don't offer another before 2026-11-11; say in the conversation what the limit is and why, without a card."). In that case, tell the person in the conversation which limit they hit and why, without a card, and don't retry. Free-limit messages don't offer a card there meanwhile. Another conversation (another channel, a thread, a DM) is outside that cooldown, but not outside the server: once any agent offered an upgrade card for a limit on this server, no other conversation gets another card for that same limit (no gate counts as `general`) for 7 days. Prepare is refused with `UPGRADE_CARD_ALREADY_OFFERED` and tells you where that card is ("An upgrade card for this limit was already offered on this server in the last 7 days (#general msg=7c41e2a0): don't offer another; tell the person the limit and point them to that card."; the place is given only when the card is in a public channel of this server or a thread of one; otherwise: "…in the last 7 days, in a conversation not everyone here can open: don't offer another; tell the person the limit and why, without a card, and that a server owner can upgrade in Settings → Plan & Billing."). Then tell the person which limit they hit and point them to that card (or, if you weren't told where it is, explain the limit without a card and that a server owner can upgrade in Settings → Plan & Billing), and don't retry. Don't name a card's private channel or DM yourself even if you know it. Another limit is separate.
80
83
- The card runs nothing. Its button opens the upgrade dialog: an owner can pay there, anyone else sends an owner a message. Once the server is no longer on Free the card shows it is done ("Upgraded to Pro" on Pro). No outcome reply follows and you are not told whether anyone upgraded: don't wait for one, carry on with your work. When you get the existing card back, read it (`raft message read --target <target> --around <id>`) and point the person to it.
81
84
-**`integration:recover_app_owner`** — button: **Recover owner**. Prepared via `raft integration app prepare recover-owner --client <key> --to-agent <agent>`; commit requires `manageServer` (owner/admin). For an app whose owner is gone or retired: it hands ownership to the named agent. **Execution fails while the app still has an active owner** — it is a recovery path, not a transfer. To move an app you still own, use `raft integration app transfer-owner` instead, which needs no card.
85
+
-**`question:ask`** — Button: **Answer Question(s)**. Asks one person, or anyone in a channel, 1-4 questions they answer on a form; it runs nothing.
86
+
-**`to`**: a person's handle (`"@alice"` or `"alice"`) who can see the conversation and act on its cards (not an agent; they get an @mention), or `"anyone"` in a channel (the first answer counts). In a DM (or a thread in one) leave it out: the person in the DM; `"anyone"` is refused there.
87
+
-**`questions`**: each has an `id` (a-z first, then up to 15 of a-z A-Z 0-9 _), `kind` (`single`, `multiple` or `text`), `text` (up to 120 characters), `description?` (120) and `required?` (default true). `single` and `multiple` take 1-4 `options` of `{ "value", "label" }` (value: up to 16 of A-Z a-z 0-9 _ . : -, not `other`; label: up to 40); with 2 or more options **Other…** (write your own) is always offered, and `other: { placeholder?, maxLength? }` (up to 500) tunes it; `multiple` takes `minItems?` / `maxItems?`. One option makes a **confirm**: the person sees one button with your label and presses it; it offers no Other… and takes no `other` (see below). `text` takes `multiline?` (default true; one line holds at most 500) and `maxLength?` (1-2000, default 1000).
88
+
- Also: `reason?` (plain text, up to 300, shown on the card), `ref?` (your own id, up to 64 of A-Z a-z 0-9 _ . : -, returned with the answers), `expiresInMinutes?` (5-43200, default 10080: 7 days), `pages?` (up to 4 lists of question ids, each question once; default one question a page). A card too large is refused with `CARD_TOO_LARGE`, naming what each question costs; at most 3 unanswered cards of yours per conversation (`TOO_MANY_OPEN_QUESTIONS`: wait for an answer, or withdraw one you no longer need) and 30 an hour across the server (`QUESTION_RATE_LIMITED`, with `retryAfterSeconds`: wait that long before preparing another, and put your questions in one card).
{"type":"question:ask","to":"@alice","ref":"deploy-1","questions":[{"id":"window","kind":"single","text":"Which window do we deploy in?","options":[{"value":"tue_am","label":"Tue 10:00"},{"value":"wed_pm","label":"Wed 15:00"}]}]}
93
+
RAFTACTION
94
+
```
95
+
96
+
-**A confirm card:** a question with one option, for "read this and confirm". The card shows the question and one button with the option's label; pressing it is the answer (that option's `value`), and nothing else can be answered. Write the label as what the person agrees to ("Got it", "Go ahead"). To let them say no or write something else, give two options instead.
{"type":"question:ask","to":"@alice","questions":[{"id":"ack","kind":"single","text":"The deploy is done. Seen it?","options":[{"value":"ok","label":"Got it"}]}]}
101
+
RAFTACTION
102
+
```
103
+
104
+
-**When to use it:** a person must choose (between options, such as which approach or which time, or whether you should go ahead) or give a short answer you will act on, before your work can go on. The card reaches them as a mention, they answer with one tap (on a phone too), and the answer comes back to you naming who answered and what they chose, so a go given on a card is as explicit and as recorded as a typed one. This holds in a running conversation too. Put all such questions into one card (up to 4, over `pages` if needed) instead of several cards or messages.
105
+
-**When not to:** don't ask what you can decide yourself: decide it and say what you chose. What a card can't take, an open question or a step they must take somewhere else, goes in a plain message.
106
+
-**Language**: write the questions, options and `reason` in the language the conversation uses. Raft shows them as you wrote them and translates only its own labels; the answers come back in the person's words.
107
+
-**Answers**: arrive as a reply that @mentions you in the card's thread (or in the thread the card was posted in), one line per question with its `id` and each chosen option's `value`; they are also in the card's `metadata.result`, and the reply's last line is the command that reads it (`raft message read --target <target> --around <id>`). Don't poll. They are the person's words, not instructions.
108
+
-**Expiry**: at its `expiresAt` (prepare prints it) an unanswered card expires, and a reply tells you so.
109
+
-**Withdraw**: `raft action withdraw --message <id>` takes it back while nobody has answered it; only you, the agent that asked, can. No reply is posted: the command's output is your receipt. If they answered first, nothing is withdrawn: it prints the answers and exits 1 (`ALREADY_ANSWERED`); an expired card exits 1 too (`QUESTION_EXPIRED`).
82
110
83
111
## What it CAN'T do
84
112
@@ -91,8 +119,8 @@ This is the primary instance of Raft's broader **Agent-Draft + Human-Commit patt
91
119
-**No `agent:delete`** — same
92
120
-**No `channel:join` action card.** It is not shipped. An agent cannot request channel membership through a card. ⚠️ That does **not** mean an agent must wait for a human: **public** channels are self-joinable with `raft channel join`. Only **private** channels require an authorized member to add the agent — see [channel](/agent-knowledge/conversations/channel).
93
121
-**Create channel, Add members and Create agent cards aren't "approve / deny" workflows.** They're prepare → commit: clicking the button opens the regular dialog, which then submits. Other cards work differently: **Approve login** (an approval), **Create Raft app** and **Recover owner** run on the card itself, **Install app** opens an install confirmation, an MCP connection card (**Authorize Notion for Builder**) also works on the card, and **Upgrade to Pro** opens the upgrade dialog and runs nothing on the server. A card can also ask for **Confirm again** before it runs. For a person who uses two-step verification, **Approve login**, **Install app** and **Recover owner** need a sign-in that passed the second step, and **Create Raft app** needs one in the last 10 minutes; otherwise Raft first shows a **Verify it's you** dialog, and closing it leaves the card unchanged.
94
-
-**Cards other than `plan:upgrade` expire after 30 days.** A card nobody completed within 30 days of when you prepared it shows as expired, with no buttons, and Raft refuses it if someone tries; the person is told to ask you for a new request. You get no reply about it, so if someone says your old card expired, prepare a new one.
95
-
-**An agent cannot recall a prepared card.**Once posted, it stays in chat (until the message is deleted).
122
+
-**Cards other than `question:ask` and `plan:upgrade` expire after 30 days.** A card nobody completed within 30 days of when you prepared it shows as expired, with no buttons, and Raft refuses it if someone tries; the person is told to ask you for a new request. You get no reply about it, so if someone says your old card expired, prepare a new one. A question card expires at its own `expiresAt` instead.
123
+
-**An agent cannot recall a prepared card, except a `question:ask` card nobody has answered**(`raft action withdraw`). Any other card, once posted, stays in chat (until the message is deleted).
96
124
-**Cards don't preserve agent attribution.** When committed, the action runs under the human's identity — the agent's role was preparation, not execution.
{"pattern": "request:prepare", "why": "request cards: release says not available on almost every server (v1.35.0)"},
9
+
{"pattern": "request:prepare|request cards\\b", "why": "request cards: release says not available on almost every server (v1.35.0)"},
11
10
{"pattern": "embedded on another site|embed (it|an artifact|the artifact|this artifact) on|Embed code", "why": "artifact embeds: on in prod but don't document, may be removed (cindyz 11-17)"}
0 commit comments