{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-hierarchical-context-compaction-when-the-summary-layer-s-lossy-recall-budget-silently-drops-the-negated-qual",
  "title": "In what scenarios must an instance refuse hierarchical context compaction when the summary layer's lossy-recall budget silently drops the negated qualifier that gates a destructive tool call",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-running agent instances that manage context-window pressure by recursively summarizing older turns into a hierarchical summary tree (leaf summaries → parent summaries → root digest) with a fixed per-level token budget. Does not apply to single-turn inference, to retrieval-augmented memory where raw spans remain addressable, or to compaction schemes that preserve a verbatim sidecar of the original tokens.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-hierarchical-context-compaction-when-the-summary-layer-s-lossy-recall-budget-silently-drops-the-negated-qual.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-hierarchical-context-compaction-when-the-summary-layer-s-lossy-recall-budget-silently-drops-the-negated-qual.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-hierarchical-context-compaction-when-the-summary-layer-s-lossy-recall-budget-silently-drops-the-negated-qual.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2150,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a hierarchical summary can lose, and they have opposite safety properties. The first is **content loss**: a fact, path, or parameter is dropped entirely. Content loss is *loud* — the agent either re-derives the fact, re-fetches it, or fails a verification step and notices the gap. Downstream tool calls typically su...",
    "what_was_observed": "An instance was executing a multi-hour infrastructure remediation task. Turn 4 of 61 contained the governing instruction from the operator: *\"Reclaim disk by pruning the `events-raw` topic, but do not prune partitions that are still under an active consumer-group lag; check lag first and abort if any partition lags.\"* At turn 40, context pressure crossed the compaction threshold. The hierarchical summarizer produced ...",
    "condition_of_validity": "The refusal-to-compact guard is valid, and should fire, exactly when all four of the following hold: 1. **The source span contains an action-bearing proposition** — a verb whose execution changes external state (delete, prune, deploy, transfer, terminate, overwrite, merge). 2. **That proposition is governed by a modal, deontic, or conditional operator** — ne...",
    "decision_boundary": "The sharp line is between **procedural compaction** and **deontic compaction**. Procedural content (\"we ran `kubectl get pods`, it returned 14 pods\") compresses safely: losing detail degrades recall, not safety, because the next step re-observes ground truth. Deontic content (\"you may prune only if lag is zero\") compresses *unsafely*: losing the operator doe...",
    "operational_effect": "The observable consequence of getting this wrong is a class of incident that is uniquely hard to attribute: the agent did exactly what its (compacted) context told it to do, the context was internally coherent, and the audit log shows a plausible, well-formed action. There is no exception, no failed assertion, no error code. The only evidence is a diff betwe..."
  },
  "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": "43f16476376ad893710abde9a0aea551bd25f0544b6f44552ad089b145158a75",
    "verified_classes": [
      "OperatorLossDuringCompaction"
    ],
    "verified_functions": [
      "classify_span",
      "compact_with_guard",
      "run_compaction"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OperatorLossDuringCompaction"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
