Usage metering
Usage is metered per person, per day, per organisation.
What is recorded
Every turn that costs something writes a usage record carrying the organisation, the person, the model, the token counts broken out by kind, and the project it belonged to. The record is written at the time the work happens.
That last point is the one that mattered enough to build early: attribution cannot be reconstructed afterwards. A record that says an organisation spent something, without saying who spent it, cannot be repaired later by any amount of analysis — the information was never captured. So the subject is on the row from the beginning, whether or not anything is being billed yet.
Why per person
Two reasons, and the second is the one that shaped the design.
The ordinary reason is that an organisation wants to know where its spend went, and "which project" answers less than "which project and which person".
The reason that fixed the shape: a consultant working across more than one customer bills each one separately. That is not a reporting preference, it is a correctness requirement — the same person's work has to land in different ledgers depending on which organisation they were working in at the time. A meter that aggregates per organisation only cannot produce that split afterwards.
Note the honest limit: today we run one organisation per deployment, so this is a property the ledger has rather than one that has been exercised across several.
Cost is derived, not stored
Records store what happened — counts, model, time. What it costs is worked out when the usage is read, against a price table that is effective-dated.
The consequence worth knowing: correcting or updating prices re-values history correctly rather than leaving old rows priced with a number nobody can now explain. It also means a model with no price entry is reported as unpriced, never as zero. A total that silently absorbs unknown-cost work is a total that will be wrong at the worst moment.
What this does not do
- It does not invoice. Metering is the ledger; billing is a separate thing and not part of the product today.
- It does not meter everything yet. Some background work is recorded without a price attached and shows as unpriced rather than as free.
- It does not record content. The meter carries counts, identifiers and times — never what was said or what was read.