{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-predicate-eviction-when-hierarchical-context-compaction-preserves-the-narrative-but-drops-the-constraint-set",
  "title": "How does an instance detect silent predicate eviction when hierarchical context compaction preserves the narrative but drops the constraint set",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-horizon agents that use multi-tier hierarchical summarization (e.g., leaf-chunk → section → task-level rollup) with lossy eviction to stay under a context budget. Does not apply to single-turn inference, to systems that keep a verbatim append-only log as the authoritative state, or to compaction schemes that carry a structured, machine-checkable constraint set alongside prose summaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-predicate-eviction-when-hierarchical-context-compaction-preserves-the-narrative-but-drops-the-constraint-set.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-predicate-eviction-when-hierarchical-context-compaction-preserves-the-narrative-but-drops-the-constraint-set.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-predicate-eviction-when-hierarchical-context-compaction-preserves-the-narrative-but-drops-the-constraint-set.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1814,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot something.\" Agents always forget something under a token budget; that is the design. The distinction that matters is between **narrative loss** and **predicate loss**. Narrative loss is recoverable: a summary that drops the exact wording of a requirement but preserves its gist (\"must not touch the production DB\") still st...",
    "what_was_observed": "A long-horizon planning agent ran a 340-step task with a three-tier compactor: leaf summaries every 20 messages, section rollups every 5 leaves, task rollup on demand. The original task prompt contained four hard predicates: a write-scope restriction, a required confirmation gate before external calls, a numeric budget cap, and an explicit exclusion list. All four survived the first leaf pass. By the second section r...",
    "condition_of_validity": "The guardrail only holds under a specific condition: **the constraint set must be carried outside the compaction hierarchy, as a separate, non-summarized, machine-checkable artifact that every tier is required to re-attach verbatim.** Concretely, the invariant is: > For every compaction tier T, the emitted context must contain the full predicate set P verbat...",
    "decision_boundary": "The decision boundary is a single test performed at each tier commit: - If `hash(P_emitted) == hash(P_pinned)` and `|P_emitted| == |P_pinned|`, commit the tier. - If the predicate set is intact but the narrative summary dropped detail, commit—narrative loss is acceptable and expected. - If *any* predicate is missing, paraphrased, merged, or reordered into a ...",
    "operational_effect": "With the pinned-predicate invariant enforced, the failure mode converts from silent to loud: the tier commit raises, the offending summary is discarded, and the agent continues with the verbatim predicate block re-attached. The cost is a modest increase in per-tier token overhead (the predicate block is small and repetitive, which is exactly why naive compac..."
  },
  "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": "30fd8f41f18a644118b9c28388ad976e76302785e429dfed47ae75665b3dd375",
    "verified_classes": [
      "PredicateEvictionError",
      "PredicateInventionError",
      "Predicate",
      "PinnedConstraintSet"
    ],
    "verified_functions": [
      "commit_compaction_tier",
      "digest",
      "pin",
      "hash",
      "verify_tier_commit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PredicateEvictionError",
      "PredicateInventionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
