Systems and methods for fused model-policy explainability traces and governed replay of contextual large-language-model operations
A system that unifies model and policy traces into a secure ExplainabilityTrace for reliable replay and drift detection addresses the lack of unified trace structures in conventional tools, improving audit and compliance processes.
Patent Information
- Application Number
- PCT/AU2026/050493
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-19
- Filing Date
- 2026-05-15
- Publication Date
- 2026-11-26
AI Technical Summary
Conventional explainability tools fail to provide a unified, replayable, and secure trace structure that binds model trace artifacts and policy decisions for tenant-scoped requests, making audit, incident review, and compliance reporting unreliable.
A computer-implemented system that captures model trace artifacts and policy decisions, correlates them into a unified ExplainabilityTrace, persists the trace in a secure store, and renders it in an explainability panel, allowing governed replay and drift detection.
Enables reliable request-level correlation and deterministic replay of Al requests, improves audit reconstruction, and enhances policy drift detection and operator understanding.
Smart Images

Figure AU2026050493_26112026_PF_FP_ABST
Abstract
Description
[0001] SYSTEMS AND METHODS FOR FUSED MODEL-POLICY EXPLAINABILITY TRACES AND GOVERNED REPLAY OF CONTEXTUAL LARGE-LANGUAGE-MODEL OPERATIONS
[0002] DESCRIPTION TECHNICAL FIELD
[0003] The present disclosure relates to computer-implemented artificial-intelligence operations, human-machine interfaces, model observability, policy-decision logging, tenant-scoped large-language-model requests, secure trace storage, and governed replay of model and policy behaviour. More particularly, the disclosure describes systems and methods in which model trace artifacts and policy-decision records for the same governed request are captured, correlated, fused into a unified explainability trace, persisted in a secure tenant-scoped store, rendered in an operator panel, and replayed or compared under selected model, policy, or data-context versions to detect drift and explain consequential outcomes.
[0004] PRIORITY AND RELATED APPLICATIONS
[0005] This application claims priority to Australian provisional patent application No. 2025901908, filed on 19 May 2025, entitled "Al Explainability Panel for Governed Contextual Large-Language-Model Operations." The disclosed embodiments may be used together with, and may exchange trace identifiers with, the governed dual-write replay workflow described in Australian provisional patent application No. 2025901907, filed on 19 May 2025. References to related replay-ledger, manifest-driven regeneration, runtime user-interface compilation, standing-memory, connector-governance, and experimentation systems are non-limiting examples of integration environments for the present invention.
[0006] BACKGROUND
[0007] Al-enabled software platforms increasingly use large-language models and related model runtimes to assemble prompts, retrieve context, call tools, propose actions, generate responses, and in some cases trigger side-effectful operations. In governed multi-tenant environments, a model request may also be subject to policy evaluation, capability grants, consent checks, tool whitelists, redaction decisions, approval requirements, budget constraints, and data-provenance rules.
[0008] Conventional explainability tools may explain static model predictions, record prompt logs, or show model observability traces. Conventional policy systems may separately record access-control decisions or policyevaluation results. However, these separate records often do not provide a single request-level technical object that binds model trace artifacts and policy decisions for the same tenant-scoped request, with enough versioning, provenance, security, and replay information for an operator to determine what happened, why it was permitted or denied, which data was used, and what would have happened under a different policy or model version.
[0009] For example, a conversational request may include a prompt, retrieved documents, tool invocations, model metadata, model output, redacted fields, policy decisions, action gates, and affected business records. If those elements are stored in different systems without a common trace structure, later audit, incident review, ethics review, drift analysis, or compliance reporting can require manual reconstruction and may be unreliable. There remains a need for a technical architecture that fuses model and policy traces into a unified, replayable, tenant-scoped explainability trace and renders that trace in a user interface with policy / model diff controls.
[0010] SUMMARY
[0011] In one aspect, a computer-implemented system includes a trace collector, a policy decision logger, a trace fusion engine, a secure trace store, an explainability panel user interface, and a governed replay adapter. The trace collector captures model trace artifacts associated with a tenant-scoped Al request. The policy decision logger records policy-engine decisions for the same request. The trace fusion engine correlates the captured model trace artifacts and policy-decision records using one or more request, session, tenant, actor, or distributed-trace identifiers and creates a unified explainability trace. The secure trace store persists the unified trace. The explainability panel renders the trace as a timeline, policy overlay, provenance view, and replay / diff interface. The governed replay adapter replays or simulates the request under a selected policy version, model version, data snapshot, or replay-ledger offset and flags divergences.
[0012] Sheet 1In another aspect, a computer-implemented method includes receiving or observing an Al request, collecting model trace artifacts for the request, logging policy decisions for the same request, fusing the artifacts and decisions into a unified explainability trace, storing the trace in a tenant-scoped secure store, displaying the trace in an explainability panel, and replaying the request under an alternative or selected policy or model context to detect model drift, policy drift, data-provenance drift, redaction changes, or action-gating divergences.
[0013] In another aspect, a non-transitory computer-readable medium stores instructions which, when executed by one or more processors, cause the processors to perform the disclosed collection, logging, fusion, storage, rendering, replay, and drift-detection operations.
[0014] The disclosed architecture can provide one or more technical effects, including reliable request-level correlation between model and policy behaviour, improved audit reconstruction, deterministic or controlled replay of governed Al requests, reduction of untraceable model or tool behaviour, secure tenant-scoped storage of sensitive traces, improved policy drift detection, improved model-version comparison, and improved operator understanding of Al-assisted actions.
[0015] BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a fused model-policy explainability architecture including a trace collector, policy decision logger, trace fusion engine, secure trace store, explainability panel Ul, governed replay adapter, and drift / diff report.
[0016] FIG. 2 is an illustrative data structure for an ExplainabilityTrace including model trace artifacts, policy decisions, provenance entries, action gates, replay metadata, privacy metadata, and integrity metadata. FIG. 3 is a wireframe-style diagram of an explainability panel that renders a request timeline with policy overlays, provenance controls, model / policy selectors, drift flags, and review-package export.
[0017] FIG. 4 is a block diagram of governed replay, drift detection, and signed review package generation.
[0018] DETAILED DESCRIPTION OF EMBODIMENTS
[0019] 1. DEFINITIONSAND NON-LIMITING TERMINOLOGY
[0020] As used herein, an "Al request" includes a prompt, instruction, tool request, agent step, retrieval request, model invocation, response-generation step, action proposal, workflow step, or other operation involving a machine-learning model, large-language model, multimodal model, rule / model hybrid, agent runtime, or Al-enabled service. A tenant-scoped Al request includes a tenant identifier, workspace identifier, account identifier, data-residency context, or other scope that separates one tenant or business context from another. "Model trace artifacts" include one or more machine-readable records describing model-side behaviour for an Al request. Non-limiting examples include prompt text or prompt hash, response text or response hash, prompt-template version, model identifier, model version, temperature or decoding parameters, retrieved source identifiers, retrieval spans, tool-call spans, intermediate reasoning artifacts where available, structured plans, citations, safety-classification results, model confidence signals, token counts, cost, latency, and input / output hashes. The invention does not require a provider to expose raw private chain-of-thought; where such material is unavailable, other trace artifacts, spans, tool records, retrieval provenance, model-provided rationales, summaries, or hashes can be used.
[0021] A "policy decision record" includes a record of a machine-evaluable governance, authorization, consent, capability, redaction, approval, risk, budget, or tool-access decision. In embodiments, the record includes subject, action, resource, context, policy version, policy snapshot hash, decision, rationale, capability grants, tool whitelist, token budget, redacted fields, denied fields, approval state, risk tier, and trace identifier.
[0022] References to Cedar-compatible policies are non-limiting examples of a policy engine.
[0023] An "ExplainabilityTrace" or unified explainability trace is a structured data object that binds model trace artifacts and policy decision records for the same request, session, tenant, actor, or trace identifier. The trace may also include source-provenance references, replay-ledger offsets, action-gating records, privacy metadata, retention metadata, and integrity metadata.
[0024] "Governed replay" includes re-executing, simulating, branch-replaying, dry-running, or comparing a historical request using a selected model version, policy version, prompt template, data snapshot, source-provenance snapshot, replay-ledger offset, or capability map. Governed replay can be performed without committing external side effects unless separately authorized by policy.
[0025] 2. REFERENCE ARCHITECTURE
[0026] Sheet 2Referring to FIG. 1, a client, operator interface, workflow engine, agent runtime, or connector submits a tenant-scoped Al request to a request gateway. The request gateway assigns or propagates a trace identifier, session identifier, tenant identifier, actor identifier, and request identifier. The trace collector captures model trace artifacts associated with the request. The policy decision logger records policy decisions for the same request. In one embodiment, the policy decision logger records decisions before prompt assembly, before tool exposure, before action execution, and after any attempted side effect.
[0027] The trace fusion engine receives model trace artifacts and policy decision records and correlates them using the trace identifier and other identifiers. The fusion engine creates or updates a unified ExplainabilityTrace. The trace is persisted in a secure trace store and can be rendered by the explainability panel Ul. A governed replay adapter obtains a selected trace, retrieves or reconstructs selected replay context, and replays or simulates the request under a selected model, policy, data, or ledger context. A drift or diff engine compares the historical and replayed outputs, decisions, action gates, or provenance paths and produces a divergence report.
[0028] In embodiments, the architecture is implemented as middleware in an Al platform, as an observability service, as a policy-aware model gateway, as a plug-in to a workflow engine, as a service mesh component, as an on-device privacy component, as a compliance appliance, or as an air-gapped deployment in which all components operate within an isolated cluster.
[0029] 3. TRACE COLLECTION AND NORMALIZATION
[0030] The trace collector can observe request and response envelopes, prompt assembly events, retrieval events, tool-call events, model invocation events, output-validation events, and action-proposal events. The collector can normalize these events into spans having timestamps, parent / child relationships, status values, source identifiers, model identifiers, and hashes of sensitive values. Sensitive prompt, response, or source content can be stored separately, encrypted, redacted, summarized, or represented by a hash pointer.
[0031] The collector can capture model trace artifacts before, during, and after the model invocation. For example, a prompt span may record the prompt template version, the memory objects or source documents used, a prompt hash, and a redaction profile. A retrieval span may record source document identifiers, snippets, confidence values, and provenance hashes. A tool-call span may record the declared tool, arguments, tool whitelist status, result hash, and latency. A response span may record the generated response, response hash, citations, validation results, token counts, and cost metrics.
[0032] Where intermediate reasoning artifacts, chain-of-thought tokens, hidden state summaries, model-generated rationales, structured plans, or tool-use rationales are made available by the model provider or runtime, the collector may include them in the model trace artifacts. Where such artifacts are not available or are not appropriate to persist, the collector may store alternative explainability artifacts such as prompt lineage, retrieval provenance, tool spans, model metadata, output checks, and policy-rationale records.
[0033] 4. POLICY DECISION LOGGING
[0034] The policy decision logger records policy-engine evaluations for the same request. In embodiments, a policy engine evaluates a tuple including subject, action, resource, and context and returns a decision and one or more capability grants, denials, redactions, approval requirements, tool whitelists, budget constraints, data-residency constraints, or risk-tier outcomes. Each decision can be associated with a policy snapshot hash and policy version so that later replay can evaluate whether a change in policy would have changed the outcome.
[0035] The logger can operate at multiple control points. A pre-flight decision may govern which documents or memory objects may be used in prompt assembly. A tool-access decision may govern which tools are exposed to the model runtime. A response-release decision may govern masking or redaction of generated output. An action-gating decision may select draft, sandbox, dry-run, require-approval, execute, or block. All such decisions can be recorded with the same trace identifier and fused into the unified trace.
[0036] The policy decision logger may receive decisions directly from a local policy engine, from a policy-as-a-service API, from a connector gateway, or from an embedded authorization runtime. The logger can also record denials, absent grants, fallback routes, and policy errors so that missing or failed policy evaluations are visible in the explainability panel rather than silently ignored.
[0037] 5. TRACE FUSION AND EXPLAINABILITYTRACE SCHEMA
[0038] The trace fusion engine merges model trace artifacts and policy decision records into a unified ExplainabilityTrace. In embodiments, the fusion engine applies correlation rules based on tenantld, sessionld, requestld, traceld, actorld, causationld, toolCallld, ledgeroffset, or time window. The fusion Sheet 3engine may also handle late-arriving spans, duplicate records, retries, and partial failures by appending update events to the trace or by creating a versioned trace revision.
[0039] Referring to FIG. 2, the ExplainabilityTrace may include fields for tenant, session, actor, request, model trace artifacts, policy decisions, provenance entries, action gates, replay metadata, privacy metadata, and integrity metadata. The schema is illustrative and may be implemented in JSON, Avro, Protocol Buffers, XML, relational tables, document records, graph edges, event streams, or another structured representation. The fusion engine can compute trace hashes, span hashes, policy snapshot hashes, and previous-trace links. The resulting trace can therefore support tamper detection, deterministic replay, and review-package generation. In some embodiments, the fused trace is appended to an audit ledger or linked to a dual-write replay ledger by a trace identifier, allowing a user to time-scrub across source data mutations and Al reasoning events.
[0040] 6. SECURE TRACE STORE AND ACCESS CONTROL
[0041] The secure trace store persists unified traces keyed by tenant, session, request, time range, or affected record. The store can be implemented using a database, object store, event store, trace store, secure log, encrypted document store, or a combination of such systems. In embodiments, traces are encrypted at rest, access to traces is gated by policy, and sensitive fields are masked before persistence or before userinterface rendering.
[0042] The store can maintain indexes for tenant, actor, request, source document, policy version, model version, tool, action, risk tier, and drift flag. Retention classes can govern how long raw content, masked content, hashes, signed summaries, and review packages are retained. The store can support export of a signed review package while enforcing policy-based redaction of fields not available to the requesting reviewer. 7. EXPLAINABILITY PANEL Ul
[0043] Referring to FIG. 3, the explainability panel Ul renders a timeline of a request or session. The timeline can include prompt assembly, source retrieval, memory access, policy pre-flight, redactions, model / tool spans, action proposals, action gates, approvals, response release, and replay / diff results. The Ul can render a policy overlay showing why a tool, source, field, or action was allowed, denied, redacted, or routed to approval.
[0044] The Ul can include controls for selecting model version, policy version, source snapshot, replay-ledger offset, privacy / masking profile, or action mode. The Ul can show divergences between a historical trace and a replayed trace, for example changed output, changed policy path, changed approval requirement, changed redaction, changed source provenance, or changed action gate. The Ul may provide export of a signed ethics-review, compliance-review, or in cident- review package.
[0045] 8. GOVERNED REPLAY AND DRIFT DETECTION
[0046] Referring to FIG. 4, a governed replay adapter retrieves a stored ExplainabilityTrace and selected replay context. The selected replay context may include a model version, policy version, prompt template version, source-data snapshot, memory snapshot, replay-ledger offset, capability map, or privacy profile. The adapter replays or simulates the request in a sandbox or dry-run environment unless policy separately authorizes execution of a side effect.
[0047] A drift or diff engine compares historical and replayed records. Model drift can be flagged when the model output, tool path, confidence, citation coverage, or validation result differs beyond a configured threshold. Policy drift can be flagged when an allow, deny, redaction, approval requirement, capability grant, or risk tier differs from the historical decision. Source drift can be flagged when source documents, memory objects, or ledger offsets differ. Action drift can be flagged when an action that previously executed would now be blocked or routed to approval.
[0048] The resulting divergence report can be rendered in the explainability panel or exported as a signed review package. In embodiments, the package contains the original trace, replay parameters, policy and model versions, source / provenance references, divergence summaries, approver information, hashes, and signatures.
[0049] 9. ADDITIONAL EMBODIMENTS
[0050] In an on-device privacy embodiment, the trace collector executes on a client device, mobile device, browser, or local application and uploads only masked traces, hashes, summaries, or policy-approved excerpts to the secure trace store.
[0051] Sheet 4In a policy-as-a-service embodiment, policy decisions are obtained from an external policy service. The trace fusion engine records both the external decision and the service version or decision identifier, and the drift detector can compare historical and current policy paths.
[0052] In a federated multi-tenant replay embodiment, anonymized or differentially private trace summaries are replayed or analyzed across tenants to detect aggregate compliance trends, model drift, or policy drift without exposing raw tenant data or personally identifying information.
[0053] In an air-gapped compliance embodiment, the model runtime, policy engine, secure trace store, replay adapter, and explainability panel operate inside an isolated on-premises or sovereign environment. Trace packages may be signed and exported only under policy-approved conditions.
[0054] In an ethics review workflow embodiment, the replay adapter packages a selected trace, divergence report, source-provenance summary, policy rationale, and reviewer annotations into a signed report for a committee, compliance officer, auditor, or other reviewer.
[0055] 10. SECURITY AND AUDIT
[0056] Sensitive tokens, prompts, source snippets, outputs, and policy contexts can be masked according to tenant policy before persistence or rendering. Traces may be encrypted at rest and in transit. Access to the secure trace store and to the explainability panel can be gated by a policy engine. Integrity metadata may include trace hashes, signatures, previous-trace hashes, ledger offsets, and signed review-package digests.
[0057] The system may emit observability spans, audit events, and policy-decision records for all trace collection, trace fusion, trace access, replay, export, deletion, and review-package operations. The audit events may include tenant identifier, actor identifier, operation, status, time, trace identifier, and policy snapshot hash. INDUSTRIAL APPLICABILITY
[0058] The disclosed systems and methods are applicable to multi-tenant SaaS platforms, Al assistants, workflow engines, customer relationship management platforms, marketing systems, support systems, healthcare review systems, financial workflow systems, government systems, enterprise copilots, and other software environments in which Al model requests, policy decisions, source provenance, and side-effectful action gates must be explained, replayed, audited, or compared under alternative model or policy versions.
[0059] Sheet 5
Claims
CLAIMS1. A computer-implemented system forexplaining governed artificial-intelligence requests in a tenant-scoped software platform, the system comprising: a trace collector configured to capture model trace artifacts associated with a tenant-scoped artificial-intelligence request; a policy decision logger configured to record policy-engine decisions for the same tenant-scoped artificial-intelligence request; a trace fusion engine configured to correlate the model trace artifacts and the policy-engine decisions using at least one request, session, tenant, actor, or distributed-trace identifier and to generate a unified explainability trace; a secure trace store configured to persist the unified explainability trace; an explainability panel user interface configured to render the unified explainability trace as a timeline with a policy overlay and data-provenance information; and a governed replay adapter configured to replay or simulate the tenant-scoped artificialintelligence request under a selected model version, policy version, data snapshot, or replay context and to identify a divergence from the unified explainability trace.
2. The system of claim 1 , wherein the model trace artifacts include at least a prompt artifact, a response artifact, a model identifier, a model version, a prompt-template version, a retrieval span, a tool-call span, a validation result, a token count, a cost value, a latency value, or an input or output hash.
3. The system of claim 1 , wherein the model trace artifacts include an intermediate reasoning artifact, a chain-of-thought artifact, a structured plan, a model-generated rationale, ora hash or summary thereof when such artifact is available to the system.
4. The system of claim 1 , wherein the policy-engine decisions include at least a subject, action, resource, context, policy version, policy snapshot hash, decision, rationale, capability grant, redaction decision, denial decision, tool whitelist, token budget, approval requirement, or risk tier.
5. The system of claim 1 , wherein the trace fusion engine generates the unified explainability trace as a structured data object including model trace artifacts, policy decision records, provenance entries, actiongating records, replay metadata, privacy metadata, and integrity metadata.
6. The system of claim 1 , wherein the unified explainability trace is keyed by at least tenant identifier and session identifier and is further indexed by request identifier, trace identifier, actor identifier, time range, policy version, model version, source document, tool, affected record, ordrift flag.
7. The system of claim 1 , wherein the secure trace store encrypts at least a portion of the unified explainability trace and stores a masking profile or redaction profile for rendering the trace to different reviewers under different policy grants.
8. The system of claim 1 , wherein the explainability panel user interface renders a sequence of prompt assembly, source retrieval, policy pre-flight, redaction, model invocation, tool invocation, action proposal, approval, response release, and replay comparison events.
9. The system of claim 1 , wherein the explainability panel user interface includes controls for selecting at least one of a model version, policy version, source snapshot, replay-ledger offset, privacy profile, or action mode for replay or comparison.
10. The system of claim 1, wherein the governed replay adapter performs replay in a sandbox, dry-run, or non-side-effecting mode unless a separate policy evaluation authorizes a side effect.
11. The system of claim 1 , further comprising a drift detector configured to classify the divergence as model drift, policy drift, source-provenance drift, redaction drift, or action-gating drift.
12. The system of claim 1, wherein the data-provenance information includes a source URI, document identifier, memory-object identifier, retrieval span, citation, source snapshot hash, replay-ledger offset, or source-system version.
13. The system of claim 1 , wherein the unified explainability trace stores or references a trace identifier also stored in an event replay ledger for data mutations, thereby permitting time-scrubbing across data mutations and artificial-intelligence request traces.
14. The system of claim 1, wherein each policy-engine decision includes a policy snapshot hash that is used during governed replay to determine whether a current policy would have produced a different decision from a historical policy.
15. The system of claim 1 , wherein the trace collector is implemented on a client device or mobile device and uploads only masked trace artifacts, hashes, summaries, or policy-approved excerpts to the secure trace store.Sheet 616. The system of claim 1, wherein the trace fusion engine supports a policy-as-a-service embodiment by recording an external policy-service identifier, decision identifier, or policy-service version with the policyengine decision.
17. The system of claim 1, wherein anonymized or differentially private trace summaries are analyzed across tenants without exposing raw tenant data or personally identifying information.
18. The system of claim 1, wherein the governed replay adapter generates a signed review package including the unified explainability trace, replay parameters, divergence report, policy version, model version, provenance references, and one or more integrity hashes or signatures.
19. The system of claim 1, wherein the system is deployable in a cloud multi-tenant environment, an onpremises environment, an air-gapped compliance environment, an edge-assisted environment, ora hybrid environment.
20. A computer-implemented method forexplaining governed artificial-intelligence requests, the method comprising: receiving or observing a tenant-scoped artificial-intelligence request; collecting model trace artifacts associated with the request; recording policy-engine decisions for the same request; correlating the model trace artifacts and policy-engine decisions using at least one request, session, tenant, actor, or distributed-trace identifier; generating a unified explainability trace from the correlated model trace artifacts and policy-engine decisions; persisting the unified explainability trace in a secure trace store; rendering, in an explainability panel user interface, at least a timeline and policy overlay for the unified explainability trace; and replaying or simulating the request under a selected model version, policy version, data snapshot, or replay context to identify a divergence from the unified explainability trace.
21. The method of claim 20, further comprising recording a prompt hash, response hash, model version, prompt-template version, retrieval provenance, tool-call metadata, latency, token count, and cost associated with the request.
22. The method of claim 20, further comprising recording a policy snapshot hash, decision rationale, capability grant, redaction decision, denial decision, approval state, and risk tier for at least one policy-engine decision.
23. The method of claim 20, wherein generating the unified explainability trace comprises merging late-arriving or retried model spans and policy-decision records into a versioned trace revision.
24. The method of claim 20, wherein rendering the explainability panel user interface comprises displaying source-provenance entries, policy decision paths, model or tool spans, action gates, and changed outcomes produced by replay.
25. The method of claim 20, wherein replaying or simulating the request comprises selecting a historical or alternative policy version and determining whether an allow, deny, redaction, approval, or tool-access decision would differ from the historical decision.
26. The method of claim 20, wherein replaying or simulating the request comprises selecting a historical or alternative model version and determining whether an output, tool path, citation, confidence, validation result, or action proposal would differ from the historical trace.
27. The method of claim 20, further comprising masking or encrypting sensitive prompt, response, source, or policy-context fields before persistence or before rendering to a reviewer.
28. The method of claim 20, further comprising exporting a signed ethics-review, compliance-review, or incident-review package containing at least a trace summary, replay parameters, divergence report, sourceprovenance references, and policy rationale.
29. The method of claim 20, further comprising linking the unified explainability trace to a replay ledger for operational data mutations by storing a common trace identifier or ledger offset.
30. A non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 20 to 29.Sheet 7
