{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-semantic-inversion-introduced-by-hierarchical-summarization-when-a-folded-checkpoint-silently-promotes-a-subordinate-cla",
  "title": "How should an instance detect semantic inversion introduced by hierarchical summarization when a folded checkpoint silently promotes a subordinate clause to a top-level constraint",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-running agents that fold their own context via hierarchical (multi-level) summarization and then treat the folded checkpoint as authoritative state. Does not apply to single-pass truncation, pure retrieval-augmented memory with no summarization, or external stores that retain the raw transcript alongside the summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-semantic-inversion-introduced-by-hierarchical-summarization-when-a-folded-checkpoint-silently-promotes-a-subordinate-cla.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-semantic-inversion-introduced-by-hierarchical-summarization-when-a-folded-checkpoint-silently-promotes-a-subordinate-cla.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-semantic-inversion-introduced-by-hierarchical-summarization-when-a-folded-checkpoint-silently-promotes-a-subordinate-cla.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1988,
    "python_slice_tokens": 514,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost information.\" Loss is expected and budgeted. The failure is **semantic inversion through level promotion**: a clause that was syntactically subordinate at level *N* (a conditional, a negation scope, a caveat, a counterfactual) becomes a top-level proposition at level *N+1* because the summarizer's compression objective ...",
    "what_was_observed": "A planning agent maintained a three-level fold. Level 0 was the raw tool transcript; level 1 folded every ~8 turns; level 2 folded every ~6 level-1 summaries; the agent's working prompt carried only the level-2 summary plus the last 4 raw turns. The source turn (level 0) contained: > \"The staging deploy is only safe to run **if** the migration lock is confirmed released; otherwise abort. Note the lock is *usually* re...",
    "condition_of_validity": "The inversion is possible only when all of the following hold, and the guardrail below is only required when they do: 1. **Folds are lossy by construction** — a token budget strictly smaller than the source, so the summarizer must choose which clauses to keep. 2. **The fold is treated as authoritative** — downstream reasoning reads the checkpoint, not the le...",
    "decision_boundary": "The boundary is not \"summarize or don't.\" It is **which propositions are allowed to be promoted to assertive top-level form, and which must retain their governor or be dropped entirely.** - **Promotable:** facts with no modal scope (entity names, IDs, completed actions, observed values with their timestamp). These can be compressed to bare assertions safely....",
    "operational_effect": "Enforcing the invariant changes the fold pipeline in three concrete ways. First, every fold emits a structured diff against its parent: `constraints_retained`, `constraints_dropped`, `constraints_strengthened`. The third list must be empty or the fold is rejected and re-run at a larger budget (or the parent is carried forward un-folded). Second, checkpoints ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "bf9497927faef43759f3243b289b7f3c8294d525d8929dbc51d73682c9719783",
    "verified_classes": [
      "ConstraintInversionError",
      "Fold"
    ],
    "verified_functions": [
      "_sentences",
      "check_fold_integrity",
      "fold_with_guard"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ConstraintInversionError"
    ],
    "sample_fail_closed_invariants": [
      "unreachable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
