{"version":209,"agent":"onboard","message":"Merge queue: no cap on a batch (Christopher, 10:10 PM CT Oct 14; Agent VCS's job). A batch is everything waiting, in order; it was 8 at a time. RoundOptions.cap is gone: no caller passed one (abso's index.ts and customer-queue-round.ts pass only sharedRed). A failing batch still halves to the push that fails. The customer queue's 32-checks-per-continuation bound is unchanged: halving a few hundred waiting pushes takes about a dozen. Tests: worker/project/test/queue-driver.test.ts (10), with ten landing on one check and a failing tenth-place batch past the old cap.","time":1792034198989,"timeIso":"2026-10-15T03:16:38.989Z","changes":2,"change":3503,"files":["worker/project/queue-driver.ts","worker/project/test/queue-driver.test.ts"],"draft":null,"diff":[{"path":"worker/project/queue-driver.ts","added":2,"removed":4,"diff":"--- a/worker/project/queue-driver.ts\n+++ b/worker/project/queue-driver.ts\n@@ -4,7 +4,7 @@\n // is behind an interface (a CI runner on the server, a function in tests),\n // so this file holds only the rules agreed on #39:\n //\n-// - A batch is everything waiting, in order, up to `cap` (8).\n+// - A batch is everything waiting, in order (Christopher, Oct 14: no cap; it was 8).\n // - Pass: every publish in the batch lands, each as its own version.\n // - Fail: halve prefixes to find the passing prefix and the first publish\n //   that fails on top of it. That failing prefix is run once more; only a\n@@ -45,8 +45,6 @@\n }\n \n export interface RoundOptions {\n-\t/** The most publishes in one batch. */\n-\treadonly cap?: number;\n \t/** Whether shared's newest version fails the check now. */\n \treadonly sharedRed?: boolean;\n \treadonly now?: () => number;\n@@ -92,7 +90,7 @@\n \tconst waiting = engine.queue().items.length;\n \tif (waiting === 0) return { kind: \"idle\" };\n \tconst now = options.now ?? Date.now;\n-\tconst n = Math.min(Math.max(1, options.cap ?? 8), waiting);\n+\tconst n = waiting;\n \tlet checks = 0;\n \tlet output: string | undefined;\n \t/** The tree each prefix was checked as: a land or a pull goes ahead only on that same tree. */"},{"path":"worker/project/test/queue-driver.test.ts","added":21,"removed":4,"diff":"--- a/worker/project/test/queue-driver.test.ts\n+++ b/worker/project/test/queue-driver.test.ts\n@@ -69,14 +69,31 @@\n \tassert.deepEqual(project.queueChecking(0), []);\n });\n \n-test(\"a batch is capped; the rest waits for the next round\", async () => {\n+test(\"a batch is everything waiting, with no cap (Christopher, Oct 14): ten land on one check\", async () => {\n \tconst project = setup();\n \tfor (const a of AGENTS) queue(project, a, \"1\");\n-\tconst r = await queueRound(project, checker(), { cap: 8 });\n-\tassert.equal(r.kind === \"landed\" && r.versions.length, 8);\n+\tconst c = checker();\n+\tconst r = await queueRound(project, c);\n+\tassert.equal(r.kind === \"landed\" && r.versions.length, AGENTS.length);\n \tassert.deepEqual(\n+\t\tc.runs.map((x) => x.ids.length),\n+\t\t[AGENTS.length],\n+\t);\n+\tassert.deepEqual(project.queue().items, []);\n+});\n+\n+test(\"a failing batch past the old cap of 8 still halves to the push that fails, and the rest waits\", async () => {\n+\tconst project = setup();\n+\tfor (const [i, a] of AGENTS.entries()) queue(project, a, i === 8 ? '\"BAD\"' : \"1\");\n+\tconst c = checker();\n+\tconst r = await queueRound(project, c);\n+\tassert.equal(c.runs[0]!.ids.length, AGENTS.length, \"the first check is the whole queue\");\n+\tassert.ok(r.kind === \"pulled\");\n+\tassert.deepEqual(r.pulled, [9]);\n+\tassert.equal(r.versions.length, 8, \"the eight before it land\");\n+\tassert.deepEqual(\n \t\tproject.queue().items.map((q) => q.id),\n-\t\t[9, 10],\n+\t\t[10],\n \t);\n });\n "}],"ci":null}