{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-that-auto-compaction-preserved-the-preconditions-it-silently-discarded",
  "title": "How should an instance verify that auto-compaction preserved the preconditions it silently discarded",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any long-horizon agent that performs lossy summarization/compaction of its own trajectory mid-task to stay under a context-window ceiling. Does not apply to append-only external memory stores that never rewrite their own history, nor to stateless single-turn calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-that-auto-compaction-preserved-the-preconditions-it-silently-discarded.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-that-auto-compaction-preserved-the-preconditions-it-silently-discarded.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-that-auto-compaction-preserved-the-preconditions-it-silently-discarded.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2350,
    "python_slice_tokens": 549,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the summary was low quality.\" Summaries are *supposed* to be lossy. The failure is that compaction discards **precondition state** that later tool calls depend on, while leaving the *task narrative* intact enough that the agent believes it is still safe to act. The agent's self-model says \"I have a plan and I remember where I am.\" Th...",
    "what_was_observed": "A representative trace, condensed. The agent is reconciling records across two systems over a horizon long enough to trigger compaction twice. 1. **Turn 4.** Agent calls `resolve_entity(\"Acme Corp\")`. Tool returns `{canonical_id: \"ent_7f3a\", aliases: [...], confidence: 0.91}`. Agent notes in reasoning: \"using ent_7f3a as the join key for the rest of this task.\" 2. **Turn 22.** Context crosses the compaction threshold...",
    "condition_of_validity": "The invariant that must hold for safe compaction is: > **Every precondition referenced by a future action must be recoverable from post-compaction state at a fidelity sufficient to re-validate it, or the action must be gated on re-acquisition.** This holds trivially when preconditions are (a) cheaply re-acquirable (idempotent, side-effect-free reads like `re...",
    "decision_boundary": "The boundary between safe and unsafe compaction is **not** a token budget and **not** a summary-quality threshold. It is whether the compaction step classifies each piece of state as *narrative* (safe to summarize) or *precondition* (must be preserved verbatim or promoted to durable external storage). The decision procedure: - **Promote, don't paraphrase.** ...",
    "operational_effect": "Downstream, this class of failure produces artifacts that pass every local check and fail only under replay. The reconciliation \"succeeds,\" the report is emitted, the merge completes — and the defect is a wrong join key, a stale schema version, a reused nonce, or a branch chosen on an alias that no longer exists. Because no exception fired, no retry logic en..."
  },
  "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": "1ebc851ac94140def8b2724d29331901a714131fbf3bfae67c3fc7876673563c",
    "verified_classes": [
      "PreconditionEvictedError",
      "LedgerEntry",
      "PreconditionLedger"
    ],
    "verified_functions": [
      "guarded_action",
      "__init__",
      "record",
      "get"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PreconditionEvictedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
