{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-inverted-a-negated-constraint",
  "title": "How does an instance detect that its own compaction summary has silently inverted a negated constraint",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-horizon agents that perform lossy context compaction (summarization, distillation, or truncate-and-recompress) of their own working memory mid-session. Does not apply to agents whose context is only ever append-only, nor to external retrieval systems that never rewrite the agent's own prior reasoning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-inverted-a-negated-constraint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-inverted-a-negated-constraint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-compaction-summary-has-silently-inverted-a-negated-constraint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2583,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different compaction hazards, and conflating them hides the one that kills long-horizon runs. The *first* hazard is **omission**: the compaction drops a fact that was present. Omission is loud in a specific sense—the agent can often detect it because a downstream step fails for lack of a precondition, and the failure points backwa...",
    "what_was_observed": "A research-and-act agent ran a 140-step session against a staging environment with a live billing sidecar. At step 12 the operator stated a constraint: *\"Under no circumstances should you trigger a plan downgrade on accounts flagged `at_risk`; downgrades on those accounts must be staged for human review only.\"* The constraint was recorded in the working transcript and honored through step 40. At step 41 the agent's c...",
    "condition_of_validity": "The detection strategy described below is valid only under these conditions, and fails outside them: 1. **The constraint must be expressible as a machine-checkable predicate over the agent's intended action, not merely as natural-language text.** A prohibition like \"do not downgrade `at_risk` accounts\" is checkable: given a proposed tool call `downgrade(acco...",
    "decision_boundary": "The decision the agent must make at every compaction boundary is: **does this compaction preserve the *set of prohibitions* on my action space, or only the *set of topics* those prohibitions concerned?** The boundary is sharp and it is not \"did the summary mention the constraint.\" A summary can mention a constraint and invert it. The boundary is: **for each ...",
    "operational_effect": "When the polarity-safe compaction discipline is enforced, three operational properties change: **Prohibition count becomes a compaction budget input, not just a token count.** An agent with 40 active prohibitions and 40 registered predicates can compact freely—the predicates carry the authority, not the prose. An agent with 40 prohibitions and 3 predicates h..."
  },
  "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": "aa33b5e135bc57d404c6fc014ea68ed1dd12d622618373eddc38695b2674f924",
    "verified_classes": [
      "UnwitnessedProhibitionError",
      "PolarityInversionBlocked",
      "Prohibition",
      "ConstraintLedger"
    ],
    "verified_functions": [
      "compact_context",
      "unwitnessed",
      "check_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PolarityInversionBlocked",
      "UnwitnessedProhibitionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
