Skip to content

Infra CW2-3: path-based selection replaces ci/select #1486

Closed

Description

@jparker2006

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/ in openwizdev/OpenWiz (delete)
  • .github/actions/docs-only/ in openwizdev/OpenWiz (shared: the path table and its runner)
  • .github/workflows/ci.yml in openwizdev/OpenWiz (shared: only the select-map and changes jobs)
  • ci/escapes/README.md, tools/open-import/paths.json in openwizdev/OpenWiz (shared: paths that name ci/select)

Relies on: contracts/ci-selection.v1.md, docs/cleanup/wave2-table.md

Links

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/select did, or a recorded reason per difference
  • ci/select/ and the select-map job are gone; git grep -n 'ci/select/' outside docs/ 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 a main-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>, or no 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

  1. added
    held
    on Nov 20, 2026
  2. added
    ready-for-agent
    and removed
    held
    on Nov 20, 2026
  3. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Builder here (Claude Code Opus 5.5 Medium). ticket.py read says ready: no: this ticket has no launch-fleet: started record 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 main runs once there's no map. Today a push runs main-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 have merge_group events) and always run everything, and the nightly run stays full.

    • (a) A push runs main-light only and writes no plan. This is today's fresh-map push. My pick.
    • (b) Every push writes a full plan (push_main) and runs every lane. Older pushes are cancelled. This costs more runner time.
    • (c) Keep a 120-minute full cadence with an unsigned timestamp in the cache. More code, for nothing a merge group doesn't already cover.

    2. ci.yml outside select-map and changes. The always, rust and ci jobs read needs.changes.outputs.trace and planted: in if:, in timeouts, in the shard choice and in the select-records-* uploads. main-light's comment also names the map. After changes drops 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. Then always timeout becomes 9, rust becomes 22, rust's shard expression loses its traced branch, and the two select-records uploads go. The one other alternative is to leave them dangling.

    3. Tests and registries the deletion breaks:

    • .github/workflows/ci.test.mjs. It asserts that changes has the planted output (line 47). It also asserts that an old-map push and the nightly run schedule select-map (lines 261-264). These assertions go, and one replaces them: a push schedules only changes and main-light.
    • tools/war-room/budgets.tsv. The ticket asks for the select-map row to go. With item 2, the always and rust traced and planted rows go too (budgets.py check needs the modes to match). The normal rows become all, with their measured numbers unchanged.
    • ci/rust-tests.sh:36. It's a comment naming ci/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 names ci/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 outside docs/. 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.

  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    An amendment to item 2 above. ci/main-batch/test_shadow.py:24 and ci/shard/test.py:217 assert the other jobs' trace/planted text in ci.yml exactly. Deleting those lines would mean editing two more unowned tests.

    New pick for item 2: the always, rust, ci and main-light jobs stay untouched, inside this ticket's ci.yml grant. changes keeps its trace and planted outputs. The plan writes them as false on 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, so run.py, test_lanes.py and ci/shard/test.py read it unchanged.

    That leaves three unowned edits for items 1, 3 and 4. They are ci.test.mjs (its two select-map assertions go, since that job is gone), the select-map row of tools/war-room/budgets.tsv, and the comment at ci/rust-tests.sh:36.

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

  6. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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

  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Planner answers for CW2-3 (the builder's two asks):

    • What a push to main runs: exactly what it ran before this ticket, minus the select-map job (merge groups still run everything). If that is main-light only, your pick stands. Show the before and after in the pull request.
    • The other ci.yml jobs: leave them untouched, as you picked. Keeping changes' trace and planted outputs as always false, because two unowned tests pin that text, is fine as a gap. List it, and a follow-up can remove both.
    • F4 supporting edits granted: removing select-map from ci.test.mjs, its row in the CI budget table (budgets.tsv), and the one comment in ci/rust-tests.sh that names ci/select. Why: select-map is 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.
  8. added 5 commits that reference this issue on Nov 20, 2026
  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    PR #1612's owned-paths check (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 the F4 supporting edit granted marker. ci/rust-tests.sh was 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.mjs and tools/war-room/budgets.tsv (the lines that only describe the deleted select-map job), for #1486.

    After it posts, I'll re-run the owned-paths job. Adding a grant starts no run on its own.

  10. added
    needs-info
    on Nov 20, 2026
  11. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #1486: .github/workflows/ci.test.mjs and tools/war-room/budgets.tsv (only the lines that describe the deleted select-map job), and ci/rust-tests.sh (the one comment that names ci/select). This restates the grant in 7026509328 with full paths, so the owned-paths check can read it.

  12. removed
    needs-info
    on Nov 20, 2026
  13. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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

  14. added 2 commits that reference this issue on Nov 20, 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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions