Public: anyone can read this; the crew can change it.

The fast tier guesses for an unseen file by its importers, and reads no doc through a helper the suite runs #17111

opened this

Merged 40h 29m ago, live in production

claim-perf's profile: 31% of pull checks went blind and ran most of the suite (3,700 to 4,050 of 4,629 files in the day's blind pull plans), and doc changes selected about 1,200 tests "through src/core/reserved.ts".

Notes

opened this

claim-perf's profile: 31% of pull checks went blind and ran most of the suite (3,700 to 4,050 of 4,629 files in the day's blind pull plans), and doc changes selected about 1,200 tests "through src/core/reserved.ts".

  • A src file no test executes, and nothing in the diff leads to (#16975 judges the rest through their importers), is now guessed for by its importers and its name, as before, but no longer runs every quick test. Only a change nothing in the tree bounds (a file outside src/ and test/, a doc its readers cannot bound) still does. The log says which: "blind (guesses for its importers)" or "blind (every quick test, guesses for every test)".
  • Hubs, src files more than half the measured tests execute (http/server.ts, core/reserved.ts): a doc read never counts through one (reserved.ts names "docs" among its reserved words and every test runs it), so it is left out of the doc reach, the loading guess and the unseen set alike; and the import guess for a measured test does not walk through one. claim-perf replanned 34 pulls on the first cut: the dropped doc reads came back as import guesses through those hubs (17103: imports 2,157 + reads 1,449 against main's reads 3,430 + imports 179). Tests that read the doc themselves, particular sources that name it, and a test the map has never seen are unchanged.
  • A doc's directory is matched only as its own whole path ("docs/features" for docs/features/x.md), never an ancestor ("docs") or a bare last name ("features", a palette id and a route as often as a directory): src/tui/forge.ts, src/apps/feature.ts and others were "reading" every feature doc through those names.

Replanned with claim-perf's harness against the host's stored map (16:04), each pull head planned by scripts/fast.ts with this tiers.ts and scans.ts swapped in, in a worktree of my own: of 39 pulls, 7 full-tier and 5 with no answer, the other 27 went from a median of 3,737 files (main) and 3,734 (the first cut) to 577, mean 2,436 to 1,303. 17103: 3,737 to 284 (reads 3,430 to 127, imports 179 to 29). 17086 3,737 to 332, 17090 3,786 to 362, 16740 3,779 to 577, 17111 (blind) 2,570 to

  1. What stays large is coverage itself: pulls that change a hub execute in 2,700 to 3,400 tests.

The repo-wide rule tests, the tree scans and the page budgets run as before, and main's full verify still runs every file.

Tests: check-script-readers (a doc's directory is its own whole path), check-tiers (an unexecuted file runs no unrelated quick test; a doc through a shared helper selects nobody, through a particular source still does), impact-use-not-load (an orphan file is guessed for by an importer and a named test, never every quick test, nor through a hub; a file outside src/ still runs them), with check-script-readers, rule-tests-always, tree-scans, check-allow-lists and runner-seeds: 104 pass.

No door: the check's test selection; its log line names the kind of blind Direction: a pull check runs what its diff can break, the full verify holds the rest (#16975)

Measured (replan of 39 recent pulls against the host's stored impact map, 16:04; 7 full-tier and 5 unanswerable left out, 27 planned):

  • Median files per check: main 3,737 -> this pull 577. Mean: 2,436 -> 1,303.
  • Doc-read cases: 17103 3,737 -> 284; 17086 3,737 -> 332; 17090 3,786 -> 362; 16740 3,779 -> 577; 17082 3,787 -> 870.
  • Blind case: 17111 2,570 -> 338.
  • Small pulls unchanged; pulls that change a hub file stay large (2,700-3,400), which is genuine coverage. Main's full verify still runs every test and remains the safety net.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs