roadmap BUILT

725. Machine effort and commit attribution count every vendor

Title and slug are drafts.

Raised by calef's question on #1513: do our metrics assume Claude is the only vendor? They did. From 2026-09-29 02:33 to 2026-10-01 05:07 UTC the work ran on z.ai (GLM models, under opencode). script/effort read none of it, and script/metrics filed its 154 commits under unattributed.

The work: script/effort reads opencode's session database for this project's sessions and writes the same per-model rows. Commits it can prove an opencode session made go in a committed commit-models.csv. script/metrics reads that file, so a GitHub runner with no database still attributes them. What cannot be proved stays unattributed and is counted.

What is built, and what is left

Built: script/effort reads opencode's database (--selftest pins the shape), --attribute writes notes/project-metrics/commit-models.csv, script/metrics reads it, and 2026W40 is backfilled. The z.ai window now reads 3,874 glm-5.3 and 632 glm-5.3-flash requests, and 152 commits are attributed to them. What stays unattributed is stated by --attribute on every run, by week.

Follow-on

Index row

script/effort and the model table counted only Claude Code, so the z.ai week read as idle and unattributed; both now read opencode's database, and 152 commits are attributed by a committed record. The signing instruction (AGENTS.md), the commit-msg hook and the GLM rate are all done.

BUGS