DEV Community

Avery Wang
Avery Wang

Posted on

Attach the Unit Before You Compare AI Usage

A usage number needs a unit and resource context. The FOCUS 1.2 resource usage specification relates consumed quantity to a unit of measure and a resource or SKU. A label helps you see why token counts, GPU-seconds and requests are different quantities. It does not make those numbers additive.

When shared credentials, model endpoints or tools let several teams consume from one pool, a monthly figure describes the pool, not any team's behavior. W3C PROV-DM supplies vocabulary for the missing part: entities, activities and responsible agents; an activity can use an input entity and generate an output, and an association names the agent responsible for the activity. PROV-DM records lineage only; it does not certify that an output is correct.

Steps

Define the record before collecting it. Each usage row should carry a quantity, a unit of measure, a resource or SKU identifier, a time window, and an agent association. A proposed schema, illustrative and untested:

{"quantity": 1840, "unit": "input_token", "sku": "model-a",
 "window": "2026-12-01/2026-12-02", "agent": "team-search"}
Enter fullscreen mode Exit fullscreen mode

Refuse aggregation across incompatible units. Compare like quantities over matching windows and equivalent resource scopes. To compare spend across different meters, derive a separate monetary figure with documented pricing units, rates and currency. Keep the original quantities and the basis of any conversion so another person can repeat the comparison.

Test

Take one month of shared usage and try two checks on a single row. First, can an observer identify the responsible team through the agent association? Second, can that observer interpret the quantity using its unit, a resource identifier or SKU, and the time window? A row can pass one check and fail the other. A missing SKU alone is acceptable for this proposed schema if the resource identifier resolves the context. If neither identifier is present, flag the gap. For two rows with different units, check that the report keeps them separate unless it documents a meaningful conversion.

The approach adds schema and collection overhead. It adds less value where cost is already single-owner and no cross-team comparison is needed, such as a personal sandbox; the record may still lack unit detail. Its value is narrower than cost control: it makes a comparison defensible, or visibly indefensible.

This article was created with AI assistance.

Top comments (0)