TOGAF ADM Phase Breakdown
AIB schema application of the TOGAF 10 Architecture Development Method (ADM). Maps each ADM phase to the concrete deliverables produced and the schema sections that implement each phase's architectural decisions.
Schema: 387 tables (V1–V11 + migrations 0003–0014), Cloudflare D1 / SQLite 3.37+
Jurisdiction: Liechtenstein (FMA), EEA regulatory scope
Platform: Paperclip agent organisation (27 live agents, 17 with in-repo spec cards; 7 domain skills)
Phase 0: Preliminary
Purpose: Establish architecture capability, governance, and principles.
Deliverables produced:
- Architecture principles (documented in
TOGAF_ADM_BANKING_REFERENCE.md§2) - Tailoring of TOGAF for a single-institution regulated bank
- Identification of 7 architecture domains (Legal Entity, Client, Account, Trading, Payments, GL, Risk)
Principles:
- Regulation-first: every column traces to an enacted law or binding GL
- Single source of truth: one
schema.sqlfile, no migration divergence - Additive-only: no breaking changes across V1–V10
- Tip-off prohibition enforced at DB layer (not application layer)
- VIRTUAL over STORED for all compliance ratios (D1 constraint + auditability)
Phase A: Architecture Vision
Purpose: Define scope, stakeholders, and high-level architecture vision.
Scope: Full lifecycle for an FMA-licensed private bank — from client onboarding to regulatory reporting, covering all EEA/Liechtenstein regulations in force through 2026.
Key stakeholder groups:
| Stakeholder | Concern |
|---|---|
| FMA (Liechtenstein) | Regulatory compliance; examination readiness |
| SPG/AML compliance officer | STR filing, sanctions, KYC retention |
| DORA ICT risk function | Incident reporting, ICT third-party register |
| Investment management | Suitability, mandate, SFDR classification |
| Operations | Settlement, nostro, payments, fee billing |
| Internal audit | Immutable audit log, control evidence |
| 27 Paperclip agents | Schema as persistence layer for all agent actions |
Architecture vision statement: A regulatory-complete, single-file persistence schema that enables a 27-agent AI operating stack to service a Liechtenstein private bank across the full client lifecycle, with every compliance obligation encoded at the schema layer where SQLite permits.
Phase B: Business Architecture
Purpose: Define the business model, capabilities, and process flows.
Business domains:
| Domain | BIAN Equivalent | Tables |
|---|---|---|
| Client & KYC | Customer KYC | client, ubo, pep_record, sanctions_screen, document, kyc_review, onboarding_workflow |
| Account & Mandate | Customer Account Management + Investment Portfolio Planning | account, suitability_assessment, mandate, product_agreement |
| Trading & Settlement | Securities Trading + Securities Settlement | order_, trade, settlement, emir_trade_report |
| Payments & AML | Payment Initiation + AML/Financial Crime | bank_transaction, aml_alert, str, aml_investigation_case |
| General Ledger | Financial Accounting | chart_of_accounts, journal_entry, journal_line, trial_balance_snapshot |
| Regulatory Reporting | Compliance Reporting | str, stor_report, fatca_account_report, crs_account_report, regulatory_filing |
| Risk Management | Credit Risk + Operational Risk + Market Risk | rcsa_risk_event, kri_reading, icaap_snapshot, credit_assessment |
| Credit Lifecycle | Credit Risk Assessment | loan_facility, loan_drawdown, loan_repayment_schedule, loan_covenant |
Key business processes encoded in schema:
- Client onboarding (SPG Art. 3–8):
onboarding_workflowtracks 8-step SPG completion with SLA deadlines - STR filing (SPG Art. 17):
aml_investigation_case→strwithtipped_off = 0enforced - MiFID II pre-trade gate: 4 checks before
order_approval (suitability + appropriateness + mandate compliance + approved instrument) - CSDR settlement discipline:
settlementcarries T+ISD, T+ISD+3 escalation, and buy-in flags - DORA incident 3-stage reporting:
ict_incident→fma_dora_incident_report(4h/72h/1month)
Phase C: Information Systems Architecture
C1: Data Architecture (Information Architecture)
Four-layer information model:
| Layer | Description | Table Count | Examples |
|---|---|---|---|
| Master Data | Long-lived reference entities | 20+ | client, legal_entity, instrument, ref_country, chart_of_accounts |
| Transactional Data | Business events and lifecycle states | 80+ | order_, trade, settlement, bank_transaction, aml_alert |
| Analytical/Regulatory | Computed positions, ratios, aggregates | 30+ | icaap_snapshot, lcr_hqla_item, nsfr_asf_item, pillar3_disclosure |
| Regulatory Reporting | Structured submissions to authorities | 145+ | corep_credit_risk_submission, fatca_account_report, dora_register_submission, str |
Data quality framework (BCBS 239, 13/13):
| Principle | Implementation |
|---|---|
| P1 Governance | risk_data_quality.accuracy_flag, risk_data_lineage |
| P2 Data architecture | Single-file DDL; FK constraints; typed columns |
| P3 Accuracy/Integrity | 550+ CHECK constraints; tipped_off = 0; enum-restricted TEXT columns |
| P4 Completeness | capital_ratio_daily for CET1/T1/TC time-series (daily granularity) |
| P5 Timeliness | retain_until, deadline, SLA flag columns throughout |
| P6 Adaptability | Foreign keys to ref_country, ref_currency for multi-jurisdiction extension |
| P7 Accuracy (risk data) | VIRTUAL ratio columns recompute from current inputs on every read |
| P8 Completeness (risk data) | risk_data_quality.completeness_pct per metric |
| P9 Timeliness (risk data) | risk_report_distribution with data-cut SLA and breach counter |
| P10 Aggregation | trial_balance_snapshot, corep_finrep_bridge reconciliation |
| P11 Distribution | risk_report_distribution recipient registry |
| P12 Review | kri_reading.escalated, model_risk_register.open_critical_findings |
| P13 Remediation | audit_finding with remediation deadline; srep_outcome remediation actions |
C2: Application Architecture (Systems Architecture)
Agent skill → schema domain mapping:
Cross-cutting write rules:
audit_logis append-only — no agent may UPDATE or DELETE rowsstr.tipped_offandstor_report.tipped_offare DB-layer enforced to 0 — no agent override pathbank_transactionstays inawaiting_dual_authuntilaib-compliance+ one other skill record separate authorisations
Phase D: Technology Architecture
Technology stack:
| Component | Choice | Rationale |
|---|---|---|
| Database | Cloudflare D1 (SQLite 3.37+) | Native Workers bindings; zero connection pooling; portable DDL |
| Runtime | Cloudflare Workers | Co-location with D1; low-latency agent reads |
| Agent runtime | Paperclip | Agent org management; issue ↔ entity bridge via workflow_issue |
| LLM inference | OpenRouter | Decoupled from specific model provider |
| Schema format | Single schema.sql | CI-validatable; one-command D1 deploy; TOGAF artifact |
Deployment:
wrangler d1 execute aib-mock --file=schema.sql
# Expected: 387 tables, 0 syntax errorsTechnology constraints:
- D1 does not support
STOREDgenerated columns → all computed columnsVIRTUAL - D1
PRAGMA foreign_keys = ONis not persistent across connections — enforced at Wrangler binding level - D1 max database size: 10 GB (sufficient for a single-institution operating schema)
- No native JSON type — JSON payloads stored as
TEXT, structure validated at application layer
Indexes:
- 493 total indexes
- Naming:
idx_{table_prefix}_{column(s)} - All foreign key columns indexed for join performance
- Compound indexes on reporting dimensions (entity × date, client × period)
Phase E: Opportunities and Solutions
Implementation waves:
| Wave | Schema Versions | Theme |
|---|---|---|
| Wave 1 | V1–V2 | Foundation: client lifecycle, GL, BCBS 239, DORA |
| Wave 2 | V3–V4 | 2024–2026 regulatory gap closure: MiCA, SFDR, FRTB, IRRBB, SA-CCR |
| Wave 3 | V5–V6 | Operational depth: remuneration, IRB, GIPS, collateral, FINREP |
| Wave 4 | V7–V8 | BCBS 239 completion, COREP, LCR/NSFR full decomposition, GDPR RoPA |
| Wave 5 (target) | V9–V10 | Credit lifecycle, hedge accounting, agent integration depth |
| Wave 6 (planned) | V11+ | CSRD full enforcement, AI Act high-risk activation, AMLA direct supervision |
Phase F: Migration Planning
Migration approach: Schema is additive-only. Each version appends to schema.sql:
- New
CREATE TABLEblocks (with section header comment) - New
CREATE INDEXblocks ALTER TABLE ADD COLUMNfor field extensions to existing tables (last, after all CREATE blocks)- Retention schedule addendum
No breaking changes policy: No existing column removed or renamed. No existing CHECK constraint modified. New constraints may be added as new columns with DEFAULT values.
Rollback: Re-deploy prior version of schema.sql via wrangler d1 execute --file=schema_vN.sql (D1 requires database re-creation for rollback — no incremental rollback).
Phase G: Implementation Governance
Validation gates (every version):
# 1. SQLite syntax + FK check
sqlite3 :memory: < schema.sql
sqlite3 :memory: "PRAGMA foreign_key_check;"
# 2. Table count
sqlite3 :memory: "SELECT COUNT(*) FROM sqlite_master WHERE type='table';"
# Expected: 387 (V11 + migrations 0003–0014)
# 3. No orphaned objects
sqlite3 :memory: "SELECT name FROM sqlite_master WHERE type='table' AND sql IS NULL;"
# Expected: 0 rows
# 4. Tip-off prohibition
sqlite3 :memory: "SELECT sql FROM sqlite_master WHERE name IN ('str','stor_report');" | grep "tipped_off = 0"
# Both must matchSchema change checklist:
- New table name unique — check against
sqlite_master - All FK columns reference correct PK:
ref_country(iso2), notref_country(code) - Index prefix matches table name (first 4–5 chars)
- VIRTUAL columns reference base columns only — no chained VIRTUAL refs
-
retain_untilcolumn present on all tables with retention obligations - Scaffold tables marked with
-- SCAFFOLD: regulation pending / enforcement YYYY - Retention schedule addendum updated in
schema.sql - README badge and deploy count updated
Phase H: Architecture Change Management
Trigger conditions for new schema version:
- New regulation enacted (law published in EEA Official Journal or FL LGBl)
- FMA examination finding requiring structural schema change
- SREP outcome identifying unaddressed regulatory gap
- Agent operating pattern requiring new persistence domain
Version review cadence:
- Annual: regulatory horizon scan (new EBA GLs, CRR amendments, MiCA RTS)
- Event-driven: major ICT incidents revealing schema gaps; DORA/DORA Register updates
- SREP cycle: post-SREP gap analysis drives next version scope
Cross-Phase: TOGAF Architecture Layers Applied to AIB
| TOGAF Layer | AIB Manifestation | Primary Schema Domains |
|---|---|---|
| Business Architecture | Liechtenstein FMA-licensed private bank; 7 business domains; 27-agent operating stack (17 with in-repo spec cards) | Client, Account, Trading, Payments, Reporting |
| Information Architecture | 387-table DDL; 4 data layers (master/transactional/analytical/regulatory); BCBS 239 13/13 | Risk data quality, lineage, all regulatory tables |
| Systems Architecture | 9 Paperclip domain skills with defined schema write authority; workflow_issue integration bridge | All 387 tables via aib-* skill mapping |
| Technology Architecture | Cloudflare D1/Workers + OpenRouter inference; single-file SQLite DDL; VIRTUAL-only computed columns | ict_asset, ict_incident, dora_contractual_arrangement, deployment DDL |