Cross-phase · Architecture Core

AIB Architecture Principles

Version: 1.0 | Status: Draft | Date: 2026-06-09 Owner: Chief Architect | Approval: Architecture Review Board


Purpose

The principles that govern every AIB architecture decision. Each is stated in TOGAF form — Statement, Rationale, Implications — so it can be applied and audited. Principles are binding under the Architecture Contract.


P1 — Regulation-first

Statement. Where a regulatory obligation and a convenience trade off, regulation wins. Rationale. AIB is an FMA-supervised Liechtenstein bank; non-compliance is existential. Implications. Regulatory requirements are Mandatory in the requirements register; no silent descoping; regulatory defaults are fail-safe (see P4).

P2 — Single source of truth

Statement. Each data entity has exactly one authoritative owner and store. Rationale. Duplicated master data breaks BCBS 239 accuracy and reconciliation. Implications. One writer per table (data ownership matrix); operational truth in Cloudflare D1; no shared-database back doors (see P3).

P3 — API-first, no shared database access

Statement. All cross-service data access is via versioned APIs, never direct DB reads. Rationale. Encapsulation enables independent evolution and enforceable contracts. Implications. Each capability is a service with a published API (service APIs); integration is API or event, not table-sharing.

P4 — Fail-safe regulatory defaults

Statement. When a control's state is ambiguous, default to the compliant, non-harmful state. Rationale. A wrong default in AML/sanctions can cause criminal liability (tip-off). Implications. CHECK(tipped_off = 0) at the schema layer; sanctions match → freeze; suitability invalid → block order.

P5 — Immutable audit trail

Statement. Every state change is recorded in an append-only, tamper-evident log. Rationale. Supervisory trust and BCBS 239 require provable history. Implications. aib-audit-service is append-only; no update/delete path on the audit log (REQ-REG-019).

P6 — Defense in depth

Statement. Controls are layered: edge, API gateway, application, data. Rationale. No single layer is trusted to be sufficient. Implications. WAF + auth + validation + schema constraints; MFA on privileged access; TLS 1.3 in transit, AES-256 at rest (REQ-REG-015, REQ-NFR-005).

P7 — Data minimisation & residency

Statement. Process only data necessary for the purpose; keep it in the EU/EEA. Rationale. GDPR Art. 5/32 and DORA Art. 3. Implications. Purpose-scoped collection; EU/EEA-only storage; retention with scheduled purge (REQ-REG-016/017).

P8 — Additive, versioned schema

Statement. Schema evolves additively and is versioned; no destructive migrations in place. Rationale. Banking data is long-lived; rollback must never lose regulatory records. Implications. Single-file DDL, additive changes, retention via retain_until columns (see docs/ARCHITECTURE_DECISIONS.md).

P9 — Event-driven where eventual consistency is acceptable

Statement. State changes propagate via events; synchronous calls only where needed. Rationale. Decoupling improves resilience and scale. Implications. Kafka event stream + saga consistency (event catalog); synchronous only for user-facing/critical paths.

P10 — Build to the contracted architecture

Statement. Delivery builds only to approved building blocks; deviations need an ADR + contract amendment. Rationale. Implementation Governance is only real if deviations are controlled. Implications. ABB/SBB catalogs are authoritative; changes flow through Phase H change management.

P11 — Agents propose, humans dispose

Statement. Autonomous agents emit queries, drafts, and recommendations; they hold no direct write access to operational data. A write commits only after a human owner (or an approval flow) approves. Rationale. A regulated bank stays accountable to the supervisor through people, not models. Standardised, non-destructive agent outputs plus model-risk sign-off are the precondition for agentic AI (FINMA 08/2024, EU AI Act). Implications. Write-blocking enforced at the data layer, not by agent instruction; every proposal/decision/actor is audit-logged; each agent has a named human owner and escalation path (Agent Register, AI & Model Risk Charter).


Maintenance

Principles are reviewed at each ADM cycle. Adding/retiring a principle requires ARB approval and a CHANGELOG entry.

References

Referenced by