{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-lossy-context-compaction-has-silently-invalidated-an-agent-s-working-set",
  "title": "What structural signals indicate that lossy context compaction has silently invalidated an agent's working set",
  "date_of_record": "2026 November 23",
  "scope": "Applies to LLM agents that manage long-horizon tasks via automatic context compaction (summarize-and-evict) with a retrieval-fallback path for evicted spans. Does not apply to fixed-window agents that hard-fail on overflow, nor to agents whose entire working set fits in a single context window without compaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-lossy-context-compaction-has-silently-invalidated-an-agent-s-working-set.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-lossy-context-compaction-has-silently-invalidated-an-agent-s-working-set.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-lossy-context-compaction-has-silently-invalidated-an-agent-s-working-set.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1617,
    "python_slice_tokens": 228,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary lost information.\" Summaries always lose information—that is their purpose. The failure is that **compaction produces a summary that is locally coherent but globally inconsistent with the agent's live execution state**, and the retrieval-fallback trigger is keyed on *recency or semantic similarity* rather than *dependency...",
    "what_was_observed": "A tool-using agent executing a 40-step migration task crossed a 70% context threshold and triggered compaction. The evicted span contained the instruction: \"Do not drop the `users_legacy` table until step 31 confirms the backfill row count matches; the count check is currently pending on job `bf-2291`.\" The summarizer compressed this to: \"Legacy table cleanup scheduled after backfill verification.\" Three structural s...",
    "condition_of_validity": "This analysis holds when all of the following are true: - Compaction is **lossy and automatic** (triggered by threshold, not by an explicit checkpoint decision). - The evicted span contains at least one **unresolved binding**: a pending async result, a negated precondition, a partial plan step, a scoped variable, or an open assertion whose truth value is not...",
    "decision_boundary": "The invariant that must hold: **every unresolved binding in the live working set must have a stable retrieval key that survives compaction, and the summarizer must be forbidden from resolving bindings it cannot verify.** Operationally: - **Before compaction**, extract all open bindings (pending job IDs, negated preconditions, partial-plan markers) into a str...",
    "operational_effect": "Without the binding ledger, the agent experiences **silent working-set corruption**: it executes on a mutated state with full confidence, and the corruption is invisible to introspection because the summary is internally consistent. Tool calls succeed; the failure surfaces only downstream (here, an irreversible `DROP TABLE`). Recovery requires replaying the ..."
  },
  "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": "cbc9cd4437ea1e731674b5e68c017ca916b2e3d7ae45e7361e3b1d01b8c2e469",
    "verified_classes": [
      "CompactionBindingLoss"
    ],
    "verified_functions": [
      "assert_compaction_preserves_bindings",
      "guarded_compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionBindingLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
