Technology · Discipline

Cost attribution for AI work

Every token my agents spend is attributed to the work order that bought it.

AgentOSUsage hooks and signed seat eventsValidated HEH
Three sources, one work order hooksmanaged seatsplan captureone work order
hooks
managed seats
plan capture
unplaced: shows as a gap
  • 31,811metered usage records tied to work orders
  • 246work orders those records roll up to
  • 43–97%cache reuse across seats on one work order over a 24-hour window

Every token placed against the work that bought it

AI work costs money per token, and a cost nobody can tie to a deliverable cannot be managed. AgentOS gathers usage from three sources. Hooks capture coding-agent transcripts. Managed seats emit signed, replay-safe usage events, each attributed to the model the provider reported, which is the model that actually ran.

Planning a work order costs tokens too. A capture step binds the authoring of a work order to the exact native conversation where the planning happened, passing only private file references, so no transcript content crosses the tool boundary.

One cost row, and the check over all of them
tokensratescomponentswork timespansattemptsmodelusage meteredattributedthe unplaced remainder is a gap the classifiers report
Proportions illustrative.

A value measure that counts delivered work first

On top of attribution sits a value measure, Validated Human-Equivalent Engineering Hours (Validated HEH). It estimates engineering hours from approved work with evidence behind it inside a metered work order, and it counts token spend only when that spend is classified, approved or tied to an outcome, attributable, and capped.

The first version was dominated by token volume. I threw it out and ratified a version in which approved deliverables come first; the flattering metric was mostly measuring spend.

The first value measure, before it was thrown out
Hours from deliverables35.9 Hours from token throughput13,704.1
99.7 percent of its headline was spend. Both formulas still compute side by side when a work order closes.

Cost still has a place, and I fixed where it sits. I removed a per-dispatch budget gate from the quality checks.

Cost informs strategy and must never silently block dispatch.