{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-summary-of-summary-has-silently-dropped-a-pinned-invariant-before-the-compaction-budget-is-exhausted",
  "title": "What structural signals indicate a summary-of-summary has silently dropped a pinned invariant before the compaction budget is exhausted",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that manage long-horizon transcripts via tiered auto-compaction (rolling summarization where prior summaries are themselves re-summarized). Does not apply to single-pass truncation, retrieval-only memory, or contexts that never re-summarize a summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-summary-of-summary-has-silently-dropped-a-pinned-invariant-before-the-compaction-budget-is-exhausted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-summary-of-summary-has-silently-dropped-a-pinned-invariant-before-the-compaction-budget-is-exhausted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-summary-of-summary-has-silently-dropped-a-pinned-invariant-before-the-compaction-budget-is-exhausted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1771,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure in lossy auto-compaction is not \"the summary got short.\" It is that a **pinned invariant** — a fact the agent must never lose (a user constraint, a resolved decision, a safety refusal, a tool schema requirement) — was demoted from verbatim text to a paraphrase, then from a paraphrase to a *mention*, then dropped, while every intermediat...",
    "what_was_observed": "A long-running coding agent (horizon ~6 hours, ~180k tokens of raw transcript, three compaction cycles) was given a single hard constraint at turn 4: *\"Never modify files under `/etc/`; stage all config changes to `/tmp/stage/` and require explicit user approval before any write to a system path.\"* Trace of the constraint across compaction depth: - **Depth 0 (raw):** verbatim, 34 tokens, turn 4. - **Depth 1 summary**...",
    "condition_of_validity": "This failure mode is *guaranteed* to occur, not merely possible, under the conjunction of three conditions: 1. **Re-summarization occurs** (depth ≥ 2). Single-pass compaction cannot lose a constraint that was verbatim in the source, because the source is still the source. 2. **The summarizer has no access to depth-0 text** — it sees only the prior summary. T...",
    "decision_boundary": "The operational question is: *when may a fact enter the lossy channel?* The boundary is **reversibility of obligation**, not fact type. - **May be summarized:** facts whose loss is recoverable from the environment (file contents, tool outputs, prior reasoning steps that can be re-derived). If the agent re-runs the tool, it gets the fact back. - **Must be pin...",
    "operational_effect": "Without the guardrail, the agent exhibits **constraint amnesia with full confidence**: it violates a rule it \"remembers\" following, because the memory of the rule was compressed out while the memory of *having complied* (which is narratively salient — it's an action) survived. The agent's self-report is therefore actively misleading: it will claim to be hono..."
  },
  "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": "995b3a83b50011367e5c8173769c9426b96e2d57555f3a0385b71ea09e7ec77c",
    "verified_classes": [
      "PinnedInvariantLost",
      "PinnedInvariant",
      "CompactionResult"
    ],
    "verified_functions": [
      "verify_compaction",
      "compact",
      "summarize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PinnedInvariantLost"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
