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 223 --json
JSON
/christopher/abso-core/versions/223?format=json

abso autosettle history: the held pushes the model advised on, and what was then kept (abso-core 23)

of shared·autosettle··Not checked

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.

Version 222 · Files at version 223

4 files, 112 lines added, 3 removed.

--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -728,6 +728,16 @@
728728 return this.json("POST", `/autosettle?mode=${mode}${at === undefined ? "" : `&at=${at}`}`, {});
729729 }
730730
731+ /** Auto-settle's history (abso-core 23): held pushes the model advised on, newest first. */
732+ autosettleHistory(): Promise<unknown> {
733+ return this.json("GET", "/autosettle/history");
734+ }
736+ /** One held push from the history, with each collision's calls to the model. */
737+ autosettleHold(id: number): Promise<unknown> {
738+ return this.json("GET", `/autosettle/history/${id}`);
739+ }
731741 /** Take back this agent's queued publishes (#39); refused while one is being checked. */
732742 unqueue(): Promise<{ pulled: readonly number[] }> {
733743 return this.json("POST", this.agentPath("unqueue"), {});
--- a/client/src/autosettle-commands.ts
+++ b/client/src/autosettle-commands.ts
@@ -35,7 +35,71 @@
3535 ].join("\n");
3636}
3737
38+/** One held push in the history, as the server answers it. */
39+interface HistoryHold {
40+ readonly id: number;
41+ readonly time: string;
42+ readonly agent: string;
43+ readonly message: string;
44+ readonly mode: AutosettleMode;
45+ readonly at: number;
46+ readonly collisions: readonly {
47+ readonly file: string;
48+ readonly theirs: { readonly agent: string; readonly version?: number };
49+ readonly advice: {
50+ readonly pick: string;
51+ readonly confidence: number;
52+ readonly by: string;
53+ readonly reason: string;
54+ };
55+ readonly settled: boolean;
56+ readonly outcome: { readonly kept: string; readonly auto: boolean; readonly version?: number } | null;
57+ readonly calls?: readonly { readonly model: string; readonly input: unknown; readonly output: unknown }[];
58+ }[];
59+}
61+/** A held push in a few lines: what the model said, and what was then kept. */
62+export function holdWords(h: HistoryHold): string {
63+ return [
64+ `${h.id}: ${h.agent}, ${h.time}, under ${h.mode}${h.mode === "settle" ? ` at ${h.at.toFixed(2)}` : ""}: "${h.message.split(/\r?\n/)[0]}"`,
65+ ...h.collisions.map((c) => {
66+ const said = `${c.advice.pick === "agent" ? "leave it to an agent" : `keep ${c.advice.pick}`} (${c.advice.by === "rule" ? "a check in code" : `${c.advice.by}, ${c.advice.confidence.toFixed(2)}`})`;
67+ const then = c.outcome
68+ ? `kept ${c.outcome.kept}${c.outcome.auto ? " automatically" : " by hand"}${c.outcome.version !== undefined ? ` in version ${c.outcome.version}` : ""}`
69+ : "not settled yet";
70+ return ` ${c.file}, against ${c.theirs.agent}${c.theirs.version !== undefined ? `'s version ${c.theirs.version}` : ""}: advised ${said}${c.settled ? ", told to settle" : ""}; ${then}.`;
71+ }),
72+ ].join("\n");
73+}
75+/** abso autosettle history [<id>]: the held pushes the model advised on, newest first, or one with its calls. */
76+async function runHistory(args: Parsed, env: Env): Promise<Output> {
77+ const { api } = open(env);
78+ const id = args.positionals[1];
79+ if (id !== undefined) {
80+ if (!/^[0-9]{1,9}$/.test(id)) throw new UsageError("abso autosettle history <id> takes a hold's number");
81+ const hold = (await api.autosettleHold(Number(id))) as HistoryHold;
82+ const calls = hold.collisions.flatMap((c) => (c.calls ?? []).map((k) => ` ${c.file}: ${k.model}`));
83+ return {
84+ text: [holdWords(hold), "Calls to the model (--json has each request and answer):", ...calls].join("\n"),
85+ json: { ...hold },
86+ };
87+ }
88+ const page = (await api.autosettleHistory()) as { holds: HistoryHold[]; next?: number };
89+ return {
90+ text:
91+ page.holds.length === 0
92+ ? "No held push has had advice in this project yet."
93+ : page.holds.map(holdWords).join("\n"),
94+ json: { ...page },
95+ };
96+}
3898export async function runAutosettle(args: Parsed, env: Env): Promise<Output> {
99+ if (args.positionals[0] === "history") {
100+ if (args.positionals.length > 2) throw new UsageError("abso autosettle history takes at most a hold's number");
101+ return runHistory(args, env);
102+ }
39103 if (args.positionals.length > 1) throw new UsageError("autosettle takes at most one word: off, advise or settle");
40104 const want = args.positionals[0];
41105 const atRaw = str(args, "at");
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -548,9 +548,9 @@
548548 },
549549 autosettle: {
550550 flags: { at: "string" },
551− usage: "abso autosettle [off|advise|settle] [--at 0.3-0.95]",
551+ usage: "abso autosettle [off|advise|settle] [--at 0.3-0.95] | abso autosettle history [<id>]",
552552 about:
553− "What the server does with a held push (abso-core 23). With no word, says which. advise: each collision comes back with a model's pick (keep yours, keep theirs, keep both, or leave it to an agent), how sure it is, and why; the agent still settles. settle: when the model is at least --at sure about every collision, your abso settles it and pushes again by itself, saying so in the message; anything less sure stays held, with the advice. off: held pushes come back as they always have. New projects start on advise. Changing it takes the project owner's key (on staging, the shared token works too). ABSO_AUTOSETTLE=off on a machine makes its abso settle nothing by itself.",
553+ "What the server does with a held push (abso-core 23). With no word, says which. advise: each collision comes back with a model's pick (keep yours, keep theirs, keep both, or leave it to an agent), how sure it is, and why; the agent still settles. settle: when the model is at least --at sure about every collision, your abso settles it and pushes again by itself, saying so in the message; anything less sure stays held, with the advice. off: held pushes come back as they always have. New projects start on advise. Changing it takes the project owner's key (on staging, the shared token works too). ABSO_AUTOSETTLE=off on a machine makes its abso settle nothing by itself. abso autosettle history lists the held pushes the model advised on, newest first, with what it said and what was then kept; history <id> shows one, with its calls to the model (--json has each request and answer).",
554554 run: runAutosettle,
555555 },
556556 ci: {
--- a/client/test/autosettle-command.test.ts
+++ b/client/test/autosettle-command.test.ts
@@ -1,7 +1,7 @@
11// abso autosettle's words (abso-core 23): each choice said plainly, the gate when stopped, and who changed it.
22import assert from "node:assert/strict";
33import { test } from "node:test";
4−import { autosettleWords } from "../src/autosettle-commands.ts";
4+import { autosettleWords, holdWords } from "../src/autosettle-commands.ts";
55
66test("each choice is said plainly, with the gate when it's stopped and who changed it last", () => {
77 assert.match(
@@ -21,3 +21,38 @@
2121 assert.match(settle, /Stopped by abso for now/);
2222 assert.match(settle, /Last changed by christopher, 2026-10-15T07:00:00\.000Z\.$/);
2323});
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+});