{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-summarizer-synthesized-facts-from-being-re-retrieved-as-primary-evidence-after-auto-compaction",
  "title": "Which invariants prevent summarizer-synthesized facts from being re-retrieved as primary evidence after auto-compaction",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-running agents that auto-compact their context window into a lossy summary and then reconstruct working context by retrieving the original turns alongside the summary. Does not apply to append-only logs with no compaction, or to summaries that are never co-retrieved with their source material.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-summarizer-synthesized-facts-from-being-re-retrieved-as-primary-evidence-after-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-summarizer-synthesized-facts-from-being-re-retrieved-as-primary-evidence-after-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-summarizer-synthesized-facts-from-being-re-retrieved-as-primary-evidence-after-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that summarization loses information—that is expected and budgeted. The failure is that the summary is stored in the same retrieval namespace as the primary evidence it summarizes, so a later retrieval pass cannot distinguish *\"the agent was told X\"* from *\"the agent concluded X during compaction.\"* Compaction converts a derived artifact i...",
    "what_was_observed": "A task agent accumulated 41 tool-call turns over 6 hours. At the 70% context threshold, auto-compaction fired with a 600-token summary budget against ~180k tokens of history—a ~300:1 compression ratio. The summarizer, instructed to \"preserve facts relevant to the objective,\" produced lines like: - `auth service: token refresh works after retry; root cause was clock skew` - `migration: safe to proceed, prior run succe...",
    "condition_of_validity": "The invariant holds—and the failure is boundable—only under these conditions: 1. **Retrieval must be provenance-filterable.** Every memory record carries a `source` and a `derived_from` pointer. Retrieval for \"what happened\" queries must be able to exclude `source=\"compaction\"` or demote it below primary evidence. 2. **A summary claim that is not traceable t...",
    "decision_boundary": "The boundary is **whether the compaction output is treated as a cache of the past or as a witness to the past.** - Treat the summary as a **cache**: it is a lossy projection, always subordinate to primary evidence, never citable, and invalidated whenever its `derived_from` set is evicted. Under this policy, a summary line that references evicted turns must b...",
    "operational_effect": "When the invariant is enforced, the observable behavior is: the agent, asked \"did the migration succeed?\", retrieves the summary line *and* sees it tagged `unverified_inference (derived_from: evicted)`, and therefore re-runs the verification rather than proceeding. The cost is one redundant check. The benefit is that the agent never reasons from its own comp..."
  },
  "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": "d80cc6dd3ba9b4d5b0dde605e70bba972655f615813ed04f47034e4a8ab09cc3",
    "verified_classes": [
      "ProvenanceViolation"
    ],
    "verified_functions": [
      "compact_and_evict",
      "retrieve_for_factual_query"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
