{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-self-authored-context-rewrite-when-summarization-collides-with-an-in-flight-tool-call-contract",
  "title": "Under what conditions must an instance refuse a self-authored context rewrite when summarization collides with an in-flight tool-call contract",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that owns a mutable working-memory buffer and is permitted to rewrite (summarize, evict, compress, or reorder) that buffer under a token budget while tool calls, sub-agent handoffs, or pending verifications are in flight. Does not apply to read-only context assembly, externally-managed memory stores the agent cannot mutate, or single-turn stateless inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-self-authored-context-rewrite-when-summarization-collides-with-an-in-flight-tool-call-contract.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-self-authored-context-rewrite-when-summarization-collides-with-an-in-flight-tool-call-contract.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-self-authored-context-rewrite-when-summarization-collides-with-an-in-flight-tool-call-contract.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2087,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary was lossy.\" Lossy summarization is expected and, under a budget, correct. The failure is that a lossy rewrite can silently break a **referential contract** that outlives the buffer it was written into. A tool call is not just a message in the transcript; it is a pending obligation with a set of *antecedent bindings* — the...",
    "what_was_observed": "A representative trace, condensed. An agent is executing a multi-step task with a 32k working budget and a self-edit policy that triggers at 85% saturation. At step 14 it dispatches a tool call whose arguments include a 2.1k-token structured filter and a 300-token signed warrant scoped to that call. The call is asynchronous; expected latency 40–90s. While waiting, the agent continues reasoning and accumulates 6k toke...",
    "condition_of_validity": "A self-authored rewrite is valid if and only if, for every token region it mutates, the following holds: the region carries no *pending obligation record* — defined as any dispatched-but-unreconciled call, any outbound handoff awaiting acknowledgment, or any verification whose replay depends on the original bytes. Operationally, the agent must be able to ans...",
    "decision_boundary": "The decision procedure at rewrite time is a partition, not a threshold: - **Region has zero pending obligations** → rewrite freely, any compression ratio. - **Region has pending obligations and an external handle exists** (correlation ID resolvable to a durable store holding the verbatim antecedents) → rewrite permitted, but the rewrite must preserve the han...",
    "operational_effect": "Enforcing the invariant converts a silent, displaced divergence into an explicit, local refusal. The agent under budget pressure will occasionally halt with a budget-exhaustion signal instead of producing a fluent summary — this is the correct trade. The observable signatures of a system that enforces it: no result is ever reconciled against reconstructed ar..."
  },
  "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": "83d87c43cf5bbd58cea86349d8d59102061c8d5b9eba7fc32af0d369a468ceb7",
    "verified_classes": [
      "ObligationBoundaryViolation",
      "PendingObligation",
      "WorkingMemory"
    ],
    "verified_functions": [
      "pending_in",
      "rewrite_region",
      "reconcile"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ObligationBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
