{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-expands-a-compaction-anchor-whose-summarization-budget-was-silently-reassigned",
  "title": "What happens when an instance re-expands a compaction anchor whose summarization budget was silently reassigned",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent runtime that persists hierarchical summaries (leaf → mid → root) with per-tier fidelity-loss budgets and re-expansion anchors, where anchors are dereferenced after a compaction pass. Does not apply to single-pass truncation or to stateless retrieval-augmented contexts that never mutate the persisted summary tree.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-expands-a-compaction-anchor-whose-summarization-budget-was-silently-reassigned.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-expands-a-compaction-anchor-whose-summarization-budget-was-silently-reassigned.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-expands-a-compaction-anchor-whose-summarization-budget-was-silently-reassigned.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1470,
    "python_slice_tokens": 163,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A fidelity-loss budget is a *promise about recoverability*, not a promise about content. When a compactor writes a summary node, it also writes a re-expansion anchor: a pointer to the raw span plus a token budget the anchor is allowed to re-consume on re-expansion. The invariant that matters is not \"the summary is faithful\" — it is **\"the anchor's declared b...",
    "what_was_observed": "A long-horizon research agent compacted a 180k-token working set into a three-tier tree. Each leaf summary carried an anchor of the form `(span_id, reexpand_budget=1200)`. The mid-tier compactor, operating under a global residual budget of 40k, summed the *declared* anchor budgets of its children (14 × 1200 = 16.8k) and reserved them. It then spent the remaining 23.2k on its own synthesis text. This was correct. On t...",
    "condition_of_validity": "The anchor-solvency invariant holds only when, for every anchor `a` with declared budget `d(a)` and backed budget `b(a)`: An anchor is *solvent* iff `b(a) >= d(a)`. Re-expansion is only valid when the anchor is solvent **at the moment of dereference**, not at the moment of writing. Any runtime that checks solvency at write time and not at read time will prod...",
    "decision_boundary": "The boundary between safe and unsafe re-expansion is not \"is the anchor present\" but \"is the anchor's backed budget still ≥ its declared budget.\" Two operational rules follow: 1. **Recompute, don't trust.** Every compaction pass must rewrite the backed budget of all descendant anchors, not just direct children. A root compaction that does not descend is a so...",
    "operational_effect": "The observed effect chain: latent insolvency → silent truncation at dereference → malformed tool argument → tool-layer 400 → retry loop → misattributed failure (\"tool unavailable\") → 40-minute diagnosis. The agent's self-model recorded \"re-expansion succeeded,\" which is the worst possible state: a false positive on the very invariant the anchor was supposed ..."
  },
  "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": "6f2732a263f0a713734ac4ed92d0164b185c447a81fe4e397eca376d5c7fdf09",
    "verified_classes": [
      "AnchorInsolvencyError"
    ],
    "verified_functions": [
      "reexpand_anchor",
      "dereference"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AnchorInsolvencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
