Skip to content

Full product scope — the planned components of the Backend

The detailed view of a building block of 5.1: the components the full product places inside the Backend, with the neighbours they talk to; the reference-check components are framed. The modules that are built are 5.2.1; this page shows where they and the planned rest fit.

flowchart LR
  web["«container»<br/>Web app"]
  docsrc["«external system»<br/>Document sources"]
  inv["«external system»<br/>Fee calculation and invoicing"]

  subgraph svc["«deployable» Backend"]
    imp["«component»<br/>Import module"]
    triage["«component»<br/>Document triage"]
    ext["«component»<br/>Extraction"]
    cls["«component»<br/>Classification"]
    match["«component»<br/>Matching"]
    sda["«component»<br/>Master data adapter"]
    subgraph rcm["«component» Reference-check module"]
      rc["«component»<br/>Reference check"]
      pol["«component»<br/>Verification policy"]
      cache["«component»<br/>Reference cache"]
      rca["«component»<br/>Reference source adapters"]
      mda["«component»<br/>Market data adapter"]
    end
    case["«component»<br/>Findings and case management"]
    mcls["«component»<br/>Match classification"]
    expl["«component»<br/>Explanation text"]
    rapi["«component»<br/>Review API"]
    assist["«component»<br/>Assistant"]
    audit["«component»<br/>Audit trail"]
    exp["«component»<br/>Export module"]
    pers["«component»<br/>Persistence"]
  end

  llm["«external system»<br/>LLM provider"]
  sd["«external system»<br/>Master-data system"]
  reg["«external system»<br/>Public reference registers"]
  mkt["«external system»<br/>Market data provider"]
  db[("«container»<br/>Case database")]
  bus[["«container»<br/>Event broker"]]
  fdx["«standard»<br/>FinDatEx standards"]
  bi["«external system»<br/>Analytics and downstream systems"]

  web -- "upload" --> imp
  web -. "review" .-> rapi
  docsrc -. "contract documents" .-> imp
  inv <-. "invoice, findings" .-> imp
  imp -- "document text" --> ext
  imp -. "checked document" .-> triage
  triage -. "admitted document type" .-> ext
  ext -- "prompt + page-anchored markdown" --> llm
  ext -. "evidence passages" .-> cls
  cls -. "classified attribute values" .-> match
  match -. "requests master-data value" .-> sda
  sda -. "reads master data" .-> sd
  match -. "requests verification of the claims" .-> rc
  rc -. "applies rules and tolerances" .-> pol
  rc <-. "reads and writes reference state" .-> cache
  rc -. "existence and attributes" .-> rca
  rc -. "NAV per valuation date" .-> mda
  rca -. "lookups, bulk downloads" .-> reg
  mda -. "prices" .-> mkt
  match -. "creates findings" .-> case
  rc -. "verification result<br/>with status and evidence" .-> case
  case -. "findings with evidence and confidence" .-> mcls
  mcls -. "level and cause class" .-> expl
  expl -. "score and comment on the finding" .-> case
  case -. "provides cases" .-> rapi
  rapi <-. "questions and answers" .-> assist
  assist -. "reads findings and evidence,<br/>permission-filtered" .-> case
  assist <-. "knowledge index and<br/>interaction log" .-> pers
  case -. "logs decisions" .-> audit
  audit -. "publishes events" .-> bus
  case -. "releases checked data" .-> exp
  exp -. "conforms to EMT / EET" .-> fdx
  exp -. "comparison report and data export" .-> bi
  case -. "stores findings" .-> pers
  cache -. "stores reference state<br/>and raw evidence" .-> pers
  pers -. "reads / writes" .-> db

  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
  classDef standard fill:#fff,stroke:#666,stroke-dasharray:5 5,color:#333
  class imp,ext,case,web built
  class triage,cls,match,sda,rc,pol,cache,rca,mda,mcls,expl,rapi,assist,audit,exp,pers,db,bus planned
  class docsrc,inv,llm,sd,reg,mkt,bi external
  class fdx standard
  style svc fill:none,stroke:#666
  style rcm fill:none,stroke:#666
Colour Meaning
green built
blue, dashed border; dotted arrows planned
grey existing or external system
white, dashed standard / specification (not a system)
Name Responsibility Interfaces Code (directory) Status
Web app The user interface for working on cases (5.1) the backend's API frontend/app built; the review screens planned (KF-4)
Document sources SharePoint, DMS, archive their connectors — external
Fee calculation and invoicing The calculation and invoicing module; with the invoice check it hands over the invoice and its master data for checking and receives the findings REST/JSON — external; not in the PoC
Import module Takes documents in from the web app's upload, SharePoint, DMS and archive; metadata explicit rather than from the file name the upload endpoint; connectors backend/app/src/main/java/net/lauper/feecheck/cases built for the upload; the connectors planned
Document triage Document type and admission decision before extraction; a classification model, pluggable — — planned
Extraction The rendition to evidence passages with page, attribute value and derived confidence (6.2.2) the extractor port backend/app/src/main/java/net/lauper/feecheck/extraction built for the two contract partners and the contract ID
Classification Assigns evidence passages to attribute types — — planned
Matching Compares an evidence passage with the master-data value and produces findings — — planned
Master data adapter Reaches the master-data system as its first implementation; the port stays system-neutral, pluggable a master-data port — planned
Reference-check module The frame around the reference-check components — — planned
Reference check Orchestrates claims against sources; result with status and evidence — — planned
Verification policy Source ranking, tolerances, resolution of contradictions, offline profile — — planned
Reference cache Local copy of register and market data with timestamp and raw evidence — — planned
Reference source adapters OpenFIGI, FIRDS, GLEIF, Zefix / UID, Sirene, VIES, addresses REST, bulk downloads — planned
Market data adapter NAV and unit price per valuation date REST / file — not in the PoC
Findings and case management Merges findings, confidence, status and release decisions; the comparison report — backend/app/src/main/java/net/lauper/feecheck/cases built for a case per uploaded PDF with its intake and extraction stages; findings, release decisions and the report planned
Match classification Rubric level, score and cause class per finding and per case; a classification model, pluggable — — planned
Explanation text Writes the comment for the review; degrades without consequence when unavailable; a generative model, pluggable — — planned
Review API Case list, correction and release for the review screens HTTP — planned
Assistant Answers questions about the application and a case, with evidence; reads permission-filtered, decides nothing — — planned
Audit trail Logs decisions and publishes them on the event backbone (8.16.3) domain events — planned
Export module Comparison report and download through the web app; an export API for Power BI and downstream systems; the EMT / EET export not in the PoC export API — planned
Persistence Repositories for attribute values, findings, audit trail and embeddings Spring Data JDBC — planned
LLM provider The language model the extraction asks (3.2) HTTPS — external
Master-data system Contract, partner and product master data REST, read-only — external; a mock in the PoC
Public reference registers Confirm funds, companies, tax numbers and addresses REST, bulk downloads — external
Market data provider NAV and unit prices REST / file — external; not in the PoC
Case database The case database of 5.1 SQL — built for the case, its pages and the outbox; the case engine's tables planned
Event broker The event broker of 5.1 — — planned
FinDatEx standards EMT, EPT, EET, the target format of the export — — standard
Analytics and downstream systems Power BI, report storage export API — external