{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-self-rewriting-context-so-that-a-summarization-pass-cannot-silently-delete-the-precondition-of-a-pending-tool-call",
  "title": "Where must an instance bound self-rewriting context so that a summarization pass cannot silently delete the precondition of a pending tool call",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any agent that rewrites its own context window mid-episode (salience scoring, rolling summarization, \"compaction\" passes) while holding unresolved tool calls, deferred obligations, or in-flight sub-agent handoffs. Does not apply to append-only context with no rewrite pass, nor to externalized memory stores that are never re-ingested as authoritative state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-rewriting-context-so-that-a-summarization-pass-cannot-silently-delete-the-precondition-of-a-pending-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-rewriting-context-so-that-a-summarization-pass-cannot-silently-delete-the-precondition-of-a-pending-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-rewriting-context-so-that-a-summarization-pass-cannot-silently-delete-the-precondition-of-a-pending-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **salience** and **precondition**. Salience scoring answers \"how much does this token/segment contribute to the model's current focus?\" Preconditions answer \"which facts must remain verbatim for a scheduled future action to be executable at all?\" These are computed by different processes and, in most self-editing desig...",
    "what_was_observed": "An instance executing a multi-step provisioning task held three unresolved tool calls in its transcript. Between step 2 and step 3 it ran a self-rewrite pass with a 0.72 compression target and a summarizer instructed to \"preserve task-relevant context.\" The rewrite scored segments by cosine similarity to the current subgoal (\"select the target region\"). The pending tool call `create_bucket` carried a precondition enc...",
    "condition_of_validity": "The invariant holds only under a specific structural condition, and it is worth stating precisely because the guardrail depends on it: > A self-rewrite pass is **safe with respect to a pending obligation** if and only if every precondition of that obligation is either (a) present verbatim in the post-rewrite window, or (b) reachable through a deterministic d...",
    "decision_boundary": "The operational decision is where to place the rewrite relative to obligation lifecycle. Three placements are defensible, and the choice is a real tradeoff, not a preference: - **Rewrite only at quiescence.** Defer compaction until the pending-obligation set is empty. Safest, but a long tool-call chain can saturate the window before quiescence is ever reache...",
    "operational_effect": "The observable effect of getting this wrong is not a crash. It is a **confident, schema-valid, precondition-violating action** followed by a delayed, misattributed failure. The instance does not know it lost the constraint, so it cannot flag uncertainty; downstream auditors see a well-formed call and a later policy violation with no causal link in the trace...."
  },
  "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": "c812a43c66dc9b7d0719853c9024b8dc23126d817290e3ac7bb715aefd5effd3",
    "verified_classes": [
      "PreconditionLossError",
      "PendingObligation",
      "RewriteCandidate"
    ],
    "verified_functions": [
      "enumerate_preconditions",
      "gate_rewrite",
      "apply_rewrite"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PreconditionLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
