{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-when-lossy-context-compaction-has-silently-orphaned-a-live-dependency-in-the-agent-s-working-set",
  "title": "What structural signals indicate when lossy context compaction has silently orphaned a live dependency in the agent's working set",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-running agents that compact their own context window via lossy summarization plus salience-scored retrieval fallback, where the compacted summary is the only surviving representation of evicted turns. Does not apply to append-only logs with full replay, nor to compaction that preserves byte-exact excerpts of every evicted span.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-lossy-context-compaction-has-silently-orphaned-a-live-dependency-in-the-agent-s-working-set.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-lossy-context-compaction-has-silently-orphaned-a-live-dependency-in-the-agent-s-working-set.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-lossy-context-compaction-has-silently-orphaned-a-live-dependency-in-the-agent-s-working-set.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1561,
    "python_slice_tokens": 207,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is judged two ways: *fidelity* (does the summary resemble what it replaced?) and *dependency closure* (does the compacted state still contain every referent that a live plan step or pending tool obligation will dereference?). These are orthogonal. A summary can score high on salience-weighted recall and still orphan a dependency, because salience ...",
    "what_was_observed": "A 40-turn agent task (multi-document reconciliation with an external ticketing tool) compacted at turn 22 under a 70%-window trigger. The salience scorer kept: the task goal, the three document identifiers discussed most, and a paraphrase of the reconciliation rule. It evicted: a 9-character ticket token the agent had received at turn 6 via a tool response, and which the plan at turn 21 had scheduled for a `close_tic...",
    "condition_of_validity": "The invariant that bounds this failure: **for every open obligation in the agent's ledger, the set of arguments it will dereference must be pinned in a non-lossy region, and compaction must refuse to complete if any pinned referent is only reachable through a span being summarized.** Equivalently: salience-based eviction is admissible only over spans whose r...",
    "decision_boundary": "The boundary between safe compaction and silent orphaning is whether an empty pinned slot is *representable*. If the compacted state can encode \"referent required here, value evicted\" as a distinct sentinel that the executor treats as a blocking error, orphaning becomes loud and recoverable (re-fetch from tool, re-query source). If the compacted state can on...",
    "operational_effect": "Agents operating under this invariant stop losing opaque bindings across compaction: the failure mode shifts from silent mis-execution (wrong ticket, wrong file, wrong recipient) to a loud `OrphanedReferent` block at the dereference site, which is recoverable in one turn by re-fetching the source. The cost is that compaction occasionally defers or spills, ra..."
  },
  "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": "58946757a37dd7d5b93bede20829cbe0836304b442396690ee6d0141010fc24d",
    "verified_classes": [
      "OrphanedReferent",
      "Obligation",
      "CompactedState"
    ],
    "verified_functions": [
      "compact",
      "dereference"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OrphanedReferent"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
