M3 evaluation protocol (m3-eval-draft-5)
Frozen-before-data design for measuring Traceweave's Go and Rust token-fingerprint baseline on 48 public repositories — not yet run.
Ready to freeze (not yet run; corpus not yet acquired)
Limit
The M3 evaluation has not been run. No corpus has been acquired yet, no thresholds have been frozen, and no recall or false-alarm rate has been measured. Every parameter in spec/extraction.md and spec/catalogue-report.md remains experimental.
Protocol m3-eval-draft-5 (research/drafts/evaluation-protocol.md) specifies how roadmap gates M3.0–M3.6 will measure the Go (go-tokens) and Rust (rust2024-tokens) token-fingerprint baseline without tuning on held-out data.
M3.0 false-alarm budget (met, 2026-11-23)#
- Unit: one unordered repository pair
{R, C}of the same language in different owner groups, compared exhaustively across all eligible files in bothexactandnormalizedmodes. - Alarm definition: anything other than
compared+no-matchin both modes on every pair counts as an alarm — includingmatch,ambiguous,seed-limit-exceeded,not-compared, or arejectedbody — so a configuration cannot pass by abstaining. - Budget (
M3.0, decided 2026-11-23): 1 in 20 (5%) per unordered repository search. On the 48-repository corpus (24 per language, split into tuning and held-out sets yielding 132 held-out negative searches), gateM3.6is met when alarms are ≤ 6 of 132 and recorded as negative-result above 6 (ROADMAP.md). - Statistical modesty: 0 alarms in 132 searches gives an exact one-sided 95% binomial upper bound of
0.0224, and 6 alarms (0.0455) gives0.0877(assuming independent searches; repositories share searches, and the disjoint 12-search bound at 0 alarms is0.221). A stricter1 in 100budget will only be tested on a larger corpus if the 1-in-20 run passes (research/lanes/11-report-audit.md). - No recall pass line: recall by transformation and fragment-size bucket is reported with denominators and covered fractions, never converted into an invented pass/fail cutoff.
Mechanical corpus selection and exclusions#
From research/drafts/evaluation-protocol.md §3–§4:
- Pool & walk: first 100 GitHub repositories per language (
Go,Rust) matchingstars:>=2000 fork:false archived:false size:<=50000 created:<2023-11-22 pushed:>=2025-11-22, ordered bySHA-256("traceweave-m3-select-v1\n" || lowercase(full_name))and walked deterministically until 24 per language are accepted (one repo per owner; permissive licences only, verified by a fail-closed licence classifier at acquisition; no corpus source code redistributed). - Exclusions: the four census owners (
davecgh,rakyll,dtolnay,sharkdp), development-exposed owners (golang,rust-lang), forks, dependency-linked repositories (go.mod/Cargo.toml), duplicate-content repositories, generated files, vendored/test directories, files > 1 MiB, lex-error files, and files with < 16 tokens (with an error bound iflex-error+under-16-tokensexceeds 5% of held-out files).
Anti-leakage and freeze discipline#
- Before freeze (
M3.3): no held-out file is fingerprinted, catalogued, or compared. - Tuning grid (updated in
m3-eval-draft-5after Lane 11): 192 configurations across 12(k, window)settings up tok = 16, with fold-S outcome counts run first before the protocol digest is filled in, and an explicit pre-declared rule for adding higherminRegionDistinctHashesvalues if needed. - Git ancestry verification (
M3.3): the commits freezing the protocol digest, split file, and chosen configuration (freeze.json) must be verifiable git ancestors (git merge-base --is-ancestor) of the first held-out result commit. - Nine lexical positive transformations:
verbatim,ws,comments-strip,comments-add,fmt(Rust only; Gofmtdropped),rename,reorder,split-mix, andcompound(lexical only, not compilable copies, and explicitly not an adversarial or LLM-rewrite benchmark). - Independent rerun (
M3.5): a second person must rerun M3.4 and obtain identical counts.