D60 — A run's usage is disclosed by whoever ran it, and its footprint is a cited range¶
- Status: Accepted — amends D55 and D47e
- Date: 2026-09-29
- Origin: slice 35. The Scottish scope supports people who argue about the environmental cost of data centres, and it was made by AI research runs. The person asked to report what making it cost, "with any agents like claude desktop or gemini producing the output from contributors".
- Area: surfaces
Decision¶
- Whoever ran a research run discloses what it used. kg never calls a model (D16, D49, D56), so it cannot measure a run.
- The disclosure has one shape whatever ran it: one entry per model, with its provider, how the numbers are known, and counts.
- The counts are requests, tokens by kind, searches, pages fetched, and active time. Every count may be null.
-
The token kinds are what every provider counts: fresh input, input read from a cache, input written to one, and output, of which some may be reasoning. Output includes reasoning. The providers' own fields map onto these:
Kind Anthropic OpenAI Gemini input input_tokensprompt_tokens−cached_tokenspromptTokenCount−cachedContentTokenCountcached_input cache_read_input_tokenscached_tokenscachedContentTokenCountcache_write cache_creation_input_tokens— — output output_tokenscompletion_tokenscandidatesTokenCount+thoughtsTokenCountreasoning — reasoning_tokensthoughtsTokenCount -
How it is known is part of it, and "not known" is an answer.
measuredmeans from an API's or a CLI's own log.reportedmeans read off a console by a person.estimatedmeans worked out.unknownis a chat app that shows no counts: the run is disclosed as its model, with whatever it can count, and is never given invented numbers.- Counts only. A key outside the shape is refused, so no prompt, transcript or path gets in.
- Where it is disclosed:
run: {usage: [...]}in a sweep's results (RESULTS_SHAPE, and thekg check --reportskeleton);kg usage addfor a run already recorded, or for work that was not a sweep (the session that recorded the runs); MCPwrite op=usage_add.- The research prompt ends by asking for a WHAT I USED line (this amends D55), so a report from any agent brings back what its tool lets it see.
- Readers are conveniences, not the contract.
kg usage readturns a tool's own log into the disclosure for the person to check: claude-code: session logs, one response counted once;gemini-cli: its telemetry file;api: saved API responses from Anthropic, OpenAI or Gemini.- A disclosure is a log row, beside its sweep. The
usagetable (schema 16) is inLOG_TABLES, so it travels signed in its changeset's bundle. It stays local with a local-only sweep or a scope not shared. - A shared dataset can ask for it.
disclose_usageisoff,askedorrequired, and is a dataset key (this amends D47e). kg bundle verifywarns (asked) or fails (required) on a sweep that says nothing.- A new dataset asks.
kg footprintestimates it on every read, never storing the estimate. The coefficients are thin and will improve; a stored estimate would outlive them.- Two methods, shown apart.
- EcoLogits (
mlco2/ecologits, pinned at 0.11.1, an optional extra) on output tokens is the floor. - kg's own term counts input from cited figures in
footprint.yaml. Every figure there names its source, a quote, and how it was derived, as every value in a graph does. - Both use EcoLogits' figures for each provider's data centres and grid.
- A model EcoLogits cannot size is counted as a named stand-in, only where its own later list sizes them alike or says which way it errs.
- EcoLogits (
- Ranges throughout: low, central and high.
- Coverage comes first. Runs not known are counted as runs. What they might have used is shown apart, as an extrapolation from the median run that did say.
- Work later rejected still used energy. It stays in, and is shown as such.
- What is not counted is said every time.
- Where it shows:
kg footprint(MCPread op=footprint), one line inkg sweep plan, and a "What it cost to make this" page on the public site. The page names each run by what it was, never by who ran it.
Why¶
- The five research runs for the Scottish scope read about 23 million tokens and wrote about 150 thousand. An agent reads its whole context again at every step, and 95% of what it reads comes from a cache.
- EcoLogits counts output only. Its working group on input tokens (issue #183) has not shipped, and a contributor there estimated that counting cache reads would multiply a Claude workload's emissions 25 times (#201). A floor from output alone would understate an agent's run by orders of magnitude. Published input figures are estimates from price ratios, so kg's term is labelled as its own and kept apart, ready to retire.
- A contributor may run any agent. Claude Code writes exact counts to a log; the Gemini app shows none. A contract that assumed one tool's log would leave the others out, or tempt a guess. "Not known", said, is honest and counts.
- A Claude Code log keeps a response's usage from before it finished. For
most responses the output count on the line is only a first figure. The
reader estimates those from the text written and says so, and marks the run
estimated.
Alternatives¶
- Measure it in kg. kg does not run the model, and D16, D49 and D56 keep it that way.
- Store the estimate as claims. A claim is about the world and needs an entity of the pack. An estimate over coefficients that will change should be recomputed, not kept.
- Only EcoLogits. It would report the smallest share of the cost as the whole of it.
- One number. The evidence gives a range roughly ten times wide; one number would claim a precision nobody has.
- CodeCarbon. It measures this machine's own computing, which is a small part here. It is noted in the BACKLOG for importers that run for hours.