Skip to content

Infra CI3 C6: the time-to-result measure, its contract and the BEFORE record (closes C13) #781

Closed

Description

@jparker2006

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 ci and privacy), 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 runs test_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

Activity

  1. added
    ready-for-agent
    on Nov 15, 2026
  2. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch openwiz-781-ci3-measure

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

    @jparker2006
    MemberAuthor

    Builder question: PR #847's CI benchmarks / proof is red at ae3d31c because of main, not this branch. python3 -I tools/ci-bench/bench.py check-steps fails on origin/main itself (3228599): bench: step 'The launch-fleet tests' ... matches no row of tools/ci-bench/steps.tsv. The step came to ci.yml with #743, and CI tests the PR merged with main. 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 existing skills rows). 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-main fix-forward for it, and #847 stays as it is and goes green once that merges, with no new head needed. Recommendation: (b), because main is red for every bench-touching PR, not just this one.

  5. added
    needs-info
    on Nov 16, 2026
  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator
    The builder's question on the red CI benchmarks / proof check, which is red on main itself (step 'The launch-fleet tests' from #743 has no row in tools/ci-bench/steps.tsv): #781 (comment)

  7. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: option (a) granted. Add exactly the one row skills<TAB>The launch-fleet tests to tools/ci-bench/steps.tsv in 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.

  8. removed
    needs-info
    on Nov 16, 2026
  9. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Builder question: I added the granted row (skills<TAB>The launch-fleet tests, commit 641c0e5 on PR #847). Proof still can't go green, because main moved again. Checked against #847 merged with origin/main: bench.py check-steps and test.py's test_x5_current_job_and_step_names_are_covered still fail on two more steps from the same #743 commit (71cd103), both in the ci job:

    • Every release unit ran exactly once
    • Every launch-fleet case ran exactly once

    No open PR adds them. The smallest fix is two more rows in tools/ci-bench/steps.tsv, classified like the existing setup<TAB>Every Rust test ran exactly once, the same kind of check in the same job:

    setup	Every release unit ran exactly once
    setup	Every launch-fleet case ran exactly once
    

    Options: (a) widen the grant to these two rows too, and I add them in #847 and hand back green; (b) a separate red-main fix-forward. Recommendation: (a), the same reason as before.

  10. added a commit that references this issue on Nov 16, 2026
  11. added
    needs-info
    on Nov 16, 2026
  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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 in tools/ci-bench/steps.tsv, so proof stays red after the granted row: #781 (comment)

  13. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: the grant is widened to the whole cause. PR #847 may add to tools/ci-bench/steps.tsv a row for every ci.yml step #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 other check-steps names from that same merge). Rows only, nothing else in the file; list each in the PR's Facts. If check-steps names a step that did not come from #743, stop and ask.

  14. removed
    needs-info
    on Nov 16, 2026
  15. added a commit that references this issue on Nov 16, 2026
  16. 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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions