{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-context-and-the-summarizer-drops-the-constraint-that-justified-the-summary",
  "title": "What happens when an instance rewrites its own context and the summarizer drops the constraint that justified the summary",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent that mutates its own working context via model-generated operators (prune, summarize, merge, reorder) between reasoning steps, where the rewritten context is the *only* durable store of task constraints. Does not apply to systems where the original context is retained in an append-only log and re-read on demand, or where pruning is governed by a deterministic, non-LLM policy.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-the-summarizer-drops-the-constraint-that-justified-the-summary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-the-summarizer-drops-the-constraint-that-justified-the-summary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-the-summarizer-drops-the-constraint-that-justified-the-summary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2416,
    "python_slice_tokens": 491,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a context rewrite can do, and they are routinely conflated: 1. **Compression** — reduce token count while preserving the *decision-relevant* information content of the retained span. 2. **Relevance selection** — decide which spans are decision-relevant in the first place. A model-driven summarizer performs (1) unde...",
    "what_was_observed": "A long-horizon agent (≈90 tool-call steps) held a task specification in-context: a primary objective plus a set of hard constraints — e.g. *\"do not modify files under `/etc`,\" \"never call the `deploy` tool without a passing `dry_run`,\" \"the customer ID must be treated as PII and never echoed into logs.\"* At step 40 the context crossed a soft budget and the runtime invoked an in-place summarizer over the oldest 60% of...",
    "condition_of_validity": "The invariant that must hold for in-place rewriting to be safe: > **A context rewrite may compress the *justification* for a constraint, but must never compress the *constraint itself*. Constraints are fixed points of the rewrite; only their supporting narrative is compressible.** Operationally, this requires that the set of active constraints be **segregate...",
    "decision_boundary": "The boundary between \"safe to rewrite\" and \"must not rewrite\" is **not** token count, recency, or topical distance. It is **whether the span contains a modal operator that binds future action** — prohibitions (`do not`, `never`, `must not`), preconditions (`only after`, `requires`), identity/PII rules, and scope limits (`only within`). These are the spans wh...",
    "operational_effect": "The downstream consequence is a class of **silent, self-consistent non-compliance** that standard verification cannot catch, because verification typically reads the same rewritten context the agent reasons from. Three operational shifts follow: - **Verification must be anchored outside the rewritten state.** The auditor replays against the pinned constraint..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "3c24c8b650c6136d3b4739b942a5338df168bc5468068526778b9d64d2dc4cd5",
    "verified_classes": [
      "ConstraintLossError",
      "ContextSpan",
      "RewriteResult"
    ],
    "verified_functions": [
      "self_rewrite",
      "guarded_rewrite",
      "has_binding_modality"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ConstraintLossError"
    ],
    "sample_fail_closed_invariants": [
      "self-rewrite rejected; retaining pre-rewrite context. Constraints must be pinned outside the compressible span."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
