8.10 Extension axes — verification packs, core and adapters¶
Two independent extension axes: verification modules determine what is checked; adapters determine
where the data comes from. The structure is proposed in
ADR-0001 (docs/adr/adr-0001-verification-modules-and-adapters.md) (Proposed, imported, under
review).
flowchart TB
subgraph modules["Verification modules — versioned configuration"]
direction LR
m1["Fee agreement"]
m2["Fee invoice"]
m3["Further fee module"]
m4["Quote and invoice"]
m5["Other contract type"]
end
subgraph core["Verification core — no fees"]
direction LR
c1["Intake and integrity"]
c2["Document triage"]
c3["Rendition"]
c4["Extraction"]
c5["Normalisation"]
c6["Validators"]
c7["Reference resolution"]
c8["Comparison and tolerance"]
c9["Finding creation"]
c10["Classification and explanation"]
c11["Review and release"]
c12["Audit trail"]
c13["Report and export"]
c14["Case management"]
c15["Assistant"]
end
subgraph adapters["Adapters — interchangeable origin"]
direction LR
a1["Import"]
a2["Master data"]
a3["Registers"]
a4["Market data"]
a5["Export"]
a6["Models"]
end
modules == "configures" ==> core
core <== "ports" ==> adapters
classDef person fill:#ffe8b0,stroke:#9a6b00,color:#000
classDef built fill:#b7e4c7,stroke:#2d6a4f,color:#000
classDef planned fill:#c6dcff,stroke:#1168bd,stroke-dasharray:4 3,color:#000
classDef external fill:#e6e6e6,stroke:#6b6b6b,color:#000
class c1,c3,c4,c14,a1,a6 built
class m1,m2,m3,m4,m5,c2,c5,c6,c7,c8,c9,c10,c11,c12,c13,c15,a2,a3,a4,a5 planned
style modules fill:none,stroke:#666
style core fill:none,stroke:#666
style adapters fill:none,stroke:#666
| Colour | Meaning |
|---|---|
| green | built, at least in part (the Status column says which part) |
| blue, dashed border | planned |
| grey frame | an axis: the verification modules, the core, the adapters |
The modules configure the flow without changing it; the core addresses ports, never a system directly.
| Element | Layer | What it is | Status |
|---|---|---|---|
| Fee agreement | verification module | attribute model from the attribute list, assignment via AssetCo and distribution partner | planned; the first module |
| Fee invoice | verification module | same attribute model, different document types and line-item logic | planned, not in the PoC |
| Further fee module | verification module | different contract type, other references, same flow | planned, not in the PoC |
| Quote and invoice | verification module | document-against-document comparison across the case | planned, not in the PoC |
| Other contract type | verification module | outside fees, unchanged core | planned, not in the PoC |
| Contents of a module | — | document types · attribute model · extraction schema · reference binding · tolerances · derivation rules · assignment keys · rubric · thresholds · review layout · report template; versioned configuration, not code | — |
| Intake and integrity | core | deterministic | built in part: the upload's PDF check, size and page limits (6.2); the integrity check planned |
| Document triage | core | type and admission | planned |
| Rendition | core | text layer, OCR, Markdown with anchors | built (6.2.1) |
| Extraction | core | schema-driven | built for the two contract partners and the contract ID (6.2.2) |
| Normalisation | core | data types, canonical path | planned |
| Validators | core | arithmetic, code lists, cross-attribute, self-consistency | planned |
| Reference resolution | core | via ReferenceProvider kinds |
planned |
| Comparison and tolerance | core | — | planned |
| Finding creation | core | severity and reason deterministic | planned |
| Classification and explanation | core | classification plus GenAI, advisory | planned |
| Review and release | core | HITL, correction, four-eyes | planned |
| Audit trail | core | snapshots, policy and module versions | planned |
| Report and export | core | — | planned |
| Case management | core, new with ADR-0001 | dossier across several documents and time | built in part: the case per contract document (6.1); the dossier planned |
| Assistant | core, new with ADR-0001 | chat about application and case | planned |
| Import | adapter | web app, SharePoint, DMS, archive | built for the web app's upload; the others planned |
| Master data | adapter | the master-data system or another system of record | planned |
| Registers | adapter | OpenFIGI, FIRDS, GLEIF, Zefix, UID, Sirene, VIES, BAN | planned |
| Market data | adapter | SIX, fundinfo | planned, not in the PoC |
| Export | adapter | web app, Power BI, file storage, EMT / EET | planned |
| Models | adapter | OCR, classifier, LLM — local or external, per operating profile | built for the LLM (Mistral, Gemini on Vertex AI) and OCR inside docling-serve; the classifier planned |
The core boxes are listed in reading order, not flow order; the stages and the child case of 6.2 to 6.3 show the flow.
Limit of the assistant. It reads permission-filtered, answers only with evidence, releases nothing and writes no value. Every case-related question and answer goes into the audit trail — otherwise a side channel around traceability appears.
Code SPI, the narrow emergency exit. Only five extension points need code instead of
configuration: DerivationRule (n:1 resolution), Validator (custom arithmetic check),
LineMatchingStrategy (line-item assignment), ReferenceProvider (new source kind) and
PackSelector (module choice at runtime). Everything else is declarative. Every extension here has
to be deployed rather than configured, so keep it deliberately narrow.
The litmus test. The same fee module must run against a different master-data system without being changed, and the same register adapter must serve several modules. If a verification module contains a system name, or an adapter knows a domain term such as trail fee, the boundary is drawn wrongly.