Suppose Codex spends 1,000 tokens implementing a change and another 99,000 on automatic review. You're about to estimate a similar job. Which model's history should those 100,000 tokens go into?
In spec-lane, an open source tool I maintain, the answer is the implementation model's. The review tokens stay in the total. The 99:1 split comes from a regression test. The bug that prompted it showed up in an actual development task.
Two model names in one task
A task implemented with Codex produced usage rows for both gpt-6.1-terra and codex-auto-review. When spec-lane tried to use that measurement for future estimates, it returned MIXED_OR_UNATTRIBUTED_USAGE. A developer could read the two rows as “Codex implemented this and its automatic reviewer ran.” The estimator had no way to make that distinction.
Picking the model with the most tokens would make the outcome depend on how long the review ran. Two tasks implemented with the same model could end up in different comparison groups just because one got a longer review. Dropping review usage altogether would also give a poor estimate of what it takes to repeat the job.
The review row has two jobs
PR #69 added the implementation model to the lookup table and gave the automatic reviewer an explicit role. When spec-lane records the task's usage, it keeps the token total and estimated cost across both rows. When it chooses a model for comparison, it skips the exact pair (codex, codex-auto-review). A model with a similar name doesn't get that treatment.
Here are three cases from the calibration tests:
| Usage rows in the test | Tokens recorded | Model for comparison |
|---|---|---|
| Implementation: 1,000. Auto-review: 99,000. | 100,000 | gpt-6.1-terra |
| Auto-review: 20,000. No implementation row. | 20,000 | Unresolved |
| Sonnet: 99,000. Opus: 1,000. | 100,000 | Unresolved |
The last row has the same lopsided split as the first. This time both rows represent primary models. Choosing Sonnet would hide the fact that the task also used Opus. The middle row is worth keeping, too: you can count every review token even if you have no evidence for who did the implementation.
What happened to the original measurement?
The PR records a check against a copy of the real data. The mixed-model reason disappeared. Some sessions still had no recorded link to the task, so that observation remained ineligible for future estimates. Resolving the model answered one question. It couldn't establish which task those sessions belonged to.
What I want from this history is an estimate for another change implemented with the same model, review included. In the regression test, 100,000 tokens is the cost in tokens of that workflow. If you're asking how many tokens the implementation model itself used, the answer is still 1,000.
