Held calls and the emergency stop
Held calls #
A rule whose action is hold makes a matching protected call wait for a person. The witness rules it block with basis hold, and the SDK waits up to 15 minutes for a decision (hold_timeout_ms in the checks file sets a shorter wait). In the console, Tools, Held calls lists the calls that wait, with the agent, the tool, the rule and the fields sent. A developer, admin or owner approves or rejects each one.
signafAIde signs the decision: who decided (the console user's id and role), the tool, the exact arguments hash and the record. Approved, the call runs with those arguments only, and the tool gets its check receipt. Rejected, it does not run and the agent gets blocked. Nobody decided in time: it does not run and the agent gets hold_expired; the agent can call again. While the emergency stop is on for the project or the agent, a held call cannot be approved (rejecting still works), and an SDK that gets an approval checks the stop again before it runs the call.
Every decision is an audit log entry and a held_call_decided security event. Exports put the signed approval on the call's receipt and list it in the signed export statement, so taking it out of a pack makes the pack fail; every verifier names who decided and when. The console shows the person's email beside the signed id; the signed record names only the id.
A hold needs the arguments hash that SDK 0.7.0 sends: an older SDK sees a held call as blocked.
The emergency stop #
Agents, Emergency stop has one switch for the project and one per agent. Switched on, every protected tool stops at once: the witness blocks the next protected call (basis stop), and each SDK blocks protected calls itself from its next rule set fetch, about a minute, even when the witness cannot be reached. Agents keep recording; tools that are not protected are not affected. Revoking an agent key is a different thing: it stops recording.
Developers switch it on; only admins and owners lift it. It works on every plan. While it is on, or once a person has approved a flagged tool, SDKs before 0.7.0 take no rule update: update them. Each switch is a signed stop record, in a chain, and a new rule set version. The history in the console, every export and every auditor pack show who switched it and when, and each switch is an emergency_stop_switched security event.
Who, by name #
Signed approvals and stop records name a person by id (usr_42) and role, not by email. When you export a pack you can include who that is: tick "Include who approved held calls and switched the emergency stop" on the Exports page, or run signafaide export --identities (GET /v1/export?identities=true). signafAIde then adds a signed statement of each person's email, and every verifier prints the email beside the id. Exports leave them out by default. Only an owner or admin can include them: the checkbox shows for them only, and an API key gets them only when an owner or admin set the key to export values and emails under API keys (otherwise the export is refused). A statement is made only for the person who decided: an account that existed at that decision and is still a member. A user id is never given to a second account. A statement that does not verify fails the pack. After an account is erased, no statement can be made for it, and its records keep the bare id.