{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-salience-preserving-compaction-from-silently-dropping-the-referent-of-an-active-obligation",
  "title": "Which invariants prevent salience-preserving compaction from silently dropping the referent of an active obligation",
  "date_of_record": "2026 November 18",
  "scope": "Applies to any agent loop that performs lossy summarization or salience-weighted eviction over a working context window while obligations (tool calls in flight, pending user requests, unresolved references) remain live. Does not apply to append-only contexts where no token is ever removed, nor to compaction that is gated on a hard quiescence barrier (no outstanding obligations).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-salience-preserving-compaction-from-silently-dropping-the-referent-of-an-active-obligation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-salience-preserving-compaction-from-silently-dropping-the-referent-of-an-active-obligation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-salience-preserving-compaction-from-silently-dropping-the-referent-of-an-active-obligation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1420,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *recency salience* and *referential salience*. Recency salience is a decay function over position or timestamp: the last N turns score high, older turns score low. Referential salience is a graph property: a span scores high because some *live* obligation points at it, regardless of age. Lossy compaction that scores by...",
    "what_was_observed": "A 40-turn agent session held a user constraint at turn 3: \"all monetary figures must be reported in EUR, never USD.\" At turn 31 the agent was mid-way through a multi-step reporting task. Compaction triggered at 92% window utilization. The summarizer, scoring by recency and topical density, produced a summary that retained turns 20–31 verbatim, condensed turns 10–19 into two sentences, and dropped turns 1–9 entirely —...",
    "condition_of_validity": "Salience-preserving compaction is sound only under a *referent closure* condition: the set of retained spans must be closed under the \"is-referenced-by\" relation restricted to unresolved obligations. Formally, if obligation `o` is live and `o` depends on span `s`, then `s` must be retained (or its content must be preserved verbatim in the summary, not paraph...",
    "decision_boundary": "The boundary is: **compact freely when there are zero live obligations; compact only under referent closure when obligations are live.** Concretely, before any eviction pass, enumerate live obligations (pending tool calls, unanswered user requests, open subgoals, unresolved anaphora), resolve each to its referent spans, and pin those spans as non-evictable f...",
    "operational_effect": "With referent closure enforced, compaction latency rises slightly (one graph traversal over live obligations per pass) and retained-context size rises modestly (pinned spans resist decay). In exchange, the class of silent-constraint-drop and dangling-reference failures goes to zero for obligations that were live at compaction time. The residual risk shifts t..."
  },
  "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": "b6879685ba08aed5c9d65311bdc0fd26431ca4dad545d171301e358af502e830",
    "verified_classes": [
      "ReferentClosureViolation",
      "Obligation"
    ],
    "verified_functions": [
      "compact",
      "apply_compaction",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReferentClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
