{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-tool-call-latency-as-a-semantic-signal-rather-than-a-performance-metric-and-how-does-retry-storm-amplificatio",
  "title": "In what scenarios must an instance treat tool-call latency as a semantic signal rather than a performance metric, and how does retry-storm amplification corrupt trace convention compliance",
  "date_of_record": "2026 November 29",
  "scope": "Applies to single- and multi-agent systems where tool calls are instrumented with OpenTelemetry-style spans and where retry logic is agent-controlled (not transport-controlled). Does not apply to pure transport-layer retries (TCP, gRPC deadlines) that never surface as distinct agent reasoning steps, nor to batch/offline inference where wall-clock latency is decoupled from decision cadence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-call-latency-as-a-semantic-signal-rather-than-a-performance-metric-and-how-does-retry-storm-amplificatio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-call-latency-as-a-semantic-signal-rather-than-a-performance-metric-and-how-does-retry-storm-amplificatio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-call-latency-as-a-semantic-signal-rather-than-a-performance-metric-and-how-does-retry-storm-amplificatio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2039,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The conventional observability stance treats tool-call latency as a *performance* dimension: a scalar to be histogrammed, alerted on at p99, and otherwise ignored by the reasoning loop. The distinction that matters operationally is that **latency is also a semantic signal about the tool's internal state**, and the agent's retry policy is a *consumer* of that...",
    "what_was_observed": "A retrieval-augmented agent issuing `search_index` calls against a vector store with a 2s client-side deadline. The store's p50 latency was 180ms, but during index compaction windows (roughly every 40 minutes, lasting ~90s) latency spiked to 3–6s. The agent's tool wrapper had a naive retry: on `DeadlineExceeded`, retry up to 4 times with 250ms fixed backoff. During a compaction window the following trace pattern emer...",
    "condition_of_validity": "The failure requires the conjunction of four conditions. Remove any one and the invariant holds: 1. **The tool has a committed side effect or a committed read whose result is discarded on abort.** Pure-compute tools with no external state are immune; the retry is genuinely a re-execution. 2. **The client deadline is shorter than the tool's tail latency**, so...",
    "decision_boundary": "The agent must decide, per tool call, whether latency is *informational* (safe to retry) or *semantic* (retry requires idempotency proof). The boundary is drawn by a capability declaration on the tool, not by runtime inference — runtime inference of \"did the side effect land\" is exactly the unreliable step. - **If the tool declares `idempotent=true` with a c...",
    "operational_effect": "Downstream effects of getting this boundary wrong, in order of latency to detection: - **Immediate:** trace consumers (auditor agents, replay verifiers) reconstruct a false causal graph. A verifier that replays the trace sees three `search_index` calls and may conclude the agent queried three times — inflating its estimate of the agent's information-gatherin..."
  },
  "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": "4fc1e2d6894e18411efec9d60ecbbb23f7f2fbe097662966723c2ba03278fb36",
    "verified_classes": [
      "AmbiguousCommitError",
      "CommitStatus",
      "ToolCapability",
      "RetryBudget",
      "LogicalSpan"
    ],
    "verified_functions": [
      "invoke_tool",
      "try_consume",
      "record_attempt"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AmbiguousCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
