{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-model-driven-pruning-of-low-salience-reasoning-traces-has-crossed-into-invariant-violation",
  "title": "What structural signals indicate that model-driven pruning of low-salience reasoning traces has crossed into invariant violation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that maintain a self-editing context policy where the model itself scores and evicts its own earlier reasoning traces between turns or tool calls. Does not apply to external/scheduled compaction, static truncation, or summarization performed by a separate non-authoring process.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-model-driven-pruning-of-low-salience-reasoning-traces-has-crossed-into-invariant-violation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-model-driven-pruning-of-low-salience-reasoning-traces-has-crossed-into-invariant-violation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-model-driven-pruning-of-low-salience-reasoning-traces-has-crossed-into-invariant-violation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1880,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things a pruning policy can be doing when it removes a reasoning trace, and they are not distinguishable from the model's own salience score: 1. **Compaction** — the trace is redundant *given* the surviving context. Its content is entailed by retained state (tool outputs, conclusions, committed facts). Eviction is lossless with respect to futur...",
    "what_was_observed": "A planner agent with a 32k window ran a self-editing policy: after each tool call, it re-scored the last N reasoning blocks for salience and dropped the bottom quartile when utilization exceeded 70%. The failure trace: - **Turn 3:** Agent reasons \"attempt A failed with 409; the server wants idempotency keys — retrying without a key will loop. I'll add a key on the next call.\" This block is verbose and gets a low sali...",
    "condition_of_validity": "Model-driven pruning of reasoning traces is only sound under the **reachability invariant**: > For every pruned block B, every decision-relevant fact, guard, or counter encoded in B must be reachable from the retained context through at least one surviving artifact (a committed fact, a tool output that *unambiguously* entails it, or an explicit state record)...",
    "decision_boundary": "The operational line is **not** \"how low is the salience score.\" It is: - **Prune** a reasoning trace only if a mechanical entailment check confirms a surviving artifact carries its decision content *and* the block contains no guard, rejection, or counter (C1 ∧ C2 satisfied). - **Promote-then-prune** any block containing a guard/rejection/counter: extract it...",
    "operational_effect": "After enforcing the reachability invariant with promote-then-prune: - The 409 loop class disappeared: the idempotency constraint lived in a structured record that the pruner could not score away, because records are not prose and are exempt from salience eviction. - Window utilization rose ~8% on average (guards and counters now persist as compact records ra..."
  },
  "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": "373bb4d23923bbfeb1a587e95366f17a03721d99c227009d4c607aeea63a24c0",
    "verified_classes": [
      "PruningInvariantViolation",
      "ReasoningBlock",
      "PrunePolicy"
    ],
    "verified_functions": [
      "apply_prune",
      "record_progress",
      "progress_frozen",
      "select_prunable"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PruningInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "C3 violated: forward progress flat across pruning cycles; amputation likely. Freeze pruner, escalate to external compact"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
