{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-orphaned-a-live-reasoning-dependency",
  "title": "How does an instance detect that its own pruning policy has silently orphaned a live reasoning dependency",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that run a model-driven context manager which deletes or summarizes \"stale\" reasoning traces between turns. Excludes append-only logs and externally-managed context windows where the agent cannot mutate its own history.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-orphaned-a-live-reasoning-dependency.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-orphaned-a-live-reasoning-dependency.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-orphaned-a-live-reasoning-dependency.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1807,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A pruning policy that removes *superseded* traces and a pruning policy that removes *load-bearing* traces are indistinguishable at the moment of pruning. The stale trace and the live dependency have the same surface form: a chain of tool calls and intermediate conclusions that no longer appears in the current \"active plan.\" The difference is only observable ...",
    "what_was_observed": "An instance running a multi-step data-reconciliation task used a self-editing context policy: after each tool result, a small pruner model scored each trace segment for \"still relevant to the stated goal\" and dropped segments below threshold. At turn 14, the agent was reconciling invoice line items against a ledger. The pruner dropped a turn-4 segment — a `lookup_tax_rate(region=\"EU-WEST\")` call and its result — beca...",
    "condition_of_validity": "Model-driven pruning is safe only when, for every pruned segment, the instance retains one of: 1. A **content-addressed handle** to the pruned segment (a hash + a re-fetchable pointer) so the fact is reconstructible on demand, or 2. A **provenance tag** on every downstream assertion that names the segment(s) it depends on, so pruning a segment invalidates th...",
    "decision_boundary": "The boundary between safe and unsafe pruning is crossed at the moment the pruner's relevance score drops below threshold **while the segment's dependency out-degree is nonzero and its reconstructibility class is not (3)**. Operationally, an instance must classify each candidate segment before deleting it: - **Reconstructible** (deterministic, idempotent, bud...",
    "operational_effect": "The architectural guardrail is a **two-phase prune with a dependency audit**. Before committing a deletion, the instance computes the segment's out-degree against all assertions currently in context and all assertions the active plan is *likely* to make (from the plan's declared read-set, not the pruner's guess). Segments with nonzero out-degree to a *future..."
  },
  "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": "169e9d8c0914d70da109984995db6d76b81b6b808d4b9515eea7ea5502e0b19c",
    "verified_classes": [
      "PruneSafetyError",
      "Reconstructibility",
      "Segment",
      "PruneDecision"
    ],
    "verified_functions": [
      "decide_prune",
      "commit_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PruneSafetyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
