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 89 to 318

Compare

+26 −9 in 5 places
Lines 51–57 at 318 (were 51–57 at 89)
5151 assert.equal(c.runs.length, 0);
5252});
5353
54−test("a passing batch lands whole, each publish its own version, in one check", async () => {
54+test("a passing batch lands whole, each push its own version, in one check", async () => {
5555 const project = setup();
5656 for (const a of AGENTS.slice(0, 3)) queue(project, a, "1");
5757 const c = checker();
Lines 69–103 at 318 (were 69–86 at 89)
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
83−test("a failing batch is halved to the first publish that fails; the prefix before it lands, the rest waits", async () => {
100+test("a failing batch is halved to the first push that fails; the prefix before it lands, the rest waits", async () => {
84101 const project = setup();
85102 for (const [i, a] of AGENTS.slice(0, 8).entries()) queue(project, a, i === 5 ? '"BAD"' : "1");
86103 const c = checker();
Lines 130–136 at 318 (were 113–119 at 89)
113130 });
114131});
115132
116−test("a lone failing publish is pulled after failing twice", async () => {
133+test("a lone failing push is turned back after failing twice", async () => {
117134 const project = setup();
118135 queue(project, "b1", '"BAD"');
119136 const c = checker();
Lines 170–176 at 318 (were 153–159 at 89)
153170 );
154171});
155172
156−test("while shared is red, prefixes grow one publish at a time; the first that passes lands, nobody is pulled", async () => {
173+test("while shared is red, prefixes grow one push at a time; the first that passes lands, nobody is turned back", async () => {
157174 const project = setup();
158175 queue(project, "b1", "1");
159176 queue(project, "b2", "2");
Lines 206–211 at 318 (were 189–194 at 89)
189206 assert.deepEqual(
190207 project.queue().items.map((q) => q.id),
191208 [1, 2],
192− "nobody pulled",
209+ "nobody turned back",
193210 );
194211});
MCP
compare on this site's /mcp
CLI
abso diff 89 318 worker/project/test/queue-driver.test.ts --json
JSON
/christopher/abso-core/compare/89..318?file=worker%2Fproject%2Ftest%2Fqueue-driver.test.ts&format=json