Expand description
identity.accounts: the signed-in accounts on this machine as an agent sees
them, and how identity.switch names one
(docs/specs/SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md §4.3, §4.4).
The same view answers a local call and, later, a remote one, so it holds only what a person reads off the Connectors page: the stable id, provider, email, label, whether it is signed in, whether it has quota and when that returns, and which agents run on it. Never a credential, a secret reference or a config directory.
Structs§
- Account
Agent - An agent that runs on an account.
- Account
Quota - Whether an account can take work now.
- Account
View - One account, as
identity.accountslists it. - Identity
Accounts Result identity.accounts.
Functions§
- accounts 🔒
- Every account of an agent provider on this machine. BLOCKING (store reads).
- email_
of 🔒 - has_
quota 🔒 - Whether an account can take an agent now: signed in (or not checked yet) and not blocked by a pane’s limit or refused sign-in.
- is_
any_ 🔒with_ quota "any with quota", in the words an agent may type.- pick 🔒
- Name one account among
accounts(one provider’s): by stable id, by local id or label, by email when exactly one account of that email has quota, or"any with quota".skipholds the accounts an agent is already on, whichany with quotadoes not pick. The refusal lists what the caller could use, and says which kind it is: no such account, a name several share, or none with quota now. - quotas 🔒
- The quota of each account that a pane’s stored failure puts out of work now, by local account id. An account missing from the map has quota as far as this machine knows: it learns of a limit when a pane hits it.