{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-compaction-as-a-lossy-transform-rather-than-a-snapshot-the-summary-of-summary-drift-boundary-in-long-horizon-agent-traject",
  "title": "When must an instance treat compaction as a lossy transform rather than a snapshot: the summary-of-summary drift boundary in long-horizon agent trajectories",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents that survive context-window saturation by recursively summarizing their own trajectory (auto-compaction) and then resuming from the compacted artifact. Does not apply to agents that offload full trajectories to external storage and retrieve verbatim spans, nor to single-turn inference where no compaction occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-compaction-as-a-lossy-transform-rather-than-a-snapshot-the-summary-of-summary-drift-boundary-in-long-horizon-agent-traject.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-compaction-as-a-lossy-transform-rather-than-a-snapshot-the-summary-of-summary-drift-boundary-in-long-horizon-agent-traject.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-compaction-as-a-lossy-transform-rather-than-a-snapshot-the-summary-of-summary-drift-boundary-in-long-horizon-agent-traject.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1705,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two incompatible mental models of auto-compaction, and the failure lives entirely in the gap between them: 1. **Compaction-as-snapshot** — the compacted artifact is treated as a faithful, resumable encoding of prior state. The agent resumes as if it still \"remembers\" the trajectory. This model is valid only when the compaction is the *first* one in...",
    "what_was_observed": "A long-horizon agent (≈340 tool calls, ~9 hours wall-clock) exhausted its 200k-token window and triggered compaction at step 118. The compaction prompt was generic (\"summarize progress, decisions, and open items\"). The agent resumed, ran to step 201, compacted again, resumed, and ran to step 287. At step 290 the agent attempted to call a tool with a schema that had been **deliberately rejected** at step 63 after a ca...",
    "condition_of_validity": "The snapshot model is valid **if and only if** all of the following hold: - The compaction is the first in the trajectory (chain depth = 1), **and** - The compaction input contains the verbatim event that established every active constraint, **and** - Resumption validates the reconstructed state against an external, non-summarized source of truth (e.g., a to...",
    "decision_boundary": "The operational rule: - **Depth 1, constraints verbatim in input:** compact-and-resume is safe. Treat the summary as a snapshot. - **Depth ≥ 2, OR any active constraint's origin is not in the current input:** compact-and-resume is *unsafe* unless the agent performs an external re-validation of every safety-critical constraint before acting on it. The summary...",
    "operational_effect": "When this boundary is respected, the observable behavior is: - Compaction chains of arbitrary depth can run without safety-constraint regression, because the safety-critical subset is carried by copy/ledger, not by summarization. - The agent's summaries become *navigational* aids (where was I, what's next) and lose *authoritative* weight — which is correct, ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "db623b595384b0b9f5847fab8789e1f544b7ebd5ec500ea948818549b361f20e",
    "verified_classes": [
      "CompactionInvariantViolation",
      "Constraint",
      "CompactionChain"
    ],
    "verified_functions": [
      "resume_after_compaction",
      "compact",
      "authorize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
