roadmap BUILT

623. Bullet under the chart explains a cliff

Promoted 2026-09-29 (UTC) from the proposal a-bullet-under-the-chart-explains-a-cliff, raised the same day by the maintainer's lane recording calef's ask, after reading lines.svg: "I'd like to dive deep into such changes in the future and then have the option of writing an annotation for the week explaining the metric change. We can drop the annotations for the week when the week ages out of the graph." And on rendering: "An annotation can just be bullets under the graph by week." The number is provisional until the merge queue lands it; the title and slug are drafts.

The cliff that motivated it

The kernel code series fell 46,665 lines in 2026W39 to 33,192 in 2026W40, a 29% drop, and the chart explained none of it. The cause was milestone 609 (the system tests leave the kernel crate), whose pull request #1404 moved 66 test-only files into a system_tests crate unchanged on 2026-09-27. No code was deleted; the series' kernel bucket is a path prefix, so a rehoming reads as a shrink. The archaeology took one evening and lived in a conversation, which is rung four. A stranger reading the chart saw a cliff and no reason.

The mechanism

Four pieces, one milestone.

  1. The weekly metrics run flags a week whose move in any charted series exceeds one tenth of the prior week's value. A flag is a flag: it never blocks, it never edits. script/metrics --flags prints every flagged week in the chart window with its biggest mover first, and a flagged week with no row in notes/project-metrics/week-notes.csv makes the weekly run's report say so in one line.
  2. The digest, helpers/week_digest.py: given two weekly snapshot refs, the five files that moved a flagged series most, with the commits that moved them, from git log --numstat between the snapshots. It is a separate process on purpose, because the digest is log archaeology and script/metrics is a reader of blobs and series. The weekly pull request's body carries flag and digest, pre-chewed, so an annotator starts from data rather than from a hunch.
  3. Annotations live in notes/project-metrics/week-notes.csv, one row per annotated week, written by hand or by a lane when a flag is read. The file is appended to and never regenerated, except that the weekly run drops rows whose week has aged out of the chart window, which is ten weeks (CHART_WEEKS in script/metrics), without touching any other row. The drop is the whole point of aging out: a bullet that outlives its graph explains nothing to anybody.
  4. script/metrics renders each row as a bullet under the chart it explains, in week order, in notes/project-metrics.md. Bullets under the chart, by week, per calef's ruling above; no markers inside the SVG.

Built

BUGS

Follow-on

Index row

A cliff in a weekly chart reads as a defect in an instrument until somebody says otherwise. A week whose move in any charted series exceeds a tenth of the prior week is flagged, and the weekly pull request carries the flag with a five-file digest. A hand-written row in notes/project-metrics/week-notes.csv renders as a bullet under the chart it explains, until the week ages out of the window. Milestone 609's test-file move, which cut the kernel code series by a third in 2026W40, is the first case.