Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 175 to 318

Compare

+21 −4 in 1 place
Lines 69–99 at 318 (were 69–82 at 175)
6969 assert.deepEqual(project.queueChecking(0), []);
7070});
7171
72−test("a batch is capped; the rest waits for the next round", async () => {
72+test("a batch is everything waiting, with no cap (Christopher, Oct 14): ten land on one check", async () => {
7373 const project = setup();
7474 for (const a of AGENTS) queue(project, a, "1");
75− const r = await queueRound(project, checker(), { cap: 8 });
76− assert.equal(r.kind === "landed" && r.versions.length, 8);
75+ const c = checker();
76+ const r = await queueRound(project, c);
77+ assert.equal(r.kind === "landed" && r.versions.length, AGENTS.length);
7778 assert.deepEqual(
79+ c.runs.map((x) => x.ids.length),
80+ [AGENTS.length],
81+ );
82+ assert.deepEqual(project.queue().items, []);
83+});
85+test("a failing batch past the old cap of 8 still halves to the push that fails, and the rest waits", async () => {
86+ const project = setup();
87+ for (const [i, a] of AGENTS.entries()) queue(project, a, i === 8 ? '"BAD"' : "1");
88+ const c = checker();
89+ const r = await queueRound(project, c);
90+ assert.equal(c.runs[0]!.ids.length, AGENTS.length, "the first check is the whole queue");
91+ assert.ok(r.kind === "pulled");
92+ assert.deepEqual(r.pulled, [9]);
93+ assert.equal(r.versions.length, 8, "the eight before it land");
94+ assert.deepEqual(
7895 project.queue().items.map((q) => q.id),
79− [9, 10],
96+ [10],
8097 );
8198});
8299
MCP
compare on this site's /mcp
CLI
abso diff 175 318 worker/project/test/queue-driver.test.ts --json
JSON
/christopher/abso-core/compare/175..318?file=worker%2Fproject%2Ftest%2Fqueue-driver.test.ts&format=json