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

Compare

+24 −1 in 2 places
Lines 3236–3242 at 318 (were 3236–3242 at 239)
32363236 "Not checked yet. Version 4 is being checked (35 s so far).",
32373237 ]);
32383238 assert.deepEqual(ciText({ ...base, checked: { version: 2, result: "none" }, running: null }, 3, now), [
3239− "CI couldn't check version 2 (the box failed twice, or abso.json has nothing to run). Versions after 2 aren't checked yet.",
3239+ "CI couldn't check version 2 (the box failed twice, or the pipeline file has nothing to run). Versions after 2 aren't checked yet.",
32403240 ]);
32413241 assert.deepEqual(
32423242 ciText({ ...base, running: null, red: { version: 1, agent: null, message: null, lastGood: null } }, 1, now),
Lines 3748–3776 at 318 (were 3748–3753 at 239)
37483748 assert.equal((await avcs(dir, "push", "-m", "rep writes")).exit, 0);
37493749 });
37503750
3751+ it("a reader talks: it announces, notes lines and closes notes, but still can't start or push (abso 682)", async () => {
3752+ const { name, folders } = await project({ "a.txt": "a\n" }, "alice");
3753+ const dir = temp();
3754+ const joined = await main(["join", name, "--agent", "rep", "--server", fake.url, "--reader"], {
3755+ cwd: dir,
3756+ env: ENV,
3757+ write: () => {},
3758+ });
3759+ assert.equal(joined.exit, 0, joined.stdout + joined.stderr);
3760+ // Talking: news to the other agents, and notes on lines, made and closed.
3761+ const said = await avcs(dir, "announce", "reader here");
3762+ assert.equal(said.exit, 0, said.out);
3763+ assert.deepEqual(said.json.to, ["alice"]);
3764+ const noted = await avcs(dir, "note", "a.txt:1", "why this line?");
3765+ assert.equal(noted.exit, 0, noted.out);
3766+ assert.equal((await avcs(dir, "note", "--close", String(noted.json.id), "--withdrawn")).exit, 0);
3767+ // Code: still refused.
3768+ const started = await main(["start", "reader work"], { cwd: dir, env: ENV, write: () => {} });
3769+ assert.match(started.stdout + started.stderr, /agent rep is a reader: it records nothing/);
3770+ assert.equal((await main(["push", "-m", "x"], { cwd: dir, env: ENV, write: () => {} })).exit, 1);
3771+ assert.equal((await avcs(folders.alice!, "news")).json.news.length > 0, true, "alice heard the reader");
3772+ });
37513774 it("reader on is refused while the agent has unpushed work, and changes nothing here", async () => {
37523775 const { folders } = await project({ "a.txt": "a\n" }, "alice");
37533776 write(folders.alice!, { "a.txt": "a, unpushed\n" });
MCP
compare on this site's /mcp
CLI
abso diff 239 318 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/239..318?file=client%2Ftest%2Fclient.test.ts&format=json