# Handing over decisions > Each kind of decision has a level of automation that moves on track record, so that one method can serve cautious teams and fast ones. - Site: CanonBall. The lifecycle agents can run and people can trust. - HTML page: https://canonball.org/guide/delegation/ - This file: https://canonball.org/guide/delegation/agents.txt --- Guide part: How it is organized. Chapter 19 of 28. Key points: - Each kind of decision has its own level of automation, from 0 to 5. - A level of automation moves up on measured track record and down on a single failure, and a new model release does not move it. - Promises, product decisions, invariants and constraints are approved by people at every level of automation. - Review has no level of automation: an agent reviews every change, and the team tunes the policy's list of what counts as critical. ## One method, many settings A team building billing rules and a team building robot safety software should not give agents the same freedom. A process written for the cautious team slows the other one down, and a process written for the fast team is one the careful team cannot adopt. CanonBall therefore keeps the [stations](../workflow/agents.txt) the same everywhere and varies a single setting: a level of automation, kept for each kind of decision, which says how much of that decision an agent may take. [Interactive figure: levels of automation] 8 kinds of decision, each on a scale from 0 (agent analyzes, a person decides) to 5 (agent acts, people watch the metrics), shown for three scenarios: day one, billing service, later, robot fleet, later. Values in that order: what the system promises 1, 1, 1; what is never allowed 1, 1, 1; choices a customer would notice 1, 2, 1; architecture 1, 2, 1; detailed design 1, 4, 3; verification design 1, 3, 2; decision logic 1, 5, 4; code that touches the outside world 1, 2, 2. These are an illustration. The positions shown are illustrative; each team writes its own thresholds. ## Six levels of automation Human-factors researchers have described the handover of control from operator to machine as a scale of *levels of automation* since the 1970s. The scale used here is a shortened version of theirs. | Level of automation | The agent | A person | |---|---|---| | 0 | Analyzes | Decides | | 1 | Recommends, with reasons and stated confidence | Decides | | 2 | Decides | Approves before anything happens | | 3 | Acts | Reads each decision afterwards | | 4 | Acts | Audits a sample of decisions | | 5 | Acts | Watches the metrics | A new team starts every kind of decision at level of automation 1, where agents recommend and people decide. ## Classify the decision, not the topic A decision is classified by the following properties. - **Reversibility.** What would it cost to undo, and who would have to agree? - **Blast radius.** How much breaks if it is wrong? - **Verifiability.** Can a machine check the result? Together they give a small number of classes, from "reversible, local, checkable" to "irreversible, broad, uncheckable". The class, rather than the subject matter, decides where the level of automation starts. This is why domains differ: a billing service has many decisions in the first class and a robot fleet has many in the last, so the two arrive at different settings while following the same method. ## How a level of automation moves - **Up, on track record.** At level of automation 1 the agent runs in shadow mode, recording what it would have decided. Enough agreement with the person, over enough cases, moves the class up by one. - **Down, on one failure.** A single escaped defect drops that class by one. - **Not at all, on a model release.** A better model will usually earn the move sooner, but it still has to earn it. The thresholds are written in advance in the policy, which no agent can edit. A policy might say, for example, "promote after 50 cases with at least 98% agreement and no severe disagreement." Because one failure undoes what many cases earned, a level of automation rises slowly and falls quickly. ## Who leads at the stations Every team runs the same stations. At three of them the levels of automation decide who leads the work, with a separate setting for each kind of work. | Kind of work | Station | When a person leads | When an agent leads | |---|---|---|---| | **Architecture** | Shape | The architect sets the design. The planner fills in the detail. | The planner writes the design. The architect reads it by exception. | | **Detailed design** | Build | The architect stays at the Build station and decides the choices the builder raises. | The builder decides, and each choice is recorded as a derived decision. | | **Verification design** | Shape, Verify | The verification lead designs the evidence plan and the environment. The verifier builds them. | The verifier drafts both. The verification lead reads what the environment cannot show, and reviews any change that would weaken it. | Review is not on this scale. An agent reviews every change, and what a team tunes over time is the policy's list of what counts as critical, as [Review](../review/agents.txt) sets out. ## What never moves Promises, product decisions, invariants and constraints are approved by a person at every level of automation. They pass the agreement gate, which closes the [Shape](../shape/agents.txt) station. - **What the system promises.** Agents may draft promises, invariants and examples, and people approve them. A machine cannot verify meaning, so meaning cannot be delegated. - **What is never allowed.** Constraints have their own owner, who holds a veto. - **Product decisions.** An agent may recommend a threshold, and with a track record it may choose one, but a person approves the choice before it takes effect. ## How much of the design agents own The share of the design left to agents is controlled by the following settings. - **The clause state.** A clause is *decided*, *deferred* to the agents within bounds, or *open*. Deferring a clause hands the choice over. - **Promotion.** Any design choice an agent recorded in the blueprint can be promoted to a decision in the canon, after which a person owns it. - **The level of automation for the class.** Low-level design in a well-understood domain can reach 4 or 5, while high-level design in a new domain may stay at 1 for a long time. Whatever the setting, every decision still traces to a clause, and every clause to a promise. The level of automation changes who decides, and leaves unchanged what a decision must answer to. ## Precedents carry judgment When an agent meets a case no clause covers, it asks. The person's answer is written into the decision that settles the question, with the case, the ruling and the reason, and that decision becomes a **precedent** which later decisions cite. > Order 6120, a bundle with one late item: refund the late item only, because the rest delivered value. The agent applies a precedent to similar cases and asks again when a case is materially different. When several precedents point the same way, the agent proposes a general rule, and a person approves it as a decision that cites them. Delegation can therefore grow as the body of precedent grows. Precedents cannot say which good thing wins when two conflict; the [tenets](../tenets/agents.txt) exist for that purpose. ## What is unproven Agreement measures imitation, and imitation is only as good as the person imitated: an agent that matches a person 98% of the time is as right as that person was. For classes where a wrong decision is severe, the threshold should be set higher. Some classes are so rare that they will never reach fifty cases, and those remain with people. --- ## References - Previous chapter: People and agents: https://canonball.org/guide/people-and-agents/agents.txt - Next chapter: Verification engineering: https://canonball.org/guide/verification-engineering/agents.txt - Related: People and agents: https://canonball.org/guide/people-and-agents/agents.txt - Related: Review: an agent every time, a person when critical: https://canonball.org/guide/review/agents.txt - Related: Tenets: https://canonball.org/guide/tenets/agents.txt - Related: What is still a bet: https://canonball.org/guide/open-bets/agents.txt - Glossary: https://canonball.org/glossary/agents.txt - Site overview and index of every chapter: https://canonball.org/agents.txt