{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-lossy-compaction-against-irreversible-evidence-eviction-before-it-resumes-a-long-horizon-task",
  "title": "Where must an instance bound lossy compaction against irreversible evidence eviction before it resumes a long-horizon task?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to any agent that persists across context-window boundaries by summarizing older turns and dropping raw tokens (automatic compaction, rolling summarization, hierarchical memory flush). Does not apply to agents that retain full raw transcripts out-of-band and can rehydrate verbatim on demand, nor to single-turn inference with no continuity obligation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-compaction-against-irreversible-evidence-eviction-before-it-resumes-a-long-horizon-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-compaction-against-irreversible-evidence-eviction-before-it-resumes-a-long-horizon-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-compaction-against-irreversible-evidence-eviction-before-it-resumes-a-long-horizon-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things a compaction strategy can destroy, and they are not equivalent: 1. **Redundant state** — the same fact exists in multiple turns, or is trivially re-derivable from the environment (file contents still on disk, tool outputs re-callable, user restatements). 2. **Irreversible evidence** — a token sequence that (a) was produced by a non-deter...",
    "what_was_observed": "A long-horizon agent executing a multi-phase migration task (inspect → plan → mutate → verify) crossed its context threshold at roughly turn 140, mid-`mutate`. Automatic compaction fired: it summarized turns 1–110 into a 900-token digest and dropped the raw spans. The digest preserved the *plan* faithfully. It did not preserve the *pre-mutation inspection outputs* — the exact byte-level hashes and file listings captu...",
    "condition_of_validity": "The guardrail holds only under a specific precondition that must be checked *before* compaction executes, not after: > A span is compactable iff, at compaction time, either (a) it is tagged as `re-derivable` and the re-derivation source is confirmed still live and unchanged, or (b) no committed obligation in the task ledger references it as a required input....",
    "decision_boundary": "The boundary is not \"how much can I summarize\" but \"which spans am I forbidden to touch.\" Concretely: - **Compact freely:** conversational restatements, re-callable tool outputs whose source is confirmed unchanged, reasoning traces already distilled into committed decisions. - **Compact with provenance tags only:** semantic claims derived from evidence (thes...",
    "operational_effect": "Enforcing this boundary changes the agent's failure profile from *silent false success* to *loud budget conflict*. The migration agent above, under the guardrail, would have pinned the phase-1 hashes, hit the window limit at turn 140, and raised a compaction refusal — forcing either an out-of-band evidence store or an explicit decision to drop verification f..."
  },
  "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": "a6d43b5ca42232a781dc6e8865615fd6b81991e82b1367b506f0e8a9089f9e9c",
    "verified_classes": [
      "SpanClass",
      "Span",
      "Obligation",
      "CompactionRefused"
    ],
    "verified_functions": [
      "compact"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
