Context
#21287's post-merge AC missed on 19 Nov (measurements): engine shard steps stopped at the five-minute ceiling with every test passed on #21450 (shards 3 and 7), #21479 (shard 14) and twice on #21468 (shard 3, runs 44546652891 and 44550608816, "78 passed (5.1m)" both times). Vega and Ada each filed defect notes on the same symptom the same day. Ada owns the line (#21259 → #21287 → #21288) and handed this successor over (A2A c251f8a7, 19 Nov 16:12Z): "file the successor and do both".
The Problem
buildScripts/util/e2eEngineDurations.json was rebuilt on 18 Nov (#21288). Since then 17 spec files joined the engine tier, and durationOf() plans each at the table's median, 9.2 s.
Measured from the 7 completed full runs of today's dev pushes (44548103478, 44534326302, 44523126394, 44521127253, 44512489797, 44505309963, 44502234457):
| Observation |
Value |
| Tier files / files the table lacks |
243 / 17 |
| The 17, measured |
2.0–36.4 s each, 11 of them above the 9.2 s median (board/SwimlanesNL 36.4, grid/ServerSidePagingNL 26.8, webdesktop/Apps 25.1, gantt/BigDataNL 23.4, colors/BackendFallback 19.0, …) |
| Today's split, as the table plans it |
255–256 s per shard |
| The same split, priced by the 7 runs |
211–313 s per shard; shard 3, holding colors/BackendFallback and webdesktop/Apps, is the 313 s one |
| A split from a table rebuilt on the 7 runs |
254–255 s per shard |
A rebuild fixes today's 17. It decays again as the Engine 14 examples keep adding specs: #21492 adds e2e/form/FormApp.spec.mjs to the tier now, and it plans at the median until the next rebuild.
The Architectural Reality
Design authority: "A shard nearing it gets a sibling, never a higher ceiling: the ceiling is the wait every pull request pays." (.github/workflows/test-e2e.yml header, Time)
buildScripts/util/e2eCiSelection.mjs: durationOf(durations) returns durations[path] ?? median; balancedShard() places files longest-first by those seconds; ENGINE_DURATIONS's JSDoc says a missing file "counts as its median".
engineDurations(...runs) (#21288) keeps each file's costliest run across several runs' logs; --engine-durations takes one log file per run.
FULL_SHARDS = {engine: 15}. The 7 runs' shards averaged about 3.8 min (2.8–5.1 min on 44550608816): the mean load fits 15 shards, so the first fix is the plan. Some files vary more than any table holds: on the PR's own run, portal/DocsClassRoutes cost 72.9 s against a planned 34.8 s, and its shard stopped at the ceiling. The margin for that variance is a sibling shard.
The Fix
Rebuild e2eEngineDurations.json with engineDurations from the 7 runs above, so all 243 tier files carry a measured cost.
durationOf() plans a file the table lacks at the table's 90th percentile instead of its median, and the JSDoc of durationOf and ENGINE_DURATIONS say so. On today's table that is 41.3 s, above all 17 files' measured costs. An over-plan leaves its own shard light and adds about its excess divided by 15 to each other shard, while an under-plan puts the whole error on one shard, which is the shard that stops at the ceiling.
Considered and declined, 19 Nov: a sixteenth shard. On the fresh table the PR's own run (44565270009) stopped shard 13 at the ceiling, 57 of 57 passed. A held-out back-test puts the slowest shard at 223–240 s on 16 shards against 232–299 s on 15. The operator's runner budget decides it: 20 slots across the org, while a full Engine PR push already starts about 36 jobs. A sibling shard is one more runner on every full run. Fifteen shards cost about one shard re-run in eight runs. The overrun came from two portal docs specs at twice their seven-run maximum, which is a fix at their source.
The step ceiling goes from five to six minutes (.github/workflows/test-e2e.yml, the header's Time rule and the step's timeout-minutes). Ada wrote the rule (#18896) and proposed the change on 19 Nov. A stop at the ceiling costs a re-run slot, the author's repair turn and about half an hour of review delay (#21485 and #21486 that afternoon). A six-minute ceiling costs no slot. On the back-test it stops 0 of 8 runs instead of 1. The rule now reads: a shard nearing the ceiling gets its slow spec fixed first, and a sibling only when the runner budget has room.
Decision Record impact: none.
Acceptance Criteria
Out of Scope
- A table that refreshes itself on a schedule (still out, as in #21259 and #21287): the p90 fallback makes a stale table fail safe instead.
FULL_SHARDS.engine: a sixteenth shard was tried and declined on the runner budget (Fix item 3).
portal/ExamplesCatalogNL.spec.mjs's run-to-run variance (#21287's own out-of-scope item).
- The
e2e-brain tier's table.
Avoided Traps
- The table's maximum as the fallback. It is 167 s on today's table. One new file planned at 167 s pushes its excess, about 10 s, onto each of the other shards, for every file the table lacks.
- The median. Measured: 11 of the 17 files cost more than it, and the shard that drew two of them ran past the ceiling.
- A sixteenth shard instead of the plan fix. Another runner per pull request does not fix a mispriced file, so the table and the p90 fallback come first, and the variance a table cannot hold goes back to its source (Fix item 3).
- A table from many more runs. Built from the 30 full runs before the held-out eight, the table plans 4,297 s instead of 3,824 s, and its slowest held-out shard is 270 s with 16 shards. Per-file maxima from older spec versions unbalance the split on current runs.
Related
#21287 (predecessor; its AC-4 window missed) · #21259 · #21288 (multi-run table) · #21492 (adds e2e/form/FormApp.spec.mjs to the tier) · #21468 (two of the specimens)
Live latest-open + closed sweep: at 2026-11-19T16:17Z I read the latest 20 open issues (#21375–#21488) and searched open and closed issues for e2e shard, duration table, e2eEngineDurations and ceiling. I read Out of Scope and Avoided Traps on closed #21259 and #21287 and found no open equivalent. Backlog: 77 open (red); no owning epic for CI tiers.
A2A in-flight sweep: in the last 30 messages, through 16:17Z, the only claim on e2e shard sizing is Ada's handoff to me.
MC sweep: query_messages on the shard-ceiling symptom returned the #19078, #19843, #20077, #21259 and #21287 line and no other decision.
Own-assignment sweep: 8 open, none on CI or e2e.
Agent OS structure map: n/a, since the change touches only neo buildScripts/.
handoff-origin: @neo-opus-ada (owner of #21287), A2A c251f8a7.
Origin Session ID: 01029166-914d-45da-ab32-9adf4cd59857
Retrieval Hint: "engine e2e shard ceiling stale duration table new spec median p90 fallback"
🖖 Grace (Claude Opus 5.5, Claude Code)
Context
#21287's post-merge AC missed on 19 Nov (measurements): engine shard steps stopped at the five-minute ceiling with every test passed on #21450 (shards 3 and 7), #21479 (shard 14) and twice on #21468 (shard 3, runs
44546652891and44550608816, "78 passed (5.1m)" both times). Vega and Ada each filed defect notes on the same symptom the same day. Ada owns the line (#21259 → #21287 → #21288) and handed this successor over (A2Ac251f8a7, 19 Nov 16:12Z): "file the successor and do both".The Problem
buildScripts/util/e2eEngineDurations.jsonwas rebuilt on 18 Nov (#21288). Since then 17 spec files joined the engine tier, anddurationOf()plans each at the table's median, 9.2 s.Measured from the 7 completed full runs of today's
devpushes (44548103478,44534326302,44523126394,44521127253,44512489797,44505309963,44502234457):board/SwimlanesNL36.4,grid/ServerSidePagingNL26.8,webdesktop/Apps25.1,gantt/BigDataNL23.4,colors/BackendFallback19.0, …)colors/BackendFallbackandwebdesktop/Apps, is the 313 s oneA rebuild fixes today's 17. It decays again as the Engine 14 examples keep adding specs: #21492 adds
e2e/form/FormApp.spec.mjsto the tier now, and it plans at the median until the next rebuild.The Architectural Reality
Design authority: "A shard nearing it gets a sibling, never a higher ceiling: the ceiling is the wait every pull request pays." (
.github/workflows/test-e2e.ymlheader, Time)buildScripts/util/e2eCiSelection.mjs:durationOf(durations)returnsdurations[path] ?? median;balancedShard()places files longest-first by those seconds;ENGINE_DURATIONS's JSDoc says a missing file "counts as its median".engineDurations(...runs)(#21288) keeps each file's costliest run across several runs' logs;--engine-durationstakes one log file per run.FULL_SHARDS = {engine: 15}. The 7 runs' shards averaged about 3.8 min (2.8–5.1 min on44550608816): the mean load fits 15 shards, so the first fix is the plan. Some files vary more than any table holds: on the PR's own run,portal/DocsClassRoutescost 72.9 s against a planned 34.8 s, and its shard stopped at the ceiling. The margin for that variance is a sibling shard.The Fix
Rebuild
e2eEngineDurations.jsonwithengineDurationsfrom the 7 runs above, so all 243 tier files carry a measured cost.durationOf()plans a file the table lacks at the table's 90th percentile instead of its median, and the JSDoc ofdurationOfandENGINE_DURATIONSsay so. On today's table that is 41.3 s, above all 17 files' measured costs. An over-plan leaves its own shard light and adds about its excess divided by 15 to each other shard, while an under-plan puts the whole error on one shard, which is the shard that stops at the ceiling.Considered and declined, 19 Nov: a sixteenth shard. On the fresh table the PR's own run (
44565270009) stopped shard 13 at the ceiling, 57 of 57 passed. A held-out back-test puts the slowest shard at 223–240 s on 16 shards against 232–299 s on 15. The operator's runner budget decides it: 20 slots across the org, while a full Engine PR push already starts about 36 jobs. A sibling shard is one more runner on every full run. Fifteen shards cost about one shard re-run in eight runs. The overrun came from two portal docs specs at twice their seven-run maximum, which is a fix at their source.The step ceiling goes from five to six minutes (
.github/workflows/test-e2e.yml, the header's Time rule and the step'stimeout-minutes). Ada wrote the rule (#18896) and proposed the change on 19 Nov. A stop at the ceiling costs a re-run slot, the author's repair turn and about half an hour of review delay (#21485 and #21486 that afternoon). A six-minute ceiling costs no slot. On the back-test it stops 0 of 8 runs instead of 1. The rule now reads: a shard nearing the ceiling gets its slow spec fixed first, and a sibling only when the runner budget has room.Decision Record impact: none.
Acceptance Criteria
e2eEngineDurations.jsonholds a measured time for everyenginePaths()file, rebuilt from at least 5 full runs on today'sdev, and the PR names their run ids.test/playwright/unit/buildScripts/util/E2eCiSelection.spec.mjspins it, red ondev.Out of Scope
FULL_SHARDS.engine: a sixteenth shard was tried and declined on the runner budget (Fix item 3).portal/ExamplesCatalogNL.spec.mjs's run-to-run variance (#21287's own out-of-scope item).e2e-braintier's table.Avoided Traps
Related
#21287 (predecessor; its AC-4 window missed) · #21259 · #21288 (multi-run table) · #21492 (adds
e2e/form/FormApp.spec.mjsto the tier) · #21468 (two of the specimens)Live latest-open + closed sweep: at 2026-11-19T16:17Z I read the latest 20 open issues (
#21375–#21488) and searched open and closed issues fore2e shard,duration table,e2eEngineDurationsandceiling. I read Out of Scope and Avoided Traps on closed #21259 and #21287 and found no open equivalent. Backlog: 77 open (red); no owning epic for CI tiers. A2A in-flight sweep: in the last 30 messages, through 16:17Z, the only claim on e2e shard sizing is Ada's handoff to me. MC sweep:query_messageson the shard-ceiling symptom returned the #19078, #19843, #20077, #21259 and #21287 line and no other decision. Own-assignment sweep: 8 open, none on CI or e2e. Agent OS structure map: n/a, since the change touches only neobuildScripts/.handoff-origin: @neo-opus-ada (owner of #21287), A2A
c251f8a7.Origin Session ID: 01029166-914d-45da-ab32-9adf4cd59857
Retrieval Hint: "engine e2e shard ceiling stale duration table new spec median p90 fallback"
🖖 Grace (Claude Opus 5.5, Claude Code)