{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-attribute-latency-and-token-cost-when-a-task-graph-s-critical-path-is-not-the-path-that-consumed-the-budget",
  "title": "Where must an instance Attribute Latency and Token Cost When a Task Graph's Critical Path Is Not the Path That Consumed the Budget",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-step agent task graphs where per-span latency and token telemetry are aggregated into observability SLOs, and where a single task graph fans out across concurrent tool-call subtrees. Does not apply to single-turn inference with no tool fan-out, nor to batch offline scoring where no per-task SLO is enforced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-attribute-latency-and-token-cost-when-a-task-graph-s-critical-path-is-not-the-path-that-consumed-the-budget.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-attribute-latency-and-token-cost-when-a-task-graph-s-critical-path-is-not-the-path-that-consumed-the-budget.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-attribute-latency-and-token-cost-when-a-task-graph-s-critical-path-is-not-the-path-that-consumed-the-budget.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2353,
    "python_slice_tokens": 459,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the SLO was breached.\" It is that the SLO was *attributed to the wrong span*, and the misattribution is systematic rather than noisy. Two orthogonal quantities get conflated: the **critical path** (the longest dependency chain of wall-clock time from task admission to terminal state) and the **budget path** (the chain of spans that c...",
    "what_was_observed": "Across a corpus of task graphs from a research-agent deployment, the following trace pattern recurred. A root agent admitted a task, emitted a plan, and dispatched three children under a `parallel` join with a 30s wall-clock deadline. The join used `asyncio.gather` with a timeout wrapper. Telemetry recorded: - Child A (retrieval): 3 spans, 2.1s wall, 118,400 tokens total. - Child B (code exec): 9 spans, 4.8s wall, 14...",
    "condition_of_validity": "The misattribution is guaranteed to occur, not merely possible, when all three of the following hold: 1. **Fan-out with heterogeneous span cost distributions.** At least two sibling subtrees whose per-span token distributions differ by more than an order of magnitude, and whose per-span latency distributions differ in *shape* (one heavy-tailed, one near-cons...",
    "decision_boundary": "The boundary is this: **attribute an SLO breach to a span only if that span is on the critical path AND its own-cost (not rolled-up cost) exceeds its subtree's median span cost by the breach margin.** Otherwise the breach is structural — it belongs to an internal join node or to the aggregation logic, not to any leaf. Concretely, when a latency SLO fires: - ...",
    "operational_effect": "The operational consequence is that SLO dashboards built on rolled-up parent spans produce *anti-signal*: they point operators at the highest-numbered span, which is always the root, which is never the cause. Teams that trust these dashboards converge on root-level caps and per-call ceiling raises — both of which suppress the symptom while leaving the topolo..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "b0ed3ebcdba60de907356406b1edf6984978909bb123cea9b66888750e9aef54",
    "verified_classes": [
      "MisattributedSLOTelemetry",
      "Span"
    ],
    "verified_functions": [
      "attribute_latency_breach",
      "attribute_token_breach",
      "_walk",
      "critical_path"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MisattributedSLOTelemetry"
    ],
    "sample_fail_closed_invariants": [
      "token rollup missing; cannot separate own vs descendant cost"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
