Docs / Autonomy posture

Autonomy posture

Autonomy decides whether a mission runs to merge and deploy on machine verdicts alone, or stops for a human at the load-bearing handoffs.

It does not change which phases run — that is kind:. It only controls where human gates sit. Reference: ADR 0047.


Two values#

Posture What it means
supervised (default) Human approves at the gate_set — {merge, deploy} for all supervised missions, plus {plan} for Tier 1+ feature missions. The factory runs autonomously between gates.
full No factory-added human gates. The mission runs from decompose → build → validate → merge → deploy on machine verdicts. ADR 0014 §E categorical gates still apply (see below).

supervised is the safe default. full is earned — it survives only if every factor in the lattice below permits it.


How to set autonomy on a mission#

Declare it in the mission body when creating via mission-create:

## Mission
Add Apple Pay tokenization to checkout.

kind: feature
autonomy: full
autonomy_rationale: "Non-sensitive payment UI layer; checkout integration covered by existing tests."

If autonomy: is absent, the Lead defaults to supervised and posts a warning.


Effective autonomy — the strictest-wins lattice#

What you request may not be what executes. Four factors are evaluated at decompose time; the strictest wins:

effective_autonomy = strictest(
    requested_autonomy,          ← what you wrote in the mission body
    repo.autonomy_ceiling,       ← registry/repos.yaml per-repo cap (absent = no cap)
    agent_ladder_rung,           ← ADR 0022: trust earned per team/role/repo history
    blast_radius_clamp           ← CRG-derived or sensitive-module flag
)

Strictness order: supervised ⊐ full (supervised is stricter — it wins).

Factor 1 — your request#

Start here. Default: supervised.

Factor 2 — repo autonomy ceiling#

Set in registry/repos.yaml per repo:

- repo: github.com/KapivaTech/some-repo
  autonomy_ceiling: supervised   # mission can never resolve to full, regardless of request

Use autonomy_ceiling: supervised for repos that always warrant human eyes — e.g. shared component libraries, auth services, healthtech data paths.

Factor 3 — agent ladder rung (ADR 0022)#

Trust is earned per (team, role, repo) combination based on mission history. Unearned trust degrades to supervised. The ladder advances via PRs that pass QA without human intervention and close without incidents.

Factor 4 — blast-radius clamp#

The Lead uses code-review-graph get_impact_radius_tool on the planned file changes to estimate the exported surface reachable from touched modules. If blast radius is high (many downstream dependents) or any touched module is flagged sensitive: true in .agents.yaml, the posture is clamped to supervised regardless of what you requested.

# In spoke-repo's .agents.yaml
modules:
  - path: src/auth/
    sensitive: true    # always supervised — touches session/secrets
  - path: src/payments/
    sensitive: true

The blast-radius clamp can only tighten (full → supervised). It never loosens. At build time, the engineer's detect_changes_tool on the real diff can confirm or tighten further.


The supervised gate set#

For supervised missions, the Lead stops before these handoffs:

Gate Trigger point Human task Mission label
pending-approval:plan After [plan] resolves, Tier 1+ only Review feature breakdown and tier assessment pending-approval:plan
pending-approval:merge After review-code passes + PR is open Review the diff, approve the PR in GitHub, post approved pending-approval:merge
pending-approval:deploy Before deploy phase (when runtime ≥ Phase 2) Authorize the rollout pending-approval:deploy

The Lead creates no further children until it receives the approved comment. Use mission-responder to draft the correct response format.

full missions skip these factory-added gates entirely. They still hit ADR 0014 §E categorical gates (next section).


ADR 0014 §E categorical gates — apply regardless of autonomy#

These gates cannot be waived by setting autonomy: full. They are structural:

Scenario Gate
Deploy to production with customer-data (DPDP) Human approval always
Cross-team breaking API change Affected team lead sign-off
Mission budget > threshold Engineering lead approval
Customer-facing copy or policy change Product/legal review
Spec change after DRC already passed DRC re-run mandatory

If one of these conditions is detected during decompose or at a phase transition, the Lead posts [NEEDS_INPUT] and assigns the relevant human regardless of autonomy:.


[NEEDS_INPUT] on full missions#

On full missions the autonomy-resolver autopilot (every 30 min) auto-answers decidable [NEEDS_INPUT] by accepting the agent's proposed default, after a deterministic eligibility check (reconcile.py --autonomy-eligible). Anything not decidable — and everything on supervised missions — still waits for you.


Effective autonomy is stamped on the mission#

After computing effective_autonomy, the Lead calls multica_mcp.set_metadata:

{
  "autonomy": "supervised",
  "gate_set": "merge,deploy"
}

This is the record. If you want to know what autonomy a running mission resolved to, read its metadata — not the mission body.


Onboarding is always supervised#

A mission that touches a non-ready repo gets [onboard-build] → [deploy] prepended and is forced to supervised, as is a standalone kind:onboarding mission (ADR 0052). The human gate is the merge of the PR that flips the repo's readiness to ready. This cannot be overridden.


Adjusting autonomy mid-mission#

Use mission-amend to post an amended spec. The Lead re-reads autonomy on its next wake and re-computes the effective posture for any gates that haven't fired yet. Already-passed gates are not re-opened.

Source: docs/yantra/autonomy-posture.md