Files
peltier.io/targets/tokei/target.toml
T
Claude 0d29d51f72 gates: diff-test orchestration — corpus pin + tests + golden per target
Adds the diff-test CLI ('just gates <target>'): loads
targets/<name>/target.toml (new [corpus] section: manifest, root,
golden_sha256; commands now repo-root-relative), verifies the corpus
manifest FIRST and refuses to run any gate on mismatch, then runs the
upstream test suite and golden replay (stdout sha256 vs pinned hash).
Differential fuzz and sanitizers remain per-attempt manual steps in
Phase 1 and are reported as skipped-with-reason; all-skipped is not a
pass.

Verified end-to-end on both vendored targets (comrak: 1 pinned file,
848 tests, golden PASS; tokei: 545 pinned files, 250 tests, golden
PASS) and the refusal path (tampered corpus -> 'HASH MISMATCH ...
refusing to run' before any gate executes).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EcKPWQ3MQD4NdEHwar96u2
2026-07-06 23:30:40 +00:00

29 lines
1.2 KiB
TOML

# tokei — source-code statistics tool (Rust)
# Selection vs SPEC §6: CPU-bound line/language analysis (83% user time,
# single-threaded mode); upstream test suite; scriptable deterministic
# workload; MIT OR Apache-2.0; active, no dedicated perf team.
[source]
repo = "https://github.com/XAMPPRocky/tokei.git"
commit = "fa44e5194060305576514d59b850353643afbfc8" # v14.0.0
license = "MIT OR Apache-2.0"
[build]
baseline = "cargo build --release --manifest-path targets/tokei/workspace/Cargo.toml"
binary = "targets/tokei/workspace/target/release/tokei"
[bench]
# Single rayon thread: measurement first (SPEC conventions); the
# multi-thread mode is a playbook class-7 concern, not the baseline.
command = "RAYON_NUM_THREADS=1 {binary} --sort code corpora/tokei/input > /dev/null"
workload = "8 replicas of pinned progit + comrak/src trees, 221 MB, 4360 files, single rayon thread"
[gates]
tests = "cargo test --release --manifest-path targets/tokei/workspace/Cargo.toml"
golden = "RAYON_NUM_THREADS=1 {binary} --sort code corpora/tokei/input"
[corpus]
manifest = "corpora/tokei/MANIFEST.sha256"
root = "corpora/tokei/input/copy1"
golden_sha256 = "corpora/tokei/GOLDEN.sha256"