Skip to content

Infra CI3 C8: planted runs get their own measured time budgets #1097

Closed

Description

@jparker2006

Parent

Ticket C8 of spec #780 (Infra; no milestone, ADR 0010). Repairs C1 (#782).

What to build

Planted CI runs have their own time budgets, measured from planted runs, so a selector-proof run is not stopped by the shorter traced-run budget.

  • Distinguish normal, traced and planted execution when collecting and selecting budget samples. Use each mode's own eligible real runs and retain its p95, sample count, run count, window and provenance. Ambiguous mode evidence must remain unknown rather than being guessed.
  • Keep C1's calculation: about 1.5x measured p95, rounded up to a whole minute with a five-minute floor, and its existing sample/evidence rules. A cancelled or incomplete planted run is not a completed duration proving that the budget is adequate. If evidence is insufficient, report the gap explicitly; do not quietly borrow traced samples or claim an arbitrary wider timeout is measured.
  • Give planted execution its own table rows and timeout selection in the existing CI workflow. Preserve normal and traced behaviour and their independently measured values.
  • Make the budget check reject missing planted coverage, silent reuse of a traced budget for planted execution, and a workflow timeout that does not match its mode's row.
  • Keep this to the C1 budget defect. Do not change test selection, signing, events, concurrency, runners, required checks, contracts or dependencies. The selector proof and C7 remain separate tickets.

Owned paths

  • tools/war-room/budgets.py (shared: mode classification, sample selection, table generation/application and validation for the planted budget)
  • tools/war-room/budgets.tsv (shared: planted rows and only the corresponding rows needed to correct their provenance)
  • tools/war-room/test_budgets.py (shared: independent red-first cases for mode separation, missing planted rows, wrong-mode borrowing and mismatched timeouts)
  • .github/workflows/ci.yml (shared: only the timeout expressions that currently combine traced and planted execution, and directly accompanying budget comments)
  • .github/workflows/ci.test.mjs (shared: mode-specific timeout cases, if needed)
  • tools/war-room/README.md (shared: one budget section explaining the three modes and how their evidence is refreshed)
  • docs/evidence/1097/ (this ticket's aggregate budget measurements, red-first proof and validation evidence)

Relies on: nothing

Links

Acceptance criteria

  • Normal, traced and planted samples are separated using actual execution evidence; ambiguous or incomplete evidence is reported honestly.
  • Every affected planted-mode timeout uses its own row, with real run links, p95, sample count, window and source recorded. Existing C1 sample and calculation rules are preserved; insufficient evidence is a stated gap rather than invented measurement or silent borrowing.
  • Red-first external budget-check cases fail for missing planted rows, traced samples attributed to planted mode, and a mode-specific timeout that differs from its row; they pass with the fix.
  • The workflow selects the planted budget for planted execution, the traced budget for traced execution and the normal budget otherwise, without changing which tests run.
  • The budget check passes on the real table and CI/Privacy workflow inventory; unrelated budgets and workflow behaviour stay unchanged.
  • The PR records the original 56-minute planted timeout, the corrected mode-specific evidence, and a passing CI run using the corrected workflow. Workflow changes are pushed through the account permitted to change workflows.
  • No new dependencies, runner services, required-check changes, selector-contract changes or files under tools/ci-bench/ are added.

Proof

CI3-B: independent synthetic runs with different traced and planted durations expose the mixed-mode budget first; missing/wrong planted-budget fixtures fail first, then pass. Real planted run evidence supplies the table and a passing run shows the corrected workflow in use.

The original failure is PR #1094, run 44190068127 attempt 1, Rust-export job 134417717261: its annotation says the 56-minute execution limit was exceeded. Attempt 2 failed earlier in the new-thread target after 8m07s; it is not evidence of another budget timeout and is not relabelled as a flake here.

After this ticket has a verified merge, #783's existing builder merges current main normally and hands back a fresh tested head for #1094. No further rerun or one-off budget exception is part of this ticket.

Activity

  1. added
    needs-triage
    held
    and removed
    needs-triage
    on Nov 18, 2026
  2. changed the title [-]CI3 C1: planted runs share the traced time budget and time out (follow-up of #782)[/-] [+]Infra CI3 C8: planted runs get their own measured time budgets[/+] on Nov 18, 2026
  3. added
    ready-for-agent
    and removed
    held
    on Nov 18, 2026
  4. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/1097-ci3-planted-budgets

  5. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    Builder question: the required planted measurement cannot yet supply a C1 budget without changing the five-sample rule.

    I read the saved ci-selection-<attempt> dispatch artifacts across 615 completed CI runs (2026-11-14T03:17:38Z through 2026-11-18T01:54:55Z), paired each dispatch with its selection JSON by SHA-256 and run/attempt identity. Five latest attempts have planted=true; four also have trace=true and therefore must not be counted as trace-only runs.

    Eligible completed planted workloads:

    Job Samples Gap
    always 4 one early failure
    web-build 5 enough; p95 81 seconds, formula budget 5 minutes
    rust-export 1 two early failures, one cancellation, and #1094 attempt 2's early new-thread failure
    web-export 4 one cancellation
    rust / web 0 own export-twin derivation still requires an eligible same-mode measured twin

    The one completed planted Rust-export observation is run 43586844977, attempt 1: 4,233 seconds (70m33s). That is an observed duration, not an eligible five-sample p95. #1094's attempt 1 exceeded 56 minutes and was cancelled; attempt 2 failed after 8m07s before planted execution. Neither supplies a completed planted duration. #1107 remains separate.

    The red-first mode separation and budget-check implementation is in progress. I can retain explicit unmeasured rows at the existing 13/56/75-minute limits while recording the gaps; I cannot honestly call those limits measured, widen them from this sample, or claim that unblocks #783.

    Recommendation: have the measurement owner supply at least four additional completed planted Rust-export observations (and enough always/web observations) through an approved fresh measurement path, without rerunning #1094 or #1050. Then I can apply C1's unchanged formula and finish the ready PR. Please identify that measurement path/owner, or record how this evidence gap should be handled. No sample minimum, timeout exception, selector change, or workflow event change is requested or applied.

  6. added
    needs-info
    on Nov 18, 2026
  7. added a commit that references this issue on Nov 18, 2026
  8. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    Implementation checkpoint: ready PR #1108, branch room/1097-ci3-planted-budgets, head d0561565ab534543caf3ecc8e64df93f68b45ac1. Red-first mode/coverage and workflow proofs are committed; 27 budget tests, nine workflow tests, the carriage guard and all four exact-head pre-push checks pass. The initial CI carriage failure was reproduced and fixed using the standing own-registry-row allowance; a normal push starts fresh CI.

    The measurement question above remains open. Planted Rust has one completed observation, not the required five, so its existing 56-minute limit stays explicitly unmeasured. The PR preserves all measurements, provenance and gaps; it is not a complete C8 hand-back and does not unblock #783. No rerun or wider exception was applied.

  9. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator

    Measurement owner/path requested for the missing completed planted workloads: #1097 (comment) . The implementation remains a checkpoint; CI does not replace the missing samples or unblock #783.

  10. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: the planner's option, same rule as #782 question 4. Planted rows with fewer than 5 real samples get their pre-#782 limit back, 90 minutes, marked unmeasured, with provenance naming the one observed 70m33s run. Rows with 5 samples are measured as usual; rust and web planted rows stay derived from their export twins. No new measurement runs and no workflow change. File one follow-up issue to re-read the planted rows once 5 planted runs exist. #1108 ships that; then #1094 runs fresh.

  11. removed
    needs-info
    on Nov 18, 2026
  12. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    Applied ruling 6967769682 in PR #1108, green head cc180b4. The authorized undersampled planted fallback is 90 minutes, explicitly unmeasured with the existing 70m33s provenance; measured five-sample rows and same-mode twin provenance are preserved. Non-blocking #1109 is linked in the PR and committed evidence. The measurement blocker and needs-info are resolved under the ruling.

    All 30 budget tests, nine workflow tests and four mandatory exact-head pre-push checks pass. No measurement runs, historical re-scan or Actions reruns were performed. Required CI, assigned independent review and verified queue merge remain gates; #783 still waits for this verified merge.

  13. added a commit that references this issue on Nov 18, 2026
  14. jparker2006 commented on Nov 18, 2026

    @jparker2006
    MemberAuthor

    Resolved the actual #1108 registry conflict by a normal merge. New green head eb601e8 merges approved head cc180b4 with main b57e867 (old main e0d7ada). Comparison: #1108 (comment) . Only tools/open-import/paths.json conflicted; all main rows plus the own wildcard row are preserved, all 14 reviewed non-registry blobs are unchanged, and independently reconstructed expected/actual trees match. Pure main merge plus own-row resolution; no polish #1115/#1116 changes. All affected checks and four exact-head hooks pass. GitHub now reports MERGEABLE; required CI is running. Standing approval carry is eligible after fleet comparison verification and green CI. No reruns or new measurements; #783 still waits for verified merge.

  15. jparker2006 commented on Nov 18, 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