Adapting the First and Second Lines for AI: Release Cycles, Decision Quality and Testing
Agile teams release AI systems weekly, and in some cases daily. Independent validation, as most banks practice it, still assumes that the thing being validated will hold still long enough to be reviewed. When the two operate on different clocks, one of two outcomes follows: releases wait for validation and the business routes around it, or validation falls behind and the model inventory ceases to describe what is in production. Neither outcome is satisfactory from a supervisory perspective, and in my view neither is necessary.
In an earlier note, First Line, Second Line, and the Evaluation Set, I described how the change surface of an agentic system is distributed across prompts, tools, permissions, retrieval corpora, orchestration logic and vendor model versions, most of which never trip a revalidation trigger. More recently I set out one possible allocation of the OCC Super Intelligence Framework’s sixteen components across the three lines of defense. This note takes up two practical questions that follow from both. The first is how independent validation can keep pace with agile release cycles without surrendering its independence. The second is how the roles of the first and second lines should change so that the decision systems themselves are better constructed and the tests applied to them are better suited to what those systems actually do.
Why Validating Every Release Does Not Work
The instinctive response to frequent releases is to require that each one be validated before it reaches production. Applied to an agentic system, that requirement fails on capacity alone. A validation team sized for a model inventory that changes a few times a year cannot review a system that changes a few times a week, and increasing the number of validators does not address a workload that grows with each new use case.
The requirement also fails on substance. Most releases are small: a revised instruction, an additional document in the retrieval corpus, a change to an output format. Subjecting each of them to a full review spends the second line’s attention on changes that carry little risk, and leaves less of it for the few changes that carry a great deal.
Model risk management already has a partial answer. Most bank model risk policies distinguish between minor changes, which may be implemented by the model owner within an approved methodology and reported afterward, and material changes, which require validation before use. A recalibration within approved bounds is the familiar example. The principle is sound, but for AI systems it lacks a definition of the approved bounds that fits the components that actually change, and a means of confirming automatically that each release stayed within them. In my reading, supervisory guidance has long made the scope and rigor of validation proportionate to model risk and has left the definition of material change largely to each institution’s policy. A written classification of changes, approved by the second line, is therefore in effect the institution’s definition of materiality for these systems. That reading is consistent with how examiners treated the stress testing programs, although it should not be regarded as a safe harbor.
Validating the Release Process Rather Than Each Release
The approach I suggest is for the second line to validate the system together with the controlled process by which it is permitted to change, rather than validating each release. The second line performs a full validation once, before first deployment, covering the use case and its objective, its scope and design, the tools and data it can reach, the underlying model on which it depends, and the boundaries within which it may operate. Thereafter the approach has five elements.
- Change classification and approved envelope. The second line writes, and agrees with the first line in advance, a classification of changes for each use case. Changes that remain within the validated boundaries, such as the refinement of a prompt, the correction of a defect in a tool, or the addition of a retrieval source of the same kind as those already validated, proceed through the release process. Changes that move the boundaries, such as a new objective, a wider scope, access to a new tool or a change of underlying model, return to the second line. The envelope is defined component by component, and should be narrower for higher-tier use cases.
- Release gates. The first line runs every release, however small, through an automated gate before it reaches production, and may run the gate as often as it wishes. The gate scores the release against a standing evaluation suite, which the first line builds and maintains, and against a hold-out evaluation set that the second line specifies, maintains and does not share with the developers, using acceptance thresholds that the second line sets. The first line cannot see the hold-out set and cannot alter the thresholds. Where the second line lacks the capacity to build the hold-out set itself, a third party may build it, provided that the institution specifies the sampling frame and retains custody of the set. The results of each gate are recorded as part of the release, so that the evidence of testing is produced at the time of the change rather than reconstructed afterward.
- Escalation. The first line routes to the second line any change that falls outside the approved envelope and any release that fails a gate, and does not deploy it pending review. The second line then performs targeted validation scaled to the change and to the risk tier, so that the addition of a new tool to a high-tier agent receives a fuller review than a revision to an output format. Where a change to the boundaries is urgent, the institution should provide an expedited review route with defined service levels, rather than an exceptions process, since exceptions processes tend over time to become the normal route.
- Validation of the gate. The second line validates the gate itself as a standing responsibility. This includes the evaluation harness, the change logs, version control over prompts and tool definitions, and any automated judges used in scoring, which are themselves models and require validation as such.
- Retrospective sampling. The second line monitors production and reviews a sample of completed releases on a schedule set by risk tier. The purpose of the review is to confirm that the change classification is being applied as written, that the hold-out set continues to represent the inputs the system encounters in production, and that the accumulation of small changes has not produced a system materially different from the one that was originally validated.
Under this arrangement, most releases proceed at the pace the business requires because they do not wait for a human reviewer. The second line’s attention is directed to the definition of the envelope, the design of the gates, the changes that fall outside them, and the cumulative drift that no single release would reveal. On this basis, the requirement that a system be independently validated before it goes live is satisfied, since each release reaches production within boundaries the second line has validated, through a gate the second line has designed, and against evidence the second line controls.
A Precondition: Evidence Specified Before the Build
The arrangement described above has one condition, and it is the most demanding part of the approach. All of its elements must be in place before the system is built. A gate cannot score a release against evidence the system never recorded, and logging at the level of individual steps, together with change control over prompts and tool definitions, cannot be added retrospectively for decisions the system has already made.
The second line should therefore set its evidence requirements at the outset of development. Doing so does not draw the second line into the design effort or compromise its independence. As I argued in First Line, Second Line, and the Evaluation Set, specifying the evidence is the second line’s responsibility, while choosing the design remains the first line’s.
The OCC’s SI Framework describes what these systems may be permitted to do. It does not say when the evidence requirements for them should be established. In my view, the answer is before the first release, since once those requirements are in place, each subsequent release can proceed at the pace the business requires.
The Limits of Release Gates
Release gates address the expected behavior of a system, and they should not be relied upon to detect changes in the likelihood of rare but severe outcomes. A standing evaluation suite has limited statistical power for that purpose. If a release produces no failures across five hundred test cases, the most that can be concluded with ninety-five percent confidence is that the true failure rate is below approximately six in one thousand. An outcome that would be expected once in ten thousand interactions is effectively beyond the reach of such a test, whether or not the release has made it more likely. A suite that remains fixed for an extended period is also subject to optimization by the developers, and over time it comes to measure the behavior the first line has tuned for rather than the behavior of the system in use.
Tail risk therefore requires controls of a different kind, and five of them complement the release gates.
- Severity containment. The first line implements hard limits on what the system may do, including transaction ceilings, restricted permission scopes, actions that require human approval, circuit breakers and kill switches, and the second line sets the standards for those limits by risk tier. These controls bound the consequence of a failure without depending on an estimate of its probability, and the release gates can test them deterministically on every change.
- Envelope defined by tail exposure. The second line defines the change envelope according to whether a change could plausibly alter the most severe outcomes the system can produce, rather than according to the apparent size of the change. A new tool, a broader permission or a different vendor model version can change tail behavior substantially, and such changes fall outside the envelope regardless of how minor they appear.
- Adversarial testing. The second line maintains, for higher-tier use cases, an adversarial test set directed at severe outcomes, which is refreshed on a regular schedule and partly generated anew for each review so that it cannot be optimized against. The approach follows the logic of supervisory stress testing, in which severe but plausible scenarios are designed deliberately rather than inferred from the historical sample.
- Monitoring of leading indicators. The first line monitors in production the precursors of severe outcomes, such as guardrail activations, refusals, escalations, unusual tool calls and override rates, and the second line sets the thresholds and reviews the results. These events occur frequently enough to be tracked statistically, so that a shift following a release can be detected well before an extreme outcome is observed. The SI Framework’s performance monitoring component points in the same direction, calling for production monitoring calibrated to detect low-frequency events that could cause material harm.
- Staged deployment. The first line deploys higher-tier releases in stages, through shadow operation or limited release, so that tail behavior can emerge while exposure is small. The second line sets the stages and the exposure limits by risk tier.
The release gate remains necessary, since it confirms on every change that expected behavior is intact and that containment controls are functioning. It is not, however, a sufficient control for tail risk, and an approach that relies on it for that purpose would provide false assurance on the outcomes that matter most.
The emphasis on tail risk in this section should not be read as a view that the materiality of an AI use case is determined by its potential loss alone. In my view, materiality is better measured by the change in the distribution of net outcomes, that is, gains less losses over a defined period, relative to the process the system replaces or supplements, which in most cases has error rates and losses of its own. Under that approach, net outcomes inform tiering and the decision to deploy, while the controls described above act as a constraint that keeps the most severe outcomes within the institution’s risk appetite, in the same way that risk-adjusted return is assessed subject to a capital or tail constraint. Losses borne by customers, and outcomes subject to consumer protection requirements, should not be netted against gains to the institution. I intend to develop this argument in a subsequent note.
Better Decision Systems and Better Tests
Agility is only part of what the three lines must address. Much current agentic AI development asks a language model to reason, plan, select tools, make the decision and in some cases evaluate its own work, and then relies on guardrails to contain the result. Model risk management has long held that a system should instead be judged by whether it was built around a properly formulated problem, and by whether the claims made for its performance rest on independent evidence. A coherent explanation of how a system reached a recommendation is not evidence that the recommendation is sound. None of these standards is new, and their implications for what the first line should build and what the second line should test follow from the four questions I have long used to organize model validation.
The business problem
- Formulation of the decision problem. The first line states, before development begins, the decisions the system may take, the conditions it does not control but must withstand, and the measures by which the quality of its decisions will be judged. The second line does not begin validation of an agentic decision system until that formulation exists, since without it there is no standard against which performance can be assessed. This requirement supplies what the SI Framework’s purpose component omits, which is a statement of objectives rather than only of permitted actions.
Conceptual soundness
- Evidence of a decision process. The first line documents how alternatives were generated and explored, including the search method, the search budget and the stopping rule. The second line does not accept a reasoning trace or a persuasive narrative as support for a recommendation, and assesses instead whether the search was adequate to the decision.
- Benchmarking against conventional methods. The first line demonstrates that the use of a language model improves on a conventional approach, such as a mathematical solver, a bandit algorithm or a simpler search, where such an approach is available. The second line treats the absence of that comparison as a validation finding, since the burden of demonstrating that a language model adds value rests with those who propose to use one.
- Choice of verification instruments. The first line uses the strongest available instrument for each check, which means a database query, a deterministic calculation, an executable test or a statistical model wherever one of these can settle the question, and an LLM judge only where none can. The second line challenges any use of an LLM judge that a stronger instrument could replace, and validates the judge in its own right where its use is justified.
Developmental evidence
- Separation of discovery from confirmation. The first line records how many candidates, prompt variants or configurations were tried before the one presented for approval. The second line controls a reserved confirmation data set that played no part in the search, and tests the performance claim of the selected candidate against it. Adaptive search favors candidates whose scores were inflated by measurement error, and the more alternatives are tried, the larger that inflation becomes. The same reasoning applies to repeated tuning against a fixed release-gate suite, which is a further reason for the second line to hold the hold-out set described earlier.
- Provenance of knowledge. The first line designs the system so that it distinguishes exact facts and measurements, estimated relationships together with their uncertainty, policies together with their scope and effective dates, and generated hypotheses. The second line verifies that a hypothesis generated by the system cannot be treated as an established fact without confirmation.
Performance analysis
- Evaluation across operating conditions. The second line designs or approves a set of operating conditions, including severe but plausible scenarios, and assesses the quality of the system’s decisions across that set rather than on an aggregate score. A decision that performs well on average but fails under stress should be identified before deployment, and the logic is the same as that of supervisory stress testing.
- Separation of authority. The first line implements an execution gate, independent of the language model, that checks each proposed action against applicable policy before it is executed. The second line tests that the gate operates on the exact action proposed and that no rationale produced by the system, however persuasive, can override it. A proposed credit action that would exceed a policy limit, for example, should be denied by the gate regardless of the explanation the system offers for it. The execution gate is also the most direct form of the severity containment described in the previous section.
Taken together, these changes move the second line from reviewing what a system produced toward assessing whether the system was built to produce sound decisions and whether the evidence offered for its performance can be relied upon. They also place on the first line a set of design obligations that are familiar from conventional model development, and that agentic AI development has too often set aside.
Allocation of Responsibilities
Both sets of changes, those that support agility and those that support better decision systems and tests, depend on a clear allocation of responsibilities, and they map directly onto the three lines of defense allocation I set out for the SI Framework.
| Element | First line | Second line | Internal audit |
|---|---|---|---|
| Decision problem | States the decisions, the operating conditions and the measures of decision quality before development | Does not begin validation until the formulation exists; challenges its completeness | Tests whether validated systems had a documented formulation |
| Evidence specification | Builds step-level logging and change control over prompts and tool definitions into the design | Sets evidence requirements at the outset of development, without choosing the design | Tests whether evidence requirements were set before the first release |
| Search and benchmarking | Documents the search method, budget and stopping rule; compares results with a conventional method | Treats an absent benchmark or an inadequate search as a finding | Tests whether benchmark findings were raised and resolved |
| Verification instruments | Uses the strongest available instrument for each check; uses LLM judges only where nothing stronger applies | Challenges replaceable LLM judges; validates justified judges in their own right | Tests whether judges in use were validated |
| Change classification and envelope | Classifies each release against the written classification | Writes the change classification and approves the envelope, defined by exposure to severe outcomes | Tests whether releases classified as within the envelope actually were |
| Release gates | Builds and maintains the evaluation suite; runs the gate as often as it wishes; records results | Specifies and maintains the hold-out and confirmation sets and sets acceptance thresholds; retains custody where a third party builds the hold-out set | Tests whether gates ran on every release and whether failures were escalated |
| Escalation | Routes out-of-envelope changes and gate failures; does not deploy pending review | Performs targeted validation scaled to the change and the tier; operates an expedited route with defined service levels | Tests timeliness and completeness of escalation, and whether the expedited route is being used as an exceptions process |
| Gate validation | Maintains the evaluation harness, change logs and version control | Validates the harness, change logs, version control and any automated judges | Tests whether gate validation is current |
| Tail-risk controls | Implements severity limits, leading-indicator monitoring and staged deployment | Sets standards and thresholds by tier; maintains and refreshes the adversarial test set; designs operating conditions | Tests whether limits, kill switches and fallbacks function under failure |
| Execution gate | Implements an authority gate independent of the language model | Tests that the gate checks the exact action and cannot be overridden by the system’s rationale | Tests the gate’s operating effectiveness on high-tier use cases |
| Retrospective sampling | Supplies release records on request | Monitors production; selects and reviews the sample; confirms the classification is applied as written and the hold-out set remains representative | Assesses whether sampling frequency and depth are adequate to the tier |
Two points from the SI Framework mapping carry particular weight here. The second line’s authorship of the change classification is what gives the envelope its meaning, since a classification that the first line both writes and applies to its own changes is not subject to independent challenge. And the second line’s control of the hold-out set is what preserves the integrity of the release gates, since an evaluation suite built and tuned entirely by the developers will, over time, measure what the developers have optimized for.
Independence When Validation Moves to the Pipeline
The objection to this approach is that the second line no longer sees most releases, and that an automated gate is not independent review. In my view, the objection misidentifies the source of independence. In the stress testing programs of the last decade, the second line engaged throughout development rather than at its end, and supervisors accepted the result because three things were preserved: the standards were set in advance by the second line, the validators were not the developers, and the conclusion remained the second line’s to reach. The same three conditions hold here. In an agile setting, independence depends on who sets the test and who owns the result, rather than on whether a validator reviews each release personally. The second line sets the envelope and the thresholds, controls the hold-out data, reviews every change that falls outside them, and draws its own conclusions from the retrospective sample.
What changes is the form of the second line’s work. Less of it consists of reviewing finished artifacts, and more of it consists of designing the controls under which artifacts are released and testing whether those controls operated. That is a different skill set, and many second line functions will need to develop it. The alternative, a validation function that reviews each release in sequence and falls further behind with each new use case, would in practice provide less effective independent challenge rather than more.
The second line’s role also broadens in a second respect. In addition to designing the controls under which releases occur, it becomes responsible for insisting that agentic decision systems be built on a formulated decision problem, benchmarked against conventional methods, verified with the strongest available instruments, and confirmed on evidence that played no part in their development. These are not new standards. They are the standards that model risk management has applied to statistical models for many years, and the purpose of restating them is to ensure that they are applied to agentic systems as well.
As with the SI Framework mapping, this is one possible approach, and each bank’s version will reflect its own structure, size and risk profile.
Sources
OCC Bulletin 2026-54, Super Intelligence: Supervisory Framework (November 4, 2026) · OCC Bulletin 2026-13, Revised Guidance on Model Risk Management (April 17, 2026) · OCC SI Framework: Mapping to the Three Lines of Defense (HL-Research)