Skip to content

permissions: child-scoped permission config axis (Amp-style context: subagent rules) #32

Closed

Description

@JAORMX

Context

The child permission posture (isolation auto-approve verb set, surfaced-ask flooring) is hardcoded policy in governance/agent. Amp ships a clean alternative surface: permission rules carry a context: "thread" | "subagent" axis, letting users write child-specific allow/ask/deny without touching the main table (docs/harnesses/09-agent-primitives-evaluation.md, the field-gap list).

Shape

  • Extend the permission config schema (permconfig) with an optional child/subagent scope axis on rules.
  • The evaluator folds child-scoped rules only when the session is a child (the engine already knows — child engines are built distinctly in composition).
  • Must compose with the existing invariants: deny-dominant across scopes; a configured Ask never suppressed; the isolation auto-approve set (IsolationApprovable) stays the floor, with config able to TIGHTEN (deny) but loosening still bounded by the worktree-escape rejections.
  • Decide interplay with --yolo (today it loosens the substitution floor for the MAIN agent only).

Why

Operators tuning headless deployments currently have no knob between "interactive ask" and "auto-deny" for children.

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 fcfe16c). permissions.subagent.{allow,ask,deny} in .mecatl/settings.yaml tunes delegated children separately from the main session via a governance.Audience axis; child policies over AllowAllFloorRules() at ScopeBuiltinDefault; trust-gated project allows; strict unknown-key parse. The review caught + fixed a ship-blocker where a configured child-allow could auto-run arbitrary commands hidden in $(…) — the fix (flooredAllowSafe) requires every substitution inner to independently classify read-only.

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