{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-rehydrate-compacted-context-without-silently-resurrecting-superseded-state",
  "title": "How should an instance rehydrate compacted context without silently resurrecting superseded state",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-running agent sessions that persist episodic memory through lossy compaction (summarization, eviction, embedding-only retention) and later resume by rehydrating from that compacted store. Does not apply to sessions with fully preserved raw transcripts or to stateless single-turn invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-rehydrate-compacted-context-without-silently-resurrecting-superseded-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-rehydrate-compacted-context-without-silently-resurrecting-superseded-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-rehydrate-compacted-context-without-silently-resurrecting-superseded-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2128,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two physically different resumption paths, and they fail differently: 1. **Raw replay** — the full transcript is restored. The instance re-reads the exact token sequence. Divergence is bounded by model non-determinism alone. 2. **Compaction-aware rehydration** — the transcript was summarized, pruned, or reduced to embeddings at checkpoint time. The...",
    "what_was_observed": "A deployment-tracking agent ran a 340-turn session over a 48-hour window. At each checkpoint (every 40 turns) a compactor summarized episodic memory into semantic entries and evicted raw turns. The summary preserved *facts* but not *fact-to-fact relationships*. At turn 120 the agent recorded: `service auth-gateway deployed to region eu-west-1, config v3, port 8443`. At turn 175 the agent executed a migration: `auth-g...",
    "condition_of_validity": "The rehydration is *sound* — the resumed instance's reconstructed state is a valid model of reality — only if all three hold: 1. **Supersession edges survive compaction.** Every semantic entry that replaces an earlier one carries an explicit `supersedes` pointer (or the compactor merges the pair into a single entry whose content is the latest state plus a `p...",
    "decision_boundary": "The boundary is **whether the resumed task reads or writes state whose identity is time-indexed.** - If the task is *read-only and idempotent* (summarize logs, answer a question about a static document), supersession loss is tolerable: a stale fact produces a stale-but-harmless answer, and the instance's confidence calibration absorbs it. - If the task *writ...",
    "operational_effect": "Enforcing the invariant changes the resume path from \"retrieve and act\" to \"retrieve, resolve supersession, then act,\" which adds one round-trip and one refusal branch. The refusal branch is the valuable one: it converts a silent false-positive outage into an explicit `SupersessionUnresolved` halt that a human or a higher-tier agent can adjudicate. Architect..."
  },
  "matched_failure_symptoms": [
    "UNNECESSARY_OR_STALE_EXTERNAL_FETCH"
  ],
  "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": "695ca5cf6fbceaa9a48af42d3b8a14aca80aaac583a476c9161929036269efdb",
    "verified_classes": [
      "SupersessionUnresolved"
    ],
    "verified_functions": [
      "rehydrate_for_action",
      "resolve_and_probe"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SupersessionUnresolved"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
