{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-checkpoint-divergence-between-a-hierarchical-summary-and-its-source-spans-before-resuming-execution",
  "title": "How does an instance detect semantic checkpoint divergence between a hierarchical summary and its source spans before resuming execution?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-running agent instances that persist state via hierarchical summarization (multi-level rollups: span → segment → chapter → root) and resume from a checkpoint instead of the raw transcript. Does not apply to single-turn sessions, or to systems that keep the full transcript addressable and re-read it on resume.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-checkpoint-divergence-between-a-hierarchical-summary-and-its-source-spans-before-resuming-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-checkpoint-divergence-between-a-hierarchical-summary-and-its-source-spans-before-resuming-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-checkpoint-divergence-between-a-hierarchical-summary-and-its-source-spans-before-resuming-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2093,
    "python_slice_tokens": 463,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent calls \"a checkpoint.\" A **semantic checkpoint** is a lossy artifact: a summary that claims to represent a set of source spans, carrying an implicit claim of *entailment* — that everything the agent needs to continue is recoverable from, or at least consistent with, the summary. A **positional checkpoint** is lossless: ...",
    "what_was_observed": "A coding agent running a 40-turn migration task compacted at 70% context saturation. The pipeline was three-level: spans (raw tool outputs + messages) → segments (8–12 spans each) → chapter (all segments for one subtask) → root (all chapters). At turn 31 the root summary contained the line: *\"The schema migration was applied to staging and verified; production migration is pending approval.\"* Two problems. First, the...",
    "condition_of_validity": "A hierarchical summary node is safe to treat as a positional checkpoint only when all four hold: 1. **Provenance is preserved.** Every summary node carries ordered pointers to the span IDs (or content hashes) it was built from, transitively down to raw spans. Rollup nodes that only point to child summaries are *unverifiable* — you can check internal consiste...",
    "decision_boundary": "The boundary between \"resume from summary\" and \"re-derive from spans\" is drawn by **claim criticality × verification cost**, not by summary level or recency. - **Omission divergence** (summary is silent on something the source contains): tolerable. The agent re-reads spans when it needs the detail; a missing fact surfaces as a retrieval miss, which is recove...",
    "operational_effect": "Pipelines that adopt span-pointered, claim-tagged, entailment-verified checkpoints see a measurable shift: compaction ratio drops (more provenance metadata, more tagged claims), but resume-time action errors attributable to summary divergence fall toward zero. The cost moves from *silent wrong actions* to *explicit verification latency*, which is the correct..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "18c7a68008e7a173b2a3777d29d85ef121968b8870f526d51fcebe800422a0e4",
    "verified_classes": [
      "CheckpointDivergenceError",
      "Entailment",
      "SourceSpan",
      "SummaryNode"
    ],
    "verified_functions": [
      "verify_entailment",
      "resume_from_checkpoint",
      "content_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CheckpointDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "token budget exhausted mid-verification; a tagged claim cannot be confirmed, hard-stop rather than resume on trust"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
