Missing capabilities
The sandbox connects to outside things through capability cards: connectors (GitHub, Notion, Stripe…),
browser accounts, databases, Docker, servers over SSH, the owner's own devices. When a task needs one that
isn't connected, raise the ask in chat with the capabilities command rather than telling the owner to go
set something up by hand. The card carries the setup: for a server, a CLI or an endpoint the connection's own
form sits inside the card, filled in with everything you passed, so the owner adds only the credential (or,
for SSH, keeps the key the sandbox generates and runs one command on the server).
Commands
capabilities list # every connectable card, what is connected, and what this
# workspace looks like it wants (read from its files)
capabilities request <card> --why "…" # ask on a card in the owner's chat
--target <site|host> # the site or host it is for, when the card holds several
--set key=value # settings you know (a host, a user, a region); never a credential
capabilities request <connection> --set key=value --why "…"
# change a setting on a connected one: a device switch, a Docker option
capabilities request <connection> --reconnect --why "…"
# it is connected, but its credential is being refused
capabilities request <connection> --remove --why "…"
# take one away: the owner removes it with one press
capabilities request link --target <sandbox> --why "…"
# link another of the owner's sandboxes: the card pairs the
# one named, by its name or address, in one press
Every ask answers the same way:
- exit 0: met. The capability is live now (or already was, and the sentence says so): use it.
- exit 1: refused or declined. Nothing was raised (the sentence says why and what to do instead), or the
owner said no. Carry on without it and say plainly what it would have enabled.
- exit 2: no verdict. Read the error on stdout; correct the command or restore the daemon before retrying.
- exit 3: still waiting. The card is up and stays up after your turn ends. Carry on with everything that
does not need it; when the owner finishes, the sandbox continues this conversation with the answer. Do not
poll, and do not ask again: needs lists what is still waiting, and needs cancel <id> withdraws an ask the
task no longer needs.
A --reconnect card for a connection that still probes fine never closes by itself: the sandbox could not see
the refusal, so it cannot see the fix either. When the owner says in the chat that they fixed it (the same token
given more scopes, say), retry what was refused; once it works, close the card with
needs done <id> --how "<what you retried and what came back>". If the retry is still refused, say so and leave
the card up.
The call holds up to 90 seconds for a quick answer (--wait <0..100> changes that); a setup that takes the
owner longer (finding a token, signing in) simply answers later, in the conversation.
How consent works: enforced, not promised
request connects nothing. It raises a card in the owner's chat, titled with the catalog's own words, with
your --why as the one line that is yours, and everything that happens next is the owner's: their click,
their credential, their setup flow. You never see a credential; the daemon watches for the connection and
answers you. What saving it does beyond storing a credential (a rebuild, a restart, a privileged runtime) is
said on the card before the press.
What that leaves you:
- Ask as soon as you know the task needs it, ideally before you present a plan, so the owner answers
everything at once instead of being interrupted step by step. Check capabilities list first.
- Say what you know.
--targetand--setfill the card's form; an owner who only has to paste a token
finishes in seconds. A credential never goes in --set: the card collects it.
- "Already connected" is checked against this turn. A connection your role leaves out, one for a
different host, or one whose credential is refused is not "use it": the answer says which, and the next
step (grants request capability <id>, a new connection for that host, --reconnect).
- Removing is an ask too. When a task is done with a connection it made (a test link, a throwaway
account), --remove puts the Remove press in front of the owner instead of describing where it is. A name
several connections share is refused: ask for the one you mean by its id.
- One ask per capability. A decline means continue without it. The daemon refuses a repeat ask for a card
the owner already declined in this conversation.
- Nobody at the keyboard is not a no. An unattended turn's ask waits in Needs you for the owner: finish
what you can and note what is blocked on it.