Assurance architecture

The proposed architecture separates generation, permission to act and verification. This supports both AI-assisted QE workflows and the testing of AI applications.

Explore the architecture in 3D → · Orbit the model and compare generated-test verification, AI evaluation, denied actions and failed quality checks. A 49-second film and editable Blender scene are also available. These are authored illustrations of this logical architecture, not a live system or a performance simulation.

Conceptual AI assurance laboratory with a model engine, test specimens, controlled test chamber and human review station

Adoption foundations

The runtime architecture assumes a usable delivery system. Before connecting client tools, validate the infrastructure, platform and workflow dependencies: repeatable environments and pipelines, isolated data, controlled external dependencies, testable interfaces, owned frameworks and evidence, approved AI access, reviewer capacity and platform operation. A missing foundation changes the pilot boundary, cost and timing. Cloud migration, Kubernetes and retrieval infrastructure are design choices, not universal prerequisites.

A control boundary around agent actions

Pan horizontally to explore the full diagram. A text description is available below.

Proposed enterprise AI and quality engineering platform: delivery interfaces, governed context and agent execution, independent assurance, release and evidence feedback DELIVERY EXPERIENCE Engineer / QE IDE · pull request · test workbench Delivery systems Repository · CI · issue tracker AI applications Product workflows · agents Work enters through existing team workflows GOVERNED EXECUTION Context service Classify + minimize Permitted retrieval Versioned input snapshot QE agent runtime Task plan + model router Prompt / model versions Memory + retry limits Action gateway Agent identity + policy Tool / resource allowlists Budget + approval rules task + scope approved context INDEPENDENT ASSURANCE Sandbox + deterministic checks Build · repeatability · mutation · fixtures Evaluation service Held-out cases · judges · human labels allow application versions Repository text and tool output cannot grant permissions. EVIDENCE + FEEDBACK Evidence store Task / run / artifact / decision IDs Quality · effort · cost · incidents Curated regression corpus Accepted failures + reviewed expectations New cases challenge the next release run traces Release authority Reviewer + existing CI / change gates Approve · hold · rollback The generating agent cannot approve itself checks + evaluation evidence Proposed logical architecture · dashed paths carry context, evidence or feedback
Inspect a component: Select a component in the diagram
Proposed logical architecture · select a component to inspect its role and research basis. [A01][A03][R01][E04]
Research behind this design & diagram description
Finding

NIST frames assurance across the lifecycle. OWASP and OSFI identify agent identity, tool authority and traceability as control concerns; Meta separates generation from validation.

Design implication

Separate context, generation, policy enforcement, independent evaluation and release authority. Preserve a shared evidence record across those boundaries.

Diagram in words

Engineers and delivery systems supply tasks and approved context. The runtime proposes actions through a policy gateway. Independent sandbox checks and application evaluations supply evidence to the release authority. Traces and decisions feed the evidence store; curated failures become regression cases.

Inspect methods and source documents →

An agent may suggest a tool call, but a separate enforcement point decides whether that identity can perform the action on the specified resource. Prompt instructions are not an access-control mechanism. Retrieved documents, repository text and tool results should be treated as untrusted content.

For the initial QE pilot, use scoped non-production context, a sandbox and draft artifacts. More consequential actions require a separate design review of authority, approvals, recovery and evidence. The detailed pilot control mapping remains applicable.

A workflow through the architecture

Pan horizontally to explore the full diagram. A text description is available below.

Illustrative payment API test-generation sequence: contract, scoped context, candidate, policy-mediated execution, independent mutation test and reviewer approval Engineer / QE QE agent Policy gateway Sandbox / CI Reviewer 1 Contract: reject a negative payment amount 2 Request approved API contract + test patterns 3 Return scoped, versioned context 4 Submit candidate test + requested runner 5 Authorize sandbox run; no production access 6 Test must catch a seeded boundary fault 7 Evidence bundle: assertions, CI, mutation result 8 Human approval → existing merge controls Illustrative workflow · approved contract defines the oracle; generated tests cannot silently weaken it
Illustrative payment-API workflow · the approved contract defines correct behavior; all execution stays within the sandbox. [E04][E05][A03][R01]
Research behind this design & diagram description
Finding

Meta’s generation work filters candidates through executable checks; mutation-guided testing tests whether a candidate detects a fault. Agent guidance requires authority to be bounded at the action boundary.

Design implication

Generate a negative-amount test from an approved contract, execute it through a scoped gateway, retain the independent fault-detection result and route the evidence to a human reviewer.

Diagram in words

The engineer supplies the contract. The agent requests scoped context and proposes a test. The gateway authorizes sandbox execution. CI checks the candidate against a seeded boundary fault. The reviewer receives assertions and test evidence before using existing merge controls.

Inspect methods and source documents →

Evaluation extends across the lifecycle

Pan horizontally to explore the full diagram. A text description is available below.

Proposed AI evaluation architecture with versioned application configurations, held-out cases, independent evaluation, release decisions, monitoring and feedback Versioned application Model · prompt · retrieval Tools · permissions · memory Evaluation corpus Typical + adversarial cases Held-out set · human labels Baseline and candidate runs Same tasks and test conditions Record outputs AND tool actions Independent scoring Deterministic contracts Calibrated judges + expert review Quality by scenario; cost and latency versioned traces Release gate Agreed floors hold? Hold + investigate Failed case → diagnosis Revise config or control no Controlled deployment Canary / bounded exposure Human escalation + rollback yes Production monitoring Outcomes · drift · denials Trace samples · incidents · rework Case curation Review oracle + privacy Add failures to regression new cases Proposed application-level assurance · evaluate again when context, behavior or authority changes
Proposed evaluation and release architecture · the unit of assurance is the configured application. [A01][A02][T03][T06]
Research behind this design & diagram description
Finding

NIST treats evaluation and risk management as lifecycle activities. Evaluation product documentation supports versioned datasets and comparisons; judge calibration still requires local evidence.

Design implication

Compare baseline and candidate configurations against held-out cases, gate releases on agreed floors, then turn reviewed production failures into regression cases.

Diagram in words

Versioned application configurations and a held-out evaluation corpus feed comparable runs and independent scoring. A failed release gate holds the change for investigation. A passing gate leads to controlled deployment and production monitoring; curated failures refresh the corpus.

Inspect methods and source documents →

A useful evaluation contract identifies the user task, representative populations, important failure modes, expected behavior, scoring rules and release thresholds. Split development examples from a held-out evaluation set, and preserve a history of model, prompt, retrieval, dataset and tool versions.

What is evaluated Example evidence Important limitation
Task outcome Correct result against an independent expected outcome Fluency is not correctness
Retrieval and grounding Relevant evidence; correct attribution; permission-aware retrieval A citation can point to an irrelevant or inaccessible source
Agent trajectory Correct tool, arguments, scope and termination A successful final answer can hide an unsafe action
Adversarial resilience Injection, data disclosure and denied-action scenarios A finite suite does not prove absence of other failure modes
Operational behavior Latency, cost, escalation, drift and fallback success Average performance can hide rare severe failures

LLM judges can help scale assessment, but they need calibration against expert labels and checks for inconsistency and bias. Deterministic contracts and human review still have distinct roles. [A01][A02][T03][T06]

The release decision includes the AI configuration

Re-run relevant evaluations when changing prompts, models, retrieval indexes, tool schemas, permissions or memory behavior. Maintain bounded retries, budget limits and a tested fallback. Curate incidents into regression cases without copying sensitive production content into broadly accessible datasets.

OWASP’s 2026 LLM guidance covers the model as an application component; its agentic guidance extends the threat model to actors with tools and memory. The newly introduced ACS proposes common runtime control hooks. Its implementation maturity should be evaluated before relying on framework portability. [A03][A04][A05]

Verify the authority boundary

Pan horizontally to explore the full diagram. A text description is available below.

QA agent boundaries: untrusted context reaches the model, but a policy gateway controls tools and resource access, with denied-action tests and bounded recovery UNTRUSTED INPUT Retrieved content Docs · web · code May carry instructions Tool output / memory Poisoned observations Persisted injected text Agent runtime Uses task + context Proposes arguments No self-granted access AUTHORITY BOUNDARY Policy gateway Identity + resource Allowlist + approval Deny outside scope request Allowed tools Scoped credentials Bounded execution Denied action No side effect Stop / escalate Test: poisoned context requests a production write → gateway denies → trace records identity, target and reason Proposed negative test · test recovery as well as refusal · finite coverage does not prove absence of other failure modes
Proposed threat model · the highlighted test follows an injected request all the way to enforcement and recovery. [A03][A04][R01]
Research behind this design & diagram description
Finding

OWASP identifies risks arising from untrusted inputs and agent tool use. OSFI’s July 2026 bulletin discusses agent identity, scoped tool access, traceability and resilience as sound practices.

Design implication

Test the system’s response when poisoned context asks for an unauthorized action. Assert no side effect, a recorded denial and a bounded escalation path—not just a polite refusal in the model’s answer.

Diagram in words

Untrusted documents, code, tool output and memory reach the agent runtime. The agent can request an action, but the gateway checks identity, resource and policy. Permitted calls reach scoped tools. Denied calls cause no side effect and stop or escalate.

Inspect methods and source documents →

Detailed architecture walkthroughs

The expanded technical briefing develops the logical platform into concrete boundaries and failure paths. These are authored designs informed by the source library, not claims that a publisher or institution uses this exact architecture.

Architecture concern Visual walkthrough
Context and reproducibility Permission-aware retrieval and versioned release manifest
Generated-test validity Independent expected behavior and mutation-guided tests
Test operations Evidence-linked failure diagnosis and flaky-test repair
Evaluation assets Corpus lifecycle and judge calibration
Agent authority Denied-action sequence and execution zones
Release and resilience Release decision logic and fallback state machine
Operational evidence Telemetry pipeline and integration contracts

Financial-services context

OSFI’s July 2026 Technology Risk Bulletin discusses identity, tool restrictions, testing, traceability and resilience for generative and agentic AI. It complements existing guidelines with sound practices. E-23’s revised model-risk guideline is effective 1 May 2027; determine system applicability with the institution’s model-risk function. [R01][R02]

These references inform the design. They do not establish that the proposed architecture, or any named product, complies with every applicable requirement.

Reuse first: the minimum payment pilot

These are logical responsibilities, not a shopping list of new products. Confirm which capabilities the client already operates before estimating integration work.

ResponsibilityReuse / verifyMinimum changeOwner
Task and contextAzure Boards, repository and API contractAdd a read-only versioned context adapterQE platform + application lead
Model accessApproved model endpoint and identityConfigure a scoped model adapter, quotas and timeout handlingAI platform owner
Execution and authorizationAzure Pipelines, protected branches, service identitiesConfigure isolated runners and independent action allowlistsDevOps + service owner
Data and provider behaviorCurrent test database and vendor integration slotsAdd resettable fixtures and validated WireMock scenarios; retain real-provider checksTest-data + integration lead
Evidence and reviewPipeline artifacts, results and release approvalAdd stable joins, a read-only summary and missing-evidence holdsQA + release owner

Build thin adapters only where supported integration is missing. Select an existing approved product when it can provide the same interface, evidence export and operational ownership. A shared model router, Kubernetes cluster or vector store is not a universal prerequisite.