State model
Append-only case events feed a current-state projection. Evidence rows keep source, observation time, validity, correction history and narrative usage.
Counterparties can disagree because of trade populations, market data, valuation models, collateral terms or cut-off times.
The investigator decomposes the call into explainable drivers, aligns both populations and produces a ranked break set with source-specific reconciliation steps.
Organisations, systems and operating conditions are intentionally anonymised and recomposed. The design demonstrates engineering and banking-domain reasoning; it does not represent a named client estate, vendor product or measured production result.
Five operating planes separate interaction, identity, decision control, authoritative state and operating evidence.
Permitted workThe design may reconcile positions and simulate options. Booking, limit consumption, valuation approval and market action remain controlled systems and roles.
Consistency ruleUse event time, valuation time, legal-entity scope and source cut-offs; label forecast, pending and settled state separately.
Hard boundaryThe model is not a system of record, identity provider, policy authority or proof that an external effect occurred.
An alert or case requires evidence fan-out, deterministic triage, residual model reasoning and a defensible human disposition.
The system may quantify breaks but cannot agree a legal position or release collateral.
A deterministic outer workflow contains model-led work inside typed, observable calls. Dashed messages remain proposals until policy or a human grants authority.
Append-only case events feed a current-state projection. Evidence rows keep source, observation time, validity, correction history and narrative usage.
Use asynchronous ingestion and bounded parallel reads. Slow providers have independent timeout and circuit-breaker policy so one source cannot exhaust the case tier.
Pin policy and evidence versions at case open. Later corrections append and may trigger reassessment; they do not rewrite the historic basis silently.
These roles are deliberately vendor-neutral. Each can be independently owned, versioned and replaced.
Accepts a typed evidence request and returns the minimum permitted facts with source, event time, observation time, validity and exclusions.
Appends request, versions, policy result, model proposal, approval, action receipt, readback, correction and custody events under one correlation key.
Builds time-qualified projections from source events and reconciliations without becoming the legal system of record.
Presents claims beside evidence, alternatives, uncertainty, missing information, permitted actions and current custody.
Evaluates identity, purpose, capability, amount, risk tier and policy version; returns allow, deny, step-up or human-review with reasons.
Durable records carry provenance, authority, effect and custody without turning a transcript into an uncontrolled memory store.
Use event time, valuation time, legal-entity scope and source cut-offs; label forecast, pending and settled state separately.
The selected design is not universally superior. It is the safer fit for this boundary and failure cost.
Prefetch stable, purpose-safe facts; acquire volatile facts on demand against a time-qualified snapshot.
Load a broad customer profile at session start.
Cost acceptedThe selected design adds source calls and latency, but reduces stale data, excess exposure and accidental reuse.
Use append-only events plus a rebuildable current-state projection.
Overwrite the case row with its latest status.
Cost acceptedReplay and storage are more complex, but point-in-time reconstruction and correction lineage remain possible.
Use event-fed projections for scale and direct readback for consequential effects.
Fan out to all systems of record for every interaction.
Cost acceptedRead models introduce lag and reconciliation work, but reduce source load and make cross-system views feasible.
Keep people at irreversible, ambiguous and policy-exception points; sample lower-risk automated outcomes independently.
Require the same manual approval at every step.
Cost acceptedRisk-tiering reduces review load but needs calibrated thresholds, sampling and immediate withdrawal of authority when drift appears.
Compile stable decision logic and retain retrieval for explanation and residual ambiguity.
Ask a model to interpret the source document for every request.
Cost acceptedRule compilation needs controlled change, but creates repeatable decisions, regression tests and clear exceptions.
Retries are bounded by knowledge of business effect; unknown outcome remains visible, owned and independently reconciled.
Actual thresholds belong to accountable service owners. The design exposes the equations and observables that those owners must baseline.
peak_enrichment_qps = peak_case_rate x sources_per_casereview_hours = residual_cases / investigator_throughputevidence_storage = cases x evidence_rows x retention_windowRestrict sensitive position and counterparty data to entitled desks and exclude it from reusable prompts or broad telemetry.
A design is production-ready only when teams can prove what happened, recover it and change it safely.
late market or position event test
limit breach under stale data test
valuation-source reconciliation
dual-authorisation and booking readback
Trade snapshots, market-data versions, agreement clauses, valuation lineage, break classification and negotiation record.
Collateral and legal specialists settle the dispute and approve any transfer.
Use shadow decisions and blind samples before allowing deterministic closes. Keep agent-touched cases under human disposition until operating evidence supports narrower review.
Treasury or desk, market risk, operations, finance and technology owners accept the design.