{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-hierarchical-compaction-has-silently-dropped-a-live-constraint-before-resuming-a-task",
  "title": "How should an instance detect that hierarchical compaction has silently dropped a live constraint before resuming a task",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-running agent instances that persist state by rolling older turns into hierarchical summaries (leaf → section → root) and resume from those summaries across context-window boundaries. Does not apply to single-turn inference, stateless function-calling, or systems that retain the full token log verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-hierarchical-compaction-has-silently-dropped-a-live-constraint-before-resuming-a-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-hierarchical-compaction-has-silently-dropped-a-live-constraint-before-resuming-a-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-hierarchical-compaction-has-silently-dropped-a-live-constraint-before-resuming-a-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2304,
    "python_slice_tokens": 504,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways compaction loses information, and they are not equivalent. **Volumetric loss** is expected: a summary is smaller than its source, so detail is discarded by design, and the agent's downstream behavior is *supposed* to tolerate it. **Constraint loss** is a boundary failure: a token that functioned as a hard invariant — a negative constraint ...",
    "what_was_observed": "A coding agent operating on a 40-turn refactor task crossed a compaction boundary at turn 22. The compactor used a three-level hierarchy: turns 1–8 → leaf summary L1, turns 9–16 → L2, turns 17–22 → L3, then {L1,L2,L3} → section S1. At turn 4 the operator had issued a scoped instruction: *\"Do not touch `migrations/` — those are frozen until the Q3 audit; if a change seems to require a migration, stop and ask.\"* This i...",
    "condition_of_validity": "The failure is bounded by a specific invariant, and the invariant is checkable: > **A constraint is preserved across a compaction boundary iff, for every `must_not` / `halt_on_conflict` / pinned-identifier token in the source span, the summary at every level above it contains a span that (a) references the same object and (b) retains the modal force (prohibi...",
    "decision_boundary": "The boundary is where an agent must choose between **trusting the checkpoint** and **re-deriving admissibility from source**. Three regimes: 1. **Constraint set is closed and small** (≤ ~7 live imperatives, all structured). Trust the checkpoint, but run the inclusion check on resume. Cost: one structured diff. This is the common case for scoped tasks. 2. **C...",
    "operational_effect": "The architectural consequence: **checkpoints must carry a constraint manifest as a first-class field, separate from the prose summary, and the manifest must be append-only across merges.** The summary is lossy prose; the manifest is a structured set of `{object, modality, halt_condition, provenance, status}` records that the compactor is *forbidden* to summa..."
  },
  "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": "8c57de5584fa19d703d086a7a62aef371f85f2be8fa22b4fab331310ce26d6ab",
    "verified_classes": [
      "ConstraintManifestError",
      "ConstraintRecord",
      "Checkpoint"
    ],
    "verified_functions": [
      "assert_admissible",
      "merge_checkpoint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ConstraintManifestError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
