# Design Patterns for AI Software Factory > The abridged, browsable catalogue of The Engineering of Confidence: named principles and patterns for software factories, each with its cost and the evidence behind it. - [Three Costs](patterns/three-costs/): An attempt, a correct result and the establishing of correctness are three costs. Cheaper attempts lower the first. The second falls where something tells a good attempt from a bad one, and the third falls least unless evidence is made as cheap as candidates. - [Accepted Outcome](patterns/accepted-outcome/): Count accepted outcomes and charge every attempt to them. Report the cost of escaped failures beside them, never mixed in. - [Scarce Attention](patterns/scarce-attention/): Judgement, accountability and the decider's attention stay scarce. Define each reserved act once and count the questions asked. - [Theory, Not Trace](patterns/theory-not-trace/): On Naur's account, a program's theory is held by its programmers. Documents carry its trace and can help rebuild it. - [Knowledge Has a Lifecycle](patterns/knowledge-has-a-lifecycle/): Engineering knowledge is acquired, represented, executed, evaluated and improved, and each piece carries its source, its currency and its retirement. - [Fit the Form](patterns/fit-the-form/): Enforce what must always hold, reason about methods, test criteria. - [Enforcement Is Not Verification](patterns/enforcement-is-not-verification/): A passing check is evidence only about what it evaluates. - [Applicability Before Use](patterns/applicability-before-use/): A method is applied after its fit is checked, and the choice is recorded. A method not yet evaluated on comparable work calls for exploration under closer verification, or for a person who understands both the method and the case. - [Deliberate Safeguards](patterns/deliberate-safeguards/): Keep the safeguards that were engineered, make what was valuable in the accidental ones deliberate, and let the rest go. - [Behaviour Is Not Intent](patterns/behaviour-is-not-intent/): What a system does cannot reliably tell you what was wanted. - [Criteria Are Discovered](patterns/criteria-are-discovered/): Part of what a change must satisfy is found by doing the work. Give discovery a stage of its own, and have the owner confirm what it finds. - [Inconsistency Is a Finding](patterns/inconsistency-is-a-finding/): Keep each holder's view of the intent apart. Where they disagree, that is a result. - [Prototypes Are Instruments](patterns/prototypes-are-instruments/): A prototype answers a question. Record the criteria and decisions it revealed, and discard the code unless someone decides to keep it. - [Discovery Is Not Decision](patterns/discovery-is-not-decision/): Findings are shaped into choices their owner can decide. The owner may decide whole classes in advance, within bounds, and "undecided" is an honest state. - [Independent Derivation](patterns/independent-derivation/): Derive from the intent, not from each other. Surface and classify the differences, and do not keep one result by vote or by stated confidence. - [Information Boundary](patterns/information-boundary/): When a reviewer must judge whether an implementation matches intent, let the reviewer derive an expectation from the intent before showing the builder's rationale. - [Designed Diversity](patterns/designed-diversity/): Copies share causes of error. Diversity is designed and measured. - [Integrity of Capture](patterns/integrity-of-capture/): The tests that judge a change, the harness that runs them and the record of their results sit outside the producer's write access. - [No Self-Certification](patterns/no-self-certification/): A producer's own evidence is never the sole basis for accepting its work. Whoever evaluates their own factory says so at the outset and hands blind review and fault scoring to a third party where they can. - [Control, Not Instruction](patterns/control-not-instruction/): An instruction influences. A control in the environment holds against what it was built for, once the control has itself been tested. - [Five Properties of an Actor](patterns/five-properties-of-an-actor/): Competence, capability, responsibility, authority and accountability are related and not interchangeable. Each rests on a different kind of evidence, and accountability stays with people. - [The Decider's Own Act](patterns/the-deciders-own-act/): A reserved decision is settled only by the act of the person entitled to make it, or within bounds that person set in advance. Any other record that it was made is a claim. - [Authority Follows Judgement](patterns/authority-follows-judgement/): Authority should not run ahead of demonstrated judgement, and judgement alone is not enough. The accountable party grants it and withdraws it on evidence. - [Four Modes](patterns/four-modes/): Work is enforced, selected, explored or decided, and each fails differently. - [Bounded Rework](patterns/bounded-rework/): When evidence changes, what must be redone has a bound, and the work stops and reports at it. - [Bounded Work in Flight](patterns/bounded-work-in-flight/): Limit the work in flight by the capacity to review and accept, not by the number of workers that can be started. - [Stop the Line](patterns/stop-the-line/): Whoever detects an abnormality stops the work. - [Feedback Before Commitment](patterns/feedback-before-commitment/): Shorten the distance between an action and the evidence about it. - [Confidence Is an Argument](patterns/confidence-is-an-argument/): Confidence is an argument: from claim, through criteria, mechanism and evidence, to acceptance. - [Four Objects of Confidence](patterns/four-objects-of-confidence/): Specification, implementation, evidence and the checking mechanism each need their own evidence. More tests usually add evidence about one of them. - [Diverse Evidence](patterns/diverse-evidence/): Checks whose causes differ tend to fail in different places. Use several, expect them to be partly dependent, and report their results apart. - [Test the Instrument](patterns/test-the-instrument/): Every checking mechanism has two error rates: the faults it lets through and the sound work it rejects. Measure both on known cases before trusting it. - [Assurance in Proportion](patterns/assurance-in-proportion/): Set assurance by consequence and reversibility first, then exposure, likelihood and detectability. Add evidence only while it removes more uncertainty than it costs. - [Sealed Criteria](patterns/sealed-criteria/): Fix the standard before you judge. After that, change it only in the open, by the person entitled to, and judge every candidate against the change. - [Inputs Earn No Credit](patterns/inputs-earn-no-credit/): Workers, stages and hours go in the record and earn no credit. Outcomes do. - [Missing Evidence Is Not a Pass](patterns/missing-evidence-is-not-a-pass/): A missing observation is neither a pass nor a fail, and it never counts in the factory's favour. - [Once Is Not a Rate](patterns/once-is-not-a-rate/): One run shows an outcome is reachable. A rate needs a denominator and an interval. - [Gates, Not Composites](patterns/gates-not-composites/): Report each dimension of an outcome on its own, with gates declared before any run. Any ranking above the gates declares its weighting. - [Scope Follows the Decision](patterns/scope-follows-the-decision/): Choose the scope of an evaluation by the decision it must support, and never report a result at a higher scope than it reached. - [Lessons Become Defaults](patterns/lessons-become-defaults/): A lesson is learned only when it changes a default, a check or a stopping point. - [Evaluate the Method](patterns/evaluate-the-method/): A new engineering method is evaluated before a factory adopts it: criteria sealed first, against its honest alternative, with enough repetitions to see a spread.