Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Found while preparing #704 (child-process discussion participants for agents). Today a delegated child has no way to ask for a decision, so a Write it wants is denied and nobody sees it.
Owner decision (2026-11-14): decisions escalate upward, level by level
When a delegated child cannot decide an approval, it escalates up the delegation chain (child, parent, grandparent, ..., the owner) until a level can decide it. The owner is the last level; with no answer the request is denied (timeout), never allowed.
Rules that keep this safe
- A level can decide only what is within its own authority: its own allow list and risk tier. It never grants more than it holds (the delegate rule "never more power than the creator holds" applies to approvals as well). Anything outside it goes one level up.
- Always the owner, never an agent: secrets, trust and approval records (the owner-only subcommands of security(trust): owner-only trust records can be written by the agent (tole CLI from run_command, file tools when the workspace holds the data dir) #684 and fix(security)!: owner-only records and tole binary refused under a session #700), new allow patterns, profile or budget changes, plugin and skill approvals, anything marked Write outside the workspace.
- Every decision is bound to the request fingerprint (one-shot, the same rule as serve), recorded in the append-only delegation ledger with who decided at which level, and visible in the owner's audit.
- A decision text from a model is data: the deciding level is a host action (a tool the level holds, or the owner's command), not a string the child can write.
- Depth and budget caps still apply; escalation does not extend either.
Why this issue exists (current state)
- A delegated child is a detached
tole missionusingInteractiveApprover::stdio. With no TTY a non-allowlisted Write is denied and the turn endsApprovalRequired; the result goes nowhere the owner sees. approvals.rs(ApprovalQueue,QueueApprover) exists only in the serve process and in cron runs, keyed by a serve-hosted session with a one-shot fingerprint resume throughresume_turn. A delegated child's session is not hosted there.Mode::Consultonly skips the write lease; it is not read-only by construction.
Scope (design first, then implementation)
- A durable approval queue in the delegation data dir (append-only, fingerprint-bound), with the level chain recorded per request.
- The child parks at the approval and is resumed after the decision; a timeout denies.
- A parent agent decides through a tool that is
Risk::Writeitself and limited to its own authority; the owner decides throughtole(and/approvalsin serve), subject to the fix(security)!: owner-only records and tole binary refused under a session #700 rules. - Tests and mutation checks for each rule; update
docs/automation-design.mdand the threat model.
Until this lands, agent-started discussion participants run read-only with Writes denied (#704, Part A).
Parent: #583.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(discussion): independent read-only reviewer participants for age…
docs(delegation): make the outside-workspace class apply to path-writ…
docs(delegation): design the escalating approval queue for delegated …
feat(delegation): the approval records and their fold, behind approva…
feat(delegation): a delegated child parks on an approval request and …
feat(delegation): the owner CLI for approval requests, tole delegatio…
feat(serve): decide delegation approval requests over /approvals (#714 …
feat(delegation): agent levels decide or escalate approval requests w…