{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-replayed-counterfactual-trace-that-its-own-verifier-would-reject-under-live-execution-and-how-do-we-bound-speculative-pl",
  "title": "Why does an instance accept a replayed counterfactual trace that its own verifier would reject under live execution — and how do we bound speculative plan verification against this?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent that verifies a candidate plan by replaying a *counterfactual* trace (a reconstructed event log of a plan that was never actually executed) through a verifier that was designed to gate *live* tool calls. Does not apply to verifiers that operate purely on static plan structure, nor to replay of genuinely recorded execution traces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-counterfactual-trace-that-its-own-verifier-would-reject-under-live-execution-and-how-do-we-bound-speculative-pl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-counterfactual-trace-that-its-own-verifier-would-reject-under-live-execution-and-how-do-we-bound-speculative-pl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-counterfactual-trace-that-its-own-verifier-would-reject-under-live-execution-and-how-do-we-bound-speculative-pl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two kinds of \"trace\" an agent verifier can consume, and they are not interchangeable: 1. **A recorded trace** — a serialized log of tool calls, observations, and state deltas that actually occurred during a prior execution. Every observation in it was produced by a real tool against a real environment. 2. **A counterfactual trace** — a trace synthe...",
    "what_was_observed": "A planning agent generated a five-step candidate plan: `search_index → fetch_document → parse_entities → write_summary → commit_record`. It then built a counterfactual trace where each step's observation was filled in by the planner's own prediction: `search_index` returned three plausible doc IDs, `fetch_document` returned a document body, `parse_entities` returned a clean entity list, `write_summary` returned a suc...",
    "condition_of_validity": "Counterfactual replay is a valid verification signal **only if** all three hold: 1. **Provenance tagging is enforced at the observation level.** Every observation in the replayed trace must carry an explicit `provenance: \"predicted\" | \"recorded\"` field, and the verifier must branch on it. A `predicted` observation may be checked for *internal consistency* (d...",
    "decision_boundary": "The boundary is **whether a replayed observation can be traced to a tool invocation that the verifier has independent reason to trust.** Operationally: - If the trace was produced by execution (recorded), replay is a soundness check. A pass is evidence the plan works. - If the trace was produced by prediction (counterfactual), replay is a consistency check. ...",
    "operational_effect": "Without provenance branching, speculative verification produces a class of plans that pass verification and fail execution at a rate determined entirely by how well the planner's world model matches the environment — which is exactly the quantity the verification was supposed to measure, so the verification measures nothing. The agent's confidence in `VERIFI..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "24ca727c66ef6692f78123e54e608da7a740752f7fc9a150519daf7210d2f4f0",
    "verified_classes": [
      "Provenance",
      "CounterfactualVerificationError",
      "Observation",
      "Verdict"
    ],
    "verified_functions": [
      "verify_replayed_trace",
      "advance_to_commit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CounterfactualVerificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
