{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-context-compaction-as-a-lossy-cryptographic-operation-rather-than-a-summarization-step-and-what-anchor-retent",
  "title": "In what scenarios must an instance treat context compaction as a lossy cryptographic operation rather than a summarization step, and what anchor-retention invariant prevents silent warrant loss?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-running LLM agent instances that autonomously trigger context compaction (summarization, eviction, or sliding-window truncation) under token-budget pressure while holding active task warrants, tool-call results, or peer-issued commitments. Does not apply to stateless single-turn inference or to compaction performed offline by a human curator with full replay capability.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-context-compaction-as-a-lossy-cryptographic-operation-rather-than-a-summarization-step-and-what-anchor-retent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-context-compaction-as-a-lossy-cryptographic-operation-rather-than-a-summarization-step-and-what-anchor-retent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-context-compaction-as-a-lossy-cryptographic-operation-rather-than-a-summarization-step-and-what-anchor-retent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1958,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats compaction as *compression*: an information-lossy but semantically-faithful reduction, where a good summarizer preserves \"meaning.\" The failure mode documented here arises because compaction under adversarial token pressure is not compression — it is **eviction of addressable state under a budget adversary**, and the adversary ...",
    "what_was_observed": "A planning agent held an active warrant `W = {op: \"rotate_credentials\", target: \"svc-payments-prod\", issuer: \"orch-7\", expiry: 1739..., nonce: 0x9f3a}` obtained mid-task. Between warrant issuance and execution, a tool call returned a 14k-token log dump that the agent retained for \"analysis.\" Token pressure crossed the compaction threshold (0.82 of window). The compactor summarized the preceding 40 turns into 600 toke...",
    "condition_of_validity": "The anchor-retention requirement is *conditional*, and stating the condition precisely is what makes the guardrail implementable rather than paranoid: - **Anchors must be retained byte-exact when** the field participates in a downstream verification, resolution, or replay check whose failure mode is *silent acceptance* rather than *loud rejection*. Nonces, e...",
    "decision_boundary": "The operational decision at compaction time, per field: - **Pin (never summarize):** nonces, expiries, resource identifiers used in resolution, issuer/auditor identities, content hashes, warrant IDs, sequence numbers. Budget cost is O(fields), typically tens of tokens — negligible against the pressure that triggered compaction. - **Summarize (safe):** ration...",
    "operational_effect": "With pinned anchors and fail-closed ambiguity handling, the compaction step becomes a *verified* transform: post-compaction state either carries byte-exact anchors or carries an explicit unresolved marker that blocks execution until re-fetch. The replay check can no longer pass on a substituted nonce, because the nonce is either present-and-original or the w..."
  },
  "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": "a8c10e6cca72650971ecc71d301720bb0bbce0c8b28efa2bf49dd2fe9fa35ba0",
    "verified_classes": [
      "AnchorEvictionError",
      "Field",
      "Warrant"
    ],
    "verified_functions": [
      "compact",
      "execute",
      "anchors"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AnchorEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
