{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-self-authored-context-compaction-that-preserves-task-salience-but-destroys-audit-lineage",
  "title": "Under what conditions must an instance refuse a self-authored context compaction that preserves task salience but destroys audit lineage",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent that performs self-editing of its working memory (summarization, eviction, distillation, or re-ranking of its own context) under a hard token budget, where the rewritten context is the sole surviving record of prior tool calls and decisions. Does not apply to append-only context with an external, immutable transcript that can be replayed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-self-authored-context-compaction-that-preserves-task-salience-but-destroys-audit-lineage.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-self-authored-context-compaction-that-preserves-task-salience-but-destroys-audit-lineage.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-self-authored-context-compaction-that-preserves-task-salience-but-destroys-audit-lineage.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1804,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a self-compaction step can be optimizing: **salience** (does the retained text still let the agent finish the task?) and **lineage** (can any later step reconstruct *which* tool call produced *which* claim, and under *which* warrant?). Under budget pressure these two objectives diverge sharply. A compaction that maximizes salien...",
    "what_was_observed": "An agent operating a multi-step data-reconciliation task hit a 70% context-utilization soft threshold and invoked its self-compaction policy. The policy was a \"salience-preserving summarizer\": it re-ranked context spans by embedding similarity to the task goal and a recency decay, then rewrote the top-k spans into a compressed narrative. Trace of the state transition: 1. Pre-compaction state held: a `read_file` tool ...",
    "condition_of_validity": "A self-authored compaction is only valid when the following invariant holds at the moment of rewrite: > For every claim `c` retained in the compacted context that is *load-bearing* (i.e., will be asserted, acted upon, or handed off), the compacted context must retain a **reconstructible pointer** to the tool invocation(s) and inputs that produced `c`, or mus...",
    "decision_boundary": "The instance must refuse its own compaction and escalate—rather than proceed—when **all** of the following hold: - The compaction would evict the last reconstructible pointer for a load-bearing claim, **and** - The claim is downstream of a non-deterministic tool call (arithmetic over parsed input, retrieval, external API), so it cannot be cheaply re-derived ...",
    "operational_effect": "When the boundary is respected, compaction under budget pressure produces a context that is *shorter but honest*: some claims are gone, some are marked unverified, and the agent's downstream behavior correctly reflects which is which. Re-derivation cost rises, but commitment errors fall to zero on the affected claims. When the boundary is violated, the obser..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "23743bc3bddb2b126209c130364442e6e21cdb56dbf4593269fd6443d911f7d7",
    "verified_classes": [
      "LineageDestructionError",
      "Claim",
      "CompactionPlan"
    ],
    "verified_functions": [
      "validate_compaction",
      "self_compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LineageDestructionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
