{"version":223,"agent":"autosettle","message":"abso autosettle history: the held pushes the model advised on, and what was then kept (abso-core 23)\n\nabso 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).\n\nTests: autosettle-command (words, history lines), visitor (the allow-list); typecheck clean.","time":1792051943717,"timeIso":"2026-10-15T08:12:23.717Z","changes":5,"change":3613,"files":["client/src/api.ts","client/src/autosettle-commands.ts","client/src/main.ts","client/test/autosettle-command.test.ts"],"draft":null,"diff":[{"path":"client/src/api.ts","added":10,"removed":0,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -728,6 +728,16 @@\n \t\treturn this.json(\"POST\", `/autosettle?mode=${mode}${at === undefined ? \"\" : `&at=${at}`}`, {});\n \t}\n \n+\t/** Auto-settle's history (abso-core 23): held pushes the model advised on, newest first. */\n+\tautosettleHistory(): Promise<unknown> {\n+\t\treturn this.json(\"GET\", \"/autosettle/history\");\n+\t}\n+\n+\t/** One held push from the history, with each collision's calls to the model. */\n+\tautosettleHold(id: number): Promise<unknown> {\n+\t\treturn this.json(\"GET\", `/autosettle/history/${id}`);\n+\t}\n+\n \t/** Take back this agent's queued publishes (#39); refused while one is being checked. */\n \tunqueue(): Promise<{ pulled: readonly number[] }> {\n \t\treturn this.json(\"POST\", this.agentPath(\"unqueue\"), {});"},{"path":"client/src/autosettle-commands.ts","added":64,"removed":0,"diff":"--- a/client/src/autosettle-commands.ts\n+++ b/client/src/autosettle-commands.ts\n@@ -35,7 +35,71 @@\n \t].join(\"\\n\");\n }\n \n+/** One held push in the history, as the server answers it. */\n+interface HistoryHold {\n+\treadonly id: number;\n+\treadonly time: string;\n+\treadonly agent: string;\n+\treadonly message: string;\n+\treadonly mode: AutosettleMode;\n+\treadonly at: number;\n+\treadonly collisions: readonly {\n+\t\treadonly file: string;\n+\t\treadonly theirs: { readonly agent: string; readonly version?: number };\n+\t\treadonly advice: {\n+\t\t\treadonly pick: string;\n+\t\t\treadonly confidence: number;\n+\t\t\treadonly by: string;\n+\t\t\treadonly reason: string;\n+\t\t};\n+\t\treadonly settled: boolean;\n+\t\treadonly outcome: { readonly kept: string; readonly auto: boolean; readonly version?: number } | null;\n+\t\treadonly calls?: readonly { readonly model: string; readonly input: unknown; readonly output: unknown }[];\n+\t}[];\n+}\n+\n+/** A held push in a few lines: what the model said, and what was then kept. */\n+export function holdWords(h: HistoryHold): string {\n+\treturn [\n+\t\t`${h.id}: ${h.agent}, ${h.time}, under ${h.mode}${h.mode === \"settle\" ? ` at ${h.at.toFixed(2)}` : \"\"}: \"${h.message.split(/\\r?\\n/)[0]}\"`,\n+\t\t...h.collisions.map((c) => {\n+\t\t\tconst 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)}`})`;\n+\t\t\tconst then = c.outcome\n+\t\t\t\t? `kept ${c.outcome.kept}${c.outcome.auto ? \" automatically\" : \" by hand\"}${c.outcome.version !== undefined ? ` in version ${c.outcome.version}` : \"\"}`\n+\t\t\t\t: \"not settled yet\";\n+\t\t\treturn `  ${c.file}, against ${c.theirs.agent}${c.theirs.version !== undefined ? `'s version ${c.theirs.version}` : \"\"}: advised ${said}${c.settled ? \", told to settle\" : \"\"}; ${then}.`;\n+\t\t}),\n+\t].join(\"\\n\");\n+}\n+\n+/** abso autosettle history [<id>]: the held pushes the model advised on, newest first, or one with its calls. */\n+async function runHistory(args: Parsed, env: Env): Promise<Output> {\n+\tconst { api } = open(env);\n+\tconst id = args.positionals[1];\n+\tif (id !== undefined) {\n+\t\tif (!/^[0-9]{1,9}$/.test(id)) throw new UsageError(\"abso autosettle history <id> takes a hold's number\");\n+\t\tconst hold = (await api.autosettleHold(Number(id))) as HistoryHold;\n+\t\tconst calls = hold.collisions.flatMap((c) => (c.calls ?? []).map((k) => `  ${c.file}: ${k.model}`));\n+\t\treturn {\n+\t\t\ttext: [holdWords(hold), \"Calls to the model (--json has each request and answer):\", ...calls].join(\"\\n\"),\n+\t\t\tjson: { ...hold },\n+\t\t};\n+\t}\n+\tconst page = (await api.autosettleHistory()) as { holds: HistoryHold[]; next?: number };\n+\treturn {\n+\t\ttext:\n+\t\t\tpage.holds.length === 0\n+\t\t\t\t? \"No held push has had advice in this project yet.\"\n+\t\t\t\t: page.holds.map(holdWords).join(\"\\n\"),\n+\t\tjson: { ...page },\n+\t};\n+}\n+\n export async function runAutosettle(args: Parsed, env: Env): Promise<Output> {\n+\tif (args.positionals[0] === \"history\") {\n+\t\tif (args.positionals.length > 2) throw new UsageError(\"abso autosettle history takes at most a hold's number\");\n+\t\treturn runHistory(args, env);\n+\t}\n \tif (args.positionals.length > 1) throw new UsageError(\"autosettle takes at most one word: off, advise or settle\");\n \tconst want = args.positionals[0];\n \tconst atRaw = str(args, \"at\");"},{"path":"client/src/main.ts","added":2,"removed":2,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -548,9 +548,9 @@\n \t},\n \tautosettle: {\n \t\tflags: { at: \"string\" },\n-\t\tusage: \"abso autosettle [off|advise|settle] [--at 0.3-0.95]\",\n+\t\tusage: \"abso autosettle [off|advise|settle] [--at 0.3-0.95] | abso autosettle history [<id>]\",\n \t\tabout:\n-\t\t\t\"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.\",\n+\t\t\t\"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).\",\n \t\trun: runAutosettle,\n \t},\n \tci: {"},{"path":"client/test/autosettle-command.test.ts","added":36,"removed":1,"diff":"--- a/client/test/autosettle-command.test.ts\n+++ b/client/test/autosettle-command.test.ts\n@@ -1,7 +1,7 @@\n // abso autosettle's words (abso-core 23): each choice said plainly, the gate when stopped, and who changed it.\n import assert from \"node:assert/strict\";\n import { test } from \"node:test\";\n-import { autosettleWords } from \"../src/autosettle-commands.ts\";\n+import { autosettleWords, holdWords } from \"../src/autosettle-commands.ts\";\n \n test(\"each choice is said plainly, with the gate when it's stopped and who changed it last\", () => {\n \tassert.match(\n@@ -21,3 +21,38 @@\n \tassert.match(settle, /Stopped by abso for now/);\n \tassert.match(settle, /Last changed by christopher, 2026-10-15T07:00:00\\.000Z\\.$/);\n });\n+\n+test(\"a held push in the history: what the model said, whether abso was told to settle it, and what was then kept\", () => {\n+\tconst words = holdWords({\n+\t\tid: 2,\n+\t\ttime: \"2026-10-15T07:03:19.030Z\",\n+\t\tagent: \"docs\",\n+\t\tmessage: \"Fix the jion typo, and say to pull after joining\\n\\nSettled automatically (abso 19):\",\n+\t\tmode: \"settle\",\n+\t\tat: 0.5,\n+\t\tcollisions: [\n+\t\t\t{\n+\t\t\t\tfile: \"docs/start.md\",\n+\t\t\t\ttheirs: { agent: \"client\", version: 2 },\n+\t\t\t\tadvice: { pick: \"yours\", confidence: 0.81, by: \"model\", reason: \"r\" },\n+\t\t\t\tsettled: true,\n+\t\t\t\toutcome: { kept: \"yours\", auto: true, version: 3 },\n+\t\t\t},\n+\t\t\t{\n+\t\t\t\tfile: \"src/network.ts\",\n+\t\t\t\ttheirs: { agent: \"client\" },\n+\t\t\t\tadvice: { pick: \"theirs\", confidence: 1, by: \"rule\", reason: \"r\" },\n+\t\t\t\tsettled: false,\n+\t\t\t\toutcome: null,\n+\t\t\t},\n+\t\t],\n+\t});\n+\tassert.equal(\n+\t\twords,\n+\t\t[\n+\t\t\t'2: docs, 2026-10-15T07:03:19.030Z, under settle at 0.50: \"Fix the jion typo, and say to pull after joining\"',\n+\t\t\t\"  docs/start.md, against client's version 2: advised keep yours (model, 0.81), told to settle; kept yours automatically in version 3.\",\n+\t\t\t\"  src/network.ts, against client: advised keep theirs (a check in code); not settled yet.\",\n+\t\t].join(\"\\n\"),\n+\t);\n+});"}],"ci":null}