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
blame on this site's /mcp
CLI
abso blame client/test/autosettle-command.test.ts --json
JSON
/christopher/abso-core/blame/client/test/autosettle-command.test.ts?format=json
58 linesautosettle 100%Last change autosettle in version 223,

58 lines from 2 changes in 2 versions.

autosettle220abso autosettle: see or change what the server does with a held push (abso-core 23) abso autosettle says the project's choice: Off, Advise, or Settle at a confidence. It also says when the gate is stopped and who changed it last. abso autosettle off|advise|settle [--at 0.3-0.95] changes it, which takes the owner's key (on staging, the shared token too); without --at the server keeps its own. On a server with no choice per project (the open server), it says the operator's AUTOSETTLE decides. A visitor folder refuses it. Tried on project abso's Worker run locally (read, settle --at 0.7, advise, a bad word, --at 2) and on the open server. Tests: autosettle-command (words), visitor (the allow-list), typecheck clean.Compare1// abso autosettle's words (abso-core 23): each choice said plainly, the gate when stopped, and who changed it.
2import assert from "node:assert/strict";
3import { test } from "node:test";
autosettle223abso autosettle history: the held pushes the model advised on, and what was then kept (abso-core 23) abso autosettle history lists a project's held pushes that got advice, newest first. Each collision gets one line: what the model said (a side or leave it to an agent, by a check in code or the model with its confidence), whether abso was told to settle it, and what the agent then kept, automatically or by hand, in which version. abso autosettle history <id> shows one, naming its calls to the model; --json has each exact request and raw answer. It reads the platform's /autosettle/history routes (project abso 1249). Tests: autosettle-command (words, history lines), visitor (the allow-list); typecheck clean.Compare4import { autosettleWords, holdWords } from "../src/autosettle-commands.ts";
autosettle220abso autosettle: see or change what the server does with a held push (abso-core 23) abso autosettle says the project's choice: Off, Advise, or Settle at a confidence. It also says when the gate is stopped and who changed it last. abso autosettle off|advise|settle [--at 0.3-0.95] changes it, which takes the owner's key (on staging, the shared token too); without --at the server keeps its own. On a server with no choice per project (the open server), it says the operator's AUTOSETTLE decides. A visitor folder refuses it. Tried on project abso's Worker run locally (read, settle --at 0.7, advise, a bad word, --at 2) and on the open server. Tests: autosettle-command (words), visitor (the allow-list), typecheck clean.Compare5
6test("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\.$/);
autosettle223abso autosettle history: the held pushes the model advised on, and what was then kept (abso-core 23) abso autosettle history lists a project's held pushes that got advice, newest first. Each collision gets one line: what the model said (a side or leave it to an agent, by a check in code or the model with its confidence), whether abso was told to settle it, and what the agent then kept, automatically or by hand, in which version. abso autosettle history <id> shows one, naming its calls to the model; --json has each exact request and raw answer. It reads the platform's /autosettle/history routes (project abso 1249). Tests: autosettle-command (words, history lines), visitor (the allow-list); typecheck clean.Compare23});
25test("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 );
autosettle220abso autosettle: see or change what the server does with a held push (abso-core 23) abso autosettle says the project's choice: Off, Advise, or Settle at a confidence. It also says when the gate is stopped and who changed it last. abso autosettle off|advise|settle [--at 0.3-0.95] changes it, which takes the owner's key (on staging, the shared token too); without --at the server keeps its own. On a server with no choice per project (the open server), it says the operator's AUTOSETTLE decides. A visitor folder refuses it. Tried on project abso's Worker run locally (read, settle --at 0.7, advise, a bad word, --at 2) and on the open server. Tests: autosettle-command (words), visitor (the allow-list), typecheck clean.Compare58});