AIB Reporting & Analytics Architecture
Version: 1.1 | Status: Active | Date: 2026-06-14 Owner: CFO / Head of Reporting
1. Purpose & the gap
AI Bank Liechtenstein AG (AIB) already produces supervisory returns. The
FINREP / COREP / DPM reference establishes the
target principle: a reported number is a datapoint with a full semantic key (METRIC + DimContext),
not a cell in a spreadsheet, and the EBA DPM — not the XBRL taxonomy — is the architectural
source of truth. This document specifies how AIB's concrete operational tables become that
datapoint warehouse: the layers between the ledger and the filed XBRL package, the lineage and
data-quality controls that make a number defensible, and the governance that disposes of a
submission. It does not repeat the DPM / FINREP / COREP detail — read the reference for the
metamodel, template codes, reporting mechanics, and xBRL-CSV transport.
Scope note: AIB is a simulated Liechtenstein private bank. All figures and submissions are
mock data; the regulatory structure, codes, and the dpm_* / rpt_* metamodel are real and
current as of the document date.
What exists today. The schema carries 387 tables across migrations 0001–0014. Of the ~280 operational tables, roughly
twenty carry the staging reporting load (the remaining tables are the dpm_* / rpt_* reporting
layer this document describes, built in migrations 0005–0006):
- FINREP / COREP returns —
finrep_template,corep_credit_risk_submission,corep_operational_risk_submission,corep_finrep_bridge,large_exposure_record,leverage_ratio_calc. - Own funds & ratios —
own_funds_instrument,own_funds_deduction,capital_ratio_daily. - Liquidity & resolution —
lcr_*,nsfr_*,mrel_reporting_submission. - Disclosure & granular —
pillar3_disclosure,anacredit_*. - Other returns —
qir,regulatory_filing(plus theemir_*/fatca_*/crs_*tax and trade-repository feeds owned byagent:aib-reporting). - BCBS 239 controls —
risk_data_lineage,risk_data_quality.
The gap. These tables hold answers but not the model that proves them:
- No
DPMmetamodel. There is nodpm_framework/dpm_template/dpm_table/dpm_cellpresentation spine, nodpm_domain/dpm_dimension/dpm_memberdictionary, and nodpm_datapoint/dpm_categorisationjoin. A filed number cannot be resolved to itsMETRIC + DimContextkey. finrep_template.data_payloadis opaque JSON. The balance sheet, P&L, and NPE numbers are serialised into a blob. They cannot be queried, validated cell-by-cell, or reconciled to COREP without parsing the payload by hand.- No reporting mart and no view layer. Each return is computed by bespoke aggregation directly against the OLTP tables. There are no conformed dimensions, no reusable supervisory cuts, and no catalogued "current capital ratio" or "current NPE ratio" surface.
- No datapoint-level lineage.
risk_data_lineagerecords table-to-table provenance but does not reach the individual datapoint, so a single C 03.00 ratio cannot be traced back through every contributing own-funds instrument.
What this spec closes. It defines a three-layer architecture (§2) that sits the existing
OLTP tables under a SQL view layer now (v_*) and a mart roadmap (Phase E/F), feeding a
DPM-keyed built-fact layer (rpt_datapoint_value, catalogued in rpt_view_catalog) that
populates templates and projects to XBRL. It specifies datapoint-level lineage and data quality
under BCBS 239 (§3), the views-now vs mart-roadmap trade-off (§4), the propose → review → sign
governance (§5), the analytics surface (§6), and the requirements that carry it (§7).
As built. Both migrations are applied. Migration 0005 established the full dpm_* metamodel,
rpt_datapoint_value, rpt_view_catalog, and the ten v_* reporting views. Migration 0006 (2026-06-14)
added the complete versioning backbone (dpm_taxonomy, dpm_table_version, dpm_table_group M:N,
dpm_datapoint_version), the XBRL projection layer (dpm_xbrl_concept, dpm_xbrl_hypercube),
filing indicators (filing_indicator), the conformed mart star (rpt_dim_entity/period/template/dimension/member,
rpt_fact_datapoint), sector + geography dimensions (DOM-NACE/DOM-GEO + 10 members + DIM-NACE/DIM-GEO),
and audit_log immutability (hash-chain columns + append-only BEFORE UPDATE/DELETE triggers) — 387 tables total.
Seed 24 populates the versioning/XBRL rows, repoints rpt_datapoint_value through the mart, and seeds two
sector/geo datapoints (DP-NPE-RE NPE-by-NACE-L68 and DP-EXP-GEO-CH exposure-by-CH). The
/aib/reporting dashboard reads the mart-backed signed facts. The reporting mart (L2′) is
now built and operational — it was roadmap-only through migration 0005; migration 0006 closes that gap.
2. Three-layer architecture
The warehouse is layered so that the volatile operational tables, the stable supervisory semantics, and the filed facts are cleanly separated. Each layer has one job and exactly one upstream dependency.
2.1 Layer L1 — OLTP system of record
The ~280 operational tables remain the system of record. They are written by the domain agents (trading, operations, risk, identity) under the existing Data Ownership Matrix and are never reshaped for reporting convenience. Reporting reads from L1; it does not own it. The twenty-odd reporting tables in §1 are themselves L1 artefacts — they are staging outputs of domain processes, not the semantic model.
2.2 Layer L2 — SQL view layer (v_*)
A set of read-only SQL views resolves the OLTP shape into one view per supervisory table /
section, with stable column names matching the template's row/column structure. The view layer is
the first place the opaque finrep_template.data_payload is unpacked into addressable columns. Ten
views anchor the current scope:
| View | Template | Reads from (L1) |
|---|---|---|
v_corep_c0100_own_funds | C 01.00 (CA1) | own_funds_instrument, own_funds_deduction |
v_corep_c0300_ratios | C 03.00 (CA3) | capital_ratio_daily, own_funds_instrument, corep_* RWA |
v_corep_c0700_credit_rwa | C 07.00 | corep_credit_risk_submission |
v_corep_c1600_oprisk | C 16.00 | corep_operational_risk_submission |
v_corep_c2800_large_exposures | C 28.00 | large_exposure_record |
v_corep_c4700_leverage | C 47.00 | leverage_ratio_calc |
v_finrep_f0101_balance_sheet | F 01.01 | finrep_template (assets payload) |
v_finrep_f1800_npe | F 18.00 | finrep_template (NPE payload) |
v_lcr_c7200 | C 72.00 | lcr_* |
v_nsfr_c8000 | C 80.00 | nsfr_* |
Views are definitional, not materialised: they always reflect the live OLTP state, carry no storage cost, and require no refresh job. Their cost is recomputation on every read (§4).
2.3 Layer L2′ — reporting mart (roadmap only)
The target state is a conformed-dimensional mart: a small set of shared dimensions (reporting
entity, reference date, counterparty sector, currency, product, geography) and a set of fact tables
keyed by those dimensions, materialised on the reporting cadence. The mart is the place where the
v_* views' repeated joins are computed once and reused across every return, consistent with the
EBA's collect-once / derive-many direction and IReF convergence (reference §6.3). This layer
is roadmap only: this document describes the target shape but does not name or create any mart
table. The migration from views to mart is the subject of §4.
2.4 Layer L3 — DPM-keyed built facts & projection
The view layer (and, later, the mart) feeds the DPM metamodel. Each populated, non-shaded cell
resolves through dpm_template → dpm_table → dpm_cell and, via dpm_categorisation against
dpm_dimension / dpm_member, to a dpm_datapoint. The filed number lands in
rpt_datapoint_value, keyed by that datapoint and the reference date — this is the AIB
expression of "value located by METRIC + DimContext". Pre-built supervisory and management cuts are
catalogued in rpt_view_catalog. From rpt_datapoint_value, the populated templates are
assembled and the XBRL / xBRL-CSV package is projected (reference §5.7). The metamodel tables are:
- Presentation:
dpm_framework,dpm_module,dpm_template,dpm_table,dpm_axis,dpm_ordinate,dpm_cell. - Dictionary:
dpm_domain,dpm_dimension,dpm_member,dpm_hierarchy,dpm_metric. - Datapoint & join:
dpm_datapoint,dpm_categorisation,dpm_validation_rule. - Built facts & catalogue:
rpt_datapoint_value,rpt_view_catalog.
2.5 Worked dataflow — CET1 ratio (C 03.00)
The C 03.00 CET1 ratio is the canonical end-to-end trace, because it depends on the full own-funds build and the RWA denominator (reference §3.2):
own_funds_instrument and own_funds_deduction build the CET1 numerator; capital_ratio_daily
carries the TREA denominator (itself fed by corep_credit_risk_submission,
corep_operational_risk_submission, and the market-risk block). v_corep_c0300_ratios computes the
ratio with stable column names; the value is written to rpt_datapoint_value under the C 03.00 "CET1
ratio" datapoint for the reference date; that datapoint resolves to its C 03.00 cell and projects to
the XBRL fact. A change in any contributing own_funds_instrument row ripples deterministically
through this chain — and is traceable back through it (§3).
3. Lineage & data quality — BCBS 239
BCBS 239 (Principles for effective risk data aggregation and risk reporting) requires that a reported
number be accurate, complete, timely, and traceable to source. AIB already has the two control
tables — risk_data_lineage and risk_data_quality — but they operate at table grain. This section
extends them to datapoint grain and defines the reconciliation gate that blocks a submission.
3.1 Datapoint-level lineage
risk_data_lineage is extended so that every rpt_datapoint_value row can be resolved to the exact
set of source rows and columns that produced it, through the view (or mart) and back to L1:
Each lineage row records source_table, source_column, the transforming view (v_*) or mart fact,
and target = rpt_datapoint_value carrying the dpm_datapoint key. This makes the BCBS 239
"traceability" principle concrete: from any filed cell, the contributing source rows are one query
away. risk_data_quality carries a per-datapoint flag for the accuracy, completeness, and timeliness
dimensions; a failing flag marks the datapoint as not fit to file.
3.2 The FINREP–COREP reconciliation gate
corep_finrep_bridge is the reconciliation control between the accounting view (FINREP) and the
prudential view (COREP) — for example, total assets in v_finrep_f0101_balance_sheet (F 01.01) must
reconcile to the exposure base feeding v_corep_c0700_credit_rwa and the leverage exposure in
v_corep_c4700_leverage. The bridge is a hard gate on submission:
| Bridge field | Meaning | Gate condition |
|---|---|---|
finrep_corep_reconciled | reconciliation status flag | must equal 1 to file |
unexplained_difference_chf | residual after documented reconciling items | must equal 0 to file |
A non-zero unexplained_difference_chf or finrep_corep_reconciled = 0 raises a risk_data_quality
reconciliation flag and the affected datapoints are held. Documented reconciling items (scope
differences, prudential filters, valuation adjustments) reduce the difference to zero before the gate
opens. This gate runs before the dpm_validation_rule checks of §5 — an internally inconsistent
return is never even validated against the EBA rule set.
4. Views-now vs mart-roadmap
The L2 view layer and the L2′ mart are two points on a cost/benefit curve, not competing designs. The choice is when to materialise, not whether.
| Dimension | Views now (v_*) | Mart roadmap (L2′) |
|---|---|---|
| Storage | None — definitional only | Materialised facts + conformed dims |
| Freshness | Always live (reads current OLTP) | As of last mart refresh (cadence-bound) |
| Read cost | Recomputed every read; heavy joins repeat per return | Computed once per period; reused across returns |
| Build cost | Low — SQL view per template section | High — dimensional model, ETL, refresh orchestration |
| Reconciliation | Per-return, ad hoc | Conformed dims enforce consistency across returns |
| Best fit | Low submission volume, evolving templates, demo / SIM | High volume, granular IReF convergence, stable templates |
Why views first. At AIB's current volume — quarterly COREP/FINREP, a handful of returns — the
view layer is the right altitude: it unpacks finrep_template.data_payload, gives every cell a
stable address, and feeds rpt_datapoint_value with zero storage and zero refresh risk. The
heavy repeated joins are tolerable because submission frequency is low. Views also absorb template
churn cheaply: a framework release (reference §4.4) is a view edit, not a model migration.
Phase E opportunity. The mart is a Phase E (Opportunities & Solutions) candidate. Phase E
already prioritises "reporting automation" in Wave 3
(Phase E roadmap); the mart is the data-layer expression of that
opportunity. The business case is the inflection point where repeated view recomputation across a
growing return population — driven by xBRL-CSV granularity and IReF convergence — costs more in
read-time and reconciliation effort than a materialised conformed model would cost to build and
refresh.
Phase F migration. When that case is approved, the cutover follows the standard
Phase F migration pattern: build the mart in parallel (shadow mode),
run it alongside the live v_* views, and reconcile mart facts to view output for a full
reporting cycle before repointing rpt_datapoint_value population from the views to the mart. Because
both layers feed the same L3 datapoint store, the migration is invisible to the templates and the
XBRL projection — rpt_datapoint_value does not change shape, only its upstream feed does. This is a
low-risk, reconcilable cutover with the view layer as the permanent fallback.
5. Governance — propose → review → sign
Reporting governance follows Principle P11 ("agents propose, humans dispose") and the BankG / FMA expectation that a supervisory submission is owned and signed by a named human. No agent files a return. The sequence is propose → review → sign, with four-eyes separation between the proposer and the signer.
Roles in the sequence.
- Propose —
agent:aib-reporting. Buildsrpt_datapoint_valuefrom the view layer (or mart), runs the §3.2 reconciliation gate, and runs thedpm_validation_rulechecks. Holds R/A for the data but signs nothing. - Review — Head of Reporting. Reviews the proposed package, confirms or explains any non-blocking
WARNINGvalidation results, and sets the filing indicators (fIndicators) declaring which templates the package actually reports (reference §4.6). A template with no filing indicator is treated as not reported. - Sign + submit — CFO. Disposes the submission: signs off, which writes the
regulatory_filingrow (status, reference date, signer, timestamp) and authorises transmission of thexBRL-CSVpackage. The CFO is accountable to the FMA for the filed return.
Validation gating. dpm_validation_rule carries the EBA rule set with severity (reference §4.5).
Only active blocking (ERROR) rules are hard gates that prevent sign-off; non-blocking
(WARNING) rules are surfaced to the Head of Reporting to confirm or explain; deactivated rules
are not enforced. The reconciliation gate (§3.2) runs first, the validation rules second, human review
third, sign-off last — no step may be skipped, and the four-eyes separation (proposer ≠ reviewer ≠
signer) is mandatory for every filed return.
6. Analytics
Beyond the supervisory returns, the same L3 datapoint store powers AIB's management reporting and
analytics surface. Because rpt_datapoint_value is already keyed by METRIC + DimContext and
catalogued in rpt_view_catalog, internal cuts — capital-ratio trend, NPE migration, large-exposure
concentration, liquidity headroom — are catalogued views over the same facts rather than a separate
reporting silo. This is the collect-once / derive-many principle applied internally: the number the
FMA sees and the number management sees are the same datapoint, signed once.
The interactive analytics layer is live: the /aib/reporting dashboard surfaces the catalogued
cuts (capital gauges + CET1 trend, RWA composition, liquidity LCR/NSFR + HQLA, large exposures vs the
25% limit, a filing cockpit, and a DPM datapoint explorer with validation rules) for the CFO and Head
of Reporting. The dashboard is read-only over signed rpt_datapoint_value rows.
7. Requirements & traceability
Status legend: Proposed → Specified → Approved → Implemented → Verified. The reporting datapoint
layer is carried by REQ-FUN-015…REQ-FUN-018, which already exist in the
Requirements Register (the climate-data integration
spec consumes REQ-FUN-012…014). This document adds three further functional requirements
(REQ-FUN-019 reconciliation gate, REQ-FUN-020 propose→review→sign governance, REQ-FUN-021
reporting mart) at the next free functional ids, plus one regulatory requirement (REQ-REG-031) at
the next free regulatory id (the highest prior regulatory requirement is REQ-REG-030). All ids
below are now registered and globally unique — none is shared with another feature.
7.1 Requirements
| ID | Requirement | Source | Phase | Owner | Priority | Status |
|---|---|---|---|---|---|---|
REQ-FUN-015 | DPM metamodel layer (dpm_framework … dpm_categorisation / dpm_validation_rule) so every reported cell resolves to a dpm_datapoint keyed by METRIC + DimContext | EBA DPM; ITS 2021/451 | C | Head of Reporting | M | Specified |
REQ-FUN-016 | Built-fact store rpt_datapoint_value (value by datapoint + reference date) and catalogue rpt_view_catalog, populated by the view layer / mart | EBA DPM; IReF direction | C/D | Head of Reporting | M | Specified |
REQ-FUN-017 | SQL view layer (v_corep_*, v_finrep_*, v_lcr_c7200, v_nsfr_c8000) unpacking finrep_template.data_payload and giving every template section addressable columns | CRR Art. 99/430(7); ITS 2021/451 | C/E | Head of Reporting | S | Specified |
REQ-FUN-018 | Datapoint-level lineage in risk_data_lineage and per-datapoint quality flags in risk_data_quality (accuracy / completeness / timeliness) | BCBS 239 | C | CRO / Head of Reporting | M | Specified |
REQ-FUN-019 | FINREP↔COREP reconciliation gate via corep_finrep_bridge blocking submission unless finrep_corep_reconciled = 1 AND unexplained_difference_chf = 0 | BCBS 239; ITS 2021/451 | C/E | Head of Reporting | M | Specified |
REQ-FUN-020 | Propose → review → sign governance for filings: agent:aib-reporting proposes, Head of Reporting reviews + sets filing indicators, CFO signs + submits; four-eyes; dpm_validation_rule blocking-rule gate | BankG; FMA; EBA filing rules v5.7 | E/F | CFO | M | Specified |
REQ-FUN-021 | Reporting mart (conformed dimensions + facts) as target state for collect-once / derive-many, replacing repeated view recomputation | IReF; EBA DPM 2.0 | E/F | CFO / Chief Architect | S | Proposed |
REQ-REG-031 | Produce and transmit FINREP / COREP / liquidity / MREL / Pillar 3 returns as xBRL-CSV packages projected from rpt_datapoint_value, validated against active blocking dpm_validation_rules | CRR3 Art. 92/99; ITS 2021/451; EBA framework 4.x | E/F | CFO / Head of Reporting | M | Specified |
7.2 Traceability
| REQ | Table / view | Process | Screen / surface |
|---|---|---|---|
REQ-FUN-015 | dpm_framework, dpm_template, dpm_table, dpm_cell, dpm_domain, dpm_dimension, dpm_member, dpm_datapoint, dpm_categorisation, dpm_validation_rule | DPM build | — (metamodel) |
REQ-FUN-016 | rpt_datapoint_value, rpt_view_catalog | propose (§5) | /aib/reporting |
REQ-FUN-017 | v_corep_c0100_own_funds, v_corep_c0300_ratios, v_corep_c0700_credit_rwa, v_corep_c1600_oprisk, v_corep_c2800_large_exposures, v_corep_c4700_leverage, v_finrep_f0101_balance_sheet, v_finrep_f1800_npe, v_lcr_c7200, v_nsfr_c8000 | view build | /aib/reporting |
REQ-FUN-018 | risk_data_lineage, risk_data_quality | lineage (§3.1) | /aib/reporting (lineage drill-down) |
REQ-FUN-019 | corep_finrep_bridge (finrep_corep_reconciled, unexplained_difference_chf) | reconciliation gate (§3.2) | /aib/reporting (submission status) |
REQ-FUN-020 | regulatory_filing, dpm_validation_rule | propose → review → sign (§5) | /aib/reporting (sign-off queue) |
REQ-FUN-021 | reporting mart (roadmap — no table named) | Phase E business case / Phase F cutover | /aib/reporting |
REQ-REG-031 | rpt_datapoint_value → templates → xBRL-CSV | propose → review → sign (§5) | /aib/reporting |
7.3 Phasing
| Phase | Deliverable | Verification gate |
|---|---|---|
| C/E | View layer (v_*) over L1; finrep_template.data_payload unpacked into addressable columns | Each v_* returns the template section with stable columns; F 01.01 totals reconcile to ledger |
| C/E | GL → F 01.01 link (implemented): v_finrep_f0101_from_ledger (migration 0007) derives total assets / liabilities / equity from trial_balance_snapshot × chart_of_accounts; the seeded GL ties to the filed F 01.01 (assets 520m = liabilities 470m + equity 50m). Surfaced on /reporting → Filings as a balance-sheet provenance reconciliation | Ledger-derived totals equal the filed finrep_template totals (Δ < CHF 1k); period profit (income − expense) rolls into equity so assets = liabilities + equity holds |
| E | DPM metamodel + rpt_datapoint_value / rpt_view_catalog; datapoint-level lineage; corep_finrep_bridge reconciliation gate | A C 03.00 CET1 ratio resolves to its dpm_datapoint; lineage traces it to source; gate blocks on unexplained_difference_chf ≠ 0 |
| E | Propose → review → sign governance; dpm_validation_rule blocking-rule gate; filing indicators | Four-eyes enforced; blocking ERROR prevents sign-off; regulatory_filing row written on CFO sign-off |
| E/F | xBRL-CSV projection from rpt_datapoint_value | Package validates against active blocking rules; fIndicators correct; transmits to FMA test endpoint |
| F | Reporting mart built in parallel, reconciled to views, cutover; rpt_datapoint_value feed repointed | Mart facts reconcile to v_* for a full cycle; templates and XBRL unchanged through cutover; views retained as fallback |
As of migration 0006 (311 tables): the reporting mart is built and operational. rpt_fact_datapoint
feeds rpt_datapoint_value; the hash-chain immutability on audit_log is DB-enforced (append-only triggers);
sector/geo dimensions enable NACE and country breakdowns on F 18.00. The remaining forward step is
xBRL-CSV transmission to the FMA test endpoint — everything up to and including the mart, lineage,
and executable validation gate is live.
References — FINREP / COREP / DPM metamodel, template codes, reporting mechanics, xBRL-CSV
transport, and the dpm_* / rpt_* layer:
/aib/artifacts/doc/aib-finrep-corep-dpm-reference.
Ownership and RACI: /aib/artifacts/doc/aib-data-ownership-matrix.
Reporting service contract: aib-reporting service API. CRR 575/2013, CRR3 2024/1623, ITS
2021/451; EBA Reporting Frameworks 4.x, DPM 2.0, validation rules, and filing rules v5.7.
References
- ServiceAIB Reporting Service API
- DocFINREP, COREP & the EBA Data Point Model — Reference
- RequirementREQ-FUN-012
- RequirementREQ-FUN-015
- RequirementREQ-FUN-016
- RequirementREQ-FUN-017
- RequirementREQ-FUN-018
- RequirementREQ-FUN-019
- RequirementREQ-FUN-020
- RequirementREQ-FUN-021
- RequirementREQ-REG-030
- RequirementREQ-REG-031
- Tableaudit_log
- Tablecapital_ratio_daily
- Tablecorep_credit_risk_submission
- Tablecorep_finrep_bridge
- Tablecorep_operational_risk_submission
- Tabledpm_categorisation
- Tabledpm_cell
- Tabledpm_datapoint
- Tabledpm_datapoint_version
- Tabledpm_dimension
- Tabledpm_domain
- Tabledpm_framework
- Tabledpm_member
- Tabledpm_table
- Tabledpm_table_group
- Tabledpm_table_version
- Tabledpm_taxonomy
- Tabledpm_template
- Tabledpm_xbrl_concept
- Tabledpm_xbrl_hypercube
- Tablefiling_indicator
- Tablefinrep_template
- Tablelarge_exposure_record
- Tableleverage_ratio_calc
- Tablemrel_reporting_submission
- Tableown_funds_deduction
- Tableown_funds_instrument
- Tablepillar3_disclosure
- Tableqir
- Tableregulatory_filing
- Tablerisk_data_lineage
- Tablerisk_data_quality
- Tablerpt_datapoint_value
- Tablerpt_fact_datapoint
- Tablerpt_view_catalog