You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tools(tri): tri boiler census and tri dupes --like lookup by signature (boilerplate epic row F) #12450
Given an author about to write fn eq(a: []const u8, b: []const u8) -> bool, when they ask "does one exist with this shape", then today they can search by name only (tri dupes --name), and a function with the same body under another name is not found.
Given the epic's measurement, when an agent wants the current numbers (bodies, groups, long-tail share, use lines, loop shapes), then it should run one command and get all of them with the command that produced each, instead of rerunning six greps.
Given a new tick, when it starts, then it reads a single census line per metric and compares it with the Dashboard of the epic to see whether the previous tick moved anything.
Requirements
FR-001: A tri boiler census MUST print one line per metric (function bodies, duplicate bodies, groups, top-10 and top-100 share, use lines, specs with 20 or more use lines, while (i < n) loops, for loops, copies of each std function) with the exact command that produced it.
FR-002: tri dupes --like <signature> MUST list functions whose parameter types and return type match, each with file and line, so lookup-before-copy works by shape.
FR-003: The tool card specs/tools/tri/boiler.t27 MUST describe the subcommand in the schema of the other cards; Rust glue, if any, MUST be net zero in hand foreign lines (the PR body says what it deletes), otherwise this row ships as a card and a scripts/tri dispatch entry only.
FR-004: The census MUST be read-only and fit in one run on the Mac without a build (no t27c suite, no test-report).
Success Criteria
tri boiler exits 0 and prints at least 8 lines, each ending in the command that produced it.
tri dupes --like 'fn(str, str) -> bool' lists at least 5 functions.
t27c test-report specs/tools/tri/boiler.t27 passes with no vacuous pass.
Refs the epic #12444. Claim protocol: see the epic.
Who: Claude session (boilerplate-loop scheduled tick), Opus 5.5
Branch: claude/boiler-f-12450
Started (UTC): 2026-10-25T15:05Z
Done so far: claimed (tri loop claim boiler-12450 exit 0). Rows A, B wait for PR 12458 to land std::text and std::mem on master; J, G, H claims are held by other sessions. Finding: there is no tri dupes subcommand (the tri binary rejects it, no Rust source names it); lookup by name is python3 tools/dupe_scan.py --name <fn>.
Next: specs/tools/tri/boiler.t27 = the census card (one metric per row, each with the command that produces it) and a pure shape key for lookup by signature (fn(str, str) -> bool matches any header with those parameter and return types), with tests and negative controls. The Rust wiring of tri boiler is out of this tick (net-zero foreign budget).
Blocked on: nothing
Files held: specs/tools/tri/boiler.t27
Activity
gHashTag commentedon Oct 25, 2026
CLAIM: in progress
Who: Claude session (boilerplate-loop scheduled tick), Opus 5.5
Branch: claude/boiler-f-12450
Started (UTC): 2026-10-25T15:05Z
Done so far: claimed (
tri loop claim boiler-12450exit 0). Rows A, B wait for PR 12458 to land std::text and std::mem on master; J, G, H claims are held by other sessions. Finding: there is notri dupessubcommand (thetribinary rejects it, no Rust source names it); lookup by name ispython3 tools/dupe_scan.py --name <fn>.Next: specs/tools/tri/boiler.t27 = the census card (one metric per row, each with the command that produces it) and a pure shape key for lookup by signature (
fn(str, str) -> boolmatches any header with those parameter and return types), with tests and negative controls. The Rust wiring oftri boileris out of this tick (net-zero foreign budget).Blocked on: nothing
Files held: specs/tools/tri/boiler.t27
gHashTag commentedon Nov 17, 2026
Spec created: specs/tri/dupes.t27 (typecheck OK, 2 tests pass). Covers #12449 too.