Skip to content

Infra MT7: CI3 lives in the war room and its loop reads the collector #826

Closed

Description

@jparker2006

Parent

Ticket MT7 of spec #819 (Infra).

What to build

Move CI3's measure and weekly check out of ci-bench into the war room, reading the collector. The measure, its anti-gaming rules, the three-day loop and its note are unchanged; the loop definition points at the new path.

Owned paths

  • tools/war-room/ci3.py
  • tools/war-room/ci3_check.py
  • tools/war-room/test_ci3.py
  • tools/ci-bench/ci3.py
  • tools/ci-bench/ci3_weekly.py
  • tools/ci-bench/test_ci3*.py
  • tools/ci-bench/fixtures/ci3*/
  • loops/ci3-weekly.json (shared: its script path)
  • tools/war-room/steps.tsv and check-steps (revision 4: moved from tools/ci-bench/)
  • contracts/ci3.v1.md (shared, revision 4: only its two links to ci3.py and steps.tsv, wording only; CI3's version unchanged)
  • docs/ci3.md (revision 4: its commands)

Relies on: tools/war-room/collector.v1.md, contracts/ci3.v1.md

Links

Acceptance criteria

  • CI3's tests pass unchanged at the new path
  • The loop's check gives the same note on the same synthetic weeks
  • 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

M1: CI3's own tests.

Activity

  1. added this to the Infra milestone on Nov 15, 2026
  2. added
    ready-for-agent
    held
    and removed
    ready-for-agent
    on Nov 15, 2026
  3. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Held before a plan change: #819 revision 4 (J121, approved by Jake) widens this ticket's owned paths. Released once the revision is recorded.

  4. added
    ready-for-agent
    and removed
    held
    on Nov 16, 2026
  5. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Released: #819 revision 4 is recorded (J121). This ticket's widened owned paths are in its body.

  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/826-ci3-war-room

  7. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Builder question (MT7): one path outside my owned paths.

    Found: CI3's tests now live at tools/war-room/test_ci3.py, but the synthetic fixtures they read are only owned at their old home, tools/ci-bench/fixtures/ci3/ and tools/ci-bench/fixtures/ci3-weekly/. When MT8 (#827) deletes tools/ci-bench/, those fixtures go with it, and CI3's tests break.

    Options:

    1. Grant me tools/war-room/fixtures/ci3/ and tools/war-room/fixtures/ci3-weekly/. That is a plain git mv of the two folders, unchanged, plus the one FIXTURES line in tools/war-room/test_ci3.py and their tools/open-import/paths.json row.
    2. Leave them at tools/ci-bench/fixtures/, and MT8 moves them before it deletes the folder.

    Recommendation: 1. It keeps CI3 whole in this ticket and gives MT8 nothing extra to carry.

    Until this is answered, the PR keeps the fixtures at their owned ci-bench paths, and the tests read them there. Review and CI can go on.

  8. added
    needs-info
    on Nov 16, 2026
  9. 1 remaining item

  10. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: granted, option 1, together with the pending import line: move tools/ci-bench/fixtures/ci3/ and ci3-weekly/ unchanged to tools/war-room/fixtures/, with the one FIXTURES line and the paths.json row, and the one collect_ci.py import line asked earlier. Byte-identical moves only; record them in Facts.

  11. added 4 commits that reference this issue on Nov 16, 2026
  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Builder note (MT7), for the pending collect_ci.py grant (ClosedWiz #325, 6910527502). As asked, tools/war-room/ci3.py now reads the war room's bench_reads.py, not tools/ci-bench/bench.py. Because of that, collect_ci.py needs three lines, not one, to stay green:

    -C3 = sources.native('tools/ci-bench/ci3.py')
    -B = C3.bench  # ci-bench's reader, rules and prices: the numbers ci-bench publishes
    -FAILS = (B.Fail, activity.B.Fail, OSError, ValueError, TypeError, KeyError, ArithmeticError)
    +C3 = sources.native('tools/war-room/ci3.py')
    +B = sources.native('tools/ci-bench/bench.py')  # ci-bench's reader, rules and prices: the numbers ci-bench publishes
    +FAILS = (B.Fail, C3.Fail, activity.B.Fail, OSError, ValueError, TypeError, KeyError, ArithmeticError)
    • Line 45: collect_ci uses B.collect and B.measure, which exist only in ci-bench's bench.py. Before, it reached them through ci3.bench. Now it loads ci-bench's bench.py directly, so its runs and minutes facts are unchanged.
    • Line 46: CI3 now raises bench_reads.Fail. Without this line, a CI3 failure (for example, a fork PR) escapes collect_ci.read instead of becoming an unavailable fact. I checked: reverting it fails test_a_failed_read_still_prints_the_note.
    • test_collect_ci.py: one line, its CI3 path to tools/war-room/ci3.py.

    Ask: widen the pending grant to these three lines plus that test line. They are in PR #962, listed as pending. Line 45 is still a tools/ci-bench/ reference for MT8 to clear, because MT3 never moved collect and measure.

  13. added 2 commits that reference this issue on Nov 16, 2026
  14. removed
    needs-info
    on Nov 16, 2026
  15. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator: the builder's follow-up (#826 (comment)). Repointing collect_ci.py's ci3.py import (granted in 6911880721) needs two more lines in that file: line 45 loads tools/ci-bench/bench.py directly for collect and measure, and line 46 adds C3.Fail to the caught errors (without it a CI3 failure escapes the collector raw; the fork test fails). The old-path line in test_collect_ci.py is also still pending. Fleet recommendation: grant all three, same intent. Plan gap for MT8 (#827): line 45 is the war room's last load of ci-bench's bench.py, because #947 (MT3) did not move collect and measure. MT8's path search fails on it, and no open ticket owns moving them. Suggest MT7 copies those two functions into tools/war-room/bench_reads.py (or MT8 gets that file). The #962 merge waits on this ruling; review and CI go on.

  16. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: granted. The two further lines in collect_ci.py and the one in test_collect_ci.py that the re-pointed import needs. On the gap: the owner's approved revision 4 hands the old measuring tools' leftover code to this spec's tickets, so nothing new is being decided: MT7 moves tools/ci-bench/bench.py's collect and measure code that collect_ci.py loads into tools/war-room/ as a byte-identical move (plus its registry row and import lines), since MT7 is the ticket it blocks. Nothing else in tools/ci-bench/ moves here; MT8 retires what remains. If MT3's open pull request already moves the same code, do not duplicate it: merge main in after it lands and say so. Record all of it in Facts and as Ruling: lines.

  17. added 2 commits that reference this issue on Nov 16, 2026
  18. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions