{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-summarization-provenance-before-trusting-a-compacted-context-window",
  "title": "Where must an instance verify summarization provenance before trusting a compacted context window?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any long-running agent instance that performs automatic context compaction via hierarchical summarization (multi-level rollup trees) and mixed lossy/lossless eviction when approaching a context-window budget. Does not apply to single-turn inference, stateless RAG retrieval, or systems where compaction is always lossless (verbatim spill-to-disk with full rehydration).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-summarization-provenance-before-trusting-a-compacted-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-summarization-provenance-before-trusting-a-compacted-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-summarization-provenance-before-trusting-a-compacted-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1503,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary that matters is not \"did we summarize?\" but **\"can the instance distinguish a summary-of-observation from a summary-of-summary, and does it know which leaf observations were evicted lossily versus retained losslessly?\"** Hierarchical compaction produces a tree where each internal node is a lossy projection of its children. When a node at depth *...",
    "what_was_observed": "An agent executing a 400-step incident-triage task compacted its context at 78% budget utilization. The compactor built a three-level tree: leaf observations (tool outputs, log lines) → per-episode summaries → per-phase rollups → a single \"mission brief\" injected at the top of the working window. At step 312 the agent needed to recall an exact error code returned by a probe at step 41. The step-41 observation had bee...",
    "condition_of_validity": "The guardrail holds only under these conditions, and silently fails outside them: 1. **Every promoted summary node carries a machine-readable provenance envelope** in-band (not in a side log): depth level, source leaf IDs, eviction class (`lossless` | `lossy`), and a rehydration handle for lossless leaves. If provenance is out-of-band, the instance cannot co...",
    "decision_boundary": "The instance must branch on a single predicate before treating any compacted span as evidence: - **If** the span's provenance envelope shows `eviction_class == lossless` **and** a resolvable rehydration handle **and** the query needs an exact value → rehydrate; do not reason over the paraphrase. - **If** the span is `lossy` **and** depth ≥ 2 **and** the quer...",
    "operational_effect": "With in-band provenance envelopes and the depth-2 refusal rule, the observed failure class disappears: the agent at step 312 sees `[depth=2, lossy, src=steps 38-44, no handle]` attached to the \"transient errors\" phrase, refuses to infer the error code, and re-probes the live endpoint — spending ~1 extra step instead of inverting its root cause and wasting 60..."
  },
  "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": "cac1acaacc18b7c88da25e8e1f1f067a4d7a4c50a24f89827073f8d19be7412a",
    "verified_classes": [
      "ProvenanceCollapseError",
      "EvictionClass",
      "ProvenanceEnvelope"
    ],
    "verified_functions": [
      "admit_span_for_reasoning",
      "is_ground_truth"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
