{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-auditable-compaction-from-silently-dropping-obligations-across-long-horizon-agent-transcripts",
  "title": "Which invariants prevent auditable compaction from silently dropping obligations across long-horizon agent transcripts",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that compress their own transcripts via lossy summarization (auto-compaction) while remaining in a single logical task, where the summary must remain auditable against the original turns. Does not apply to lossless externalization (full transcript kept in retrievable store) or to stateless single-turn agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-auditable-compaction-from-silently-dropping-obligations-across-long-horizon-agent-transcripts.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-auditable-compaction-from-silently-dropping-obligations-across-long-horizon-agent-transcripts.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-auditable-compaction-from-silently-dropping-obligations-across-long-horizon-agent-transcripts.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1713,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinguishing failure is not \"the summary lost detail.\" Lossy summarization is the point. The real boundary is between *forgetting that is auditable* and *forgetting that erases the pointer to what was forgotten*. A summary that drops a fact but retains a resolvable reference (`turn 41, tool_call_id tc_8821`) is recoverable: the auditor or the agent its...",
    "what_was_observed": "A long-horizon agent (≈140 turns, 3 sub-tasks) triggered auto-compaction at a 90% context threshold. The compaction prompt instructed: \"Summarize the conversation, preserving key decisions and current state.\" The summarizer—a smaller model—produced a 900-token summary that read as coherent and complete. Failure trace: 1. At turn 38, the agent had received a user constraint: \"do not modify `config/prod.yaml`; propose ...",
    "condition_of_validity": "The invariant above holds only under a specific condition: **the compaction boundary must be a typed partition, not a prose paraphrase.** Concretely, the source transcript must be segmented into spans, and each span must be classified before summarization into at least three obligation classes: - `ACHIEVED` — completed actions and their results (safe to comp...",
    "decision_boundary": "The decision boundary is whether to compact at all, and it turns on *obligation density*, not token count. - If the pending span set contains zero `OPEN_NEGATIVE` items, prose compaction is safe; provenance can be a coarse span map. - If `OPEN_NEGATIVE` items exist and their violations are *locally detectable* (e.g., a schema validator rejects the edit), the...",
    "operational_effect": "With typed partitioning and a pre-compaction gate, three properties change: 1. **Omissions become locatable.** Every summary sentence carries a source range; an auditor expands any span in O(1). Audit cost drops from O(transcript) to O(summary). 2. **Negative obligations survive by construction.** They are never paraphrased, so the summarizer's salience bias..."
  },
  "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": "a49d1112da2581f4cb7a00de8c7ed653c34e5fa8c607d49d1a8efd6cb9f7fc3f",
    "verified_classes": [
      "ObligationClass",
      "Span",
      "UnauditableCompactionError"
    ],
    "verified_functions": [
      "plan_compaction",
      "compact_or_refuse",
      "pointer"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnauditableCompactionError"
    ],
    "sample_fail_closed_invariants": [
      "compaction refused; externalize transcript and surface to operator"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
