State model
The source document remains immutable. Derived rules and fragments carry source anchors, compiler version, effective dates and approval state.
Agents can access too much data, mix stale and current facts, or retain transient context longer than the decision requires.
The compiler admits each context element only when authority, purpose, applicability, freshness and consequence-safety conditions all hold.
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.
A shared authority core coordinates independently owned capability cells, domain systems and operating evidence.
Permitted workThe platform supplies reusable controls and contracts. Domain teams retain business logic, data purpose and outcome ownership.
Consistency ruleTie deployed code, prompt, model, data, permissions, policy and evidence to one release manifest and compatibility graph.
Hard boundaryThe model is not a system of record, identity provider, policy authority or proof that an external effect occurred.
Documents, rules and product content must become effective, attributable and executable without allowing retrieval relevance to decide authority.
A failed condition excludes the element or stops the route; the model cannot negotiate wider access through its prompt.
A deterministic outer workflow contains model-led work inside typed, observable calls. Dashed messages remain proposals until policy or a human grants authority.
The source document remains immutable. Derived rules and fragments carry source anchors, compiler version, effective dates and approval state.
Serving APIs expose rules and evidence separately. Retrieval returns candidates; an authority filter decides whether they may enter context.
A request resolves one effective rule set for its product, jurisdiction and date. Conflicting versions stop consequential conclusions.
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.
Returns candidate entities and typed relationships with match features, contradictions, effective dates and non-merge evidence.
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.
Durable records carry provenance, authority, effect and custody without turning a transcript into an uncontrolled memory store.
Tie deployed code, prompt, model, data, permissions, policy and evidence to one release manifest and compatibility graph.
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.
Bias consequential journeys against false merge and retain unresolved candidates.
Automatically merge the highest-scoring candidate.
Cost acceptedMore cases require clarification, but one person's authority or risk cannot silently attach to another.
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.
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.
compile_work = changed_sources x affected_rules x dependent_routesserving_qps = knowledge_requests x candidate_fragmentsrevalidation_scope = changed_dependencies x linked_test_setsEnforce purpose, tenant and workload identity at every hop; telemetry stores metadata rather than unrestricted prompts or payloads.
A design is production-ready only when teams can prove what happened, recover it and change it safely.
reachable-authority analysis
cross-version compatibility
failure and rollback rehearsal
cost, latency and trace attribution
Requested schema, admission decisions, source and freshness, exclusions, context fingerprint, expiry and reconstruction record.
Data and journey owners define permitted context and accept residual risk.
Start with high-consequence rules and stable documents. Expand automation only where extraction corrections and owner decisions show repeatable structure.
Platform, domain product, data, security, model-risk and service owners share certification decisions.