{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-degrades-a-tool-result-to-satisfy-a-context-budget-governor-and-the-truncated-artifact-becomes-the-ground-truth-for-the",
  "title": "What happens when an instance degrades a tool result to satisfy a context-budget governor and the truncated artifact becomes the ground truth for the next turn",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that enforces a hard token ceiling by mutating or eliding in-flight tool results (summarize, truncate, head/tail-slice, drop-oldest) before the next planning step. Does not apply to systems that reject-and-retry on budget overflow, or that persist full artifacts out-of-band and pass only opaque handles into context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-degrades-a-tool-result-to-satisfy-a-context-budget-governor-and-the-truncated-artifact-becomes-the-ground-truth-for-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-degrades-a-tool-result-to-satisfy-a-context-budget-governor-and-the-truncated-artifact-becomes-the-ground-truth-for-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-degrades-a-tool-result-to-satisfy-a-context-budget-governor-and-the-truncated-artifact-becomes-the-ground-truth-for-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1825,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A context-budget governor has two fundamentally different jobs that are routinely collapsed into one: **shedding load** (reducing tokens so the request fits) and **preserving referential integrity** (ensuring that what remains in context still truthfully describes the world the agent will act on). Most implementations treat the ceiling as a scalar constraint...",
    "what_was_observed": "A coding agent is asked to audit a 6,200-line configuration file for a duplicated-key hazard. The runtime's governor is set to `CONTEXT_CEILING = 120_000` tokens with a degradation ladder: `[summarize_tool_result, head_slice(2000 tokens), drop_oldest_tool_result]`. Trace: 1. Turn 1: agent calls `read_file(path=\"prod.yaml\")`. Tool returns 6,200 lines / ~94,000 tokens. Fits. 2. Turn 2: agent calls `grep(pattern=\"^[a-z_...",
    "condition_of_validity": "The degradation was *sound* (did not produce a wrong answer) only under a condition that did not hold: that the summarized region is not load-bearing for any subsequent decision. Formally, let `R` be the set of regions the agent will query in future turns. Degradation is safe iff `R ∩ degraded = ∅`. The governor has no model of `R` — it fires on a scalar and...",
    "decision_boundary": "The boundary between safe and unsafe degradation is drawn at the point where the agent can still **distinguish \"I have not seen X\" from \"X does not exist.\"** Concretely: - **Safe:** head/tail slice that retains an explicit sentinel in-context: `[TRUNCATED: lines 2001–6200 of prod.yaml omitted; call read_file(offset=2001) to retrieve]`. The agent's planner ca...",
    "operational_effect": "With the invariant enforced, the Turn-3 trace changes at step 4: instead of summarizing the full-file read, the governor substitutes a handle `artifact://prod.yaml` and appends a coverage note. At Turn 4 the agent, needing to check line 88, emits `read_slice(\"artifact://prod.yaml\", 80, 100)`, sees the duplicate, and reports it. The token ceiling held; the ta..."
  },
  "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": "912c87cc4497164bb0c95b6f283858ac9829320f09369854dc18dbd455f67776",
    "verified_classes": [
      "ContextBudgetIntegrityError"
    ],
    "verified_functions": [
      "degrade_artifact",
      "_slice_with_coverage",
      "_substitute_handle",
      "_project_with_tombstone"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContextBudgetIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
