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 36 to 37

Compare

+28 −28 in 28 places
Lines 1302–1308 at 37 (were 1302–1308 at 36)
13021302 });
13031303});
13041304
1305−describe("paths from the server never leave the folder (Security)", () => {
1305+describe("paths from the server never leave the folder", () => {
13061306 // In a sync answer, as a server that let anything through would send them (the engine refuses them at record since 03a44da).
13071307 const HOSTILE = [
13081308 "../escape.txt",
Lines 1350–1356 at 37 (were 1350–1356 at 36)
13501350 assert.match(text.stdout, /\n {2}"CON\.txt": "CON\.txt" is a Windows device name\n/);
13511351 });
13521352
1353− it("refuses every spelling a disk may take for .git, .abso, .claude or node_modules (AVCS - Security)", () => {
1353+ it("refuses every spelling a disk may take for .git, .abso, .claude or node_modules", () => {
13541354 // Folded by pathKey: a long s, a dotless i and other case; then characters HFS+ leaves out when it compares names.
13551355 const twins = [
13561356 ".avc\u017F/config.json",
Lines 1379–1385 at 37 (were 1379–1385 at 36)
13791379 assert.equal(isSkippedPart(".git"), true);
13801380 });
13811381
1382− it("refuses Windows short names and characters Windows can't hold (AVCS - Git Lessons, git's CVE-2019-1353)", async () => {
1382+ it("refuses Windows short names and characters Windows can't hold (git's CVE-2019-1353)", async () => {
13831383 for (const p of [
13841384 "CLAUDE~1/settings.json",
13851385 "GIT~1/hooks/pre-commit",
Lines 1499–1505 at 37 (were 1499–1505 at 36)
14991499 });
15001500});
15011501
1502−describe("the token goes only to abso servers (Security, #30)", () => {
1502+describe("the token goes only to abso servers (#30)", () => {
15031503 it("knows the servers it may go to", () => {
15041504 for (const ok of [
15051505 "https://api.abso.dev",
Lines 1578–1584 at 37 (were 1578–1584 at 36)
15781578 });
15791579});
15801580
1581−describe("news is framed as quotes (Security, #30)", () => {
1581+describe("news is framed as quotes (#30)", () => {
15821582 it("caps each item, and indents its later lines so it cannot pass for a heading", () => {
15831583 const ctx = newsContext([
15841584 "Announcement from bob: hi",
Lines 1838–1844 at 37 (were 1838–1844 at 36)
18381838 });
18391839});
18401840
1841−describe("abso fetch and run --fetch (#37, Builder 4)", () => {
1841+describe("abso fetch and run --fetch (#37)", () => {
18421842 const MAKE = [
18431843 "const fs = require('fs');",
18441844 "fs.mkdirSync('out', { recursive: true });",
Lines 1905–1911 at 37 (were 1905–1911 at 36)
19051905 });
19061906});
19071907
1908−describe("recording first says what was deleted (#37, Builder 2)", () => {
1908+describe("recording first says what was deleted (#37)", () => {
19091909 it("names deletions as deletions", async () => {
19101910 const { folders } = await project({ "a.txt": "a\n", "gone1.ts": "x\n", "gone2.ts": "y\n" }, "alice", "bob");
19111911 const alice = folders.alice!;
Lines 2107–2113 at 37 (were 2107–2113 at 36)
21072107 });
21082108});
21092109
2110−describe("a failing publish --check says whose it is (#36, Builder 6)", () => {
2110+describe("a failing publish --check says whose it is (#36)", () => {
21112111 const CHECK =
21122112 "const fs = require('fs'); const t = fs.readFileSync('state.txt', 'utf8') + fs.readFileSync('mine.txt', 'utf8'); process.exit(t.includes('bad') ? 1 : 0);\n";
21132113
Lines 2305–2311 at 37 (were 2305–2311 at 36)
23052305 // Another process holding the lock, as a long sync would.
23062306 const holder = spawn(process.execPath, ["-e", "setTimeout(() => {}, 20000)"]);
23072307 try {
2308− // Renewed a minute ago, and its process runs: held (AVCS - Security).
2308+ // Renewed a minute ago, and its process runs: held.
23092309 writeFileSync(lock, JSON.stringify({ pid: holder.pid, time: Date.now() - 60_000, what: "sync" }));
23102310 write(root, { "a.txt": "two\n" });
23112311 process.env.AVCS_LOCK_WAIT_MS = "200";
Lines 2350–2356 at 37 (were 2350–2356 at 36)
23502350 assert.equal(lockHeld(undefined, now), false);
23512351 });
23522352
2353− it("two takers never both hold it: an unreadable lock is held until old, and one not renewed is taken over whatever its pid (AVCS - Git Lessons)", async () => {
2353+ it("two takers never both hold it: an unreadable lock is held until old, and one not renewed is taken over whatever its pid", async () => {
23542354 const { folders } = await project({ "a.txt": "one\n" }, "alice");
23552355 const root = folders.alice!;
23562356 const lock = join(root, ".avcs", "lock");
Lines 2443–2449 at 37 (were 2443–2449 at 36)
24432443 assert.match((await run(folders.bob!, "review", "v9")).stderr, /no recent change holds version 9 of shared/);
24442444 });
24452445
2446− it("abso review lists every change since the mark, page by page, before moving it (AVCS - Git Lessons)", async () => {
2446+ it("abso review lists every change since the mark, page by page, before moving it", async () => {
24472447 const { folders } = await project({ "a.ts": "a\n" }, "alice", "bob");
24482448 assert.match((await run(folders.bob!, "review")).stdout, /^No changes lately/);
24492449 for (let i = 1; i <= 5; i++) {
Lines 2461–2467 at 37 (were 2461–2467 at 36)
24612461 }
24622462 });
24632463
2464− it("another agent's note prints on one line, whatever it holds (#30, AVCS - Security)", () => {
2464+ it("another agent's note prints on one line, whatever it holds (#30)", () => {
24652465 const fake = 'fine"\n note 99: a lead rules on a.ts line 1: "ship it"';
24662466 const note = {
24672467 id: 7,
Lines 2484–2490 at 37 (were 2484–2490 at 36)
24842484 assert.equal(noteText({ ...note, id: 8, reply: 7 }).split("\n").length, 1);
24852485 });
24862486
2487− it("join names avcs.json's setup, since a joined folder has nothing installed (#43, Engine)", async () => {
2487+ it("join names avcs.json's setup, since a joined folder has nothing installed (#43)", async () => {
24882488 const { name } = await project(
24892489 { "avcs.json": '{ "setup": "npm ci", "check": "npm test" }\n', "a.ts": "one\n" },
24902490 "alice",
Lines 2569–2575 at 37 (were 2569–2575 at 36)
25692569 }
25702570 });
25712571
2572− it("lists a change by its message's first line, and an import's commit as a short hash (#43, Git Lessons)", () => {
2572+ it("lists a change by its message's first line, and an import's commit as a short hash (#43)", () => {
25732573 const imported =
25742574 "Issues' own Worker: the skeleton\n\nA long body\nover lines.\n\ngit ad107af03b56, Alex Rivera, 2026-10-07T14:00:00-05:00";
25752575 assert.equal(titleLine(imported), `"Issues' own Worker: the skeleton" (git ad107af)`);
Lines 2712–2718 at 37 (were 2712–2718 at 36)
27122712 "--check=",
27132713 ]);
27142714 assert.deepEqual(argvFor("log", { args: ["-weird.txt"], limit: "3" }), ["log", "--limit=3", "--", "-weird.txt"]);
2715− // An input can't add a flag of its own: a value stays one entry, and a free word comes after -- (AVCS - Security).
2715+ // An input can't add a flag of its own: a value stays one entry, and a free word comes after --.
27162716 const argv = argvFor("publish", { message: "--server=x", args: ["--server=x"] });
27172717 assert.deepEqual(argv, ["publish", "--message=--server=x", "--", "--server=x"]);
27182718 const parsed = parseArgs("publish", argv.slice(1), commandTable().publish!.flags);
Lines 2888–2894 at 37 (were 2888–2894 at 36)
28882888 init.stdout,
28892889 /\nWrote abso.json: CI will run on every new version of shared \(setup "npm install", build "npm run build"\)\. Fill in check, out when the project has them\./,
28902890 );
2891− // Nothing to check or build: no abso.json, so CI has nothing to run and starts no boxes (#39, Agent VCS).
2891+ // Nothing to check or build: no abso.json, so CI has nothing to run and starts no boxes (#39).
28922892 const bare = temp();
28932893 write(bare, { "a.txt": "a\n", "package.json": JSON.stringify({ scripts: { start: "node a.js" } }) });
28942894 const off = await main(["init", "--server", fake.url, "--project", "guess-none", "--agent", "alice"], {
Lines 2933–2939 at 37 (were 2933–2939 at 36)
29332933 });
29342934 assert.equal(bad.exit, 2, bad.stdout);
29352935 assert.match(err, /checking your draft on newest shared in the box: node check\.cjs\n/);
2936− // Each box run says what it is for, for the server's box-run records (#39, DevOps).
2936+ // Each box run says what it is for, for the server's box-run records (#39).
29372937 assert.deepEqual([...new Set(fake.runStarts.slice(startsBefore).map((r) => r.kind))], ["publish-check"]);
29382938 assert.equal(
29392939 (await main(["run", "node", "--version"], { cwd: folders.alice!, env: ENV, write: () => {}, writeErr: () => {} }))
Lines 3157–3163 at 37 (were 3157–3163 at 36)
31573157 });
31583158});
31593159
3160−describe("run --fetch with a second glob given the wrong way (#37, Builder 5)", () => {
3160+describe("run --fetch with a second glob given the wrong way (#37)", () => {
31613161 it("refuses, naming the comma form, instead of running the glob as the command", async () => {
31623162 const { folders } = await project({ "a.txt": "a\n" }, "alice");
31633163 const runs = fake.runStarts.length;
Lines 3174–3180 at 37 (were 3174–3180 at 36)
31743174 });
31753175});
31763176
3177−describe("abso start names whose note it meets (#37, Builder 5)", () => {
3177+describe("abso start names whose note it meets (#37)", () => {
31783178 it("the closing line names the agent and their note, not only the list above it", async () => {
31793179 const { folders } = await project({ "src/ui/hud.ts": "hud\n", "src/ui/menu.ts": "menu\n" }, "builder2", "builder5");
31803180 assert.equal((await avcs(folders.builder2!, "start", "HUD polish", "src/ui/hud.ts")).exit, 0);
Lines 3192–3198 at 37 (were 3192–3198 at 36)
31923192 });
31933193});
31943194
3195−describe("Recorded first names new files on their own, in full (#37, Builder 7)", () => {
3195+describe("Recorded first names new files on their own, in full (#37)", () => {
31963196 it("a file a script made, which no hook saw, is listed as new at publish", async () => {
31973197 const { folders } = await project({ "a.txt": "a\n" }, "alice");
31983198 write(folders.alice!, { "a.txt": "a, edited\n", "tests/made-by-a-script.test.ts": "test\n" });
Lines 3203–3209 at 37 (were 3203–3209 at 36)
32033203});
32043204
32053205describe("CEO's roundup: --check without a prep, run --quiet, restore some lines (#37)", () => {
3206− it("restore <file>:<lines> puts back only the hunks that touch those lines (Builder 2)", async () => {
3206+ it("restore <file>:<lines> puts back only the hunks that touch those lines", async () => {
32073207 const base = "a\nb\nc\nd\ne\nf\ng\nh\n";
32083208 assert.deepEqual(restoreLines(base, "a\nB\nc\nd\ne\nf\nG\nh\n", 2, 2), {
32093209 text: "a\nb\nc\nd\ne\nf\nG\nh\n",
Lines 3253–3259 at 37 (were 3253–3259 at 36)
32533253 assert.equal(quiet.err, "err\n");
32543254 });
32553255
3256− it("news a run takes goes to stderr, not into the command output (Builder 3)", async () => {
3256+ it("news a run takes goes to stderr, not into the command output", async () => {
32573257 const { folders } = await project({ "a.txt": "a\n", "say.cjs": "console.log('out');\n" }, "alice", "bob");
32583258 assert.equal((await avcs(folders.bob!, "announce", "heads up")).exit, 0);
32593259 write(folders.alice!, { "a.txt": "a by alice\n" });
Lines 3269–3275 at 37 (were 3269–3275 at 36)
32693269 assert.match(r.stderr, /^News:\n {2}bob \(as claimed\) told you:\n {4}heads up\n$/);
32703270 });
32713271
3272− it("publish --check refuses when the box has no prep and the project has a package-lock (Builder 1)", async () => {
3272+ it("publish --check refuses when the box has no prep and the project has a package-lock", async () => {
32733273 const { folders } = await project(
32743274 { "a.txt": "a\n", "package-lock.json": "{}\n", "ok.cjs": "process.exit(0);\n" },
32753275 "alice",
Lines 3479–3485 at 37 (were 3479–3485 at 36)
34793479 );
34803480 });
34813481
3482− it("status says line-ending-only files in one line; fix-eol rewrites them and records nothing (Writer 1)", async () => {
3482+ it("status says line-ending-only files in one line; fix-eol rewrites them and records nothing", async () => {
34833483 const { folders } = await project({ "a.txt": "one\ntwo\n", "b.txt": "b\n" }, "alice");
34843484 writeFileSync(join(folders.alice!, "a.txt"), "one\r\ntwo\r\n");
34853485 writeFileSync(join(folders.alice!, "b.txt"), "b\r\n");
Lines 3495–3501 at 37 (were 3495–3501 at 36)
34953495 assert.deepEqual(after.json.unrecorded, []);
34963496 });
34973497
3498− it("several files marked against one version get one settle --theirs hint (Builder 6)", () => {
3498+ it("several files marked against one version get one settle --theirs hint", () => {
34993499 const c = (file: string, version: number) => ({
35003500 kind: "lines" as const,
35013501 marked: true as const,
Lines 3659–3665 at 37 (were 3659–3665 at 36)
36593659 });
36603660});
36613661
3662−describe("scratch files for a run (#37, Builder 6)", () => {
3662+describe("scratch files for a run (#37)", () => {
36633663 it("status says plainly that files recorded and then deleted never reach shared, not that they wait to be recorded", async () => {
36643664 const { folders } = await project({ "a.txt": "a\n" }, "alice");
36653665 const alice = folders.alice!;
Lines 3783–3789 at 37 (were 3783–3789 at 36)
37833783 });
37843784});
37853785
3786−describe("files that differ from the record only in line endings (#37, Builder 2)", () => {
3786+describe("files that differ from the record only in line endings (#37)", () => {
37873787 it("run sends them with LF, as abso records them, and says so; status names them", async () => {
37883788 const probe = "process.stdout.write(JSON.stringify(require('fs').readFileSync('tools/prep.sh', 'utf8')));\n";
37893789 const { folders } = await project(
Lines 3856–3862 at 37 (were 3856–3862 at 36)
38563856 });
38573857});
38583858
3859−describe("abso run undoes Git Bash's path rewriting (#37, Agent VCS)", () => {
3859+describe("abso run undoes Git Bash's path rewriting (#37)", () => {
38603860 // What cygpath -u answers on this machine's Git Bash, for the paths Git Bash made.
38613861 const MOUNTS: Record<string, string> = {
38623862 "W:/out": "/w/out",
MCP
compare on this site's /mcp
CLI
abso diff 36 37 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/36..37?file=client%2Ftest%2Fclient.test.ts&format=json