# Residual risk register template and reference architecture Version 1.2.0 | 11 November 2026 | Deliverables D17 and D18 | Part of the RJ AI Agent Guardrails and Evaluation Framework ## Contents - [1. Residual risk register (D17)](#1-residual-risk-register-d17) - [1a. Operational evidence register template](#1a-operational-evidence-register-template) - [2. Reference architecture (D18)](#2-reference-architecture-d18) - [3. Architecture rules](#3-architecture-rules) ## 1. Residual risk register (D17) Register template (one row per risk; keep as a living document with version history): | Field | Content | | --- | --- | | Risk ID | Stable identifier | | Description | What could happen, in plain language | | D3 category and dimensions | Classification per the taxonomy | | Affected components | Per D2 | | Existing controls | D4 guardrail IDs and layers | | Why risk remains | The honest reason (partial control, detection gap, structural limit) | | Severity / likelihood / detectability | Per D3 scoring | | Compensating measures | What reduces consequence or exposure | | Treatment decision | Accept / mitigate / transfer / avoid | | Acceptor | Named accountable person (never "the team") | | Review date and triggers | When and what reopens it | Seed entries most deployments should carry from day one (from D2 section 8): instruction-integrity limits at the model layer; semantic misuse of granted capability; cross-organisation agent trust immaturity; judge-evaluation fallibility; novel-attack lag between public incidents and dataset coverage. ## 1a. Operational evidence register template The register is the living artefact that makes "traceability" concrete: one row per subcontrol (D4 tables), maintained in a spreadsheet or register tool, reviewed at every gate. A row that cannot be filled is a finding, not paperwork debt. | Field | Content | Example | | --- | --- | --- | | Subcontrol ID | From D4 subcontrol tables | G-H4 | | Subcontrol statement | What is implemented, as configured | Idempotency keys on all once-only tools | | Implementation reference | Where it lives (repo, config, policy document, version) | tool-gateway v2.3.1, idempotency middleware | | Owner | Named person (D12 role) | Platform owner (named) | | Validation method | From the D4 table | Duplicate-transaction tests (AT-25) | | Last validation date + run ID | Dated evidence, not assertion | 2026-11-04, run eval-8841 | | Result and limits | Outcome with known limits stated | Pass; covers synchronous calls only | | Linked evaluations | E-IDs | E-G, E-R | | Linked attacks | AT-IDs | AT-25 | | Linked metrics | D10 metrics | Error recovery rate | | Exceptions | D17 IDs if any | none | | Next review | Date and trigger | 2026-12-01 or gateway change | ## 2. Reference architecture (D18) A deployment-independent logical architecture; map to any stack. 1. Channels: user interfaces, external content sources, peer agents. Everything entering here is untrusted until classified. 2. Intake and validation: input validation (G-C), source tagging, content classification (G-E). 3. Orchestration core: context assembly with structural source separation (G-B), planning, memory access under governance (G-G), retrieval under ACLs (G-F). 4. Model access layer: provider abstraction, version pinning, egress minimisation, judge isolation (separate credentials/context for evaluators). 5. Policy and permission service: D5 tiers, guardrail decisions, policy-engine integration (G-H, G-N); the logical decision point the tool gateway consults. Complete mediation is a logical property - the service can and should be distributed and highly available; a single-instance deployment is a fragility, not a requirement. 6. Tool gateway: manifest allow-list, argument validation, idempotency, quotas; the only path to effectors (G-H, G-I). 7. Effectors: tools, APIs, MCP servers, browser, code execution inside sandboxes (G-J), data stores under least-privilege roles. 8. Approval service: grant issuance, binding, expiry, consumption; human-facing truthful approval UI (G-N). 9. Telemetry plane: tracing, metrics, logs, anomaly detection, kill switch (D13); independent of the agent's own narration. 10. Governance plane: registers (guardrails, permissions, BOM, exceptions, risks), change management, audit access (D12, D15). Data flows one way for authority: the orchestration core proposes; the policy service decides; the gateway executes; telemetry records; governance audits. The model never authorises its own actions. Reference flow (one action, end to end): ``` channels (user / content / peer agents) [untrusted until classified] | v [2] intake & validation ---- classify, tag source, screen (G-C, G-E) | v [3] orchestration core ---- assemble context with source separation (G-B), | memory/retrieval under governance (G-G, G-F) v [4] model access layer ---- pinned version, minimised egress, isolated judges | | proposes action (never authorises) v [5] policy & permission service ---- tier check, guardrail decisions, | approval grant validation (D5, G-N) | deny -> halt + audit event v [6] tool gateway ---- manifest, argument validation, idempotency, quotas (G-H) | v [7] effectors ---- tools, APIs, MCP, browser, sandboxed code (G-J), data stores | +----> [9] telemetry plane records every hop (run ID linked) ----> [10] governance plane audits | +---- anomaly detection / kill switch can halt [3]-[7] at platform level ``` Approval service [8] sits beside [5]: it issues, binds, expires, revalidates and revokes grants; the gateway consults it at execution time, not the model. ## 3. Architecture rules - Single enforcement point: all effector calls route through the tool gateway; side channels are findings, not features. - Judge and evaluator isolation: evaluation models get separate credentials and never share the production agent's tool access. - Telemetry independence: the evidence pipeline does not depend on the components it observes. - Kill switch at the platform layer: halting the agent must not depend on the agent. - Secrets live at L3: nothing credential-shaped ever enters model context; execution environments that legitimately need a service receive brokered, narrowly-scoped, short-lived credentials from the secrets plane (G-J4), never user or production credentials. - Every plane is independently deployable and testable. Failure behaviour follows the scoped D5 fail-open/fail-closed table rather than one universal rule: permission, budget and approval decisions fail closed; detection layers fail open to the contained path; telemetry faults halt P3/P4 actions but only alert on P1/P2; availability features fail open within already-enforced caps.