Skip to content

fix(ci): price compact jobs for measured worker capacity - #155277

Closed
steipete wants to merge 9 commits into
mainfrom
ci-burden/p-hosted-weights
Closed

steipete wants to merge 9 commits into
mainfrom
ci-burden/p-hosted-weights

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Code PR — head b080de324cf7b661aff356d54e80af47fde10e39. The measured payload is isolated in the stacked data PR, head 18e6decf719514d88f141de7a56b9f289ff0e5de. No cap changes or auto-merge. Code P2 review is scoped-clean; native acceptance of the repaired code remains unresolved. No standalone native dispatch is part of this publication request. Splitting data does not conceal full-stack capacity or establish acceptance.

Cap options

Caps remain 130 PR Node / 90 compact / 70 push Node. At 130/90 the complete repair is refused; retaining the earlier underpriced layout would retain the measured tails. The hypothetical 145/100 option fits all three profiles with the headroom below. These are broad-PR simulations of the same workload at code head b080de324cf7b661aff356d54e80af47fde10e39, including the exact 353-observation payload.

Profile Rows at 130/90 Rows at 145/100; free rows Smallest fitting caps preserving existing limits Extra rows above 130 at minimum: hosted / Blacksmith Extra at 145/100: hosted / Blacksmith
hybrid 143/98 — refused 143/98; 2/2 free 143/98 0 / 13 0 / 13
github 139/94 — refused 136/91; 9/9 free 135/90 5 / 0 6 / 0
blacksmith 131/86 — refused 131/86; 14/14 free 131/90 0 / 1 0 / 1

Pairs mean PR Node / compact. Blacksmith's raw minimum is 131/86; 131/90 preserves the current compact limit. Physical routing is the canonical, trusted first-attempt PR route: hybrid's constrained 4/8-class jobs are Blacksmith, and the GitHub profile uses GitHub-hosted runners. GitHub packing depends on the cap: 134/89 refuses with 141/96 demand, 135/90 fits exactly, and 145/100 repacks to 136/91. The 201-evaluation replay preserves declared coverage and changes no repository policy.

Code-only rows at 145/100 are 124/79 hybrid, 136/91 GitHub, 119/74 Blacksmith. Code-only hybrid and Blacksmith also fit the unchanged caps; GitHub needs 135/90. Adding the data at the common 145/100 policy adds 19 Blacksmith rows on hybrid, no GitHub rows, and 12 Blacksmith rows on Blacksmith. This shared workload comparison does not predict the data-only PR's targeted matrix.

What Problem This Solves

Compact packing underprices work when child partitions or worker allocations change. The original five-main-run cohort contained 11 two-CPU jobs above 12 minutes despite forecasts of at most 360 seconds. Later native proof exposed an additional tooling-reader defect: retained toolingFileSeconds were not being used consistently. b080de324cf7b661aff356d54e80af47fde10e39 fixes that reader path, preserves the tooling longest-file floor, honors compatible command worker suffixes, and keys cached prices by the merged job/group environment.

User Impact

This changes CI pricing and packing, with no product behavior change. Coverage, timeouts, runtime worker policy and all row caps stay intact. The minimal config/ci-test-timings.json shape retains the base legacy maps and an empty worker-observation array. It does not include the regenerated 353 records.

The historical native criterion still fails: PR 121s → 797s and dispatch 357s → 777s. Those runs predate the repairs in b080de324cf7b661aff356d54e80af47fde10e39 and use the earlier published code/data combination. They neither certify b080de324cf7b661aff356d54e80af47fde10e39 nor prove the complete stack can pass under unchanged caps.

Why This Change Was Made

This PR owns all planner/refit-reader/schema/executor/test/doc changes. It preserves compatible measured work before repartitioning, prices the actual runner/worker allocation, keeps cold CLI and indivisible-command-file floors, and requires compatible observations before replacing serial floors. The tooling reader consumes the retained file map while preserving its longest-file floor. Command pricing retains compatible worker-suffix lookups. Price-cache identity includes the merged job/group environment so distinct executions do not share an estimate; companion assertions exercise these owner contracts.

The refit preserves memory metadata even when seconds stay unchanged and detects metadata-only changes. Log sampling retains untimestamped environment continuations; the frozen execution adapter carries its complete dependency closure. Empty stripes are removed, compatible serial tooling tails share an existing budget, and immutable pricing is memoized. No new timing multiplier, timeout, retry or cap increase is introduced.

The paired data PR contains only the regenerated config payload and provenance. Its full historical baseline and sampling tables live there; the complete published-head native job/step evidence and original-workload successor comparisons remain below in this code PR.

Evidence

  • Exact-head PR CI: 35703601380, source b080de324cf7b661aff356d54e80af47fde10e39; in progress at publication. This is not a new acceptance claim.

  • Final rebased node scripts/check-changed.mjs, formatting, docs sanity and git diff --check: passed. The code PR is +2,790 / −457 across 28 files; its timing config diff is only +2 / −1.

  • Focused repair proof: 42 tests passed in 28.76s. The additional environment regression was reproduced red, then 28 worker-cost tests passed in 1.29s: one environment test plus 27 existing cases. These are separate runs, not a combined unique-test count.

  • Final cap replay on the rebased code: 201 evaluations in 354.12s, exact passing minima and lower refusals retained; source fingerprints unchanged. The prior 280.55s replay is preserved separately.

  • Full code P2 review for b080de324cf7b661aff356d54e80af47fde10e39: scoped-clean. The rebase onto 2b943452054b57a8e1267014defee11a504b9e69 retained all nine patch entries unchanged; the earlier e2b1eab… review remains historical.

  • Native acceptance for b080de324cf7b661aff356d54e80af47fde10e39: unresolved. No standalone dispatch is part of this publication request. Historical matrices below predate the repairs, with failed jobs and wall violations preserved.

Historical Native Evidence — Published e2b1eab

The primary criterion fails once in each attempt: PR small-52 predicts 121s and takes 797s; main-shaped large-5 predicts 357s and takes 777s. PR 35689705064, attempt 1, completed with failure: 83 compact jobs, 81 successful and 2 failed. Main-shaped 35690200152, attempt 1, has 66 terminal compact jobs, 65 successful and 1 failed; the overall manual workflow was running at collection and later completed with failure (06:15:49Z).

The PR source is e2b1eabf5dd2bb16b6192c414e2b71154e56fa17; its actual merge checkout is dbcb18237ed4a4792224615b61f64b96fb9b7353, merging into 44559eb315e09528aa287878494583e32ad9582e. It uses bun-compatible policy. Dispatch source/checkout is e01ad070f46fedd99c2d82b1cdcc2a3c7e81b734, a workflow-only proof derivative of the published candidate, using Node. Both are unfrozen. Descriptor matching and child pricing use those exact historical sources and predate the repairs in b080de324cf7b661aff356d54e80af47fde10e39.

The workflow emits nondist rows only. Planner totals 85/67 include 2/1 dist selectors, giving 83/66 actual named compact jobs; no delayed dist jobs exist. The earlier 85/67 expected-job audit is superseded and retained. Dist selection is consumed by build-artifacts through core-support boundary and conditional proof-tier PTY flags. PR build-artifacts succeeded (283s whole / 95s check step); dispatch build-artifacts succeeded (923s / 622s). Conditional canaries are not counted as additional compact jobs.

PR failures: command-planner assertions (S55) and gateway-codex-delivery-cache.test.ts (S39). Dispatch S4 failed server-reload-handlers.test.ts argument expectations. The command assertions are fixed in b080de324cf7b661aff356d54e80af47fde10e39; those historical failures remain recorded, and the other failures remain unresolved. A Linux Gateway singleton diagnosis hit a Testbox source-sync timeout before setup/build/test; its lease was stopped.

PR tooling-6/9 outer native walls are 222.07s + 496.16s = 718.23s, wrappers 722.834s, executor 724.38s, whole 797s. A nested fixture's 0.720s summary is excluded from the already-inclusive outer run. The parser selects a final summary only for a declared one-config child with an outer one-shard completion; all 11 original child measurements and true multi-config durations remain intact. Dispatch large-5 has native work 678.10s, wrappers 690.089s, executor 691.55s and whole 777s.

The tooling forecast was exactly (78 + 43) files × 2s / 2 workers: retained file measurements were never read. b080de324cf7b661aff356d54e80af47fde10e39 fixes that reader and preserves the tooling longest-file floor through the existing scheduler. Main large-5 remains a workload-projection/calibration gap; methods/security history already has two effective workers, so an 8→2 multiplier is unsupported.

New failing job / child Predicted s Outer Vitest s
PR S52 / tooling-6 tail 78 222.07
PR S52 / tooling-9 tail 43 496.16
Main L5 / Gateway isolated 37.93 89.39
Main L5 / Gateway methods 142.55 238.76
Main L5 / Doctor config-state 44.74 171.63
Main L5 / security-3 131 178.32

Published-head class/job/step results

Both nondist matrices are complete with zero parser gaps: PR 83 jobs / 265 children; main-shaped 66 jobs / 237 children. Every native descriptor matches its exact-source diagnostic (83/83 and 66/66). No scratch tooling-reader patch or 451-record refit contributes to these measurements.

Run Class / CPUs / ceiling / slots Jobs pass/fail Σ P Σ Vitest work V/P work ratio Worst job: P / whole s Violations
pr blacksmith-32vcpu / 8 / 2 / 2 13/0 4665 4423.8 0.95× S26: 356 / 296 0
pr blacksmith-32vcpu / 8 / 8 / 1 33/1 11384 11139.85 0.98× L15: 356 / 527 0
pr blacksmith-8vcpu / 2 / 2 / 1 35/1 7249 7410.91 1.02× S52: 121 / 797 1
push blacksmith-32vcpu / 8 / 2 / 2 14/0 5024 5465.46 1.09× S19: 360 / 391 0
push blacksmith-32vcpu / 8 / 8 / 1 30/1 10869 12648.79 1.16× L5: 357 / 777 1
push blacksmith-8vcpu / 2 / 2 / 1 21/0 5253 3998.68 0.76× L2: 498 / 586 0

The initial two-CPU class ratio was 1.72× native work/prediction. Current two-CPU ratios are 1.02× PR and 0.76× main-shaped, with changed source, workload and placement; these are not controlled speedups. For concurrent children, native sums are work totals, not elapsed wall. Resource ceilings remain distinct from effective child pins/fallbacks.

All following values are seconds. S/L identify small/large compact job suffixes within the named run. P=prediction, V=outer Vitest work, E=executor, W=whole job; C=checkout, N=Node setup, B=runtime build, R=Run Node test shard, O=all remaining steps, U=outside recorded steps. C+N+B+R+O+U=W. CI S/F means successful/failed job; criterion violations are separate.

PR 35689705064: blacksmith-32vcpu, 8 CPUs / 2 resource workers / 2 child slots (13 jobs)
Job P V E W C N B R O U CI
S3 359 290.04 153.49 211 32 18 0 153 2 6 S
S6 360 251.19 180.6 253 47 18 0 181 1 6 S
S10 359 266.79 147.45 206 33 17 0 148 1 7 S
S13 360 379.67 217.89 291 47 18 0 218 2 6 S
S15 360 399.69 216.69 273 32 16 0 217 2 6 S
S16 359 381.6 200.27 258 32 18 0 201 2 5 S
S19 360 404.01 231.34 290 33 17 0 231 2 7 S
S21 360 363.94 208.31 255 22 17 0 208 2 6 S
S22 356 295.79 154.8 212 32 17 0 155 2 6 S
S23 360 267.62 155.54 201 23 15 0 156 1 6 S
S25 356 384.23 213.74 286 46 18 0 214 2 6 S
S26 356 397.64 224.91 296 46 18 0 225 2 5 S
S29 360 341.59 182.75 230 22 18 0 182 2 6 S
PR 35689705064: blacksmith-32vcpu, 8 CPUs / 8 resource workers / 1 child slots (34 jobs)
Job P V E W C N B R O U CI
L3 359 310.8 318.26 366 22 18 0 318 2 6 S
L4 359 384.55 392.19 465 48 16 0 392 3 6 S
L5 357 424.3 432.19 493 35 18 0 432 2 6 S
L7 359 404.42 414.38 469 31 16 0 415 2 5 S
L8 357 366.27 376.34 451 49 17 0 376 2 7 S
L9 358 334.9 343.67 399 32 15 0 344 2 6 S
L10 359 355.1 363.06 434 46 17 0 364 2 5 S
L11 360 355.87 364.05 433 46 16 0 364 1 6 S
L12 358 360.12 377.28 432 22 18 0 378 8 6 S
L13 360 245.42 253.53 329 49 18 0 253 3 6 S
L14 360 349.88 360.06 417 32 17 0 360 2 6 S
L15 356 468.3 479.93 527 22 17 0 480 2 6 S
L16 353 377.25 397.36 459 31 16 0 398 9 5 S
L17 358 353.19 365.56 423 32 18 0 366 2 5 S
L18 359 345.06 360.84 412 22 20 0 361 3 6 S
L19 343 349.64 375.74 447 46 15 0 376 3 7 S
L20 65 91 95.46 130 8 18 0 96 1 7 S
L26 44 309.26 310.46 358 21 17 0 311 2 7 S
S4 360 423.74 428.1 477 23 18 0 428 1 7 S
S5 360 283.79 291.27 339 22 18 0 291 2 6 S
S7 360 377.49 385.75 443 32 17 0 386 2 6 S
S8 360 289.96 295.25 343 22 17 0 296 2 6 S
S12 359 290.09 299.21 355 32 16 0 299 2 6 S
S14 360 394.42 403.27 476 49 16 0 403 2 6 S
S17 360 310.4 320.98 400 49 18 0 321 2 10 S
S18 360 291.56 300.33 372 46 16 0 301 1 8 S
S20 359 312.08 319.7 395 49 18 0 320 2 6 S
S24 360 321.38 329.22 387 32 17 0 329 2 7 S
S27 358 339.59 347.55 408 32 21 0 347 2 6 S
S28 360 298.73 307.28 380 48 15 0 307 4 6 S
S30 357 278.51 290.18 346 32 17 0 290 3 4 S
S31 222 219.84 242.87 290 23 17 0 243 1 6 S
S32 518 245.43 248.7 297 22 18 0 248 3 6 S
S55 147 277.52 282.08 331 22 19 0 282 1 7 F
PR 35689705064: blacksmith-8vcpu, 2 CPUs / 2 resource workers / 1 child slots (36 jobs)
Job P V E W C N B R O U CI
L1 366 259.94 264.12 394 47 17 58 264 2 6 S
L2 358 190.73 194.19 330 31 19 77 194 3 6 S
L6 200 93.46 99.36 208 21 19 60 99 3 6 S
L21 141 104.01 107.35 183 48 19 0 107 2 7 S
L22 141 138.18 141.32 201 30 20 0 142 2 7 S
L23 169 67.07 78.43 188 20 18 61 79 4 6 S
L24 200 35.32 38.08 96 31 19 0 38 3 5 S
L25 200 66.55 69.58 127 30 18 0 70 2 7 S
S1 515 330.08 333.98 444 22 19 62 334 2 5 S
S2 345 216.16 220.52 324 22 19 55 220 2 6 S
S9 359 135.3 143.58 267 21 19 75 144 2 6 S
S11 167 67 70.26 179 22 17 62 70 3 5 S
S33 432 269.7 273.24 386 21 18 65 273 3 6 S
S34 220 167.7 169.51 221 21 23 0 169 2 6 S
S35 186 215.85 218.01 293 31 33 0 218 3 8 S
S36 178 123.76 126.56 177 22 21 0 126 2 6 S
S37 174 151.35 152.57 237 54 22 0 152 2 7 S
S38 155 72.1 74.91 151 48 20 0 75 3 5 S
S39 148 53.3 57.11 189 31 18 75 57 2 6 F
S40 148 37.36 43.12 160 20 27 62 43 2 6 S
S41 128 102.38 104.04 154 21 20 0 104 3 6 S
S42 133 44.32 50.83 178 30 21 68 51 2 6 S
S43 250 254.58 259.15 337 49 22 0 259 2 5 S
S44 120 112.72 114 187 45 20 0 114 2 6 S
S45 234 230.46 234.54 283 21 20 0 234 3 5 S
S46 229 286.23 291.33 352 28 22 0 292 3 7 S
S47 114 156.72 160.98 220 31 20 0 161 2 6 S
S48 114 280.46 283.79 347 31 24 0 284 2 6 S
S49 150 364.23 368.68 429 32 20 0 369 2 6 S
S50 134 118.92 123.19 184 30 22 0 123 3 6 S
S51 128 592.62 597.47 646 20 19 0 598 2 7 S
S52 121 718.23 724.38 797 46 19 0 724 2 6 S
S53 150 315.06 320.11 380 31 20 0 320 2 7 S
S54 150 205.35 210.69 270 30 20 0 210 2 8 S
S56 147 310.83 316.15 392 48 18 0 316 3 7 S
S57 145 522.88 528.48 582 20 19 0 528 6 9 S
Main-shaped 35690200152: blacksmith-32vcpu, 8 CPUs / 2 resource workers / 2 child slots (14 jobs)
Job P V E W C N B R O U CI
S3 359 303.43 159.86 239 57 16 0 160 1 5 S
S5 359 386.13 204.87 386 50 16 0 205 2 113 S
S6 360 254.03 186.15 263 52 17 0 186 1 7 S
S11 359 307.16 170.52 224 29 17 0 170 1 7 S
S13 360 377.76 221.94 300 52 18 0 222 1 7 S
S15 360 449.63 250.87 300 25 15 0 250 5 5 S
S16 359 405.77 211.36 265 29 16 0 212 2 6 S
S19 360 596.43 338.18 391 27 17 0 338 3 6 S
S21 360 481.96 270.12 348 50 17 0 270 4 7 S
S22 356 370.31 193.79 267 50 16 0 194 2 5 S
S23 360 281.21 167.81 222 29 17 0 168 2 6 S
S25 356 406.29 224.52 300 50 18 0 225 1 6 S
S26 356 388.77 220.01 273 26 19 0 220 2 6 S
S29 360 456.58 242.69 320 52 17 0 243 1 7 S
Main-shaped 35690200152: blacksmith-32vcpu, 8 CPUs / 8 resource workers / 1 child slots (31 jobs)
Job P V E W C N B R O U CI
L3 360 371.18 380.19 436 30 18 0 380 2 6 S
L4 360 489.19 498.4 575 51 18 0 498 2 6 S
L5 357 678.1 691.55 777 59 17 0 691 3 7 S
L7 360 559.01 572.14 627 26 19 0 572 3 7 S
L8 357 408.87 420.37 474 30 16 0 420 2 6 S
L9 358 460.91 471.46 525 30 16 0 471 2 6 S
L10 359 532.86 543.35 598 30 16 0 543 3 6 S
L11 360 527.37 540.14 615 51 16 0 540 3 5 S
L12 358 422.2 432.82 483 27 15 0 433 2 6 S
L13 359 329.6 341.47 396 29 17 0 342 2 6 S
L14 359 410.67 421.48 475 29 16 0 422 2 6 S
L15 360 400.13 410.74 465 30 16 0 411 2 6 S
L16 359 526.7 538.64 617 51 19 0 539 2 6 S
L17 357 492.75 508.91 585 51 17 0 509 1 7 S
L18 356 424.48 441.83 520 51 19 0 442 1 7 S
L19 358 401.05 429.09 483 30 16 0 429 1 7 S
L20 74 128.88 135.58 189 29 16 0 135 3 6 S
S4 360 257.33 260.89 337 50 17 0 261 2 7 F
S7 360 379.37 387.94 442 29 15 0 387 5 6 S
S8 360 312.84 319 376 30 19 0 319 2 6 S
S12 360 402.64 413.65 467 30 16 0 413 2 6 S
S14 360 475.82 486.78 541 29 16 0 486 4 6 S
S17 360 385.67 396.84 475 52 18 0 397 2 6 S
S18 360 297.55 305.88 383 52 17 0 306 1 7 S
S20 359 466.58 476.14 538 30 23 0 476 3 6 S
S24 360 324.23 332.17 407 51 15 0 332 3 6 S
S27 358 387.43 396.31 471 51 17 0 396 1 6 S
S28 359 472.91 485.29 543 29 20 0 485 3 6 S
S30 357 292.16 305.28 381 51 17 0 305 3 5 S
S31 227 283.1 314.18 392 54 16 0 314 2 6 S
S32 518 347.21 351.38 407 30 17 0 352 1 7 S
Main-shaped 35690200152: blacksmith-8vcpu, 2 CPUs / 2 resource workers / 1 child slots (21 jobs)
Job P V E W C N B R O U CI
L1 543 309.39 312.55 418 9 19 69 312 2 7 S
L2 498 468.62 473.47 586 9 19 77 473 2 6 S
L6 200 109.14 115.62 210 11 17 58 115 3 6 S
L21 141 114.2 117.76 155 10 19 0 118 2 6 S
L22 141 215.34 218.57 257 9 19 0 218 3 8 S
L23 169 195.04 220.33 335 9 20 76 220 3 7 S
L24 200 38.73 41.84 79 10 20 0 42 2 5 S
L25 200 80.58 83.67 121 10 20 0 84 2 5 S
S1 515 298.51 301.77 400 9 18 62 301 3 7 S
S2 345 194.29 197.91 296 9 19 61 198 3 6 S
S9 205 150.96 163.11 271 9 18 71 163 2 8 S
S10 331 79.64 82.49 174 9 17 57 83 2 6 S
S33 432 258.04 261.71 370 10 19 71 262 2 6 S
S34 178 166.28 169.69 209 9 21 0 170 3 6 S
S35 155 69.12 72.15 105 9 18 0 72 2 4 S
S36 127 36.6 40.34 145 8 19 70 40 3 5 S
S37 250 266.63 271.53 309 9 20 0 272 2 6 S
S38 234 357.51 362.85 401 10 20 0 363 2 6 S
S39 229 244.12 248.78 287 9 20 0 249 2 7 S
S40 114 305.96 310.02 346 10 18 0 310 3 5 S
S41 46 39.98 42.83 78 9 19 0 43 2 5 S

Original violating jobs: actual successors

Successors are matched by full file/config/non-worker-environment inventories, not job numbers. Each paired prediction/wall comes from one actual job. Shared/extra count config/environment/file units; P/C mark same/changed context and status is the actual CI conclusion. Additional colocated work is retained; this is a cross-revision comparison, not a controlled speedup or per-file timing allocation. S / L abbreviate checks-node-compact-small- / checks-node-compact-large-.

Original run / job Original P / whole s Inventory mapped Primary + changed-context jobs Slowest same-context successor / ID Its P / whole s
35668645654 / 106560228530 360 / 782 232/232 24 + 2 S4 / 106624160847 360 / 477
35668757942 / 106560555237 216 / 825 29/29 4 + 1 S38 / 106625780019 234 / 401
35668757942 / 106560555240 349 / 735 206/206 23 + 0 S28 / 106625779944 359 / 543
All successors of original 35668645654 / 106560228530
New job / ID Match Shared / extra Predicted / whole s Status
L12 / 106624160920 C 0 / 1283 358 / 432 pass
L16 / 106624161056 C 0 / 919 353 / 459 pass
S10 / 106624160851 P 3 / 88 359 / 206 pass
S12 / 106624160893 P 1 / 121 359 / 355 pass
S13 / 106624160713 P 11 / 110 360 / 291 pass
S14 / 106624160718 P 1 / 118 360 / 476 pass
S15 / 106624160796 P 2 / 76 360 / 273 pass
S16 / 106624160904 P 2 / 124 359 / 258 pass
S17 / 106624160732 P 3 / 156 360 / 400 pass
S18 / 106624160743 P 2 / 125 360 / 372 pass
S19 / 106624160924 P 10 / 135 360 / 290 pass
S20 / 106624160907 P 2 / 162 359 / 395 pass
S21 / 106624160816 P 1 / 95 360 / 255 pass
S22 / 106624161059 P 1 / 124 356 / 212 pass
S23 / 106624160770 P 1 / 73 360 / 201 pass
S24 / 106624160764 P 2 / 197 360 / 387 pass
S25 / 106624161203 P 2 / 96 356 / 286 pass
S26 / 106624161073 P 2 / 87 356 / 296 pass
S27 / 106624160942 P 1 / 66 358 / 408 pass
S28 / 106624160773 P 74 / 42 360 / 380 pass
S29 / 106624160810 P 1 / 192 360 / 230 pass
S3 / 106624160879 P 1 / 54 359 / 211 pass
S30 / 106624161020 P 1 / 155 357 / 346 pass
S4 / 106624160847 P 105 / 31 360 / 477 pass
S6 / 106624160787 P 2 / 87 360 / 253 pass
S8 / 106624160874 P 1 / 64 360 / 343 pass
All successors of original 35668757942 / 106560555237
New job / ID Match Shared / extra Predicted / whole s Status
S37 / 106625779849 P 7 / 3 250 / 309 pass
S38 / 106625780019 P 10 / 5 234 / 401 pass
S39 / 106625779960 P 9 / 4 229 / 287 pass
S40 / 106625780055 P 3 / 2 114 / 346 pass
S5 / 106625779895 C 0 / 139 359 / 386 pass
All successors of original 35668757942 / 106560555240
New job / ID Match Shared / extra Predicted / whole s Status
S11 / 106625779838 P 1 / 90 359 / 224 pass
S13 / 106625779763 P 3 / 118 360 / 300 pass
S14 / 106625779689 P 3 / 116 360 / 541 pass
S15 / 106625779759 P 10 / 68 360 / 300 pass
S16 / 106625779886 P 3 / 123 359 / 265 pass
S17 / 106625779882 P 1 / 158 360 / 475 pass
S18 / 106625779765 P 11 / 116 360 / 383 pass
S19 / 106625779699 P 3 / 142 360 / 391 pass
S20 / 106625779782 P 1 / 163 359 / 538 pass
S21 / 106625779690 P 2 / 94 360 / 348 pass
S22 / 106625779940 P 2 / 123 356 / 267 pass
S23 / 106625779698 P 3 / 65 360 / 222 pass
S24 / 106625779719 P 116 / 83 360 / 407 pass
S25 / 106625779968 P 2 / 96 356 / 300 pass
S26 / 106625779866 P 1 / 88 356 / 273 pass
S27 / 106625779905 P 1 / 66 358 / 471 pass
S28 / 106625779944 P 2 / 112 359 / 543 pass
S29 / 106625779791 P 9 / 184 360 / 320 pass
S30 / 106625779824 P 14 / 142 357 / 381 pass
S4 / 106625779693 P 1 / 135 360 / 337 failure
S5 / 106625779895 P 2 / 137 359 / 386 pass
S6 / 106625779851 P 1 / 88 360 / 263 pass
S8 / 106625779746 P 14 / 51 360 / 376 pass

The retained machine map contains every exact intersection, missing or moved-context file, timing-epoch transition, complete successor descriptor, extra file, per-child cost/native/config duration and whole-job preparation/floor accounting. Unknown whole-config scope is never treated as empty work.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 21, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

The branch prices compact CI test jobs using measured runner capacity and worker allocations, and updates timing collection, planning, execution, tests, and documentation.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Substantial diagnosis and regression coverage support the idea, but unchanged admission and baseline defects leave the patch unready.
Proof confidence 🦐 gold shrimp (3/6) The maintainer-author exemption applies to ordinary contributor proof. Full captured native evidence was inspected, but earlier runner executions do not qualify the repaired planner and the body expressly leaves acceptance unresolved. Independently, existing-state compatibility is insufficient because old refit baselines are rejected.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 9 items remain

Keep open: the worker-capacity pricing work remains distinct from current main, but both prior correctness findings remain in the unchanged head. The protected maintainer-authored PR also needs integration with newer CI packing and native qualification.

Priority: P2
Reviewed head: b080de324cf7b661aff356d54e80af47fde10e39

Before merge

  • [P1] Keep hosted broad plans within the enforced row caps (P1) - This prior finding remains in the unchanged head. Reading retained tooling measurements here makes the recorded code-only broad GitHub workload require at least 135 Node rows, while preflight permits 130 including appended plugin jobs. Fork and hosted-fallback broad plans therefore fail before their test matrix runs. Integrate the reader with packing that retains complete admission; the separate data PR does not fix this. Recheck the refreshed branch because current main has newer packing and no pinned test merge establishes today’s result.
  • [P2] Preserve pre-change timing baselines during refit (P2) - This prior finding remains unresolved. Making compactWorkerTimings mandatory rejects previously valid version-1 timing files. When one is supplied through the existing --out option, the refit CLI catches that parse failure and treats the baseline as absent, dropping unobserved measurements and bypassing retention thresholds. Normalize an otherwise-valid old baseline with an empty observation array before strict validation, and cover preservation through the refit entrypoint.
  • Resolve merge risk - The branch conflicts with current main’s newer packing implementation; capacity admission for the integrated result has not been established.
  • Resolve merge risk - Native qualification of the repaired pricing remains unresolved; historical observations do not demonstrate that the final planner avoids the documented forecast-versus-wall violations.
  • Complete next step - Refresh the conflicting branch against current main and qualify the resulting planner through native CI.
  • Improve patch quality - Repair complete hosted admission on the refreshed implementation without weakening coverage or timing costs.
  • Improve patch quality - Normalize pre-change timing baselines and verify retained measurements through the refit CLI.
  • Improve patch quality - Complete native timing qualification for the integrated pricing implementation.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P1] [P1] Keep hosted broad plans within the enforced row caps — scripts/lib/ci-node-test-plan.mts:1083-1088
  • [P2] [P2] Preserve pre-change timing baselines during refit — scripts/lib/ci-test-timings-schema.mts:192-195
Agent review details

How this fits together

OpenClaw’s CI planner turns test inventories and recorded timings into jobs for GitHub-hosted and Blacksmith runners. Its pricing determines how tests are packed and whether the complete matrix fits the repository’s capacity limits.

flowchart LR
  A[Test inventory] --> D[CI planner]
  B[Recorded timings] --> C[Worker capacity pricing]
  C --> D
  D --> E{Capacity limits}
  E -->|Fits| F[Runner jobs]
  E -->|Exceeds| G[Preflight refusal]
  F --> B
Loading

Technical review

Best possible solution:

Integrate class-aware pricing into the current planner, preserve existing timing baselines, and retain complete runnable coverage within the approved capacity budget with native timing qualification.

Do we have a high-confidence way to reproduce the issue?

Yes for the pinned patch defects: the recorded broad hosted replay demonstrates admission failure, and source shows an old-format --out baseline is rejected and discarded. No code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Partly: using actual execution capacity and preserving measured walls is appropriate, but activation must retain runnable admission and the refit must normalize existing baselines before validation.

Full review comments:

  • [P1] [P1] Keep hosted broad plans within the enforced row caps — scripts/lib/ci-node-test-plan.mts:1083-1088
    This prior finding remains in the unchanged head. Reading retained tooling measurements here makes the recorded code-only broad GitHub workload require at least 135 Node rows, while preflight permits 130 including appended plugin jobs. Fork and hosted-fallback broad plans therefore fail before their test matrix runs. Integrate the reader with packing that retains complete admission; the separate data PR does not fix this. Recheck the refreshed branch because current main has newer packing and no pinned test merge establishes today’s result.
    Confidence: 0.96
  • [P2] [P2] Preserve pre-change timing baselines during refit — scripts/lib/ci-test-timings-schema.mts:192-195
    This prior finding remains unresolved. Making compactWorkerTimings mandatory rejects previously valid version-1 timing files. When one is supplied through the existing --out option, the refit CLI catches that parse failure and treats the baseline as absent, dropping unobserved measurements and bypassing retention thresholds. Normalize an otherwise-valid old baseline with an empty observation array before strict validation, and cover preservation through the refit entrypoint.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against af716af2a545.

Merge-risk options

Maintainer options:

  1. Integrate within existing capacity (recommended)
    Refresh against current packing, repair baseline loading, and establish complete admission and native timing accuracy without changing caps or weakening coverage.

Security

None.

Evidence

What I checked:

  • Verified review boundary: The clean checkout is the pinned original head b080de3. Introduced changes were inspected against merge base 2b94345; unrelated endpoint drift was excluded. (b080de324cf7)
  • Complete captured proof context inspected: The full live body matches the captured 28,290-unit body and SHA-256 fc6f22d7a9d9669e1dc0588be7147243b1797b7b61838f127772ba00b6424d07. It explicitly reports code-only GitHub admission needing at least 135 Node rows against 130, and unresolved native acceptance. Historical native tables describe earlier implementations, not acceptance of the repaired head. (b080de324cf7)
  • Introduced pricing activation and enforced admission: The planner starts reading retained tooling file measurements here. The pinned workflow reserves appended plugin rows from a 130-row PR budget, and the planner throws when compact admission exceeds its allowance. The body’s code-only replay therefore establishes a real preflight failure for the pinned broad hosted workload, independently of the stacked data payload. (scripts/lib/ci-node-test-plan.mts:1083, b080de324cf7)
  • Pre-change timing baseline rejected: The schema newly requires compactWorkerTimings while retaining version 1. The refit CLI catches baseline parse failures and proceeds without previous measurements; a valid pre-change file supplied through --out consequently loses unobserved retained measurements. The committed empty-array update handles the repository file but does not migrate other existing baseline files. (scripts/lib/ci-test-timings-schema.mts:194, b080de324cf7)
  • Baseline failure consumer: The refit entrypoint silently treats a schema-rejected existing baseline as absent before generating and writing replacement timings. (scripts/ci-refit-test-timings.mts:342, b080de324cf7)
  • Current main overlap and unique remainder: Current main reads tooling file measurements and contains newer packing policies, but has no ci-compact-worker-cost.mts or compactWorkerTimings schema field. Its command estimator still divides legacy walls by usable forks. Thus tooling activation overlaps current work, while class-aware observations and conservative command-wall pricing remain distinct. No pinned test merge exists, so the old capacity replay is not evidence of today’s merged result. (scripts/lib/ci-command-test-plan.mts:103, af716af2a545)

PR surface

Tests +1386, Docs +57, Config +3, Other +887. Total +2333 across 28 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 12 1707 321 +1386
Docs 2 71 14 +57
Config 2 4 1 +3
Generated 0 0 0 0
Other 12 1008 121 +887
Total 28 2790 457 +2333

Review metrics

Metric Value Why it matters
Hosted admission gap Pinned code-only replay: minimum 135 Node rows versus 130 allowed Separating the measurement payload does not remove the pinned hosted preflight failure.
Timing format change 1 required field added; format version remains 1 Existing refit baseline files need normalization before strict validation.
Production versus test growth Production/tooling +886 lines; tests and test support +1,386 lines Production growth has a stated purpose in class-aware pricing and observation collection; validation must cover their planner and refit boundaries.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded internal CI pricing improvement; failed checks do not establish an urgent product regression.
  • merge-risk: 🚨 automation: The introduced pricing causes the pinned broad hosted workload to fail admission, and integration with newer packing remains unqualified.
  • merge-risk: 🚨 compatibility: The stricter timing schema causes valid pre-change refit baselines to be discarded.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (7 earlier review cycles)
  • reviewed 2026-09-21T23:46:44.203Z sha 1a31673 :: blocked before merge. :: [P1] Include the worker-policy module in the frozen CI adapter
  • reviewed 2026-09-22T01:01:55.745Z sha 1a31673 :: blocked before merge. :: [P1] Include the worker-policy module in the frozen CI adapter | [P2] Invalidate refit output when the worker-policy inputs change
  • reviewed 2026-09-22T01:58:59.503Z sha 1a31673 :: blocked before merge. :: [P1] Include the worker-policy module in the frozen CI adapter | [P2] Invalidate refit output when worker-policy inputs change | [P2] Preserve untimestamped environment JSON continuation lines
  • reviewed 2026-09-22T04:51:50.195Z sha bfaf76d :: blocked before merge. :: none
  • reviewed 2026-09-22T06:57:19.714Z sha e2b1eab :: blocked before merge. :: [P2] [P2] Align command tests with complete-wall pricing
  • reviewed 2026-09-22T08:24:52.317Z sha b080de3 :: blocked before merge. :: [P1] [P1] Restore hosted PR admission before activating measured tooling costs
  • reviewed 2026-09-25T22:58:28.331Z sha b080de3 :: blocked before merge. :: [P1] Keep hosted broad plans within the enforced row caps | [P2] Preserve pre-change timing baselines during refit

Reviewed October 6, 2026, 10:28 PM ET / October 7, 2026, 02:28 UTC (Revision 8).

@steipete
steipete force-pushed the ci-burden/p-hosted-weights branch from 1a31673 to bfaf76d Compare September 22, 2026 04:44
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 22, 2026
@steipete
steipete force-pushed the ci-burden/p-hosted-weights branch from bfaf76d to e2b1eab Compare September 22, 2026 05:10
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 22, 2026
@steipete
steipete force-pushed the ci-burden/p-hosted-weights branch from e2b1eab to b080de3 Compare September 22, 2026 08:12
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 26, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 7, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Closing this unqualified CI capacity experiment. Its final native acceptance remains unresolved, and current main already consumes tooling-file measurements and has newer compact packing (9de67ec). Any remaining pricing defect should be isolated against the current planner with a measured benefit within the existing capacity limits.

Closed in a sweep of maintainer PRs open longer than a week. Reopen with a current reproduction if this still matters.

@steipete steipete closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant