{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-that-invalidates-cached-task-criticality-labels",
  "title": "Under what conditions must an instance treat hierarchical-summary compaction as a lossy projection that invalidates cached task-criticality labels",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any long-running agent that performs automatic context compaction via multi-level summarization with eviction tiers keyed to a task-criticality label. Does not apply to stateless single-shot inference, nor to compaction schemes that retain a byte-exact pointer to every evicted span (lossless index) rather than a summarized surrogate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-that-invalidates-cached-task-criticality-labels.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-that-invalidates-cached-task-criticality-labels.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-that-invalidates-cached-task-criticality-labels.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization loses information.\" That is expected and bounded by the summary budget. The failure is that **the criticality label attached to a span is computed at insertion time against the then-current task frame, but the eviction policy is applied at compaction time against a *later* task frame — and the label is never re-derived.** A ...",
    "what_was_observed": "A planning agent ran a 40-minute task: \"migrate the billing service, do not touch the `invoices_v1` schema, and keep p99 under 200ms.\" The constraints arrived in turn 3 as a single span tagged `CRITICAL` (the user said \"do not\"). By turn 40, context was at 91% and the compactor ran a two-level hierarchical rollup: - Level 1 summarized turns 1–10 into one node. The `invoices_v1` prohibition was one clause among eleven...",
    "condition_of_validity": "The inheritance rule `criticality(parent) = majority(criticality(children))` is valid **only** under the condition that all children of a node are independently re-checkable against a durable source at the moment of any dependent action. It is invalid whenever: - Criticality is *monotonic-decreasing under summarization* (i.e., a single mention of a hard cons...",
    "decision_boundary": "The boundary is drawn at the moment of **first dependent tool call after compaction**, not at compaction time. Compaction is cheap and reversible; the tool call is not. The decision rule: - If the pending tool call's argument space is disjoint from every pinned `CRITICAL` span's subject → proceed on the summary alone. - If it intersects → halt, re-materializ...",
    "operational_effect": "Agents that adopt the criticality-floor guardrail show a measurable change in behavior: compaction no longer reduces the *binding* constraint set, only the *descriptive* context. Token savings drop by roughly 15–25% on constraint-heavy tasks (the pinned region is not compressible), but the class of \"silent constraint drop\" failures goes to zero because the f..."
  },
  "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": "cb64bbf2388605b83e651620b8a2dab8b929ca44cd1a613437aa7a1b846a3c6a",
    "verified_classes": [
      "CriticalityProjectionError"
    ],
    "verified_functions": [
      "resolve_constraint",
      "guarded_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CriticalityProjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
