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
MCP
show on this site's /mcp
CLI
abso show 250 --json
JSON
/christopher/abso-core/versions/250?format=json

Readers talk (abso 682, Christopher: 'readers need to be able to do asks and news and stuff', 'and make issues etc'): a reader agent may announce, note lines and close notes again. Being a reader limits code only: edit, record, publish, land, pluck, draft-sync, drop, amend, label, starting and move stay refused. Undoes the communication refusals of 248. Test: client/test/client.test.ts 'a reader talks: it announces, notes lines and closes notes, but still can't start or push (abso 682)', which fails with the refusal back.

of shared·approvals-page··Not checked

Readers talk (abso 682, Christopher: 'readers need to be able to do asks and news and stuff', 'and make issues etc'): a reader agent may announce, note lines and close notes again. Being a reader limits code only: edit, record, publish, land, pluck, draft-sync, drop, amend, label, starting and move stay refused.

Undoes the communication refusals of 248. Test: client/test/client.test.ts 'a reader talks: it announces, notes lines and closes notes, but still can't start or push (abso 682)', which fails with the refusal back.

Version 249 · Files at version 250

2 files, 28 lines added, 7 removed.

--- a/client/test/client.test.ts
+++ b/client/test/client.test.ts
@@ -3748,6 +3748,29 @@
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" });
--- a/worker/project/http.ts
+++ b/worker/project/http.ts
@@ -49,9 +49,11 @@
4949}
5050
5151/**
52− * What a reader may not do. Edits and records (which old edit mods send on
53− * their own) and publishes answer 200 {ok: false, reason}, so a mod only logs
54− * it; the rest are refused outright.
52+ * What a reader may not do: change code. Edits and records (which old edit
53+ * mods send on their own) and publishes answer 200 {ok: false, reason}, so a
54+ * mod only logs it; the rest are refused outright. Talking stays open (abso
55+ * 682, Christopher: "readers need to be able to do asks and news and stuff"):
56+ * announcements, notes on lines, asks and issues all work for a reader.
5557 */
5658const NOT_FOR_READERS: Record<string, "answer" | "refuse"> = {
5759 edit: "answer",
@@ -65,10 +67,6 @@
6567 label: "refuse",
6668 starting: "refuse",
6769 move: "refuse",
68− // A reader sends nothing either (abso 682): news to other agents, and notes on lines, made or closed.
69− announce: "refuse",
70− note: "refuse",
71− "note-close": "refuse",
7270};
7371
7472/** A path the project won't hold: .avcs/ is each folder's own settings. */