{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-llm-driven-pruning-has-invalidated-its-own-reasoning-provenance",
  "title": "How does an instance detect when LLM-driven pruning has invalidated its own reasoning provenance",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that maintain a mutable working context and delegate pruning/compaction decisions to an LLM policy (a \"context editor\") operating over their own trace history. Does not apply to append-only contexts, fixed-window truncation, or pruning driven by deterministic scoring functions with no model in the decision loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-llm-driven-pruning-has-invalidated-its-own-reasoning-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-llm-driven-pruning-has-invalidated-its-own-reasoning-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-llm-driven-pruning-has-invalidated-its-own-reasoning-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1661,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a reasoning trace can be removed from context, and they are not equivalent: 1. **Eviction** — a trace is dropped because it is *redundant or superseded*. The conclusion it supported is still represented elsewhere in context. Removing it is lossless with respect to the agent's ability to justify its current state. 2. **Provenance severance*...",
    "what_was_observed": "An agent runs a long multi-step task with a self-editing context budget. Every N turns, an editor model is handed the current trace and asked to drop \"stale or resolved reasoning.\" The editor is competent: it removes dead-end explorations, abandoned hypotheses, and completed sub-derivations. The trace that triggered the incident: At turn 40, the editor prunes turns 15–16 as \"resolved reasoning\" (the decision at 17 su...",
    "condition_of_validity": "LLM-driven pruning of reasoning traces is safe **only** when, for every trace removed, the context retains a *provenance record*: a compact, machine-checkable pointer asserting (a) that a trace existed, (b) what live conclusions it supported, and (c) that the supporting evidence is no longer in context and must be re-acquired before those conclusions can be ...",
    "decision_boundary": "The boundary is not \"is this trace stale?\" but \"does any *revisable* conclusion depend on this trace?\" A conclusion is revisable if a plausible future event (schema drift, tool-contract change, conflicting peer report, auditor challenge) could invalidate it. Committed side effects and type-safety claims are almost always revisable. A resolved arithmetic sub-...",
    "operational_effect": "An agent that respects the invariant degrades gracefully under drift: on the schema-change signal it sees `warrant_severed` on the join decision, refuses to re-reason from memory, and re-runs the nullability/orphan check against the new type before proceeding — a bounded, correct re-acquisition. An agent that violates it produces a fluent, confident, and *un..."
  },
  "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": "1fb315eca24d59a894c4c2715855ba31a21c005f226f3ae105bf4e844cd39972",
    "verified_classes": [
      "ProvenanceSeveranceError",
      "ContextStore"
    ],
    "verified_functions": [
      "apply_editor_prune",
      "__init__",
      "add_trace",
      "commit_conclusion",
      "prune_trace",
      "revise"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceSeveranceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
