Repository navigation
Description
Context
Three root scripts have no consumer in the tree, and their driving issues are closed. Each script stem was searched in package.json, .github/, scripts/, tests/, docs/, experiments/ and website/ (git grep -l -F <stem> -- . ':!scripts/<stem>.ts'). Open and closed issues were searched for the file names.
| Script | Lines | Origin | References |
|---|---|---|---|
scripts/measure-graph-routes.ts |
160 | #1030, measuring #697's move of graph reads onto ./queries (#697 closed) |
none |
scripts/replay-ci-consumers.ts |
30 | #2149, closing #2123 (closed). It needs a 100-PR snapshot file that is deliberately not committed. | none in the tree; cited only in PR #2149's body |
scripts/generated-inputs.ts |
56 | #2178 (Refs #2126 and #2190, both closed) | only its own test, tests/generated-inputs.test.ts |
generated-inputs.ts is library code with a test and no production caller. Its test runs on every root-test selection.
docs/decisions/measurement-archive.md is the retention rule for historical measurement material. A file stays on main if a current test, script, eval or CI step reads it, and a document link is a pointer, not a consumer (docs/decisions/measurement-archive.md:21-27,64-75).
scripts/measure-real-provider-dispatch.ts also has no in-tree reference, but open #1794 names it as the entry point to keep. It is therefore not part of this issue.
Scope
- Remove
scripts/measure-graph-routes.ts,scripts/replay-ci-consumers.ts,scripts/generated-inputs.tsandtests/generated-inputs.test.tsfrommain. - Record each one in
docs/decisions/measurement-archive.md, in one of two ways. Either add it to the archive branch as a new commit on top ofarchive/measurements(never rebase or force-push), following that record's procedure. Or list it under "Considered and left alone" with the lastmaincommit that contains it, if archiving a harness is judged unnecessary. Say which in the PR.
Out of scope
scripts/measure-real-provider-dispatch.ts(ui-server: migrate the opt-in provider dispatch probe to managed storage #1794).- Any other script, including other measurement or CI-planning scripts. A wider inventory belongs to the dead-code epic.
- Changing CI selection logic. If a CI planner lists any of these files as an input, update only that list.
Acceptance criteria
- The four files are absent from
main. -
git grep -n -e measure-graph-routes -e replay-ci-consumers -e generated-inputs -- . ':!docs/decisions/measurement-archive.md'returns nothing. -
docs/decisions/measurement-archive.mdnames each file and either the archive commit or the lastmaincommit, as a full SHA. -
bun run check:pr --base origin/mainpasses. The planner may have referenced these files dynamically, so this check proves it did not.
Verification
bun run test
bun run lint
bun test tests/decision-citations.test.ts --timeout 30000
bun run check:pr --base origin/mainContract impact
None. Root tooling only, no changeset.
Found by a repository review on 2026-10-22.
Activity
schlessera commentedon Nov 2, 2026
Claimed (claim token
wi-2510-k7q3). Branchchore/2510-dead-root-scriptsfromepic/2542-dead-code(epic integration branch). Collision check on the cited files: no path collisions; dependency-closure overlaps only (open PRs whose selected tests includetests/generated-inputs.test.ts, e.g. #3056, #3059, #3116, #3288).chore(ci): remove three root scripts with no consumer (#3317)
schlessera commentedon Nov 2, 2026
Delivered to the epic integration branch
epic/2542-dead-codeas644ef0ebcvia #3317, after ready-candidate proof passed against the exact epic base. This issue closes when the epic batch lands on main.