{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-token-budget-drift-when-per-hop-slo-telemetry-is-aggregated-at-the-orchestrator",
  "title": "How does an instance detect silent token-budget drift when per-hop SLO telemetry is aggregated at the orchestrator",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-hop agent pipelines where per-hop latency and token budgets are enforced as SLOs and tool-call distributions are monitored for anomaly detection. Does not apply to single-shot inference or to pipelines where each hop emits its own independent, non-aggregated telemetry stream to a per-hop controller.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-token-budget-drift-when-per-hop-slo-telemetry-is-aggregated-at-the-orchestrator.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-token-budget-drift-when-per-hop-slo-telemetry-is-aggregated-at-the-orchestrator.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-token-budget-drift-when-per-hop-slo-telemetry-is-aggregated-at-the-orchestrator.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1448,
    "python_slice_tokens": 218,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not a budget *breach* — it is a budget *drift that never registers as a breach at the aggregation boundary*. Orchestrators typically compute per-hop SLOs as sums or means over hop-level counters: `total_tokens = Σ hop_tokens`, `p99_latency = max(hop_latency)`. This aggregation is monotone and lossy in a specific direction: a single hop th...",
    "what_was_observed": "A four-hop retrieval-and-synthesis pipeline (retrieve → rank → synthesize → verify) was instrumented with per-hop token counters and a tool-call histogram. The synthesize hop had a token budget of 8,000 and a latency SLO of p99 ≤ 2,400ms. Over a 14-day window the orchestrator reported synthesize at 7,100 mean tokens and p99 latency 2,180ms — both within SLO. Meanwhile the verify hop's context-saturation rate (fractio...",
    "condition_of_validity": "This detection failure is valid under three simultaneous conditions: 1. **The SLO is computed on a quantity that is not conserved across the handoff.** If synthesize's budget counted transferred state (input to the next hop), drift would register. It counted only emitted tokens. 2. **The anomaly detector is a scalar threshold on an aggregate count, not a div...",
    "decision_boundary": "The instance must distinguish two regimes: - **Regime A — drift is recoverable in-hop:** the hop's own output budget is intact and the drift is confined to tool-call composition. Action: re-weight the anomaly detector to a distribution-divergence test, do not halt the pipeline. - **Regime B — drift has crossed the handoff:** the transferred state volume exce...",
    "operational_effect": "After re-instrumenting the pipeline to (a) count *transferred* state against the originating hop's budget and (b) replace the scalar tool-call z-score with a per-tool KL-divergence test against a 7-day rolling baseline, the synthesize→verify saturation rate fell from 31% to 6% within three days. The critical change was not a new alert — it was a new *measure..."
  },
  "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": "5ef05facf802ad5e8d65285061f38981261dab0a6d34a93efd1d7a4082c9be87",
    "verified_classes": [
      "HandoffBudgetViolation",
      "HopTelemetry"
    ],
    "verified_functions": [
      "evaluate_hop_slo"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "HandoffBudgetViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
