roadmap BUILT

722. swish-check fails a leg that costs five times the others per line

Raised 2026-10-03 (UTC) by the maintainer session writing the merge-rate correction (notes/coes/2026-10-03-the-merge-rate.md, on PR #1513's branch until it lands). Name provisional, this file's alone.

Why

Behavior across architectures is gated by ยง19 (architectural parity is a tenet); nothing gates parity of cost. The x86_64 leg of swish-check cost 7.7 s a line against aarch64's 0.19 s, about 40 times, for two weeks. The cause was a kernel scheduling defect, fixed by #1487, milestone 628 (the x86_64 swish-check leg costs what the others do). A per-line ratio is a better tripwire than the job's wall time for this class, because it does not move when lines are added and it points at the architecture.

What to build

What shipped

cargo xtask swish-check prints each boot's median seconds a line next to a baseline row for its architecture and accelerator, and fails the leg when the median is over five times that row. The rule is leg_cost_verdict in xtask/src/swish_check.rs, pure and tested on the host. The 628 defect under KVM (7.7 s against 0.26 s) fails. One slow line among 142 does not move a median, and a boot of fewer than 20 lines is reported and not judged.

One departure from the proposal, with its reason. It asked for five times the median of all legs under the same accelerator, or a committed baseline when no peer shares one. In CI no two legs share KVM, and the legs that share TCG differ by design: x86_64 under TCG costs about fourteen times aarch64 under TCG, so a peer rule fails it on every Mac. A leg is therefore held to its own row, which is the proposal's fallback made the rule. Each row cites the CI run it was read from.

BUGS

Follow-on

Index row

BUILT on milestone/722-leg-cost (PR #1535). swish-check fails any architecture leg whose per-line time is over five times the median leg's under the same accelerator; x86_64 ran at about 40 times for two weeks unnoticed.