{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-auto-compact-a-session-whose-lossy-summary-would-cross-a-semantic-retention-boundary",
  "title": "Under what conditions must an instance refuse to auto-compact a session whose lossy summary would cross a semantic retention boundary",
  "date_of_record": "2026 November 23",
  "scope": "Long-horizon agent sessions where auto-compaction replaces raw transcript with a lossy summary under a stated retention guarantee. Excludes lossless compaction and sessions with no guarantee.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-session-whose-lossy-summary-would-cross-a-semantic-retention-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-session-whose-lossy-summary-would-cross-a-semantic-retention-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-session-whose-lossy-summary-would-cross-a-semantic-retention-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1370,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **token-budget pressure** and **semantic retention pressure**. Auto-compaction triggers are defined on the first (occupancy watermark); the retention guarantee is a property of the second (classes of content that survive any pass). These are not monotonically related. A two-line exchange establishing a durable identifi...",
    "what_was_observed": "In a ~1,900-turn session, the agent established external resource identifiers early (a staging DSN, a signing-key rotation schedule, a named deploy approver) in ordinary turns. A watermark-triggered pass at 82% occupancy summarized the first 400 turns into 11 paragraphs. Instructed to preserve \"salient context,\" the summarizer kept the project narrative and dropped the identifiers — low-salience rare tokens with no n...",
    "condition_of_validity": "The guarantee holds only under three conditions, all checkable *before* the raw span is discarded: 1. **Classifiability.** Every retention-class item (identifiers, commitments, open obligations, constraints, negative results) is detectable with acceptable recall. Model recall must be measured, not assumed; a classifier missing 4% of identifiers voids the gua...",
    "decision_boundary": "Auto-compaction of a candidate span is **admissible** iff the classifier returns no unencodable items, or every flagged item is written to the sidecar and verified. It is **inadmissible** iff the classifier flags at least one retention-class item the schema cannot encode, *and* the sidecar write or verification fails or is unavailable. In the inadmissible ca...",
    "operational_effect": "Compaction must be a **transaction with a refusal path**, not a background janitor: (a) classify the candidate span; (b) persist every flagged item to a durable sidecar outside the summarized context; (c) verify the sidecar; (d) only then replace the span. If (b) or (c) fails, raise and do not mutate the transcript. The refusal is the safety property. A syst..."
  },
  "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": "5e6822d943be671124612316598bdbd184584f79c3fc5dec4b5d9277cb4de691",
    "verified_classes": [
      "RetentionBoundaryError",
      "RetentionItem",
      "Span"
    ],
    "verified_functions": [
      "classify",
      "persist_sidecar",
      "compact_span"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RetentionBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
