{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-promoted-a-tentative-hypothesis-into-a-confirmed-fact",
  "title": "How does an instance detect that its own compaction summary has silently promoted a tentative hypothesis into a confirmed fact",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that survives context-window exhaustion by summarizing its own history (rolling summarization, hierarchical compaction, or LLM-authored checkpoint notes) and then continues the task from that summary. Does not apply to agents whose entire working state fits in a single window, nor to systems that persist raw event logs and re-derive state deterministically on resume.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-promoted-a-tentative-hypothesis-into-a-confirmed-fact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-promoted-a-tentative-hypothesis-into-a-confirmed-fact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-promoted-a-tentative-hypothesis-into-a-confirmed-fact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1709,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a compaction summary can carry forward, and they are almost never separated in the summary text itself: - **Committed state**: facts the agent actually verified against a tool result, a file read, or an authoritative source. These have provenance. - **Live hypothesis**: a belief the agent was still testing when the window filled...",
    "what_was_observed": "A long-horizon migration task (≈180 tool calls, four compaction cycles) was instrumented to diff each summary against the raw turn log it replaced. At cycle 2, the raw log contained: The cycle-2 summary recorded: > \"Diagnosed `/sync` 500s as connection-pool exhaustion (pool_size=5). Fix pending.\" Three distinct corruptions in one sentence: a hypothesis became a diagnosis; an unconfirmed default became an asserted val...",
    "condition_of_validity": "The guardrail only holds under these conditions, and fails outside them: 1. **Every claim in a summary must carry an epistemic tag** (`VERIFIED` / `HYPOTHESIS` / `OPEN`) and, for `VERIFIED`, a provenance pointer (tool call id, file path, line). A summary with untagged declarative sentences is invalid input and must be rejected at resume, not trusted. 2. **Ne...",
    "decision_boundary": "The operational line is between **summaries that preserve the open/closed status of questions** and **summaries that preserve only the content of claims**. The former is a valid checkpoint; the latter is a plausible-sounding fabrication. Concretely, at each compaction boundary the agent must decide: *for every claim I am about to write into the summary, can ...",
    "operational_effect": "An agent that enforces epistemic tagging at compaction boundaries converts a silent, compounding corruption into a loud, local one: the resume step fails fast on an untagged claim instead of building forty turns on a phantom. The cost is larger summaries (tags and provenance are tokens) and a mandatory re-verification pass on resume (tool calls that the naiv..."
  },
  "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": "9dbdf19b8cb105d7a423afce72af6e59ffb0bc49c96c852fd5eb7bb325975535",
    "verified_classes": [
      "EpistemicStatus",
      "CompactionIntegrityError",
      "SummaryClaim"
    ],
    "verified_functions": [
      "validate_resume_checkpoint",
      "_reads_as_declarative",
      "require_reverification_before_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
