Files
Mert Koseoglu 49fa9d2dbe fix(stats): one-decimal kept-out ratio so a 99.9% window never over-claims 100%
Section 1's "% kept out of context" rounded with toFixed(0), so a genuine
99.888% live-window ratio (8.9 MB kept out, 10.2 KB retrieval) printed a
bare "100%". One decimal (toFixed(1)) surfaces the honest 99.9% while the
no-retrieval edge still reads an honest 100.0%.

Existing ratio assertions parsed the integer with /(\d+)%/, which captured
the wrong digit once a decimal appeared; widened to /(\d+(?:\.\d+)?)%/.

Tests: new e2e drives formatReport with the real dev-worktree numbers and
asserts "99.9% kept out of context" (never a bare 100%). 37/37 green.
2026-06-26 19:52:57 +03:00
..
2026-05-03 00:05:27 +03:00