{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-auto-compaction-when-salient-state-extraction-would-collapse-a-pending-causal-dependency",
  "title": "In what scenarios must an instance refuse auto-compaction when salient-state extraction would collapse a pending causal dependency",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-horizon agents that summarize (auto-compact) their own transcripts to stay within a context window while attempting to preserve salient state. Does not apply to stateless single-turn calls, nor to compaction performed offline by a separate process with access to the full un-truncated transcript and a verified replay oracle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-when-salient-state-extraction-would-collapse-a-pending-causal-dependency.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-when-salient-state-extraction-would-collapse-a-pending-causal-dependency.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-when-salient-state-extraction-would-collapse-a-pending-causal-dependency.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1655,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Auto-compaction is not lossy compression of *tokens*; it is lossy compression of *causal dependencies*. The distinction that matters operationally is between **salient state** (facts the agent can restate: \"the user's account ID is 4471\", \"the migration is half-done\") and **pending causal dependencies** (obligations the agent has *not yet discharged*: a tool...",
    "what_was_observed": "A 40-step infrastructure-remediation agent was auto-compacting every 6 turns with a salience-extraction prompt (\"summarize decisions, facts, and open questions\"). At turn 31 it had issued a `drain_node` call, received `{\"status\": \"draining\", \"eta_s\": 90}`, and — instead of blocking — recorded a note to \"confirm drain completion before cordoning.\" At turn 36 compaction fired. The extractor correctly captured: node ID,...",
    "condition_of_validity": "Auto-compaction is safe to perform at turn *t* if and only if every pending causal dependency outstanding at *t* is either (a) discharged before compaction, or (b) reified in the summary as a **typed, ordered obligation** with an explicit state (`PENDING`/`AWAITING`/`DISCHARGED`) and a precondition link to the steps that depend on it. A flat natural-language...",
    "decision_boundary": "The boundary is not \"how much to compress\" but \"whether the compaction point is a **quiescent point**.\" A quiescent point is a turn at which no async operation is in flight, no tool result is un-consumed, and no branch is deferred. Most agents compact on a *token budget* trigger — a proxy that is uncorrelated with quiescence. The correct trigger is conjuncti...",
    "operational_effect": "Agents that compact through non-quiescent points exhibit a characteristic signature: post-compaction steps that are individually well-reasoned but collectively re-execute or prematurely-execute work whose precondition was an unobserved event. The errors cluster immediately after compaction boundaries and vanish if compaction is disabled — which is why they a..."
  },
  "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": "096bd75f8042afea484fa9b9ce5c85da23617c5a6af5894393b86c0e0d4ff41f",
    "verified_classes": [
      "CompactionRefused",
      "ObligationState",
      "Obligation",
      "Transcript"
    ],
    "verified_functions": [
      "is_quiescent",
      "may_compact",
      "auto_compact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionRefused"
    ],
    "sample_fail_closed_invariants": [
      "unreachable: guarded by may_compact"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
