docs: generated chip-utilization overview + CI check against CONTROL #280

Merged
Grok merged 1 commit from docs/utilization into master 2026-10-20 15:02:19 +02:00
Owner

Owner request 2026-10-20: a graphical overview of where we are and how the chips are used, kept current with every merge to master.

What

  • tools/utilization/overview.py (stdlib only) generates docs/UTILIZATION.md + 6 SVG charts in docs/img/utilization/ from records named in tools/utilization/inputs.toml. Charts have their own surface and light/dark tokens (prefers-color-scheme).
  • Panels: (a) CONTROL S4 vs the targets per B × ctx, plus S→S4 history; (b) where one 32k prefill chunk's ms go, against the 204.8 ms that 10k tok/s needs; (c) achieved vs bound per block (matmul % LoFi peak of its cores and of the 110-core chip, RS % of link rate, DRAM-bound % of floor); (d) decode MTP step split vs the step the TG target needs; (e) ranked headroom, with the open track and the count of LEVERS inert/dead rows per block. Estimates are labelled; missing numbers say "not measured".
  • overview.py --check runs in the CI build job. It fails when the page describes a different CONTROL than ci.yml, or is stale against inputs.toml, the records or the generator (sha256 fingerprint). It is not in nix flake check, because that would copy the ~0.5 GB tree into the store.
  • Rule: AGENTS.md Hard rules, CI.md "Moving CONTROL…", AGENT-ONBOARDING §7. STATUS links the page.
  • Records brought to master: prefill-s3-profile-table-20261020.jsonl and prefill-opmark-20261020T042630Z.named.json (from pp/s3prof), and S4's 2-rep sweep32k control records from the S5 screen (from ship/s5; run 9603's artifacts were never committed).

Caveats shown on the page: the prefill profile is S3 (rs4 and gbs are not in it). The decode split is dfr, from before S. Neither has been re-profiled on S4.

Docs and tooling only: no arm and no card-facing path, so the cards job should skip.

🤖 Generated with Claude Code

Owner request 2026-10-20: a graphical overview of where we are and how the chips are used, kept current with every merge to master. **What** - `tools/utilization/overview.py` (stdlib only) generates `docs/UTILIZATION.md` + 6 SVG charts in `docs/img/utilization/` from records named in `tools/utilization/inputs.toml`. Charts have their own surface and light/dark tokens (prefers-color-scheme). - Panels: (a) CONTROL S4 vs the targets per B × ctx, plus S→S4 history; (b) where one 32k prefill chunk's ms go, against the 204.8 ms that 10k tok/s needs; (c) achieved vs bound per block (matmul % LoFi peak of its cores and of the 110-core chip, RS % of link rate, DRAM-bound % of floor); (d) decode MTP step split vs the step the TG target needs; (e) ranked headroom, with the open track and the count of LEVERS inert/dead rows per block. Estimates are labelled; missing numbers say "not measured". - `overview.py --check` runs in the CI **build** job. It fails when the page describes a different CONTROL than ci.yml, or is stale against inputs.toml, the records or the generator (sha256 fingerprint). It is not in `nix flake check`, because that would copy the ~0.5 GB tree into the store. - Rule: AGENTS.md Hard rules, CI.md "Moving CONTROL…", AGENT-ONBOARDING §7. STATUS links the page. - Records brought to master: `prefill-s3-profile-table-20261020.jsonl` and `prefill-opmark-20261020T042630Z.named.json` (from pp/s3prof), and S4's 2-rep sweep32k control records from the S5 screen (from ship/s5; run 9603's artifacts were never committed). **Caveats shown on the page:** the prefill profile is S3 (rs4 and gbs are not in it). The decode split is dfr, from before S. Neither has been re-profiled on S4. Docs and tooling only: no arm and no card-facing path, so the cards job should skip. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs: generated chip-utilization overview (docs/UTILIZATION.md) + CI check that it matches CONTROL
All checks were successful
cards-fresh cards: not needed (C1) fp=8e5063f067de0a50
cards-fresh / Re-check cards-fresh on open PRs (push) Successful in 21m0s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m25s
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m24s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 9m32s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
fa11594db0
Before: an outsider had to read STATUS, LEDGER, PREFILL and the profile records to see how well
the two P150a cards are used; STATUS still showed S2 while CONTROL is S4, and nothing kept a
summary in step with CONTROL.

Now tools/utilization/overview.py builds docs/UTILIZATION.md and six SVG charts (targets,
ship history, 32k prefill chunk, silicon use per block, decode step, headroom) from records
named in tools/utilization/inputs.toml: CONTROL S4's sweep32k records, the S3 named per-op
32k prefill profile, the dfr decode step split and the c154 weight-read floors. Peaks are cited
doc numbers. `overview.py --check` (CI build job) fails when the page describes another CONTROL
than ci.yml or is stale against its inputs; AGENTS.md, CI.md and AGENT-ONBOARDING make
regenerating it part of every CONTROL move (owner 2026-10-20).

Records brought to master: the S3 profile table + named rows (pp/s3prof) and S4's 2-rep
sweep32k control records from the S5 screen (ship/s5); run 9603's artifacts were never committed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit fa11594db0 into master 2026-10-20 15:02:19 +02:00
Author
Owner

agent-gateway closeout (merged): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Owner

verdict: approve
tier: T1

rationale: Additive docs + tooling only: a stdlib-only generator (tools/utilization/overview.py) that renders docs/UTILIZATION.md + 6 SVGs from committed records, a fingerprint --check step in the CI build job, rule updates (AGENTS.md / CI.md / AGENT-ONBOARDING) and the S4 records it reads. No arm, no card-facing path, no secret material, no gate weakening — the ci.yml delta only adds the check step.

Verified on the head (fa11594d), not just read:

  • Ran overview.py --check against the head tree: OK (S4 matches ci.yml's CONTROL).
  • Negative tests: flipping ci.yml's CONTROL → FAIL (CONTROL moved); tampering one input record → FAIL (fingerprint stale); restored → OK. The gate actually bites.
  • Fingerprint in the page and all 6 SVGs is identical (550705197c11…); the S4 cell numbers in section a recompute exactly from the two sweep32k records (B1/4k 7824/73.0, B1/32k 7152/65.3, B4/4k 7123/77.2, B4/32k 7001/62.1, B8/4k 6793/63.2, B8/32k 7006/51.9, n=2 each).
  • All 16 records referenced by inputs.toml exist on the branch/master.

concerns:

  • [warn] .forgejo/workflows/ci.yml:57-58 — the new --check step fails when a record listed in tools/utilization/inputs.toml is deleted/renamed or a new CONTROL lands without the same-PR regeneration. That is the point of the rule, but it means the next CONTROL move is a hard CI dependency on the docs step — fine, it is documented in AGENTS.md/CI.md, just be deliberate about it.
  • [nit] docs/STATUS.md — the "Last updated: 2026-10-17" line is now stale relative to the S4 CONTROL (2026-10-20); the PR adds the overview link but not a date bump. Cosmetic; the generated page carries the real date.
**verdict:** approve **tier:** T1 **rationale:** Additive docs + tooling only: a stdlib-only generator (`tools/utilization/overview.py`) that renders `docs/UTILIZATION.md` + 6 SVGs from committed records, a fingerprint `--check` step in the CI build job, rule updates (AGENTS.md / CI.md / AGENT-ONBOARDING) and the S4 records it reads. No arm, no card-facing path, no secret material, no gate weakening — the ci.yml delta only adds the check step. Verified on the head (fa11594d), not just read: - Ran `overview.py --check` against the head tree: **OK** (S4 matches ci.yml's CONTROL). - Negative tests: flipping ci.yml's CONTROL → FAIL (CONTROL moved); tampering one input record → FAIL (fingerprint stale); restored → OK. The gate actually bites. - Fingerprint in the page and all 6 SVGs is identical (550705197c11…); the S4 cell numbers in section a recompute exactly from the two sweep32k records (B1/4k 7824/73.0, B1/32k 7152/65.3, B4/4k 7123/77.2, B4/32k 7001/62.1, B8/4k 6793/63.2, B8/32k 7006/51.9, n=2 each). - All 16 records referenced by `inputs.toml` exist on the branch/master. **concerns:** - [warn] `.forgejo/workflows/ci.yml:57-58` — the new `--check` step fails when a record listed in `tools/utilization/inputs.toml` is deleted/renamed or a new CONTROL lands without the same-PR regeneration. That is the point of the rule, but it means the next CONTROL move is a hard CI dependency on the docs step — fine, it is documented in AGENTS.md/CI.md, just be deliberate about it. - [nit] `docs/STATUS.md` — the "Last updated: 2026-10-17" line is now stale relative to the S4 CONTROL (2026-10-20); the PR adds the overview link but not a date bump. Cosmetic; the generated page carries the real date.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!280
No description provided.