Lighthouse AdvisorySLED AI Adoption Intelligence
← Back to results

From the Red Hat edition of November 24, 2026

Independent researchCautionaryRecent

MLflow issue #27356 reproduces agent-trace cost errors (89% low in one case) when invoke_agent rollup spans are priced

MLflow open source project (issue filed by an independent GitHub user) · Open source agent observability tooling · Global (open source project)

Publisher
GitHub mlflow/mlflow issue tracker
Original publication
2026-10-30 (issue opened; GitHub createdAt 2026-10-30T21:59:56Z, 4:59 PM CT); closed as completed with a linked merged pull request
Source retrieved
2026-11-25
Read original source

What happened

The reporter shows that on MLflow 3.17.2 with a SQL tracking store, cost is computed for every span with token usage and a model, including OpenTelemetry GenAI invoke_agent spans that carry rolled-up usage. Trace cost then comes from the topmost costed span and skips the LLM calls under it. In a Strands orchestrator/sub-agent reproduction the trace cost was 89% low, while the token total was correct. In OTLP reproductions trace cost was off by -59% and +215%, depending on whether cache tokens were included in the rollup. The issue was labelled 'triage: reproduced' and the page metadata shows it closed as completed with a merged closing pull request.

Why it matters

This is the failure mode Red Hat's 24 Nov IdeaBot post designs around. It is why now: anyone using MLflow cost figures for agency chargeback or AI budget reporting should confirm the MLflow version and span shape before trusting trace-level costs.

Evidence and measured results

Issue page opened. It gives the environment (MLflow 3.17.2 client and server, SQLite backend, macOS), reproduction code, per-span costs and expected versus actual totals. The fix PR's contents and the MLflow release that includes it were not verified.

Limitations and uncertainty

A single reporter's reproductions using fake models with fixed token usage and hand-built OTLP spans. The reporter's affiliation is not stated. Not peer reviewed. Published before the last run (30 Oct) and included because the 24 Nov Red Hat post makes it newly relevant. Fixed-release version not confirmed.

Put this evidence to work

Lighthouse Advisory interpretation, grounded in this source. Enriched 2026-11-24; this does not change the original publication date. Each role follows the same checklist so takeaways compare across sources.

Sales

Role takeaway
Customer problem
AI cost dashboards built on agent traces can misstate spend when agent rollup spans are priced.
Stakeholders
  • AI program owner
  • Finance/chargeback office
  • Observability or platform engineering lead
Discovery questions
  • Which tool produces your AI cost reports, and which version?
  • Are those reports used for chargeback or budget decisions?
  • Have totals ever been reconciled against provider invoices?
Value hypothesis
Validating cost telemetry before it is used could prevent chargeback disputes caused by misattributed agent spend.
Potential engagement
A bounded cost-telemetry validation using a seeded test trace for one agent application.
Unsupported claims
  • That the customer's tooling has this bug
  • That the 89% error is typical
  • That a specific MLflow release fixes it (not verified)

Pre-sales engineering

Role takeaway
Fit
Relevant to teams using MLflow Tracing with SQL tracking stores or OTLP ingestion for agent workloads.
Architecture and integration
Cost aggregation over OpenTelemetry GenAI spans should count inference spans only.
Prerequisites
  • Known MLflow client and server versions
  • A reproducible test trace with known call costs
  • Access to the tracking backend
Constraints
  • Reproductions used fake models and hand-built spans
  • The fixed release was not confirmed
  • Behaviour depends on instrumentation span shape
Security
No direct security vulnerability; the issue is the integrity of cost and usage records.
Proof of value
  • Seeded orchestrator/sub-agent trace totals match the sum of LLM-call costs
  • Cache-token cases priced correctly
  • Regression test passes after upgrade

Delivery

Role takeaway
Work
Add a cost-total regression test and version tracking to the agent observability runbook.
Dependencies
  • A test environment with the customer's MLflow version
  • Pricing table for the test models
  • Finance agreement on the reconciliation tolerance
Ownership
Observability/platform engineering team.
Skills and adoption
Engineers learn to read span hierarchies and to spot rollup versus leaf usage.
Governance checkpoints
  • Version recorded on every cost report
  • Regression test passed before any upgrade reaches production
  • Invoice reconciliation before chargeback use
Acceptance criteria
  • Proposed: seeded trace cost equals the expected per-call sum
  • Proposed: test runs automatically on each upgrade
  • Proposed: reconciliation variance within an agreed tolerance
Risks
  • Silent cost misstatement after upgrades
  • Relying on an unverified fix version
  • Instrumentation changes altering span shapes

Implementation considerations

Lighthouse Advisory interpretation across the operating dimensions a public-sector buyer must settle before this evidence becomes a design. Each note answers the question under its heading for this specific source.

Architecture and integration

What must connect, and where does the AI sit in the workflow?

Cost aggregation must count only inference (LLM-call) spans. Agent-level spans with rolled-up usage should not be priced. The source points to an OpenTelemetry GenAI semconv change that moved cache attributes off invoke_agent spans on purpose.

Governance

Who approves, reviews and stays accountable for outcomes?

Trace-level cost from observability tools should not be used for chargeback or budget reporting without reconciliation, and version pinning should be recorded.

Security and privacy

What data, permissions and controls need testing?

No direct security impact is described. The integrity of cost and usage audit data is the main concern.

Accessibility and workforce

Who is affected, and what skills or accommodations follow?

Engineers need to understand span hierarchies to spot misattributed costs, which is specialist observability knowledge.

Procurement

What should contracts, pricing and exit terms secure?

Agencies buying agent observability or relying on vendor dashboards can ask how agent rollup spans are handled in cost totals.

Operating model

Which teams own the service once it runs?

Upgrades to observability tooling should include regression checks on cost totals, not just on functionality.

Publication history

  1. 2026-11-24Red Hat · Issue 256 resources
Read preserved resource versions (JSON)

Stable resource ID: mlflow-issue-27356-agent-span-cost-rollup-undercount-20261030