Cross-phase · Architecture Core

AIB Climate-Risk Data Integration Specification

Version: 1.0 | Status: Draft | Date: 2026-06-12 | Owner: CRO / Head of Sustainability Regulatory Driver: ECB Guide 2020; FINMA 2021; TCFD; CSRD (EU) 2022/2464; MiFID II Art. 9; EBA/GL/2020/06


1. Purpose & Gap Statement

The Climate & ESG Risk Framework defines the metrics AIB must produce — Portfolio Carbon Footprint (PCF), Weighted Average Carbon Intensity (WACI), % EU-Taxonomy-aligned, stranded-asset exposure — and the NGFS scenarios, TCFD pillars, KRIs and MiFID II Art. 9 sustainability-preference obligations that govern them. The framework is sound at the policy layer. It is not yet wired to the data layer.

The gap. Eleven ESG/climate tables already exist in schema_d1.sql (taxonomy_assessment, climate_risk_assessment, climate_scenario, gar_calculation, sfdr_entity_disclosure, sfdr_pai_indicator, sfdr_product_classification, suitability_sustainability_preference, and the credit-side climate fields). They sit beside the core transactional tables, not inside the flow:

  • instrument, position, account, loan_facility, collateral, counterparty carry no climate columns. A portfolio-weighted carbon number cannot be computed from position alone because instrument has no carbon intensity, NACE sector, or taxonomy alignment.
  • There is no account-, client-, mandate- or entity-level rollup of any climate metric. The framework names PCF/WACI/taxonomy-aligned-% as quarterly deliverables but no table holds a computed portfolio number, its coverage, method, or sign-off.
  • The PROC-004 pre-trade gate references instrument.esg_taxonomy_aligned and client.min_taxonomy_pct — fields that do not exist on those tables.

What this spec closes. It defines (a) the attach model — a thin set of reference columns on the core tables, fed as a fast-read cache from the authoritative assessment tables; (b) a new materialised rollup table esg_portfolio_metric; (c) the calculation flows from position to entity; (d) the climate leg of the pre-trade gate and the onboarding capture step; (e) KRI wiring and data ownership. This is a specification: migration 0003 is specified here, not applied. No schema is changed and no data is seeded by this document.


2. Attach Model — Reference Columns on Core Tables

Principle. The detailed, authoritative climate data stays in taxonomy_assessment and climate_risk_assessment (and gar_calculation for the loan book). The columns below are a denormalised fast-read cache on the core tables so that joins for rollup and pre-trade checks stay single-hop and sub-100ms. The cache is written only by agent:aib-reporting (ESG), never by hand, and is reconciled against the assessment tables on every refresh. *_as_of / climate_as_of records the staleness watermark; a stale cache row is treated as missing coverage, not as zero.

Refresh cadence. (i) on new-instrument / new-facility onboarding (event-driven); (ii) quarterly batch ahead of the PCF/WACI reporting cycle; (iii) on receipt of a new taxonomy_assessment or climate_risk_assessment row for the subject.

2.1 instrument (PK isin)

New ColumnTypeMeaningAuthoritative sourceRefresh trigger
nace_sector_codeTEXTNACE Rev.2 activity code of issuer (e.g. D35.1)taxonomy_assessment.nace_activity_code; climate_risk_assessment.nace_sector_codeonboarding + quarterly
carbon_intensityREALtCO2e per EUR revenue, Scope 1+2 (transition proxy)climate_risk_assessment.carbon_intensityquarterly + on new assessment
taxonomy_aligned_pctREAL% of issuer turnover that is EU-Taxonomy-alignedtaxonomy_assessment.turnover_aligned_pct (where aligned=1)on new taxonomy_assessment
esg_scoreTEXTVendor ESG rating bucket (AAA..CCC)external vendor feed via ESG agentquarterly
climate_data_sourceTEXTProvenance (external_vendor/public_disclosure/estimated)climate_risk_assessment.data_sourcewith each refresh
climate_as_ofDATEWatermark; cache row valid as of this datecomputed at refreshwith each refresh

2.2 loan_facility (PK id)

New ColumnTypeMeaningAuthoritative sourceRefresh trigger
nace_sector_codeTEXTNACE code of the borrower's financed activitygar_calculation.nace_sector_code; taxonomy_assessment (corporate_borrower)origination + quarterly
energy_performance_ratingTEXTEPC band A–G for mortgage / CRE collateralcollateral.energy_performance_rating (see 2.3) / public EPC registerorigination + on revaluation
taxonomy_aligned_pctREAL% of facility that is Taxonomy-aligned (feeds GAR numerator)gar_calculation.gar_aligned_pctquarterly GAR cycle

2.3 collateral (PK id)

New ColumnTypeMeaningAuthoritative sourceRefresh trigger
energy_performance_ratingTEXTEPC band A–G for real-estate collateralpublic EPC register / valuation reportpledge + on revaluation
physical_risk_scoreINTEGER1–10 acute/chronic physical-risk exposure of the asset's locationclimate_risk_assessment.physical_risk_score (rounded)on assessment + annually

2.4 counterparty (PK id)

New ColumnTypeMeaningAuthoritative sourceRefresh trigger
nace_sector_codeTEXTNACE code of the counterpartyclimate_risk_assessment.nace_sector_code (subject_type='counterparty')onboarding + annually
transition_risk_scoreINTEGER1–10 transition-risk score (carbon / stranding)climate_risk_assessment.transition_risk_score (rounded)on assessment + annually

Authoritative vs cache, restated. taxonomy_assessment + climate_risk_assessment (+ gar_calculation) remain the system of record. The columns above are derived, refreshable, and reconcilable. Any divergence between a cache column and its source on reconciliation raises a risk_data_quality accuracy flag and the cache value is overwritten from source.


3. Rollup Table — esg_portfolio_metric (migration 0003 spec)

A single materialised, append-only table holds every computed portfolio-level climate metric at every scope. One row = one metric, one scope instance, one reporting period. Rows are never UPDATEd; a recompute or a correction inserts a new row for the period (supersession by computed_at). This satisfies the BankG Art. 47 audit-trail requirement and lets the KRI and TCFD disclosures reproduce any past figure exactly.

-- Migration 0003 (SPECIFIED, NOT APPLIED) -- Portfolio-level climate/ESG metric store. Append-only; one row per -- (scope, scope_id, metric_code, reporting_period). Never UPDATE. CREATE TABLE esg_portfolio_metric ( id TEXT PRIMARY KEY, -- AIB-EPM-{seq} scope TEXT NOT NULL CHECK(scope IN ( 'position','account','client','mandate','entity')), scope_id TEXT NOT NULL, -- position.id / account.id / client.id / -- mandate.id / legal_entity.id metric_code TEXT NOT NULL CHECK(metric_code IN ( 'PCF','WACI','TAXONOMY_ALIGNED_PCT','STRANDED_ASSET_PCT', 'WEIGHTED_ESG_SCORE','GAR')), reporting_period TEXT NOT NULL, -- 'YYYY-Qn' or 'YYYY-MM-DD' as-of value REAL, -- NULL allowed when coverage_pct = 0 unit TEXT NOT NULL, -- 'tCO2e/EURm','tCO2e/EURm_rev','pct','score' coverage_pct REAL, -- % of scope value with usable climate data method TEXT, -- 'PCAF_a','revenue_weighted','look_through', etc. scenario_id TEXT REFERENCES climate_scenario(id), -- nullable; set for scenario-conditioned metrics computed_by TEXT NOT NULL, -- agent:aib-reporting (P11: proposes) computed_at TEXT NOT NULL DEFAULT (datetime('now')), signed_off_by TEXT, -- human role (P11: disposes); NULL until signed signed_off_at TEXT, created_at TEXT NOT NULL DEFAULT (datetime('now')) ); CREATE INDEX idx_epm_scope ON esg_portfolio_metric(scope, scope_id); CREATE INDEX idx_epm_metric ON esg_portfolio_metric(metric_code, reporting_period); CREATE INDEX idx_epm_period ON esg_portfolio_metric(reporting_period); CREATE INDEX idx_epm_signoff ON esg_portfolio_metric(signed_off_at);

Notes. D1-compatible: no PRAGMA, no GENERATED ... VIRTUAL, no triggers — supersession and coverage_pct are computed by the agent at insert time. The latest figure for a (scope, scope_id, metric_code, reporting_period) tuple is the row with the greatest computed_at; queries that need "current" filter signed_off_at IS NOT NULL and take the latest. scenario_id is NULL for actuals and set only for forward-looking scenario-conditioned metrics (NGFS pathways).


4. Calculation Flows

4.1 Position → Account → Client → Entity carbon rollup

Formulae (per account; higher scopes are value-weighted sums of the level below):

  • PCF = Σ over positions of (position.market_value_base / portfolio_value) × instrument.carbon_intensity, where portfolio_value = Σ position.market_value_base over the covered set.
  • WACI (revenue-weighted) = Σ (position.market_value_base / portfolio_value) × instrument.carbon_intensity using the revenue-normalised intensity (carbon_intensity is tCO2e/EUR revenue); reported per EUR m invested.
  • TAXONOMY_ALIGNED_PCT = Σ (position.market_value_base × instrument.taxonomy_aligned_pct) / portfolio_value, with instrument.taxonomy_aligned_pct sourced via position.isin → taxonomy_assessment (cache reconciled).
  • STRANDED_ASSET_PCT = Σ position.market_value_base where the issuer's nace_sector_code is in the fossil-fuel-exposed set (>70% fossil revenue per framework §Portfolio Carbon Footprint) ÷ portfolio_value.
  • WEIGHTED_ESG_SCORE = value-weighted mean of the numeric mapping of instrument.esg_score.
  • coverage_pct = Σ market_value_base(covered) / Σ market_value_base(all positions); uncovered positions are excluded from the numerator AND denominator of the metric but reported in coverage_pct.

4.2 Loan book → GAR

GAR = Σ gar_calculation.taxonomy_aligned_amount / Σ total_gross_carrying_amount for the entity and reporting year, decomposed by taxonomy_objective and loan_type. loan_facility.nace_sector_code and energy_performance_rating classify each facility into the GAR template buckets; gar_calculation remains authoritative and the entity GAR row in esg_portfolio_metric is a sign-off-bearing rollup of it.

4.3 Transaction-triggered recompute

A filled order_ (status filled) or new trade row mutates position, emitting a position.changed event (REQ-FUN-003 event-driven propagation). agent:aib-reporting recomputes the affected account's esg_portfolio_metric rows (new append row, signed_off_at NULL per P11) and flags the parent client/mandate/entity for batch recompute. Recomputes do not auto-sign; a human disposes via the screen review queue (§9).


5. Pre-Trade Climate Gate (PROC-004 extension)

PROC-004 already defines a 5-check gate with sustainability as check 5, but it references instrument/client fields that do not exist. This section wires check 5 to real columns: the attach-model cache on instrument and the suitability_sustainability_preference + mandate.excluded_sectors records.

Inputs.

  • suitability_sustainability_preference.sfdr_article_preference ('6'|'8'|'9'|'no_preference')
  • suitability_sustainability_preference.taxonomy_min_alignment_pct
  • suitability_sustainability_preference.esg_exclusion_criteria (JSON sectors/activities)
  • suitability_sustainability_preference.pai_consideration_preference (0/1)
  • mandate.excluded_sectors (JSON array)
  • Instrument side: instrument.taxonomy_aligned_pct, instrument.nace_sector_code, sfdr_product_classification.sfdr_article (via mandate/product link)

Block / warn logic.

#Condition checked (buy order)Result if violated
5ainstrument.nace_sector_code ∈ mandate.excluded_sectorsBLOCK — hard mandate constraint (mandate_compliance_check = 'fail')
5binstrument.nace_sector_code ∈ pref esg_exclusion_criteriaBLOCK unless senior-RM override (PROC-004 §ESG Preference Override)
5cinstrument.taxonomy_aligned_pct < pref taxonomy_min_alignment_pctWARN → override-or-reject; document mismatch
5dsfdr_article of product < sfdr_article_preference (9>8>6)WARN → override-or-reject
5epref pai_consideration_preference = 1 AND product pai_considered = 0WARN → document
5fclient sfdr_article_preference = 'no_preference'PASS — record "no sustainability preference stated"

Mandate-exclusion (5a) is a hard block even with client override, because it is a contractual constraint independent of MiFID II preference. Preference violations (5b–5e) follow the existing override path: senior RM may proceed on written client override with CCO notification, logged to the audit trail (MiFID II does not permit refusing to serve a client who cannot find an aligned product).


6. KYC / Onboarding Capture (PROC-001 extension)

PROC-001 KYC onboarding gains a sustainability-questionnaire step, executed inside the suitability assessment (MiFID II Art. 9; ESMA/EBA suitability GL 2023 §38–56). The step writes one suitability_sustainability_preference row linked to the client's suitability_assessment.id:

  • sfdr_article_preference — does the client want Art. 8 / Art. 9 products?
  • taxonomy_min_alignment_pct — minimum Taxonomy-aligned proportion.
  • pai_consideration_preference — consider principal adverse impacts?
  • esg_exclusion_criteria — sectors/activities the client excludes (JSON).
  • esg_preference_narrative, preference_capture_date, valid_until.

mandate.excluded_sectors is derived from esg_exclusion_criteria at mandate creation (union of client exclusions and strategy exclusions), so the pre-trade gate (5a) enforces the client's stated exclusions at the mandate level. If no preference is stated, sfdr_article_preference = 'no_preference' and the client is offered non-sustainability products with documented override_reason.


7. KRI Wiring

Framework KRIs become rows in kri_definition, read daily/quarterly by agent:aib-risk from esg_portfolio_metric (via data_source_query), classified against thresholds, and on red breach a rcsa_risk_event is drafted. Note: kri_definition.risk_category and rcsa_risk_event.risk_category CHECK enums have no 'climate' value; climate KRIs map to the nearest existing category ('credit' for transition/stranded exposure, 'strategic' for franchise/AuM-outflow risk) and are tagged "climate" in kri_name / description. Adding a 'climate' enum is out of scope for migration 0003 (would require a table rebuild on SQLite/D1).

Framework KRIkri_coderisk_categorySource (data_source_table)Threshold (green→amber→red)measurement_unitmeasurement_frequencyowner_agent_id
Portfolio PCF target breachAIB-KRI-CL01strategicesg_portfolio_metric (PCF, entity)≤ target → ≤110% → >110% of glide-pathtCO2e/EURmquarterlyagent:aib-risk (CRO)
Stranded-asset exposure >5% AuMAIB-KRI-CL02creditesg_portfolio_metric (STRANDED_ASSET_PCT, entity)<3% → 3–5% → >5%pctquarterlyagent:aib-risk (CRO)
WACI thresholdAIB-KRI-CL03strategicesg_portfolio_metric (WACI, entity)≤ target → ≤115% → >115%tCO2e/EURmquarterlyagent:aib-risk (CRO)
GAR floorAIB-KRI-CL04creditesg_portfolio_metric (GAR, entity)≥ floor → within 2pp → < floorpctquarterlyagent:aib-risk (CRO)

threshold_direction = 'above_is_bad' for CL01/CL02/CL03; 'below_is_bad' for CL04. Red readings enter the SCR-RSK-001 breach queue; the CRO acknowledges and may escalate to a drafted rcsa_risk_event (e.g. CL02 red → risk_category='credit', narrative tagging stranded-asset concentration), per P11.


8. Data Ownership & Lineage

Extends the Data Ownership Matrix. Per Principle P11 ("agents propose, humans dispose"), the computing agent holds R/A for the data but every sign-off-bearing figure is disposed by a named human role.

Table / dataaib-reportingaib-riskaib-complianceaib-tradingHuman disposer (P11)Retention
esg_portfolio_metricR/ACIICRO / Head of Sustainability (signed_off_by)10y
taxonomy_assessmentR/ACIIHead of Sustainability10y
gar_calculationR/ACIIHead of Sustainability10y
sfdr_* (entity/product/PAI)R/AICICCO10y
climate_risk_assessmentCR/AIICRO10y
climate KRIs (kri_* CL01–CL04)IR/AIICRO10y
suitability_sustainability_preferenceIIR/ACHead of PB / CCO10y
instrument/loan/collateral/counterparty climate cache colsR/A (ESG refresh)CIC— (derived, reconciled to source)follows host table

Per-metric lineage:

MetricSource tablesComputing agent (proposes)Human sign-off (disposes, P11)
PCFposition × instrument.carbon_intensity (← climate_risk_assessment)agent:aib-reportingCRO / Head of Sustainability
WACIposition × instrument.carbon_intensityagent:aib-reportingCRO / Head of Sustainability
TAXONOMY_ALIGNED_PCTposition × instrument.taxonomy_aligned_pct (← taxonomy_assessment)agent:aib-reportingHead of Sustainability
STRANDED_ASSET_PCTposition × instrument.nace_sector_codeagent:aib-reportingCRO
WEIGHTED_ESG_SCOREposition × instrument.esg_scoreagent:aib-reportingHead of Sustainability
GARloan_facility → gar_calculationagent:aib-reportingHead of Sustainability

Lineage rows are recorded in risk_data_lineage (source_table/source_column → target_table='esg_portfolio_metric'); reconciliation flags land in risk_data_quality.


9. Screen Touchpoints

All forward references — screens are not built or modified by this spec.

  • Account / client ESG read panel — forward reference on SCR-CLM-002 (Client 360 Detail): a read-only panel showing latest signed esg_portfolio_metric rows for the client (PCF, WACI, taxonomy-aligned %, stranded-asset %, weighted ESG score) plus coverage and as-of.
  • SCR-ESG-003 (EU Taxonomy Workbench) and SCR-ESG-005 (Climate Scenario Console) consume the entity/portfolio rollups from esg_portfolio_metric (scenario-conditioned rows carry scenario_id).
  • SCR-RSK-001 (KRI Dashboard) displays the four climate KRIs (CL01–CL04) as tiles fed from kri_reading, with red breaches routing to SCR-RSK-002 (RCSA Workbench).
  • The pre-trade gate (§5) surfaces on the order screens (SCR-TRD pre-trade panel) as check 5.

10. Requirements & Traceability

Status legend for ESG track: Proposed → Specified → Approved → Implemented → Verified. This document advances the two existing requirements to Specified and proposes three new functional requirements (next free IDs: REQ-FUN-012/013/014).

IDRequirementSourcePrior statusNew status
REQ-REG-023Capture client sustainability preferences and validate in pre-trade suitability gateMiFID II Art. 9ProposedSpecified (this doc §5, §6)
REQ-REG-030Integrate climate risk into ICAAP, RCSA, suitability; disclose per TCFDECB 2020; FINMA 2021; CSRDProposedSpecified (this doc §3, §7)

New requirements proposed:

IDRequirementSourcePhaseOwnerPriorityStatus
REQ-FUN-012Materialised, append-only portfolio climate-metric store (esg_portfolio_metric) at position/account/client/mandate/entity scope, with coverage, method, scenario link and human sign-offCSRD; TCFD Metrics & TargetsC/DCRO / Head of SustainabilityMProposed
REQ-FUN-013Climate reference cache columns on instrument/loan_facility/collateral/counterparty, refreshed by ESG agent and reconciled to taxonomy_assessment/climate_risk_assessmentECB 2020; BCBS 239 P3–P6CChief Architect / CROSProposed
REQ-FUN-014Pre-trade climate gate enforcing mandate exclusions (hard) and MiFID II Art. 9 preferences (warn/override) at order submissionMiFID II Art. 9; PROC-004CHead of PB / CCOMProposed

Traceability:

REQTable / columnProcessScreen
REQ-REG-023 / REQ-FUN-014suitability_sustainability_preference.*; mandate.excluded_sectors; instrument.taxonomy_aligned_pct,nace_sector_codePROC-004 (§5), PROC-001 (§6)SCR-TRD pre-trade; SCR-CLM-002
REQ-REG-030 / REQ-FUN-012esg_portfolio_metric.*; kri_definition CL01–CL04PROC-004; RCSASCR-RSK-001; SCR-ESG-003/005
REQ-FUN-013instrument/loan_facility/collateral/counterparty cache colsquarterly ESG refreshSCR-CLM-002; SCR-ESG-003

11. Seed Plan (future round — not seeded now)

To make metrics compute realistically against the existing SIM data:

  • Instruments. Assign coherent nace_sector_code, carbon_intensity, taxonomy_aligned_pct, esg_score to existing SIM instrument rows — high intensity + low alignment for energy/materials issuers, near-zero intensity + high alignment for green bonds / renewables, mid for diversified equities. Back each with a matching climate_risk_assessment / taxonomy_assessment row so the cache reconciles.
  • Loans. Tag SIM loan_facility rows with nace_sector_code and EPC energy_performance_rating so gar_calculation produces a believable entity GAR (mortgages spread A–G; one CRE facility energy-poor).
  • One breaching client. Construct one SIM client whose positions concentrate in fossil-exposed NACE sectors such that STRANDED_ASSET_PCT > 5% of that client's AuM — drives KRI AIB-KRI-CL02 red and a drafted rcsa_risk_event.
  • One mandate exclusion hit. One SIM mandate with excluded_sectors including a sector held by a candidate instrument, so a demo buy order trips pre-trade check 5a (hard block).

Seeding is deferred; this document does not insert any rows.


12. Phasing & Non-Goals

PhaseDeliverableVerification gate
P1This specification (attach model, rollup table, flows, gate, KRIs, ownership)Reviewed + signed off by CRO / Head of Sustainability; traceability rows added to register
P2Migration 0003: cache columns on the four core tables + esg_portfolio_metricMigration applies cleanly to D1; schema lint passes; esg_portfolio_metric CHECKs and indexes present
P3Seed (§11): coherent ESG values, one breaching client, one mandate hitPCF/WACI/taxonomy/GAR compute to plausible numbers; CL02 reads red; pre-trade 5a blocks the demo order
P4Account/client ESG read panel + agent compute/refresh jobPanel renders signed rollups on SCR-CLM-002; recompute event (§4.3) lands a new esg_portfolio_metric row

Non-goals this round: no migration applied; no data seeded; no UI built; no 'climate' enum added to kri_definition/rcsa_risk_event (climate KRIs reuse existing categories per §7); no change to the authoritative assessment tables.

References