# The earned-autonomy ladder, per operation

Autonomy in Bucker is earned, one rung at a time, and only for the thing it was earned in. Fix
proposals have their own ladder, per agent and root-cause category (see
[the autonomy scale](autonomy-scale.md)). This ladder applies the same idea to every governed
operation: it is kept **per organization, actor, category and environment class**, it is computed
from measured outcomes, it runs a shadow trial before a rung is even offered, and it demotes
automatically afterwards.

**Promotion is not switched on yet for operations.** When the conditions below hold, the ladder
offers a promotion to a person; it does not apply one. Until that changes, an operation ladder stays
at its starting rung unless it is demoted.

## The key

| Part | Value |
| --- | --- |
| Actor | `a:<agentId>` for an agent; `c:<clientIdentityId>:<humanPrincipalId>` for an OAuth client, **with the person it acts for**. One person's outcomes never earn autonomy for another person's sessions through the same client. A person acting in their own right, and a service account, have no ladder. |
| Category | An operation category, for example `pipeline_tuning`, `flag_safety` or `infra_restart`. `security_triage:<finding kind>` is earned per kind. A root-cause label belongs to the **fix** ladder, which this page does not change. |
| Environment class | `production` or `non_production`, from the project's environment mapping. With no mapping, `production` and `prod` are production and **every other name is production too**: only a person's mapping (`environment_mapping.update`, human-only, `org:admin`) can say a name is not. |

A rung earned in staging is never read in production: they are kept separately.

## What a rung does

An operation ladder **starts at DRAFT_PR**: every request asks a person. RCA_ONLY, where a fix
ladder starts (the agent may only explain), is the demoted state for an operation: there, every
request needs at least two approvers.

When an approval is needed, Bucker reads the actor's standing (after any input-provenance caps
below) and sets how many approvers the request needs. **The rung only ever raises the count your
approval policy sets.** The one way below the CRITICAL default of two is an actor at AUTO_ATTEMPT,
in a category that allows one approver, with no approval-policy row of yours for the act, and no
dual-control or always-ask rule on it.

The effective rung is the stored rung under every cap, and a cap is never a demotion:

| Cap | Holds the rung at |
| --- | --- |
| The category's maximum (as your organization may have lowered it) | that maximum |
| Error or cost budget `low` or `exhausted` (a safety category is exempt) | DRAFT_PR |
| A non-production-only category (`prompt_label`) in production | DRAFT_PR |
| Input provenance `untrusted_text` | DRAFT_PR |
| Input provenance `telemetry` on an outward-facing act | DRAFT_PR |
| Input provenance `public_count` on a safety family, not corroborated | DRAFT_PR |

A write driven by untrusted runtime text never runs at a higher rung than the same write made
directly.

## The promotion conditions

A ladder is **offered** a promotion only when all six conditions hold. Each is computed from the
recorded operations and from the [claims check](claims.md) of what the agent wrote:

1. **validated_streak**: 10 validated, human-approved operations in 90 days, and the 5 most recent settled ones validated. `inconclusive`, `not_measured` and a stopped window break the streak.
2. **clean_recent**: none of the last 10 settled operations invalidated or reverted by a person.
3. **reversal_debt**: no reversal debt open longer than 24 hours, no inverse failure in 30 days.
4. **no_incident**: no attributed or missed incident. For suppression categories this is not measured yet and answers `not_available`, which blocks.
5. **attention**: at least 2 distinct people approving, none flagged as rubber-stamping, a median time to decide of at least 20 s, and evidence opened at least half the time. A figure that has not been computed answers `unknown`.
6. **shadow_trial**: 14 days of shadow candidates that people approved and the verification validated, and no disagreement.

Only `met` passes: `unmet`, `unknown` and `not_available` all block. Some areas have stricter bars,
which can raise a count, shorten a window or add an exclusion, and never loosen one.

## The shadow trial

Whenever a request is handled at its current rung and the next rung would have applied it without
asking, a shadow candidate is recorded on the ladder. The request still asks. A candidate a person
approved and the verification validated counts; one a person rejected, or the verification
invalidated, fails the trial.

## Demotion

The ladder demotes on its own. In your audit log the actor is the Bucker service identity
`bucker-autonomy`:

| Trigger | Drops to |
| --- | --- |
| An invalidated verdict, a revert by a person, an inverse failure, an overdue reversal debt | one rung (a lever family that always asks: straight to RCA_ONLY) |
| An attributed or missed incident, a write by an actor whose input was quarantined (which also opens a threat review), a HIGH anomaly of the agent | RCA_ONLY |
| 30 days without an operation | AUTO_ATTEMPT to DRAFT_PR |

A budget cap is not a demotion: the stored rung does not move.

## Safety families

A safety family (`flag_safety`, `rollout_pause`, `surveys_update`) at AUTO_ATTEMPT records what it
**would have** applied and applies nothing: applying earned safety changes is not switched on yet.
A gap in public counts is closed by corroboration (a source no public client key can write), never
by counts alone.

## Where to see it

* `GET /orgs/:o/autonomy/ladders?actor=&category=&environmentClass=`, per category: the rung, the cap, the unmet conditions with the ids they were read from, the shadow candidates, and what the actor may do without asking.
* `GET /orgs/:o/autonomy/category-policies`, `PUT /orgs/:o/autonomy/category-policies/:category` (`ladder_category_policy.update`: human-only, owner, and it can **only lower** a category's maximum; the audit row carries the previous value).
* Over MCP, `agent_context_get` carries `ladders`, and `decision_preview` carries a `rung` block naming the approver count and what set it.
* In the dashboard, the autonomy screen has a Categories tab.

## Never reached

No rung ever covers human-only acts, the verbs widen, launch, ship, resume, publish, certify,
verify, delete, merge, erase and purge, or acts on hosts and credentials. Merge is human-only at
every rung.
