State model
A partitioned event log feeds time-windowed operational state. Per-entity sequence and watermark prevent late or duplicate events from appearing current.
Limits are hierarchical, effective-dated and conditional, while breaches can arise from market movement rather than a new action.
A surveillance service evaluates positions against the policy version effective at event time and distinguishes hard breach, emerging pressure and data uncertainty.
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.
Events or conversation turns require a decision before the underlying situation changes, with strict latency and back-pressure constraints.
A model explains drivers but cannot calculate or override a limit result.
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.
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.
Builds time-qualified projections from source events and reconciliations without becoming the legal system of record.
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.
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.
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.
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_throughputRestrict 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
Position time, policy version, hierarchy path, calculation trace, breach state, notification and owner response.
The named limit owner accepts, remediates or escalates the breach.
Start with advisory intervention and measured shadow scoring. Increase automation only when peak-load, late-event and fallback tests preserve the control outcome.
Treasury or desk, market risk, operations, finance and technology owners accept the design.