Versions 48 to 318
new file, 126 lines
1+// abso autosettle (abso-core 23): see or change what the project's server does with a held push: Off, Advise or Settle.
6+
9+
19+
22+ "This server keeps no auto-settle choice per project: whoever runs it sets AUTOSETTLE (off, on for advice, act to settle).";
23+
29+ ? "Advise: each collision in a held push comes back with the model's pick, how sure it is, and why. The agent still settles."
30+ : `Settle at ${a.at.toFixed(2)}: when the model is at least that sure about every collision in a held push, the agent's abso settles it and pushes again. Anything less sure is left to the agent, with the advice.`;
33+ ...(a.gate === "stopped" ? ["Stopped by abso for now: no held push gets advice until it starts again."] : []),
34+ ...(a.changedBy ? [`Last changed by ${a.changedBy}${a.changedAt ? `, ${a.changedAt}` : ""}.`] : []),
37+
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 }[];
60+
64+ `${h.id}: ${h.agent}, ${h.time}, under ${h.mode}${h.mode === "settle" ? ` at ${h.at.toFixed(2)}` : ""}: "${h.message.split(/\r?\n/)[0]}"`,
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)}`})`;
68+ ? `kept ${c.outcome.kept}${c.outcome.auto ? " automatically" : " by hand"}${c.outcome.version !== undefined ? ` in version ${c.outcome.version}` : ""}`
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}.`;
74+
75+/** abso autosettle history [<id>]: the held pushes the model advised on, newest first, or one with its calls. */
80+ if (!/^[0-9]{1,9}$/.test(id)) throw new UsageError("abso autosettle history <id> takes a hold's number");
82+ const calls = hold.collisions.flatMap((c) => (c.calls ?? []).map((k) => ` ${c.file}: ${k.model}`));
84+ text: [holdWords(hold), "Calls to the model (--json has each request and answer):", ...calls].join("\n"),
97+
100+ if (args.positionals.length > 2) throw new UsageError("abso autosettle history takes at most a hold's number");
103+ if (args.positionals.length > 1) throw new UsageError("autosettle takes at most one word: off, advise or settle");
115+ throw new UsageError("autosettle is off, advise or settle, for example: abso autosettle settle --at 0.6");
118+ throw new UsageError("--at is how sure the model must be before abso settles: a number from 0.3 to 0.95");
- MCP
- compare on this site's /mcp
- CLI
- abso diff 48 318 client/src/autosettle-commands.ts --json
- JSON
- /christopher/abso-core/compare/48..318?file=client%2Fsrc%2Fautosettle-commands.ts&format=json