State model
Batch and partition manifests remain immutable; reruns create new attempts. Published views point to the exact successful attempt and source cut-offs.
Shared costs move through allocation drivers that can become stale, incomplete or inconsistent across legal entities and products.
The system compares current allocations with driver behaviour, flags explainable breaks and simulates corrections without posting them.
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.
Typed commands, state changes and receipts cross an event spine without surrendering domain ownership.
Permitted workThe system reconciles measures and explains drivers. Accounting entries, forecast ownership and investment decisions remain controlled finance processes.
Consistency ruleResolve period, currency, entity, product hierarchy and measure definition before comparison or aggregation.
Hard boundaryThe model is not a system of record, identity provider, policy authority or proof that an external effect occurred.
Several sources must agree on balances, positions, costs or outcomes before a reporting or management decision can rely on them.
Only approved deterministic rules calculate the official allocation; simulations remain isolated.
A deterministic outer workflow contains model-led work inside typed, observable calls. Dashed messages remain proposals until policy or a human grants authority.
Batch and partition manifests remain immutable; reruns create new attempts. Published views point to the exact successful attempt and source cut-offs.
Use file or event arrival to trigger orchestration. Separate raw landing, canonical transformation, control calculation and consumer serving.
A consumer sees one qualified batch version. Mixed source cut-offs or partial partitions cannot be presented as a complete period.
These roles are deliberately vendor-neutral. Each can be independently owned, versioned and replaced.
Appends request, versions, policy result, model proposal, approval, action receipt, readback, correction and custody events under one correlation key.
Chooses an approved model route by task, risk, evidence quality, latency budget and cost ceiling; enforces structured outputs.
Runs component, route, trajectory, failure, harm and outcome tests against the versioned system manifest.
Builds time-qualified projections from source events and reconciliations without becoming the legal system of record.
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.
Resolve period, currency, entity, product hierarchy and measure definition before comparison or aggregation.
The selected design is not universally superior. It is the safer fit for this boundary and failure cost.
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.
Reserve larger models for residual reasoning after deterministic and smaller-model gates.
Send every request to the most capable available model.
Cost acceptedRouting adds evaluation work and operational complexity, but controls cost, latency and unnecessary data exposure.
Test prompts, models, tools, knowledge, policies, state transitions and human paths together.
Use a static answer-quality benchmark as the release gate.
Cost acceptedSystem evaluation takes longer and needs synthetic environments, but detects authority and recovery failures that answer scoring misses.
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.
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.
required_throughput = input_rows / available_batch_windowreconciliation_work = partitions x independent_control_setsrerun_headroom = remaining_window x spare_processing_rateRestrict management, employee and customer-level data to the smallest analytical grain needed for the decision.
A design is production-ready only when teams can prove what happened, recover it and change it safely.
ledger and subledger tie-out
definition and unit consistency
actual versus assumption separation
narrative-to-measure citation
Driver lineage, rule version, anomaly features, simulated impact, owner rationale and posting approval.
Management accounting approves driver changes and entries.
Move high-value changes to event-driven refresh only after the batch control set can reconcile the new path against the established baseline.
Finance, business performance, data-product and investment owners approve measures and decisions.