Skip to content

permissions: headless auto-review — an LLM reviewer adjudicates child asks instead of blanket auto-deny #31

Closed

Description

@JAORMX

Context

Step 4 of the child permission model auto-denies a subagent's surfaced ask when no interactive parent exists (headless/CI/team runs). The agent-primitives field evaluation (docs/harnesses/09-agent-primitives-evaluation.md) flagged Codex's approvals_reviewer = "auto_review" pattern: a reviewer agent adjudicates boundary-crossing asks, reporting ~200x fewer human stops with a deny circuit-breaker.

Shape

  • An optional adjudicator slotted between steps 3 and 4 of the 4-step model: when the parent is non-interactive and steps 1-2 (substitution read-only / isolation auto-approve) don't resolve, a small bounded LLM call judges the ask against a policy prompt.
  • Provider-agnostic (the judge-engine pattern from Parallel join=judge is the precedent: tool-less child engine, structured verdict, tolerant parse).
  • Fail-safe: reviewer error/timeout/ambiguity → today's auto-deny with the accurate message; a deny circuit-breaker (N consecutive denials → stop consulting, fall back to auto-deny) bounds cost.
  • Config-gated, off by default (the embedded-server free+local default posture doesn't apply — this spends tokens).
  • The 4-step model's invariants stay: configured Deny/Ask in any scope still wins; the verdict is allow-once, never learned.

Why

Directly improves headless team/CI quality: today a read-only member needing one borderline command silently loses it.

Activity

  1. added
    enhancement
    on Jun 10, 2026
  2. added a commit that references this issue on Jun 13, 2026
  3. JAORMX commented on Jun 13, 2026

    @JAORMX
    ContributorAuthor

    Shipped in PR #57 (merge 5bc0780, commit 1b774d4). An optional bounded quarantined LLM ask-reviewer adjudicates a headless subagent's borderline asks instead of blanket auto-deny: fail-safe, allow-once, per-run deny circuit-breaker, whole-output verdict parse. Off by default; --subagent-ask-reviewer + --headless. Review caught it was dead config on stock mecated (every session interactive) → added --headless, and a latent bug where mecatui auto-denied a human's child asks → embedded server now Interactive:true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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