State model
A partitioned event log feeds time-windowed operational state. Per-entity sequence and watermark prevent late or duplicate events from appearing current.
Covenants combine legal definitions, financial statements, permitted adjustments and reporting periods that rarely align cleanly.
The system parses covenant logic into deterministic calculations, reconciles source figures and drafts a cited explanation for pass, fail or indeterminate status.
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 system may organise evidence, run calculations and propose scenarios. Credit judgement, affordability, exceptions and legal effects remain authorised decisions.
Consistency ruleBind evidence to applicant, facility, legal entity, period and policy version; preserve submitted, verified and inferred values separately.
Hard boundaryThe model is not a system of record, identity provider, policy authority or proof that an external effect occurred.
Events or conversation turns require a decision before the underlying situation changes, with strict latency and back-pressure constraints.
Only versioned formulas calculate compliance; a model may extract or explain but cannot change a definition or waive a breach.
A deterministic outer workflow contains model-led work inside typed, observable calls. Dashed messages remain proposals until policy or a human grants authority.
A partitioned event log feeds time-windowed operational state. Per-entity sequence and watermark prevent late or duplicate events from appearing current.
Use streaming ingestion for signals, low-latency feature or state reads for the hot path, and asynchronous enrichment outside the decision budget.
Point-in-time correctness takes precedence over the newest unqualified value. Late events trigger correction or review instead of mutating the old decision invisibly.
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.
Evaluates identity, purpose, capability, amount, risk tier and policy version; returns allow, deny, step-up or human-review with reasons.
Appends request, versions, policy result, model proposal, approval, action receipt, readback, correction and custody events under one correlation key.
Serves owned, audience-qualified and effective-dated content; exposes supersession, withdrawal and dependency metadata.
Durable records carry provenance, authority, effect and custody without turning a transcript into an uncontrolled memory store.
Bind evidence to applicant, facility, legal entity, period and policy version; preserve submitted, verified and inferred values 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.
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.
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.
Federate authoring while centralising lifecycle metadata, validation and serving rules.
Create one centrally authored knowledge corpus.
Cost acceptedFederation requires stronger contracts and owner discipline, but preserves domain accountability and release velocity.
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.
partition_rate = peak_events_per_second / active_partitionsdecision_budget = ingest + state_read + policy + score + action_commitbacklog_clear_time = queued_events / recovery_throughputLimit applicant and guarantor data to the active assessment and separate sensitive attributes from model reasoning where policy requires.
A design is production-ready only when teams can prove what happened, recover it and change it safely.
calculation reconciliation
policy supersession and open-case test
document contradiction test
adverse-impact and override review
Clause citation, formula version, source figures, adjustments, calculation trace, exceptions and reviewer conclusion.
A credit officer confirms interpretation and any waiver or remedial action.
Start with advisory intervention and measured shadow scoring. Increase automation only when peak-load, late-event and fallback tests preserve the control outcome.
Credit, product, legal, model-risk and lending-operations owners approve decision and action boundaries.