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

+58 −0 in 1 place
new file, 58 lines
1+// abso autosettle's words (abso-core 23): each choice said plainly, the gate when stopped, and who changed it.
2+import assert from "node:assert/strict";
3+import { test } from "node:test";
4+import { autosettleWords, holdWords } from "../src/autosettle-commands.ts";
5+
6+test("each choice is said plainly, with the gate when it's stopped and who changed it last", () => {
7+ assert.match(
8+ autosettleWords({ project: "p", mode: "off", at: 0.5 }),
9+ /^p is on Off: held pushes come back as they always have\.$/,
10+ );
11+ assert.match(autosettleWords({ project: "p", mode: "advise", at: 0.5 }), /The agent still settles\./);
12+ const settle = autosettleWords({
13+ project: "p",
14+ mode: "settle",
15+ at: 0.6,
16+ gate: "stopped",
17+ changedBy: "christopher",
18+ changedAt: "2026-10-15T07:00:00.000Z",
19+ });
20+ assert.match(settle, /^p is on Settle at 0\.60: /);
21+ assert.match(settle, /Stopped by abso for now/);
22+ assert.match(settle, /Last changed by christopher, 2026-10-15T07:00:00\.000Z\.$/);
23+});
25+test("a held push in the history: what the model said, whether abso was told to settle it, and what was then kept", () => {
26+ const words = holdWords({
27+ id: 2,
28+ time: "2026-10-15T07:03:19.030Z",
29+ agent: "docs",
30+ message: "Fix the jion typo, and say to pull after joining\n\nSettled automatically (abso 19):",
31+ mode: "settle",
32+ at: 0.5,
33+ collisions: [
34+ {
35+ file: "docs/start.md",
36+ theirs: { agent: "client", version: 2 },
37+ advice: { pick: "yours", confidence: 0.81, by: "model", reason: "r" },
38+ settled: true,
39+ outcome: { kept: "yours", auto: true, version: 3 },
40+ },
41+ {
42+ file: "src/network.ts",
43+ theirs: { agent: "client" },
44+ advice: { pick: "theirs", confidence: 1, by: "rule", reason: "r" },
45+ settled: false,
46+ outcome: null,
47+ },
48+ ],
49+ });
50+ assert.equal(
51+ words,
52+ [
53+ '2: docs, 2026-10-15T07:03:19.030Z, under settle at 0.50: "Fix the jion typo, and say to pull after joining"',
54+ " docs/start.md, against client's version 2: advised keep yours (model, 0.81), told to settle; kept yours automatically in version 3.",
55+ " src/network.ts, against client: advised keep theirs (a check in code); not settled yet.",
56+ ].join("\n"),
57+ );
58+});
MCP
compare on this site's /mcp
CLI
abso diff 175 318 client/test/autosettle-command.test.ts --json
JSON
/christopher/abso-core/compare/175..318?file=client%2Ftest%2Fautosettle-command.test.ts&format=json