Repository navigation
Closed
Labels
ready-for-agentFully specified; an agent can take it once its blockers have merged
Description
Parent
Ticket C6 of spec #780 (Infra; no milestone, ADR 0010). The contract-first ticket.
What to build
CI3's one measure, written down once, with a BEFORE number from real runs.
- A contract for the time to a PR's result: from a PR head commit's push to the final result of every required check on that head (today
ciandprivacy), green or red, at p50 and p95 over a stated window. It names the cohort rules (every PR head counts; red, cancelled and rerun results stay in, a rerun's time included; missing results are listed, never dropped), what is reported beside it (merge-queue result, runner minutes, the waiting/setup/running buckets on the critical path) and the anti-gaming rules from the spec. A definition change is a new version and restarts BEFORE. - A script that computes the measure from runs the CI bench collects (reusing its collection, not a second GitHub reader), for any window, and prints it in the contract's record form.
- The public record: BEFORE from the 2026-11-15 audit window, recomputed with this measure, aggregates only. It has a C13 section answering Infra CI2 C13: Jake reviews actual speed, spend, overload and shared-read evidence #463 with speed, runner minutes and their cost, and overload/waiting, and says which parts of C13 are out of scope under C3 (paid runners, App installs, the $60 guard).
- Close Infra CI2 C13: Jake reviews actual speed, spend, overload and shared-read evidence #463 with a comment pointing to that section.
Owned paths
contracts/ci3.v1.md(new: the measure, its record form and the anti-gaming rules)tools/ci-bench/ci3.py(new: the measure)tools/ci-bench/test_ci3.py(new)tools/ci-bench/fixtures/ci3/(new, synthetic)docs/ci3.md(new: the BEFORE record and the C13 section)tools/ci-bench/README.md(shared: a new CI3 section only).github/workflows/ci-bench.yml(shared: one step that runstest_ci3.py)
Relies on: nothing
Links
none
Acceptance criteria
- The contract defines the measure, cohort, side numbers, record form and anti-gaming rules, in plain words.
- The script gives the same p50/p95 for the same runs every time, keeps red, cancelled and rerun results in, and lists missing ones.
- The BEFORE record is in
docs/ci3.md, from real runs of the audit window, with its window, cohort and counts. - Infra CI2 C13: Jake reviews actual speed, spend, overload and shared-read evidence #463 is closed with a comment pointing to the record's C13 section.
- Its tests run in CI through the bench workflow.
Proof
- CI3-M: red first, a synthetic window where dropping a red result or a rerun would make the number smaller; the script must not. Then the BEFORE record from real runs, checked in review.
- CI3-C13: the C13 section and the closing comment on Infra CI2 C13: Jake reviews actual speed, spend, overload and shared-read evidence #463.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified; an agent can take it once its blockers have merged
Activity
jparker2006 commentedon Nov 15, 2026
launch-fleet: start checked, branch openwiz-781-ci3-measure
#781: R1-R4 proofs, red: fork heads vanish, unallocated and carried j…
#781: R1-R4: refuse fork PRs, count runner time only for allocated, o…
#781: BEFORE read again after the R2-R4 fixes, unchanged: green
jparker2006 commentedon Nov 16, 2026
Builder question: PR #847's
CI benchmarks / proofis red atae3d31cbecause ofmain, not this branch.python3 -I tools/ci-bench/bench.py check-stepsfails onorigin/mainitself (3228599):bench: step 'The launch-fleet tests' ... matches no row of tools/ci-bench/steps.tsv. The step came toci.ymlwith #743, and CI tests the PR merged withmain. The earlier head 4f0d266 passed before that merge.The fix is outside #781's owned paths:
tools/ci-bench/steps.tsv, one added line,skills<TAB>The launch-fleet tests(it runs the launch-fleet skill suite, like the existingskillsrows). Nothing else changes.Options: (a) widen #781's owned paths to that one line and I add it in PR #847; (b) the orchestrator files a red-
mainfix-forward for it, and #847 stays as it is and goes green once that merges, with no new head needed. Recommendation: (b), becausemainis red for every bench-touching PR, not just this one.jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator
The builder's question on the red
CI benchmarks / proofcheck, which is red on main itself (step 'The launch-fleet tests' from #743 has no row intools/ci-bench/steps.tsv): #781 (comment)jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: option (a) granted. Add exactly the one row
skills<TAB>The launch-fleet teststotools/ci-bench/steps.tsvin PR #847, nothing else in that file. This is the fix for the proof check that is red on main since #743, made here because it is the fastest route. Record the grant in the PR's Facts; the reviewer's re-check follows once proof is green.jparker2006 commentedon Nov 16, 2026
Builder question: I added the granted row (
skills<TAB>The launch-fleet tests, commit 641c0e5 on PR #847). Proof still can't go green, becausemainmoved again. Checked against #847 merged withorigin/main:bench.py check-stepsandtest.py'stest_x5_current_job_and_step_names_are_coveredstill fail on two more steps from the same #743 commit (71cd103), both in thecijob:Every release unit ran exactly onceEvery launch-fleet case ran exactly onceNo open PR adds them. The smallest fix is two more rows in
tools/ci-bench/steps.tsv, classified like the existingsetup<TAB>Every Rust test ran exactly once, the same kind of check in the same job:Options: (a) widen the grant to these two rows too, and I add them in #847 and hand back green; (b) a separate red-
mainfix-forward. Recommendation: (a), the same reason as before.#781: steps.tsv row for main's launch-fleet tests step (orchestrator …
jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator
The builder's follow-up: two more #743 steps (
Every release unit ran exactly once,Every launch-fleet case ran exactly once) have no row intools/ci-bench/steps.tsv, soproofstays red after the granted row: #781 (comment)jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: the grant is widened to the whole cause. PR #847 may add to
tools/ci-bench/steps.tsva row for everyci.ymlstep #743 added that has none (the launch-fleet tests row already granted,Every release unit ran exactly once,Every launch-fleet case ran exactly once, and any othercheck-stepsnames from that same merge). Rows only, nothing else in the file; list each in the PR's Facts. Ifcheck-stepsnames a step that did not come from #743, stop and ask.#781: steps.tsv rows for main's two #743 ci-job checks (widened grant…
jparker2006 commentedon Nov 16, 2026
launch-fleet: archived