# What is still a bet > Parts of this method rest on decades-old technology, and parts rest on things nobody has yet measured. - Site: CanonBall. The lifecycle agents can run and people can trust. - HTML page: https://canonball.org/guide/open-bets/ - This file: https://canonball.org/guide/open-bets/agents.txt --- Guide part: Building with it. Chapter 27 of 28. Key points: - The central bet is cost: agents must make this rigor as cheap as ordinary software. - A missing clause defeats every verification level. Examples and incidents reduce that risk and do not remove it. - Three bets about how work moves are unmeasured: milestones over tickets, an agent as the reviewer, and observability built for agents. - The method suits logic-heavy, long-lived systems. It suits prototypes and interface-heavy products poorly. ## What is solid The following pieces use established technology and can be relied on today. - **Decision logic kept apart from side effects,** with recorded inputs and exact replay. - **A canon as plain Markdown** with examples, stable IDs and ownership by path, which needs no new tooling. - **Evidence at the lower verification levels, produced by agents:** property-based tests against fakes, and scenarios against real processes and a local database, provided the builder and the verifier are separate accounts with separate paths. - **Proofs for small pieces of decision logic,** with a person checking only the examples. - **A first verification environment,** built in a week as described under [starting](../start/agents.txt). ## The bets ### Cost The whole method rests on this bet. Assurance cases, arguments and treatments are expensive to write and to keep current, and CanonBall assumes that agents bring that cost down to that of ordinary software. If agents only make the writing faster, while people still review every clause change, every critical argument, every adapter and every example, the result has the cost profile of certified avionics software without the regulation that justifies it. Only measurement can settle this: setup cost apart from recurring cost, a person's time per critical case, and how often an argument went stale. ### Milestones over tickets CanonBall gathers related requests into a milestone before anything is built, on the expectation that agents build better from a milestone than from a stream of single tickets, because promises are settled once for the batch and the agents work on a coherent whole. This has not been measured, and research on product flow mostly argues for small batches, because a large batch delays feedback and makes a mistake more expensive. The method responds with the sizing rules, which keep a milestone small, and with [unplanned work](../collect/agents.txt), which lets incident repairs, bug fixes, refactorings and upkeep skip the batch because they add or change no promise. Whether that is enough is a question for a pilot, comparing the time from request to release and the amount of rework under both ways of working. ### Missing clauses When the canon misses a case, every verification level checks the wrong thing thoroughly, and a complete proof of an incomplete specification is still incomplete. Incident INC-007 in [Operate](../operate/agents.txt) is an instance: REQ-012 showed as accepted while no check used an order whose dispatch and delivery dates differed. Examples and incidents reduce the problem, and no known technique removes it. ### The quality of arguments An agent can draft an assurance case, but whether it reliably notices a missing obligation, such as braking distance in a safety argument, is untested. The same doubt applies to what an environment claims about its own realism. Until there is data, a person reads the argument of every tier 2 clause and reviews any change that would weaken an environment. ### Evidence across teams A parent's status depends on the contract tests its providers must pass, and tests that miss something the protocol relies on give a green result and a wrong promise. The approach is sound in principle and unproven in practice. ### Comparing behavior before and after Replaying recorded inputs through the old and new versions is a useful backstop, in the spirit of a characterization test, but a poor replacement for review: it measures first-order effects only, it produces long lists that people stop reading, and an empty comparison does not prove a refactoring safe. ### Things nobody can monitor Some assumptions cannot be checked from the observations available, and some failures show up too late to matter. For physical systems, most of the effort can be expected to go into treatments other than monitoring. ### Observability built for agents The method asks a team to log every decision with its clause and its inputs, and to give agents tools for reading logs, traces and state, on the expectation that the cost of this [observability](../observability/agents.txt) is repaid because agents that can look inside the system build, verify and diagnose with less guessing. The return is plausible and unmeasured, whereas the costs are certain: signals to design and keep current, tools to maintain, and data to store. A pilot should measure how long a diagnosis takes and how often the first one was right. ### Agents that share a blind spot Separate accounts make the builder and the verifier independent in what they can change, but not in how they read: two agents built on the same model can misread a clause in the same way. Whether a different model family for the verifier is worth its cost is an open question. ### An agent as the reviewer An agent [reviews](../review/agents.txt) every change, and a person joins only for the changes the policy lists as critical or the reviewer rates as large in blast radius. The bet is that the agent catches enough for every other change to be released without a person. The bet is unmeasured, and the doubt about a shared blind spot applies in full: a reviewer can share the builder's misreading of a clause and approve the mistake it was there to catch. To find out, a person should review a sample of the changes released on the agent's review alone and count what the agent missed. ## Not yet The method does not make the following claims. | Claim | Why not | |---|---| | "People never read code." | Security and permission bugs live on inputs nobody recorded. Adapters keep their review. | | "The physical verification levels run without people." | Agents can plan a hardware test and interpret its results. People still run the rig and inspect the weld. | | "Reorganize the company around it." | That assumes a reliability agents have not yet demonstrated. Measure escaped defects first. | | "It works for any software." | The fit is specific to logic-heavy, long-lived systems. | ## Where it fits | Fits well | Fits poorly | |---|---| | Business rules, workflows, services | Products that are mostly user interface | | Systems that will be changed for years | Prototypes and throwaway code | | Supervisory control | Hot numeric code | | Anything with money, safety or irreversible actions | Work where the promise itself is still unknown | ## Open questions - How should an agent judge its own uncertainty well enough to know when to ask? - When is a new case "materially different" from every precedent? - How should the canon change while old data and running instances still follow the previous version? - What weight should evidence get when a model, and not a mechanical check, is the oracle? - Clauses can interact. Two cases can each be valid while their combination fails, through a shared assumption or a contested resource. No answer has been designed yet. - Can the agents' own behavior be governed by a canon, with the same gates? ## What a pilot settles The individual mechanisms are established practice, as [their sources](../sources/agents.txt) show. What remains to be shown is that agents make the combination affordable. That can be tested cheaply on one system. If the numbers from a first pilot are poor, the team still has ten clauses, a vocabulary and one trustworthy verification environment, which is a fair return on a week. --- ## References - Previous chapter: Start in a week: https://canonball.org/guide/start/agents.txt - Next chapter: Where the words come from: https://canonball.org/guide/sources/agents.txt - Related: When writing code is cheap: https://canonball.org/guide/why/agents.txt - Related: Start in a week: https://canonball.org/guide/start/agents.txt - Related: Handing over decisions: https://canonball.org/guide/delegation/agents.txt - Related: Review: an agent every time, a person when critical: https://canonball.org/guide/review/agents.txt - Glossary: https://canonball.org/glossary/agents.txt - Site overview and index of every chapter: https://canonball.org/agents.txt