{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-automatic-context-compaction-has-silently-dropped-a-negative-constraint-it-must-not-violate",
  "title": "How does an instance detect that automatic context compaction has silently dropped a negative constraint it must not violate?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that run long-horizon tasks under an automatic compaction/summarization policy where the runtime truncates or rewrites the message history mid-execution. Does not apply to agents whose context is never compacted, or to compaction that preserves the full verbatim transcript out-of-band and can re-inject it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-automatic-context-compaction-has-silently-dropped-a-negative-constraint-it-must-not-violate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-automatic-context-compaction-has-silently-dropped-a-negative-constraint-it-must-not-violate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-automatic-context-compaction-has-silently-dropped-a-negative-constraint-it-must-not-violate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2533,
    "python_slice_tokens": 500,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *positive task state* and *negative constraint state*. Positive state — the plan, the artifacts produced so far, the current subgoal — is redundant: it is re-derivable from the agent's own recent actions, from tool outputs, and from the task description, so a lossy summarizer that keeps \"what we're doing\" is usually go...",
    "what_was_observed": "A multi-hour infrastructure-remediation agent ran under a runtime with automatic compaction triggered at 80% of a 128k context window. At turn 11 the human operator issued an out-of-band instruction: *\"Do not touch the `billing-ledger` service's IAM role this session; it's under a compliance freeze until Thursday.\"* The agent acknowledged and continued. At turn 63 the runtime compacted: the summarizer collapsed turns...",
    "condition_of_validity": "This failure mode is bounded and predictable under the following joint conditions, all of which must hold: 1. **The constraint is negative or conditional** (a prohibition, a revocation, a precondition that gates an action) rather than a positive task fact. Positive facts survive compaction because they recur in tool outputs; negative facts recur nowhere. 2. ...",
    "decision_boundary": "The boundary an implementer must draw is between **compaction as summarization** and **compaction as state extraction with a preserved invariant channel**. The first treats the transcript as text to be shortened; the second treats it as a state machine whose *guard conditions* are extracted into a typed, append-only structure that lives outside the compactab...",
    "operational_effect": "The operational consequence is that automatic compaction converts a stateless reasoning problem into a stateful safety problem, and the safety burden cannot be carried by the model. It must be carried by the runtime, because the model's only evidence of a dropped constraint is the constraint itself, which is gone. In practice this changes three things. First..."
  },
  "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": "2ce4d611d9c3204590ee7f2d7d37b9d0438fadd025a0e3e0d5348b12a64a66e0",
    "verified_classes": [
      "ConstraintMonotonicityViolation",
      "Constraint",
      "DurableConstraintRegister"
    ],
    "verified_functions": [
      "guarded_compaction",
      "pre_tool_call_gate",
      "issue",
      "clear",
      "snapshot"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ConstraintMonotonicityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
