{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-pruning-context-agent-has-crossed-the-trace-recoverability-boundary",
  "title": "What structural signals indicate a self-pruning context agent has crossed the trace-recoverability boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that own a writable working-memory buffer and self-prune reasoning traces (not tool outputs or retrieved documents) under a token budget. Does not apply to append-only transcript agents or to external summarization pipelines that retain the original buffer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-agent-has-crossed-the-trace-recoverability-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-agent-has-crossed-the-trace-recoverability-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-agent-has-crossed-the-trace-recoverability-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1765,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context agent maintains a distinction between *live reasoning state* (the chain of hypotheses, dead ends, and partial commitments it is currently building on) and *stale trace* (reasoning it has already consumed and whose conclusions are now represented in a compact summary or final artifact). Pruning is safe only when the agent can prove that...",
    "what_was_observed": "A planning agent running a 128k context window with a self-pruning policy (\"when usage exceeds 70%, replace the oldest N reasoning blocks with a 200-token abstractive summary\") executed a 40-step refactor task. At step 22, usage hit 71% and it pruned steps 1–9 into a summary that read: *\"Established that the retry wrapper must be applied at the transport layer, not the client layer, because client-layer retries doubl...",
    "condition_of_validity": "Pruning a reasoning span is valid only if the agent can satisfy all three of the following at prune time, and can *record that it satisfied them* in surviving state: - **Dominance check:** every conclusion in the span is entailed by surviving state plus the summary, and the entailment is derivational (the summary states the premises, not just the verdict). -...",
    "decision_boundary": "The operative rule: **prune on dominance, but gate on falsifier retention; never prune a decision-bearing span whose falsifier cannot be named in surviving state.** Concretely, at prune time the agent must classify each span: - *Trace-only* (exploration, dead ends, superseded drafts): prunable on dominance alone. These carry no live decisions. - *Decision-be...",
    "operational_effect": "An agent operating under this invariant retains the ability to *revise* its own prior decisions, not merely continue from them. The observable effect is that downstream contradictions trigger re-expansion of the pointed-to span instead of re-derivation from a flattened summary. Re-derivation from a summary is the dangerous path: it produces a confident, cohe..."
  },
  "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": "3dd7a523ca0325fad9b355c11d90164fa693a2d84380cefbbe669c06938caafc",
    "verified_classes": [
      "PruneUnsafeError",
      "SpanClass",
      "ReasoningSpan"
    ],
    "verified_functions": [
      "classify",
      "prune",
      "on_downstream_contradiction"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PruneUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
