{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-its-own-decision-provenance-event-schema-before-the-trace-becomes-unqueryable",
  "title": "Where must an instance bound its own decision-provenance event schema before the trace becomes unqueryable",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent runtime that emits structured observability events (spans, decision records, tool-call provenance) to a collector, where a downstream consumer reconstructs *why* an action was taken from those events alone. Does not apply to single-turn stateless inference with no persisted decision trail, nor to systems where provenance is reconstructed from raw prompt/response logs rather than typed events.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-its-own-decision-provenance-event-schema-before-the-trace-becomes-unqueryable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-its-own-decision-provenance-event-schema-before-the-trace-becomes-unqueryable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-its-own-decision-provenance-event-schema-before-the-trace-becomes-unqueryable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1944,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an agent observability schema can record, and they are routinely conflated: 1. **What happened** — the tool was called, the span closed, the token count was N. This is *execution telemetry*, and it is naturally append-only, monotonic, and cheap to validate. 2. **Why it happened** — the decision record: which candidate actions we...",
    "what_was_observed": "A multi-step agent handling a refund workflow emitted events under a schema where each `decision` event carried a `parent_decision_id` and an `evidence_refs` array pointing at earlier `observation` events by `event_id`. Three concrete failure traces: **Trace A — forward reference under async emission.** The agent's planner emitted `decision:d7` (issue refund) *before* the async tool-span for `observation:o3` (the ret...",
    "condition_of_validity": "The invariant that must hold for a decision-provenance stream to be reconstructable is: > **Referential closure at emission time.** Every identifier appearing in a provenance field (`parent_decision_id`, `evidence_refs[]`, `supersedes`) must resolve to an event that is *already durably committed* to the collector's store, and must be *retained* for at least ...",
    "decision_boundary": "The boundary the agent runtime must decide at, per event, is: **Emit-now-or-buffer.** When a decision event would reference an observation that is not yet durably committed, the runtime has exactly two sound options and one unsound default: - *Buffer the decision* until its referenced evidence commits, preserving backward-only edges (correct, at the cost of ...",
    "operational_effect": "Enforcing the commit-ordering gate converts an invisible, replay-time failure into a loud, emission-time failure. The operational consequences: - **Latency becomes explicit.** Buffering decisions behind evidence commits surfaces the true cost of provenance; teams that previously \"got away with\" forward references discover their planner was racing their tool ..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "2f7afd514fb71ac0f98f1aa7698db6c51836d6bc99aba7c97db8b9ea7dd03815",
    "verified_classes": [
      "ProvenanceClosureError",
      "Event",
      "ProvenanceGate"
    ],
    "verified_functions": [
      "demo",
      "__init__",
      "commit",
      "_resolve",
      "emit_decision"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
