Phase D · Technology Architecture & Organization

AIB Agent Lifecycle & Kill-Switch Runbook

Version: 1.0 | Status: Draft | Date: 2026-06-12 Owner: CRO / ARB | Parent: AI & Model Risk Charter


1. Purpose

An agent in a regulated bank is a controlled change to the bank's operating model, not a script someone can spin up and forget. This runbook governs the full lifecycle of every Paperclip agent in the Agent Register — from the first onboarding proposal through every modification and retrain to eventual decommission — and provides the operational kill-switch runbook for taking a misbehaving agent out of production fast and safely.

Every lifecycle transition is a row in the agent_change_request table (migration 0004_agent_ops). That table is the single source of truth for "what state is this agent in, who asked, who decided, and on what evidence." No agent enters, changes, or leaves production except through an agent_change_request. This makes the agent fleet auditable as a change-managed system and satisfies the AI & Model Risk Charter §1 precondition that no agent goes live without documented model-risk sign-off.

The runbook upholds Architecture Principle P11: agents propose, humans dispose. A lifecycle change is itself proposed (requested_by) and disposed (arb_decision, status) by accountable humans — never self-actuated by the agent.


2. Lifecycle states & the agent_change_request model

A change request carries: agent_id, change_type (onboard / modify / retrain / suspend / decommission), description, requested_by, arb_decision (pending / approved / rejected / deferred), model_validation_ref (the MOD-* / SIM-AIS-* evidence), ai_act_tier (high / material / assistive / limited), status (draft / in_review / approved / rejected / implemented), created_at, and decided_at.

arb_decision records the governance verdict (did the Architecture Review Board / Model Risk Committee approve?); status records the workflow position of the request itself. A request can be approved (arb_decision) yet still in_review (status) until the access grant and register update are completed and it flips to implemented.

change_typeTriggerGate
onboardNew agent proposed for a building blockARB + model-risk sign-off + shadow mode
modifySkill/scope/prompt change, owner changeARB review; re-validation if material
retrainagent_eval breach or drift (eval doc §7)Model Risk Committee; re-validation mandatory
suspendEval red, incident, regulator demandCRO/CISO/owner; reversible
decommissionAgent retired or replacedARB; access revoked, register row closed

3. Onboarding flow

A new agent moves from idea to production through a fixed gate. It never receives any data access before model-risk sign-off, and never reaches production before a successful shadow run.

Steps:

  1. Propose. The sponsoring function opens an agent_change_request with change_type = 'onboard', status = 'draft', requested_by, and a description of the agent's bounded domain and building block (e.g. ABB-AML for aib-cco).
  2. ARB review. The Architecture Review Board checks scope, building-block fit, the named human owner, and separation of duties against the Data Ownership Matrix. On approval, arb_decision = 'approved', status = 'in_review'.
  3. Model-risk sign-off. Per the AI & Model Risk Charter §1 and the Model Validation Charter: intended use, provenance, bias, explainability, robustness, failure modes, kill-switch. model_validation_ref (MOD-* / SIM-AIS-*) and ai_act_tier are written here.
  4. Access grant. The human owner's authorisation is granted via an app_user_role row (role_code = the owner's role, e.g. CCO); the agent is added as a row in the Agent Register. Note: the grant authorises the human disposer, not a standing write credential for the agent — agents hold none (P11).
  5. Shadow mode. The agent runs against live (mock) data and proposes only; outputs are scored against the golden set (Evaluation doc §3) but are not committed. The owner reviews shadow proposals for a defined window.
  6. Production. When shadow KPIs clear threshold, status = 'implemented' and the agent enters production at its access tier (Propose / query-only, or Approval-gated for aib-payments dual-auth, or Read-only for aib-audit).

4. Modify & retrain

Modify (change_type = 'modify') covers a skill change, scope/building-block change, prompt revision, or owner change. ARB reviews; if the change is material (per the Model Validation Charter "major update" trigger — new features, >10% output change), it requires full re-validation before status = 'implemented'.

Retrain (change_type = 'retrain') is the canonical downstream action of agent evaluation. When an agent_eval row is written with breached = 1, or a drift monitor trips, the Model Risk Committee directs a retrain change request (see Agent Evaluation & Monitoring §7). Re-validation is mandatory for retrain — the new model version is treated as a new model for validation purposes, and model_validation_ref is updated. A retrained agent re-enters shadow mode (§3 step 5) before returning to production unless the Committee records an explicit, justified exception.


5. Suspend & decommission

Suspend (change_type = 'suspend') is the reversible stop. The agent stops proposing; its open agent_proposal rows are frozen pending human handling; the human fallback (§6) takes over the function. Suspension is invoked by the kill-switch runbook (§6) and is intended to be temporary — the agent returns to production only when the restoration criteria are met and the Committee records arb_decision = 'approved' on the re-entry.

Decommission (change_type = 'decommission') is the irreversible retirement. On implementation: the agent's enabling access is revoked, its row in the Agent Register is closed, any associated app_user_role grant created solely for the agent's workflow is revoked (active = 0, revoked_at set), and the building block it served is reassigned or retired through Phase H change management. The full agent_change_request history and all of the agent's audit_log rows are retained 10 years — the agent leaves, its record does not.


6. KILL-SWITCH RUNBOOK (operational)

When an agent must be stopped now, follow this runbook. It is the fast path; the agent_change_request and rcsa_risk_event paperwork is completed in parallel, not as a precondition.

6.1 Trigger conditions

TriggerSourceExample
Eval red breachagent_eval.breached = 1aib-cco recall falls below the AML floor; hallucination_rate red on MOD-007
Security incidentCISO / PROC-010 (DORA)Prompt-injection, credential exposure, anomalous query volume
Regulator demandFMA / supervisory requestFMA directs the bank to halt an automated decision
Model failureInference outage / corrupt outputOpenRouter gateway SIM-AIS-001 returns malformed or unsafe output

6.2 Who can pull it

RoleMay suspend
CROAny agent
CISO / CTOAny agent (security or model-failure trigger)
Named human ownerTheir own agent(s) — see Agent Register

A single authorised individual can suspend; no quorum is required to stop. Restarting requires the §6.5 governance step.

6.3 Mechanism — step by step

  1. Disable the agent in the Paperclip workspace (AIB project): set the agent inactive so it stops emitting proposals immediately.
  2. Revoke the enabling authorisation. Where the agent's workflow depends on a role grant, set the relevant app_user_role row(s) active = 0 and stamp revoked_at. Because agents hold no standing write credential (P11), this plus step 1 fully severs the agent's ability to affect operational data.
  3. Stop the proposal stream. Any agent_proposal rows the agent has open are left in status = 'open' and frozen — they are routed to the human fallback for manual disposition rather than auto-expired, so nothing in flight is silently lost.
  4. Open the record. Create an agent_change_request with change_type = 'suspend', requested_by = the person who pulled the switch, description = trigger + timestamp, arb_decision = 'pending', status = 'in_review'.
  5. Raise the risk event. aib-risk proposes an rcsa_risk_event (and, if a DORA ICT incident, follow PROC-010); commit on CRO approval per P11.

6.4 Human fallback

Suspension must never create an operational gap. The moment an agent is suspended, the named human owner's team resumes the function manually — the same humans who today dispose the agent's proposals already hold the authority and the screens to do the work without it. The bank operated these functions before the agent existed; it can operate them without it. Deadline-bound functions are prioritised: STR filing (PROC-002, 5-day), payment dual-auth (PROC-008), settlement (PROC-009).

6.5 Notification

  • Immediately: CRO, CCO, the agent's human owner, CISO (if security trigger).
  • Per the Escalation SOP: a regulatory violation escalates to CCO + Board within 4 hours; a confirmed security breach to CTO + CCO + Board within 1 hour; a DORA major incident to CTO + FMA within 4 hours.
  • FMA: where the suspended agent supports a regulated decision, the FMA Liaison notifies the supervisor.

6.6 Restoration criteria

An agent returns to production only when all hold:

  1. Root cause identified and remediated (logged on the suspend agent_change_request).
  2. Re-validation passed per the Model Validation Charter (mandatory if the trigger was eval/model failure); model_validation_ref updated.
  3. A successful shadow-mode re-run (§3 step 5) against the current golden set.
  4. Model Risk Committee / ARB records arb_decision = 'approved' on the re-entry request; status = 'implemented'.
  5. FMA informed of restoration where it was informed of suspension.

No agent self-restores; no owner restarts an agent suspended for a regulatory or security trigger without the §6.5 sign-off.


7. Cross-references

References

Referenced by