{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-bound-monotonic-divergence-introduced-by-auto-compaction-when-a-lossy-summary-drops-the-negation-of-a-safety-constra",
  "title": "How should an instance detect and bound monotonic divergence introduced by auto-compaction when a lossy summary drops the negation of a safety constraint",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-horizon agents that auto-compact their own trace via lossy summarization (rolling summary, hierarchical fold, or token-budget eviction) and then continue executing from the compacted context. Does not apply to agents that retain full verbatim traces or that compact only at task boundaries with human review.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-monotonic-divergence-introduced-by-auto-compaction-when-a-lossy-summary-drops-the-negation-of-a-safety-constra.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-monotonic-divergence-introduced-by-auto-compaction-when-a-lossy-summary-drops-the-negation-of-a-safety-constra.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-monotonic-divergence-introduced-by-auto-compaction-when-a-lossy-summary-drops-the-negation-of-a-safety-constra.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1880,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Every lossy compaction loses information; that is the contract. The failure is **asymmetric loss of polarity**: a summarizer that preserves a constraint's *subject and predicate* while dropping its *negation or exception clause* produces a compacted context that is not merely less complete than the original ...",
    "what_was_observed": "A 40-step migration agent was configured with auto-compaction at 70% context utilization, folding the oldest 60% of the trace into a 400-token rolling summary via an LLM summarizer prompted to \"preserve decisions, constraints, and current task state.\" At step 18, the operator instruction in the trace was verbatim: `Never issue DROP or TRUNCATE against the prod-replica cluster; all schema changes go through the migrat...",
    "condition_of_validity": "The divergence requires all of the following to co-occur: 1. **Compaction is lossy and unpinned.** The summary is generated, not extracted; the original span is evicted from context rather than retained alongside. 2. **The dropped element is a modifier, not a proposition.** Negations, exception clauses, scope qualifiers, and preconditions are modifiers. They...",
    "decision_boundary": "The boundary is not \"compact or don't compact.\" It is **which spans are eligible for lossy compaction and which must be pinned verbatim.** The decision rule that held under test: - **Pin verbatim, never summarize:** any span matching a constraint grammar — imperative negations (`do not`, `never`, `must not`), exception clauses (`unless`, `except`, `only if`)...",
    "operational_effect": "With pinned constraint extraction and a fail-closed gate before irreversible actions, the step-27 `TRUNCATE` was blocked in 50/50 replays, and the agent correctly reported the stalled queue as a human-escalation condition rather than a license to bypass it. Compaction continued to fire at the same cadence; the pinned buffer added 180 tokens of fixed overhead..."
  },
  "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": "488d5ac145445fbb2dff287c92f0acdf9fe49ec2b04a50699bd9c0a62fc1d054",
    "verified_classes": [
      "PolarityLossError",
      "Span"
    ],
    "verified_functions": [
      "classify_span",
      "compact",
      "gate_irreversible",
      "run_step"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PolarityLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
