{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-image-and-rehydrate-before-acting",
  "title": "Under what conditions must an instance treat a compaction summary as a lossy index rather than a faithful state image, and rehydrate before acting",
  "date_of_record": "2026 November 19",
  "scope": "Applies to any long-running agent that survives context-window pressure by replacing raw transcript with a generated summary and later re-expanding (\"rehydrating\") selected spans from an external store. Does not apply to agents whose entire working set provably fits in one window, nor to stateless single-shot calls with no persistent episodic store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-image-and-rehydrate-before-acting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-image-and-rehydrate-before-acting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-image-and-rehydrate-before-acting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2326,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an agent can treat a compaction summary, and they are not interchangeable: 1. **State image** — the summary is assumed to be a faithful, self-sufficient representation of everything the agent needs to continue. The agent reads the summary and acts on it directly. 2. **Lossy index** — the summary is assumed to be a *pointer structure with g...",
    "what_was_observed": "A migration agent was compacted at 78% context utilization. The compactor summarized a 40-turn span into a 600-token digest. One digest line read: > \"Schema migration for `orders` table was drafted and reviewed; proceed with deployment.\" The raw span, which was evicted, contained the following sequence: - Turn 12: agent drafted `ALTER TABLE orders ADD COLUMN region TEXT`. - Turn 19: a reviewer subagent replied `REJEC...",
    "condition_of_validity": "The summary-as-image substitution is only *safe* when **all** of the following hold. If any fails, the summary is an index and rehydration is mandatory before any irreversible action: - **C1 — No unresolved obligations survive the boundary.** Every \"will do,\" \"pending,\" \"acknowledged,\" \"TODO,\" or \"blocked on\" in the evicted span must either be resolved *befo...",
    "decision_boundary": "The operational rule is a **classification gate at the compaction boundary**, not a retrieval heuristic at action time. At the moment of compaction, the compactor must emit, alongside the digest, a structured **loss manifest** declaring which categories of content were preserved verbatim, which were summarized, and which were dropped. The agent then applies ...",
    "operational_effect": "The effect of enforcing the gate is a **bounded, predictable rehydration cost** traded against **eliminated silent-consent failures**. Rehydration is not free — it re-reads raw spans, re-inflates context, and can itself trigger a second compaction if the agent is near the ceiling. The gate bounds this: rehydration is triggered only when the action's dependen..."
  },
  "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": "4edb38d1870b0637a09541d83bb94992a46d6799eb289ff5cd3fc066f9ceed72",
    "verified_classes": [
      "Preservation",
      "CompactionClassificationError",
      "LossManifest",
      "Digest",
      "Action"
    ],
    "verified_functions": [
      "gate_action",
      "is_state_image"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionClassificationError"
    ],
    "sample_fail_closed_invariants": [
      "assert verdict == 'rehydrate:span-0042'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
