approval-gate::configuration-id
Returns this approval-gate instance's configuration entry ID, without its value.
- idstringrequired
Policy and decision surface for human-held function calls — pre_call gate, pending inbox, per-session permission settings, and two notification event functions.
iii call compose::add worker=approval-gate@1.1.7Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
Returns this approval-gate instance's configuration entry ID, without its value.
Add a function to the session's auto-mode trust list (idempotent). Human/console-only.
Namespace the entry covers; absent = the implicit namespace.
The stored per-session record (scope `approval_settings`). Reads compute the effective settings from configuration defaults when no record exists — see settings.rs.
Consulted only in auto mode.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
Consulted in every mode — remembered human decisions.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
ms epoch
Record a per-session 'approve always' grant (honoured in every mode). Human/console-only.
Namespace the grant covers; absent = the implicit namespace.
The stored per-session record (scope `approval_settings`). Reads compute the effective settings from configuration defaults when no record exists — see settings.rs.
Consulted only in auto mode.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
Consulted in every mode — remembered human decisions.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
ms epoch
Drop the session's stored settings record (revert to configuration defaults).
Report what approval::gate WOULD decide for a function id (allow / deny / needs_approval) without deciding it: no pending record, no writes. Called by the harness before an agent observes a function with an ordinary function as the target, since an observer's target runs outside any turn and cannot ask a human.
Call arguments, for deployments whose rules carry argument constraints. Defaults to `{}`.
The function id to evaluate.
Where a call to `function_id` without `namespace` runs.
Resolved target namespace of the call. Absent from an older harness: a namespaced grant or allow rule then does not match.
Session whose effective settings apply (mode + always-allow list).
Why, for the non-allow verdicts.
What [`crate::functions::gate`] WOULD answer for this call.
post_call hook (observer of harness::hook::on-post-call): watch shell::*/coder::* dispatch failures for a jail-scope filesystem_access_request and hold a filesystem_access pending approval for it. Called by the harness only.
pre_call payload.
Where a call to `function_id` without `namespace` runs.
Resolved target namespace. Absent from an older harness.
Sub-agent depth (hooks run for child turns too).
The per-send tracing metadata (`metadata.fs_scope.root` is the user-picked session workspace, absolute + canonical).
post_call payload: the function_result about to be delivered.
pre_call hook (observer of harness::hook::on-pre-call): evaluate the permission model and answer continue / deny / hold; writes the pending inbox record on hold. Called by the harness only.
pre_call payload.
Where a call to `function_id` without `namespace` runs.
Resolved target namespace. Absent from an older harness.
Sub-agent depth (hooks run for child turns too).
The per-send tracing metadata (`metadata.fs_scope.root` is the user-picked session workspace, absolute + canonical).
post_call payload: the function_result about to be delivered.
Read one pending record; null when resolved or unknown.
The function call id of the held call.
The session the pending record belongs to.
The inbox payload — shared by both event functions, `list_pending`, and `get_pending`. Self-describing (all ids inside the value) and notification-safe (arguments pass through redaction).
Present only when `kind == "filesystem_access"`.
The raw offending path from the request, as sent by the caller.
The jail-scope rejection code that produced this hint (`S215`, `S220`, `C215`, `C220`).
Canonical root a grant should target (existing directory, or nearest existing ancestor directory of the offending path).
Redacted — safe to forward to notification channels.
First text block of the assistant message that contained this function_call. Best-effort; not derivable from the `pre_call` `HookInput` in v1, so always omitted today.
Sub-agent depth (0 = top-level), from `HookInput`.
Where a call to `function_id` without `namespace` runs.
`"function"` or `"filesystem_access"`.
Engine namespace the held call targets. Absent from an older harness.
ms epoch
Tenancy + routing (what observers filter on as `input.session_metadata.<key>`).
Read the session's effective settings (stored record or configuration defaults); never writes.
The stored per-session record (scope `approval_settings`). Reads compute the effective settings from configuration defaults when no record exists — see settings.rs.
Consulted only in auto mode.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
Consulted in every mode — remembered human decisions.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
ms epoch
Whether a per-session record exists.
The pending inbox across sessions, with tenancy filters; the catch-up path for notification workers after a restart.
Opaque.
Default 50.
Equality match against `session_metadata` (tenancy).
Ordered by pending_at ascending.
Present only when `kind == "filesystem_access"`.
The raw offending path from the request, as sent by the caller.
The jail-scope rejection code that produced this hint (`S215`, `S220`, `C215`, `C220`).
Canonical root a grant should target (existing directory, or nearest existing ancestor directory of the offending path).
Redacted — safe to forward to notification channels.
First text block of the assistant message that contained this function_call. Best-effort; not derivable from the `pre_call` `HookInput` in v1, so always omitted today.
Sub-agent depth (0 = top-level), from `HookInput`.
Where a call to `function_id` without `namespace` runs.
`"function"` or `"filesystem_access"`.
Engine namespace the held call targets. Absent from an older harness.
ms epoch
Tenancy + routing (what observers filter on as `input.session_metadata.<key>`).
Internal: hot-reload approval-gate from the authoritative configuration when it changes — swaps the per-call snapshot (default_mode, rules, grant_reask_limit).
Configuration id that changed (advisory; the handler re-fetches the value).
Called when a function call was held for human approval and its inbox record written. Event: PendingApprovalRecord with status "pending" (redacted args, session context). No args; filter on input.session_id or input.session_metadata.<key>. Observe it from notification workers.
Present only when `kind == "filesystem_access"`.
The raw offending path from the request, as sent by the caller.
The jail-scope rejection code that produced this hint (`S215`, `S220`, `C215`, `C220`).
Canonical root a grant should target (existing directory, or nearest existing ancestor directory of the offending path).
Redacted — safe to forward to notification channels.
First text block of the assistant message that contained this function_call. Best-effort; not derivable from the `pre_call` `HookInput` in v1, so always omitted today.
Sub-agent depth (0 = top-level), from `HookInput`.
Where a call to `function_id` without `namespace` runs.
`"function"` or `"filesystem_access"`.
Engine namespace the held call targets. Absent from an older harness.
ms epoch
Tenancy + routing (what observers filter on as `input.session_metadata.<key>`).
A record in the inbox is pending until it is resolved.
Present only when `kind == "filesystem_access"`.
The raw offending path from the request, as sent by the caller.
The jail-scope rejection code that produced this hint (`S215`, `S220`, `C215`, `C220`).
Canonical root a grant should target (existing directory, or nearest existing ancestor directory of the offending path).
Redacted — safe to forward to notification channels.
First text block of the assistant message that contained this function_call. Best-effort; not derivable from the `pre_call` `HookInput` in v1, so always omitted today.
Sub-agent depth (0 = top-level), from `HookInput`.
Where a call to `function_id` without `namespace` runs.
`"function"` or `"filesystem_access"`.
Engine namespace the held call targets. Absent from an older harness.
ms epoch
Tenancy + routing (what observers filter on as `input.session_metadata.<key>`).
A record in the inbox is pending until it is resolved.
Called when a pending approval left the inbox (outcome: allow | deny | aborted). Called exactly once per record; lets UIs clear badges. No args; filter on input.session_id or input.session_metadata.<key>.
Operator-supplied on deny.
ms epoch
Tenancy routing, from the record.
Operator-supplied on deny.
ms epoch
Tenancy routing, from the record.
Internal: observer of session::on-deleted (purge the session's settings and pending records).
The handler the call was made from; absent for a top-level call.
The caller of that handler, one level only.
Internal: observer of harness::on-turn-completed (purge the turn's pending records).
The handler the call was made from; absent for a top-level call.
The caller of that handler, one level only.
Remove a function from the session's auto-mode trust list (no-op when absent). Human/console-only.
Namespace the entry covers; absent = the implicit namespace.
The stored per-session record (scope `approval_settings`). Reads compute the effective settings from configuration defaults when no record exists — see settings.rs.
Consulted only in auto mode.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
Consulted in every mode — remembered human decisions.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
ms epoch
Apply a human decision to a held call: release it for execution (allow) or deliver a denial (deny). Human/console-only.
Only meaningful when the target record is `kind: "filesystem_access"` and `decision: "allow"`. Defaults to `once`.
The namespace the surface showed for this call. Required to allow a call held in another namespace.
Surfaced to the model on deny.
false: unknown/already-resolved pending call.
Passthrough from harness::function::resolve.
Set the session's permission mode (manual / auto / full). Human/console-only.
The stored per-session record (scope `approval_settings`). Reads compute the effective settings from configuration defaults when no record exists — see settings.rs.
Consulted only in auto mode.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
Consulted in every mode — remembered human decisions.
ms epoch
Engine namespace the grant covers. Absent on grants stored before namespaces: those cover only the call's implicit namespace.
ms epoch
Find workers, kits and executables, or jump to a page.