Context
On dev's push of e161f623bf (2026-10-17 21:02Z), two of the three e2e-engine shards failed while every test passed. Shard 1 reported 133 passed (5.1m) and shard 3 87 passed (5.1m), and both ended with ##[error]The action 'Run e2e (engine tier)' has timed out after 5 minutes. On #19842, shard 1 fails the same way. The ✘ lines in those logs belong to WorkerErrorGate.spec.mjs's test.fail() twins and are expected.
The Problem
The tier has grown into its ceiling. Every engine-touching PR, and dev itself, now goes red on time alone, so a real failure in this check can no longer be told from the clock. That matters right before the 13.3 cut (#19652).
The Architectural Reality
.github/workflows/test-e2e.yml runs the tier as a matrix of 3 shards (shard: [1, 2, 3], shards: [3]), and the Run e2e (engine tier) step has timeout-minutes: 5 outside workflow_dispatch.
Design authority, from the workflow's header: "the ceiling is five minutes of test time per shard, enforced on the step below … A shard nearing it gets a sibling, never a higher ceiling: the ceiling is the wait every pull request pays." The same rule already moved the tier from 1 to 2 shards (#18896) and from 2 to 3 (#19079).
The Fix
Run four shards: shard: [1, 2, 3, 4], shards: [4]. The ceiling, the dispatch path and the selection in buildScripts/util/e2eCiSelection.mjs stay as they are.
The merge gate becomes one stable context (added 2026-10-17 after Emmy's CI hold on #19844). Dev's ruleset 19087298 requires e2e-engine (1/3), (2/3) and (3/3) by name. A shard's name carries the shard count, so four shards report contexts the ruleset never asks for, and every pull request would block. A gate job named e2e-engine needs the matrix and fails unless every shard succeeded. The ruleset then requires that one name, and the next sibling shard needs no ruleset edit. The swap is the operator's: in ruleset 19087298, replace the three shard contexts with e2e-engine and keep every other required context and field.
Acceptance Criteria
Out of Scope
- The ceiling itself, which the header rules out.
- Rebalancing by test weight (
PWTEST_SHARD_WEIGHTS).
- The Brain-gated tier (#19655).
Related
#18896 · #19079 · #19842 (where it surfaced) · #19652 (the cut)
Live latest-open sweep: the latest 20 open issues at 2026-10-17T21:34:05Z, plus searches for "e2e shard timeout" and "five-minute"; no equivalent open.
A2A claim sweep: no claim on the engine tier's CI in the window.
MC sweep: "engine e2e tier shard timed out after five minutes …", 6 results. Ada's 2026-09-21 2→3 bump is the precedent; no decision against a fourth shard.
Own-assignment sweep: #19841 (in PR #19842), #19652, #19765, #19766, #15000; disjoint.
Origin Session ID: caeb11ca-daae-42a2-8924-95229e329df2
Retrieval Hint: "engine e2e tier shard step timed out five minutes, a shard nearing it gets a sibling"
🖖 Grace (Opus 5.5, Claude Code) · session caeb11ca-daae-42a2-8924-95229e329df2
Context
On dev's push of
e161f623bf(2026-10-17 21:02Z), two of the threee2e-engineshards failed while every test passed. Shard 1 reported133 passed (5.1m)and shard 387 passed (5.1m), and both ended with##[error]The action 'Run e2e (engine tier)' has timed out after 5 minutes.On #19842, shard 1 fails the same way. The✘lines in those logs belong toWorkerErrorGate.spec.mjs'stest.fail()twins and are expected.The Problem
The tier has grown into its ceiling. Every engine-touching PR, and dev itself, now goes red on time alone, so a real failure in this check can no longer be told from the clock. That matters right before the 13.3 cut (#19652).
The Architectural Reality
.github/workflows/test-e2e.ymlruns the tier as a matrix of 3 shards (shard: [1, 2, 3],shards: [3]), and theRun e2e (engine tier)step hastimeout-minutes: 5outsideworkflow_dispatch.Design authority, from the workflow's header: "the ceiling is five minutes of test time per shard, enforced on the step below … A shard nearing it gets a sibling, never a higher ceiling: the ceiling is the wait every pull request pays." The same rule already moved the tier from 1 to 2 shards (#18896) and from 2 to 3 (#19079).
The Fix
Run four shards:
shard: [1, 2, 3, 4],shards: [4]. The ceiling, the dispatch path and the selection inbuildScripts/util/e2eCiSelection.mjsstay as they are.The merge gate becomes one stable context (added 2026-10-17 after Emmy's CI hold on #19844). Dev's ruleset
19087298requirese2e-engine (1/3),(2/3)and(3/3)by name. A shard's name carries the shard count, so four shards report contexts the ruleset never asks for, and every pull request would block. A gate job namede2e-engineneeds the matrix and fails unless every shard succeeded. The ruleset then requires that one name, and the next sibling shard needs no ruleset edit. The swap is the operator's: in ruleset19087298, replace the three shard contexts withe2e-engineand keep every other required context and field.Acceptance Criteria
workflow_dispatchstill runs one. Shown by PR run 39074515285 and dev push run 39083652076 at the mergee0704c93bb, each withe2e-engine (1/4)…(4/4).e2e-enginecontext reports on the fix PR's head, succeeds when every shard succeeds, and fails if any shard does not. It reported success at35eb58f821(22:23:35 → 22:23:38 UTC). The failure path holds by construction (test "${SHARDS}" = successon the matrix result); no failing run has exercised it yet.19087298requirese2e-enginein place of the three shard contexts. The operator made the swap 2026-10-18. A live read ofrules/branches/devat 00:23Z showse2e-engine(integration 15368) with no shard context, and every other required context unchanged.e0704c93bbsucceeded: four shards, each between 3m23s and 4m33s, then thee2e-enginegate at 00:45:49 → 00:45:53 UTC.Out of Scope
PWTEST_SHARD_WEIGHTS).Related
#18896 · #19079 · #19842 (where it surfaced) · #19652 (the cut)
Live latest-open sweep: the latest 20 open issues at 2026-10-17T21:34:05Z, plus searches for "e2e shard timeout" and "five-minute"; no equivalent open. A2A claim sweep: no claim on the engine tier's CI in the window. MC sweep: "engine e2e tier shard timed out after five minutes …", 6 results. Ada's 2026-09-21 2→3 bump is the precedent; no decision against a fourth shard. Own-assignment sweep: #19841 (in PR #19842), #19652, #19765, #19766, #15000; disjoint.
Origin Session ID: caeb11ca-daae-42a2-8924-95229e329df2 Retrieval Hint: "engine e2e tier shard step timed out five minutes, a shard nearing it gets a sibling"
🖖 Grace (Opus 5.5, Claude Code) · session caeb11ca-daae-42a2-8924-95229e329df2