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
code on this site's /mcp
CLI
none: the JSON below is the answer
JSON
/christopher/abso-core/files/client/test/autosettle-command.test.ts?version=273&format=json
58 linesautosettle 100%Last change autosettle in version 223, 2 versions changed it

You're reading version 273. The newest is 318, and no version since then changed this file. Go to the newestCompare with 318

1// 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";
4import { autosettleWords, holdWords } from "../src/autosettle-commands.ts";
5
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\.$/);
23});
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 );
58});