Skip to content

design: an owner approval surface for delegated children (durable queue, parked and resumed) #714

Closed

Description

@ajianaz

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

Why this issue exists (current state)

  • A delegated child is a detached tole mission using InteractiveApprover::stdio. With no TTY a non-allowlisted Write is denied and the turn ends ApprovalRequired; 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 through resume_turn. A delegated child's session is not hosted there.
  • Mode::Consult only 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::Write itself and limited to its own authority; the owner decides through tole (and /approvals in 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.md and the threat model.

Until this lands, agent-started discussion participants run read-only with Writes denied (#704, Part A).

Parent: #583.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions