mirror of
https://github.com/bdbrown4/peltier.io.git
synced 2026-11-07 10:58:28 +00:00
phase0: exit criteria met — tokei +10.4% median [8.5%, 12.0%] verified
Attempt 4 (phase0-tokei-002, class 3, ACCEPTED — first auto-accept): every file was read through encoding_rs_io's DecodeReaderBytes via generic read_to_end, which zero-fills every grown buffer chunk (~221MB memset/run, 8.5% of Ir) and grows without a size hint. Patch: fs::read with a BOM-gated fallback to the identical decode path (a UTF-8-BOM file transcodes invalid sequences, so the fallback is required for equivalence). Gates: golden byte-identical; differential fuzz old-vs- new binaries 4,332 iterations (BOM grid, invalid UTF-8, binary junk, randomized) zero divergence; 250 upstream tests green; ASan+LSan clean with ASan-run output hashing to golden. Bench: +9.9% [8.0%, 12.7%]. Attempt 5 (phase0-tokei-003, ship tree, ACCEPTED): stacks fat LTO+cgu=1 (real +1.6% standalone but under threshold, phase0-tokei-001) on the accepted patch; benched as a whole vs pristine: +10.4% [8.5%, 12.0%]. Median clears the Phase 0 exit bar; CI lower bound 8.5%. Case study written (results/phase0/case-study-tokei.md), ledger at 5 attempts, CLAUDE.md phase line moved to Phase 1, next hypotheses logged (tokei class-5 byte-skip table; comrak class-3 arena). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcKPWQ3MQD4NdEHwar96u2
This commit is contained in:
@@ -36,13 +36,20 @@ just compare "cmd-a" "cmd-b" # interleaved A/B with bootstrap CI
|
||||
|
||||
## Status
|
||||
|
||||
Phase 0 dry run in progress (see SPEC §5 for the phase plan and exit
|
||||
criteria). Two targets vendored and pinned (comrak 0.53.0, tokei
|
||||
14.0.0); A/A calibration passed on both workloads; three attempts in
|
||||
the ledger — best so far **+4.6% [95% CI +3.3%, +5.8%]** on comrak via
|
||||
allocator swap, `needs-human-review` (sanitizer flag, analysis in
|
||||
`results/phase0/case-study-comrak.md`). Exit criteria (≥10% verified
|
||||
win) not yet met.
|
||||
**Phase 0 complete** (see SPEC §5). Five attempts in the ledger across
|
||||
two pinned targets (comrak 0.53.0, tokei 14.0.0), A/A-calibrated,
|
||||
every number with CI and workload:
|
||||
|
||||
- **tokei +10.4% median [95% CI +8.5%, +12.0%]** — read-path buffer
|
||||
zeroing eliminated + fat LTO, byte-identical, 4,332-iteration
|
||||
diff-fuzz clean, sanitizers clean, auto-accepted
|
||||
(`results/phase0/case-study-tokei.md`). Meets the Phase 0 exit bar.
|
||||
- comrak +4.6% [+3.3%, +5.8%] — mimalloc swap, `needs-human-review`
|
||||
on an LSan reachability flag (`results/phase0/case-study-comrak.md`).
|
||||
- Two null/sub-threshold results correctly rejected and logged.
|
||||
|
||||
Next: Phase 1 trust-layer hardening (containers, perf, automated
|
||||
calibration, gate orchestration, agent IPC).
|
||||
|
||||
Done:
|
||||
- Workspace with the four trust-layer crates; core statistics
|
||||
|
||||
Reference in New Issue
Block a user