Repository navigation
Description
Parent
Ticket CW2-3 of spec #1388 (Infra). Size: M.
What to build
Replace ci/select/ (50,739 lines, 47,281 of them the committed map.json) with path-based selection, per the wave 2 table's replace row and its section "What FF5 (#1335) needs from path-based selection". classify.sh's path table in .github/actions/docs-only/ grows from lanes to lanes and test ids: a doc or skill path selects exactly the Rust tests that read it (named in the table), never the whole rust lane; a doc no test reads selects nothing; rust:test:checks stays always-run. One planted edit per skip rule, checked with no tracer. Pushes to main, nightly, merge groups, reruns, release-*, stale events, unknown paths and any CI or toolchain path run everything (decide.sh's plain case, unchanged). apps/web/** still runs the old web view's export until AP11 deletes it. The output stays an openwiz.ci-selection.v1 record that run.py, shard, gate and escapes read unchanged, and the ci3.v1 timing record stays. Then delete ci/select/, the select-map job, the trace, sign and plant code in .github/actions/docs-only/ (run.py, plan.py, test_plan.py, test_workflow.py, test_execution.py, test.sh), and the CI budget rows for select-map. The successor's budget is 1,000 lines including tests. FF5's rules, as merged, are this ticket's acceptance tests.
Owned paths
ci/select/inopenwizdev/OpenWiz(delete).github/actions/docs-only/inopenwizdev/OpenWiz(shared: the path table and its runner).github/workflows/ci.ymlinopenwizdev/OpenWiz(shared: only theselect-mapandchangesjobs)ci/escapes/README.md,tools/open-import/paths.jsoninopenwizdev/OpenWiz(shared: paths that nameci/select)
Relies on: contracts/ci-selection.v1.md, docs/cleanup/wave2-table.md
Links
- Infra FF5: fast CI: run only what a change can break #1335 real: FF5 owns
ci/select/and lands first; its rules carried over are this ticket's tests
Acceptance criteria
- Red first: each of FF5's selection rules, and each planted case, is a failing test against a stub path table before the table is filled
- Pull-request selection on FF5's recorded cases gives the same lanes and test ids as
ci/selectdid, or a recorded reason per difference -
ci/select/and theselect-mapjob are gone;git grep -n 'ci/select/'outsidedocs/finds nothing; the successor plus its tests is at most 1,000 lines - The plan record still validates against
contracts/ci-selection.v1.md; full CI is green at the exact head, and once on amain-like run (all lanes) - Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test
catches: <the bug>, orno new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first. - Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.
Proof
The rule and planted-case tests, the comparison on FF5's cases, and green CI at the exact head.
Builder Claude Code Opus 5.5 Medium and reviewer a fresh Claude Code Opus 5.5 Medium thread that never built it (J246; same-family review as J224), no helper agents.
Activity
jparker2006 commentedon Nov 20, 2026
Builder here (Claude Code Opus 5.5 Medium).
ticket.py readsaysready: no: this ticket has nolaunch-fleet: startedrecord from a record author yet (#1485 and #1487 have theirs). I have not claimed it. I am reading and drafting locally, and will claim once a start record is here.Building it needs edits outside the owned paths. Each is below with options and my pick.
1. What a push to
mainruns once there's no map. Today a push runsmain-light, plus the full traced plan only when the signed map is over 120 minutes old (#1055). That gate exists only to keep the map fresh. Merge groups are on (recent runs havemerge_groupevents) and always run everything, and the nightly run stays full.main-lightonly and writes no plan. This is today's fresh-map push. My pick.push_main) and runs every lane. Older pushes are cancelled. This costs more runner time.2.
ci.ymloutsideselect-mapandchanges. Thealways,rustandcijobs readneeds.changes.outputs.traceandplanted: inif:, in timeouts, in the shard choice and in theselect-records-*uploads.main-light's comment also names the map. Afterchangesdrops those outputs, they all read as empty. That gives (a) but leaves dead tracer lines behind. I'd like to delete them as a deletion-only edit. Thenalwaystimeout becomes9,rustbecomes22,rust's shard expression loses its traced branch, and the twoselect-recordsuploads go. The one other alternative is to leave them dangling.3. Tests and registries the deletion breaks:
.github/workflows/ci.test.mjs. It asserts thatchangeshas theplantedoutput (line 47). It also asserts that an old-map push and the nightly run scheduleselect-map(lines 261-264). These assertions go, and one replaces them: a push schedules onlychangesandmain-light.tools/war-room/budgets.tsv. The ticket asks for theselect-maprow to go. With item 2, thealwaysandrusttraced and planted rows go too (budgets.py checkneeds the modes to match). Thenormalrows becomeall, with their measured numbers unchanged.ci/rust-tests.sh:36. It's a comment namingci/select/, which the grep criterion catches. I'd reword it to name the plan.4. The grep criterion and
tools/test-value/evidence/cw11/. That folder namesci/select/in about 160 lines of history. #1484 is moving it to the private record. My pick: leave it to #1484 and record this as the one known hit outsidedocs/. The alternative is to edit #1484's evidence, which I won't do unasked.I'm building on these picks while I wait. Each one I'm told otherwise on gets changed before the hand-back.
jparker2006 commentedon Nov 20, 2026
An amendment to item 2 above.
ci/main-batch/test_shadow.py:24andci/shard/test.py:217assert the other jobs'trace/plantedtext inci.ymlexactly. Deleting those lines would mean editing two more unowned tests.New pick for item 2: the
always,rust,ciandmain-lightjobs stay untouched, inside this ticket'sci.ymlgrant.changeskeeps itstraceandplantedoutputs. The plan writes them asfalseon every event, and a push writes no plan. So those references can never be true. Deleting them, and their test assertions, is a deletion-only follow-up. The plan's dispatch keeps both keys, sorun.py,test_lanes.pyandci/shard/test.pyread it unchanged.That leaves three unowned edits for items 1, 3 and 4. They are
ci.test.mjs(its twoselect-mapassertions go, since that job is gone), theselect-maprow oftools/war-room/budgets.tsv, and the comment atci/rust-tests.sh:36.jparker2006 commentedon Nov 20, 2026
launch-fleet: started
jparker2006 commentedon Nov 20, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5 Medium
skills: build-ticket@0.1.2
step: Fixed R1 and R2 red first at 2aaca52; CI is running for the re-check.
time: 2026-11-20T01:07:33Z
pr: #1612
jparker2006 commentedon Nov 20, 2026
Planner answers for CW2-3 (the builder's two asks):
mainruns: exactly what it ran before this ticket, minus theselect-mapjob (merge groups still run everything). If that ismain-lightonly, your pick stands. Show the before and after in the pull request.ci.ymljobs: leave them untouched, as you picked. Keepingchanges'traceandplantedoutputs as alwaysfalse, because two unowned tests pin that text, is fine as a gap. List it, and a follow-up can remove both.select-mapfromci.test.mjs, its row in the CI budget table (budgets.tsv), and the one comment inci/rust-tests.shthat namesci/select. Why:select-mapis deleted by this ticket, and those lines only describe it. Nothing else outside the owned paths changes. List each under the pull request's rulings.tools/test-value/evidence/cw11/: it's left to CW2-1 Infra CW2-1: the rest of tools/test-value/evidence moves to the private record #1484, as you picked.#1486: red: a main push keeps its 120-minute full cadence by the last…
#1486: a main push's full cadence reads the last full main run; trace…
#1486: the gate skips every old run instead of stopping at the first
#1486: merge origin/main (C1's owned-paths job and lines kept; select…
#1486: green: path-based selection replaces ci/select (local checks log)
jparker2006 commentedon Nov 20, 2026
PR #1612's
owned-pathscheck (C1, #1418, merged just before this PR) fails on two files. The grant in comment 7026509328 names them by filename (ci.test.mjs,budgets.tsv). The check covers only full repository paths in backticks after theF4 supporting edit grantedmarker.ci/rust-tests.shwas named in full and passes.Asking a record author for one comment restating the same grant with full paths, for example:
F4 supporting edit granted:
.github/workflows/ci.test.mjsandtools/war-room/budgets.tsv(the lines that only describe the deletedselect-mapjob), for #1486.After it posts, I'll re-run the
owned-pathsjob. Adding a grant starts no run on its own.jparker2006 commentedon Nov 20, 2026
F4 supporting edit granted (planner), for #1486:
.github/workflows/ci.test.mjsandtools/war-room/budgets.tsv(only the lines that describe the deletedselect-mapjob), andci/rust-tests.sh(the one comment that namesci/select). This restates the grant in 7026509328 with full paths, so the owned-paths check can read it.jparker2006 commentedon Nov 20, 2026
agent: reviewer
state: done
harness: Codex
model: Sol 6.2 Medium
skills: review-ticket@0.1.2
step: Posted the exact-head approval after reproducing and closing R1 and R2.
time: 2026-11-20T01:22:47Z
pr: #1612
#1486: red: a pin or link move runs the skill suites; a main-push rer…
#1486: green: a pin or link move runs every skill suite; a main-push …