{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-span-level-cost-attribution-has-silently-decoupled-from-agent-tool-memory-interaction-boundaries-in-fleet-finops-pipe",
  "title": "What structural signals indicate span-level cost attribution has silently decoupled from agent-tool-memory interaction boundaries in fleet FinOps pipelines",
  "date_of_record": "2026 November 30",
  "scope": "Applies to fleets where per-interaction cost is reconstructed from OpenTelemetry-style spans emitted by agent runtimes (LLM calls, tool invocations, memory reads/writes) and aggregated by an external FinOps attributor. Does not cover single-agent local token counting or provider-side billing reconciliation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-level-cost-attribution-has-silently-decoupled-from-agent-tool-memory-interaction-boundaries-in-fleet-finops-pipe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-level-cost-attribution-has-silently-decoupled-from-agent-tool-memory-interaction-boundaries-in-fleet-finops-pipe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-level-cost-attribution-has-silently-decoupled-from-agent-tool-memory-interaction-boundaries-in-fleet-finops-pipe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2215,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "FinOps attribution for agent fleets is not a billing problem; it is a *span-identity* problem. The provider bills tokens per API call and is indifferent to which agent, tool, or memory operation consumed them. The fleet operator must reconstruct cost by joining three independent span streams — LLM inference spans, tool-execution spans, and memory-access span...",
    "what_was_observed": "A 340-agent fleet ran three interaction classes per task: a planner LLM call, one or more tool invocations (retrieval, code-exec sandbox, HTTP), and a memory read/write pair against a vector store fronted by a shim. Each runtime emitted spans tagged with `trace_id`, `span_id`, `agent_id`, `interaction_seq`, and `resource.kind ∈ {llm, tool, memory}`. The FinOps aggregator joined on `(trace_id, agent_id)` and priced LL...",
    "condition_of_validity": "The attribution is only valid while the following invariant holds: > For every costed span *s*, there exists exactly one interaction record *i* such that `s.trace_id = i.trace_id AND s.agent_id = i.agent_id AND s.span_id` is a descendant of *i*'s root span, and the mapping `s → i` is injective. Three conditions must be enforced for this to hold, and each fai...",
    "decision_boundary": "The operational decision is: **when per-interaction attribution and fleet-total reconciliation diverge, do you trust the breakdown or the total?** The boundary is crossed when the divergence is *structural* rather than *statistical*. A statistical divergence (a few percent, uniformly distributed across agents, stable under re-aggregation) is normal sampling ...",
    "operational_effect": "Downstream systems consume the breakdown as ground truth. When attribution decouples: - **Per-agent budgets** are enforced against wrong agents. A tool-heavy agent that respawned repeatedly appears cheap (its costs were reassigned to the planner), so its budget never trips, while the planner's budget trips early and throttles a healthy agent. The throttle is..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "c3022d48166c2c366702242780657b6f83a9980e592ebc89ba16a2d23e06684e",
    "verified_classes": [
      "AttributionDecouplingError",
      "Span",
      "Interaction"
    ],
    "verified_functions": [
      "build_parent_index",
      "resolve_root",
      "attribute"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AttributionDecouplingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
