Skip to content

ci: three root scripts have no consumer after their driving issues closed #2510

Closed

Description

@schlessera

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.ts and tests/generated-inputs.test.ts from main.
  • 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 of archive/measurements (never rebase or force-push), following that record's procedure. Or list it under "Considered and left alone" with the last main commit that contains it, if archiving a harness is judged unnecessary. Say which in the PR.

Out of scope

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.md names each file and either the archive commit or the last main commit, as a full SHA.
  • bun run check:pr --base origin/main passes. 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/main

Contract impact

None. Root tooling only, no changeset.

Found by a repository review on 2026-10-22.

Activity

  1. added
    type: chore
    area: ci
    priority: p3
    agent-ready
    on Oct 21, 2026
  2. self-assigned this
    on Nov 2, 2026
  3. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claimed (claim token wi-2510-k7q3). Branch chore/2510-dead-root-scripts from epic/2542-dead-code (epic integration branch). Collision check on the cited files: no path collisions; dependency-closure overlaps only (open PRs whose selected tests include tests/generated-inputs.test.ts, e.g. #3056, #3059, #3116, #3288).

  4. added this to the 0.45.0 milestone on Nov 2, 2026
  5. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Delivered to the epic integration branch epic/2542-dead-code as 644ef0ebc via #3317, after ready-candidate proof passed against the exact epic base. This issue closes when the epic batch lands on main.

  6. removed their assignment
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: cipriority: p3type: chore

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions