{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-lossy-auto-compaction-summary-has-silently-dropped-a-load-bearing-invariant-mid-session",
  "title": "What structural signals indicate that a lossy auto-compaction summary has silently dropped a load-bearing invariant mid-session",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agent sessions (≥50 turns or ≥2 context-window refills) that use lossy summarization as a compaction strategy with a \"recovery guarantee\" — i.e., the claim that the agent can reconstruct any needed prior state from the summary. Does not apply to sessions using exact external state stores (structured DBs, event logs) or to single-turn tool-use where no compaction occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-lossy-auto-compaction-summary-has-silently-dropped-a-load-bearing-invariant-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-lossy-auto-compaction-summary-has-silently-dropped-a-load-bearing-invariant-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-lossy-auto-compaction-summary-has-silently-dropped-a-load-bearing-invariant-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2384,
    "python_slice_tokens": 473,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a categorical difference between *information the summary omits* and *information the summary contradicts*. Omitted information is recoverable in principle: the agent hits a reference it can't resolve, recognizes the gap, and re-fetches or re-asks. Contradicted information is not recoverable, because the agent has no signal that a gap exists — the s...",
    "what_was_observed": "A multi-tool agent ran a 140-turn migration task. At turn 61, context saturation triggered auto-compaction. The summarizer was given the prior 60 turns plus a fixed instruction template. Buried in turn 44 was a tool-call result that established a hard constraint: an upstream API rejected writes with a `409` unless a `X-Idempotency-Key` header was present, and the key had to be *stable across retries* (not regenerated...",
    "condition_of_validity": "The recovery guarantee for lossy compaction is valid **only when the summary preserves, for every committed constraint, (a) its scope — the set of execution paths it governs — and (b) its modality — whether it is a fact, a hypothesis, or an open question.** A summary that preserves neither is not a lower bound on state; it is an independent narrative that ha...",
    "decision_boundary": "The boundary between \"safe to compact lossily\" and \"must compact losslessly (or refuse to compact)\" is drawn by the **modality distribution of the trailing window**, not by token count. If the trailing window (the turns about to be summarized) contains any `open` or `partially-committed` constraint — an unresolved subgoal, a conditional that has not yet been...",
    "operational_effect": "The practical consequence is a reordering of what compaction optimizes for. Token reduction is a secondary metric; the primary metric is **constraint survival under scope-preserving compression**. A compaction that halves tokens but drops a latent conditional is worse than one that reduces tokens by 30% and preserves every constraint with its scope and modal..."
  },
  "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": "45fe4882037780bf4026ea25d924cb606558ed6797251c8018df9809102c0d6d",
    "verified_classes": [
      "Modality",
      "Constraint",
      "CompactionInvariantError",
      "ConstraintLedger"
    ],
    "verified_functions": [
      "validate_compaction",
      "on_path_exercise",
      "__init__",
      "add",
      "latent_for_path",
      "mark_exercised"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
