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,counterpartycarry no climate columns. A portfolio-weighted carbon number cannot be computed frompositionalone becauseinstrumenthas 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_alignedandclient.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 Column | Type | Meaning | Authoritative source | Refresh trigger |
|---|---|---|---|---|
nace_sector_code | TEXT | NACE Rev.2 activity code of issuer (e.g. D35.1) | taxonomy_assessment.nace_activity_code; climate_risk_assessment.nace_sector_code | onboarding + quarterly |
carbon_intensity | REAL | tCO2e per EUR revenue, Scope 1+2 (transition proxy) | climate_risk_assessment.carbon_intensity | quarterly + on new assessment |
taxonomy_aligned_pct | REAL | % of issuer turnover that is EU-Taxonomy-aligned | taxonomy_assessment.turnover_aligned_pct (where aligned=1) | on new taxonomy_assessment |
esg_score | TEXT | Vendor ESG rating bucket (AAA..CCC) | external vendor feed via ESG agent | quarterly |
climate_data_source | TEXT | Provenance (external_vendor/public_disclosure/estimated) | climate_risk_assessment.data_source | with each refresh |
climate_as_of | DATE | Watermark; cache row valid as of this date | computed at refresh | with each refresh |
2.2 loan_facility (PK id)
| New Column | Type | Meaning | Authoritative source | Refresh trigger |
|---|---|---|---|---|
nace_sector_code | TEXT | NACE code of the borrower's financed activity | gar_calculation.nace_sector_code; taxonomy_assessment (corporate_borrower) | origination + quarterly |
energy_performance_rating | TEXT | EPC band A–G for mortgage / CRE collateral | collateral.energy_performance_rating (see 2.3) / public EPC register | origination + on revaluation |
taxonomy_aligned_pct | REAL | % of facility that is Taxonomy-aligned (feeds GAR numerator) | gar_calculation.gar_aligned_pct | quarterly GAR cycle |
2.3 collateral (PK id)
| New Column | Type | Meaning | Authoritative source | Refresh trigger |
|---|---|---|---|---|
energy_performance_rating | TEXT | EPC band A–G for real-estate collateral | public EPC register / valuation report | pledge + on revaluation |
physical_risk_score | INTEGER | 1–10 acute/chronic physical-risk exposure of the asset's location | climate_risk_assessment.physical_risk_score (rounded) | on assessment + annually |
2.4 counterparty (PK id)
| New Column | Type | Meaning | Authoritative source | Refresh trigger |
|---|---|---|---|---|
nace_sector_code | TEXT | NACE code of the counterparty | climate_risk_assessment.nace_sector_code (subject_type='counterparty') | onboarding + annually |
transition_risk_score | INTEGER | 1–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 arisk_data_qualityaccuracy 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, whereportfolio_value = Σ position.market_value_baseover the covered set. - WACI (revenue-weighted) = Σ
(position.market_value_base / portfolio_value) × instrument.carbon_intensityusing the revenue-normalised intensity (carbon_intensityis tCO2e/EUR revenue); reported per EUR m invested. - TAXONOMY_ALIGNED_PCT = Σ
(position.market_value_base × instrument.taxonomy_aligned_pct) / portfolio_value, withinstrument.taxonomy_aligned_pctsourced viaposition.isin → taxonomy_assessment(cache reconciled). - STRANDED_ASSET_PCT = Σ
position.market_value_basewhere the issuer'snace_sector_codeis 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 incoverage_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_pctsuitability_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 |
|---|---|---|
| 5a | instrument.nace_sector_code ∈ mandate.excluded_sectors | BLOCK — hard mandate constraint (mandate_compliance_check = 'fail') |
| 5b | instrument.nace_sector_code ∈ pref esg_exclusion_criteria | BLOCK unless senior-RM override (PROC-004 §ESG Preference Override) |
| 5c | instrument.taxonomy_aligned_pct < pref taxonomy_min_alignment_pct | WARN → override-or-reject; document mismatch |
| 5d | sfdr_article of product < sfdr_article_preference (9>8>6) | WARN → override-or-reject |
| 5e | pref pai_consideration_preference = 1 AND product pai_considered = 0 | WARN → document |
| 5f | client 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 KRI | kri_code | risk_category | Source (data_source_table) | Threshold (green→amber→red) | measurement_unit | measurement_frequency | owner_agent_id |
|---|---|---|---|---|---|---|---|
| Portfolio PCF target breach | AIB-KRI-CL01 | strategic | esg_portfolio_metric (PCF, entity) | ≤ target → ≤110% → >110% of glide-path | tCO2e/EURm | quarterly | agent:aib-risk (CRO) |
| Stranded-asset exposure >5% AuM | AIB-KRI-CL02 | credit | esg_portfolio_metric (STRANDED_ASSET_PCT, entity) | <3% → 3–5% → >5% | pct | quarterly | agent:aib-risk (CRO) |
| WACI threshold | AIB-KRI-CL03 | strategic | esg_portfolio_metric (WACI, entity) | ≤ target → ≤115% → >115% | tCO2e/EURm | quarterly | agent:aib-risk (CRO) |
| GAR floor | AIB-KRI-CL04 | credit | esg_portfolio_metric (GAR, entity) | ≥ floor → within 2pp → < floor | pct | quarterly | agent: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 / data | aib-reporting | aib-risk | aib-compliance | aib-trading | Human disposer (P11) | Retention |
|---|---|---|---|---|---|---|
esg_portfolio_metric | R/A | C | I | I | CRO / Head of Sustainability (signed_off_by) | 10y |
taxonomy_assessment | R/A | C | I | I | Head of Sustainability | 10y |
gar_calculation | R/A | C | I | I | Head of Sustainability | 10y |
sfdr_* (entity/product/PAI) | R/A | I | C | I | CCO | 10y |
climate_risk_assessment | C | R/A | I | I | CRO | 10y |
climate KRIs (kri_* CL01–CL04) | I | R/A | I | I | CRO | 10y |
suitability_sustainability_preference | I | I | R/A | C | Head of PB / CCO | 10y |
| instrument/loan/collateral/counterparty climate cache cols | R/A (ESG refresh) | C | I | C | — (derived, reconciled to source) | follows host table |
Per-metric lineage:
| Metric | Source tables | Computing agent (proposes) | Human sign-off (disposes, P11) |
|---|---|---|---|
| PCF | position × instrument.carbon_intensity (← climate_risk_assessment) | agent:aib-reporting | CRO / Head of Sustainability |
| WACI | position × instrument.carbon_intensity | agent:aib-reporting | CRO / Head of Sustainability |
| TAXONOMY_ALIGNED_PCT | position × instrument.taxonomy_aligned_pct (← taxonomy_assessment) | agent:aib-reporting | Head of Sustainability |
| STRANDED_ASSET_PCT | position × instrument.nace_sector_code | agent:aib-reporting | CRO |
| WEIGHTED_ESG_SCORE | position × instrument.esg_score | agent:aib-reporting | Head of Sustainability |
| GAR | loan_facility → gar_calculation | agent:aib-reporting | Head 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_metricrows 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 carryscenario_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).
| ID | Requirement | Source | Prior status | New status |
|---|---|---|---|---|
| REQ-REG-023 | Capture client sustainability preferences and validate in pre-trade suitability gate | MiFID II Art. 9 | Proposed | Specified (this doc §5, §6) |
| REQ-REG-030 | Integrate climate risk into ICAAP, RCSA, suitability; disclose per TCFD | ECB 2020; FINMA 2021; CSRD | Proposed | Specified (this doc §3, §7) |
New requirements proposed:
| ID | Requirement | Source | Phase | Owner | Priority | Status |
|---|---|---|---|---|---|---|
| REQ-FUN-012 | Materialised, append-only portfolio climate-metric store (esg_portfolio_metric) at position/account/client/mandate/entity scope, with coverage, method, scenario link and human sign-off | CSRD; TCFD Metrics & Targets | C/D | CRO / Head of Sustainability | M | Proposed |
| REQ-FUN-013 | Climate reference cache columns on instrument/loan_facility/collateral/counterparty, refreshed by ESG agent and reconciled to taxonomy_assessment/climate_risk_assessment | ECB 2020; BCBS 239 P3–P6 | C | Chief Architect / CRO | S | Proposed |
| REQ-FUN-014 | Pre-trade climate gate enforcing mandate exclusions (hard) and MiFID II Art. 9 preferences (warn/override) at order submission | MiFID II Art. 9; PROC-004 | C | Head of PB / CCO | M | Proposed |
Traceability:
| REQ | Table / column | Process | Screen |
|---|---|---|---|
| REQ-REG-023 / REQ-FUN-014 | suitability_sustainability_preference.*; mandate.excluded_sectors; instrument.taxonomy_aligned_pct,nace_sector_code | PROC-004 (§5), PROC-001 (§6) | SCR-TRD pre-trade; SCR-CLM-002 |
| REQ-REG-030 / REQ-FUN-012 | esg_portfolio_metric.*; kri_definition CL01–CL04 | PROC-004; RCSA | SCR-RSK-001; SCR-ESG-003/005 |
| REQ-FUN-013 | instrument/loan_facility/collateral/counterparty cache cols | quarterly ESG refresh | SCR-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_scoreto existing SIMinstrumentrows — 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 matchingclimate_risk_assessment/taxonomy_assessmentrow so the cache reconciles. - Loans. Tag SIM
loan_facilityrows withnace_sector_codeand EPCenergy_performance_ratingsogar_calculationproduces 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 KRIAIB-KRI-CL02red and a draftedrcsa_risk_event. - One mandate exclusion hit. One SIM mandate with
excluded_sectorsincluding 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
| Phase | Deliverable | Verification gate |
|---|---|---|
| P1 | This specification (attach model, rollup table, flows, gate, KRIs, ownership) | Reviewed + signed off by CRO / Head of Sustainability; traceability rows added to register |
| P2 | Migration 0003: cache columns on the four core tables + esg_portfolio_metric | Migration applies cleanly to D1; schema lint passes; esg_portfolio_metric CHECKs and indexes present |
| P3 | Seed (§11): coherent ESG values, one breaching client, one mandate hit | PCF/WACI/taxonomy/GAR compute to plausible numbers; CL02 reads red; pre-trade 5a blocks the demo order |
| P4 | Account/client ESG read panel + agent compute/refresh job | Panel 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
- ServiceAIB Reporting Service API
- ProcessPROC-004: Order Pre-Trade Compliance Gate (Refresh)
- GovernanceAIB Climate & ESG Risk Framework
- RequirementREQ-FUN-012
- Tableaccount
- Tableclimate_risk_assessment
- Tableclimate_scenario
- Tablecollateral
- Tablecounterparty
- Tableesg_portfolio_metric
- Tablegar_calculation
- Tableinstrument
- Tableloan_facility
- Tableposition
- Tablerisk_data_quality
- Tablesfdr_entity_disclosure
- Tablesfdr_pai_indicator
- Tablesfdr_product_classification
- Tablesuitability_sustainability_preference
- Tabletaxonomy_assessment