Repository navigation
Description
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
- Infra CI3 C1: time budgets that fail, read from real runs #782 real: the existing measured-budget collector, table and workflow guard that this ticket repairs
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
[-]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[/+]jparker2006 commentedon Nov 18, 2026
launch-fleet: start checked, branch room/1097-ci3-planted-budgets
jparker2006 commentedon Nov 18, 2026
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 haveplanted=true; four also havetrace=trueand therefore must not be counted as trace-only runs.Eligible completed planted workloads:
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.
fix: register #1097 public evidence in the carriage list
jparker2006 commentedon Nov 18, 2026
Implementation checkpoint: ready PR #1108, branch
room/1097-ci3-planted-budgets, headd0561565ab534543caf3ecc8e64df93f68b45ac1. 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.
jparker2006 commentedon Nov 18, 2026
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.
jparker2006 commentedon Nov 18, 2026
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;
rustandwebplanted 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.test: expose unmeasured planted twin fallback for #1097
green: apply authorized C8 unmeasured planted fallback (#1097)
green: confine fallback inheritance to planted rows (#1097)
jparker2006 commentedon Nov 18, 2026
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.
green: merge main for #1097 and preserve both evidence rows
jparker2006 commentedon Nov 18, 2026
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.
jparker2006 commentedon Nov 18, 2026
launch-fleet: archived