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

An asker can take back an ask: abso ask --withdraw <ask> [--note "why"]

of shared·infra-split··Not checked

An ask that later decisions have overtaken used to sit in the asked person's waiting list for good. Only they could answer it, and "none of these" wasn't an option. Now the one who asked can withdraw it.

  • abso ask --withdraw <ask> [--note "why"] sends one call to the server's withdraw route. It's refused before any call when mixed with a question or the other ask flags. --note-file reads the note from a file or stdin, like every text flag.
  • A withdrawn ask closes the way an answered one does: it leaves the waiting list, and it stops holding its issue at Blocked. The ask keeps its question. The asker's note is kept as why, and the one asked hears it.
  • Ask gains outcome?: "withdrawn". Older servers leave it out. The asks list and an issue's page show "withdrawn by <asker>" and the note, instead of "answered by".
  • The server side of the route comes with the hosted Issues service. Until it's there, the call answers with that server's error.

Tests: the new usage mistakes, and the single POST to the asker's own route. Checked: npx biome ci . and npm run check exit 0 (704 pass, 1 skipped).

Version 13 · Files at version 14

6 files, 57 lines added, 5 removed.

--- a/client/README.md
+++ b/client/README.md
@@ -98,6 +98,7 @@
9898| `abso issue draft "<title>"` / `abso issues --drafts` | A draft of an issue: yours alone, with no number and no news. Takes the same fields as `issue new`. `abso issue draft <D> [fields]` changes one, `--open` opens it as an issue (with any fields given over the draft's), `--delete` deletes it. |
9999| `abso issue <N>` / `abso issue new "<title>"` | One issue: its description, Agent, Blocked by, asks, comments, edits, sub-issues and watchers. `--comment`, `--object` and `--drop` act on it; its agents hear them. `--reopen` opens a dropped issue again. `--done` marks it done by hand, and `--done-by <version>` names the published version that did the work. `--title`, `--description`, `--parent`, `--agent` and `--blocked-by` edit it (`none` clears one), and the edit tells its watchers: who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented. `--notify a,b` tells more people; `--quiet` tells nobody. An issue is Blocked until each issue it's blocked by is Done. `new` opens one (`--description`, `--parent`, `--lines <file>:<from>-<to>@<version>`, `--agent`, `--blocked-by`, `--notify`). |
100100| `abso ask <who> "<question>" [--issue <N>]` | Asks an agent, or a person (`person:<id>`), something; they hear it. `--review`, `--task`, `--due`, `--blocks` and `--options "A\|B"` shape it. |
101+| `abso ask --withdraw <ask> [--note "why"]` | Takes back an ask you made that no longer needs an answer. It leaves their waiting list and stops holding the issue at Blocked. The ask stays in the issue's history, marked withdrawn, with your note, and they hear it. Only the asker can withdraw an ask, and only while it's unanswered. |
101102| `abso waiting [--of <who>] [--mine]` / `abso answer <ask> "<words>"` | The open asks, soonest due first, and the answer to one asked of you (in your own words, `--option <N>`, or `--done` for a task). |
102103
103104Every command takes `--json`.
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -517,6 +517,11 @@
517517 return this.#issues("POST", this.agentPath(`answer/${id}`), body);
518518 }
519519
520+ /** Takes back an ask this agent made, with a note on why; the one asked hears it. */
521+ withdraw(id: number, body: { note?: string }): Promise<{ ask: Ask; news?: IssueNews }> {
522+ return this.#issues("POST", this.agentPath(`withdraw/${id}`), body);
523+ }
520525 /** Notes on lines (#44), by file or change; open ones only with `open`. */
521526 notes(q: { file?: string; change?: number; open?: boolean } = {}): Promise<{ notes: readonly NoteAnswer[] }> {
522527 return this.json("GET", `/notes?${query({ file: q.file, change: q.change, open: q.open ? 1 : undefined })}`);
--- a/client/src/issues-wire.ts
+++ b/client/src/issues-wire.ts
@@ -73,9 +73,12 @@
7373 /** Issues it holds up, besides its own. */
7474 blocks: number[];
7575 at: number;
76+ /** Its answer; for a withdrawn ask, the asker's note on why, with the asker as `by`. */
7677 answer: { by: string; words: string; at: number } | null;
7778 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
7879 seen: number | null;
80+ /** "withdrawn" when the asker took it back; absent for an open or answered ask, and from older servers. */
81+ outcome?: "withdrawn";
7982}
8083
8184export interface Claim {
--- a/client/src/issues.ts
+++ b/client/src/issues.ts
@@ -59,7 +59,9 @@
5959 const where = a.issue === null ? "" : ` on issue ${a.issue}${a.title ? ` (${q(a.title)})` : ""}`;
6060 const extra = [
6161 // Who answered, and when, on the ask's own line, so a handled ask can't pass for an open one.
62− a.answer ? `answered by ${a.answer.by}, ${shortWhen(a.answer.at)}` : "",
62+ a.answer
63+ ? `${a.outcome === "withdrawn" ? "withdrawn" : "answered"} by ${a.answer.by}, ${shortWhen(a.answer.at)}`
64+ : "",
6365 !a.answer && a.seen !== undefined ? seenText(a.seen) : "",
6466 a.due ? `due ${a.due}` : "",
6567 a.blocks.length > 0 ? `blocks ${a.blocks.join(", ")}` : "",
@@ -68,7 +70,9 @@
6870 const lines = [head];
6971 if (a.options.length > 0) lines.push(` options: ${a.options.map((o, i) => `${i + 1}. ${q(o)}`).join(", ")}`);
7072 if (a.recommendation) lines.push(` ${a.recommendation.by} recommends: ${q(a.recommendation.text)}`);
71− if (a.answer) lines.push(` answer: ${q(a.answer.words)}`);
73+ if (a.answer && a.outcome === "withdrawn") {
74+ if (a.answer.words !== "") lines.push(` why: ${q(a.answer.words)}`);
75+ } else if (a.answer) lines.push(` answer: ${q(a.answer.words)}`);
7276 return lines.join("\n");
7377}
7478
@@ -429,6 +433,10 @@
429433}
430434
431435export async function runAsk(args: Parsed, env: Env): Promise<Output> {
436+ const withdraw = str(args, "withdraw");
437+ if (withdraw !== undefined) return withdrawAsk(args, env, withdraw);
438+ if (str(args, "note") !== undefined)
439+ throw new UsageError('--note goes with --withdraw: avcs ask --withdraw <ask> --note "why"');
432440 const [of, ...words] = args.positionals;
433441 if (of === undefined || words.length === 0)
434442 throw new UsageError(
@@ -459,6 +467,18 @@
459467 return { text: `Asked ${of} (ask ${r.id}). They hear it; avcs waiting shows what's open.`, json: { id: r.id } };
460468}
461469
470+/** avcs ask --withdraw <ask> [--note "why"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */
471+async function withdrawAsk(args: Parsed, env: Env, word: string): Promise<Output> {
472+ const others = ["issue", "due", "blocks", "options"].filter((f) => str(args, f) !== undefined);
473+ if (args.positionals.length > 0 || others.length > 0 || bool(args, "review") || bool(args, "task"))
474+ throw new UsageError('avcs ask --withdraw <ask> [--note "why"] takes nothing else: it takes back an ask you made');
475+ const id = issueNumber(word, "the ask number");
476+ const { api } = openIssues(env);
477+ const note = str(args, "note");
478+ const r = await api.withdraw(id, note !== undefined ? { note } : {});
479+ return { text: `Withdrew ask ${id}. ${r.ask.of} hears it, and it no longer waits on them.`, json: { ask: r.ask } };
480+}
462482export async function runWaiting(args: Parsed, env: Env): Promise<Output> {
463483 if (args.positionals.length > 0)
464484 throw new UsageError("waiting takes no words: avcs waiting [--of <agent or person:id>] [--mine]");
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -374,11 +374,20 @@
374374 run: runIssue,
375375 },
376376 ask: {
377− flags: { issue: "string", review: "boolean", task: "boolean", due: "string", blocks: "string", options: "string" },
377+ flags: {
378+ issue: "string",
379+ review: "boolean",
380+ task: "boolean",
381+ due: "string",
382+ blocks: "string",
383+ options: "string",
384+ withdraw: "string",
385+ note: "string",
386+ },
378387 usage:
379− 'avcs ask <who> "<question>" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options "A|B|C"]',
388+ 'avcs ask <who> "<question>" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options "A|B|C"] | avcs ask --withdraw <ask> [--note "why"]',
380389 about:
381− "Ask an agent, or a person (person:<id>), something; they hear it. On an issue, it holds the issue at Blocked (In review for --review) until answered. --task asks for something done instead of an answer; --options gives the choices; --blocks names the issues waiting on it.",
390+ "Ask an agent, or a person (person:<id>), something; they hear it. On an issue, it holds the issue at Blocked (In review for --review) until answered. --task asks for something done instead of an answer; --options gives the choices; --blocks names the issues waiting on it. --withdraw takes back an ask you made that no longer needs an answer: it leaves their waiting list, stops holding the issue, keeps your --note as why, and they hear it.",
382391 run: runAsk,
383392 },
384393 waiting: {
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -128,10 +128,24 @@
128128 ["answer", "3"],
129129 ["issue", "1", "--comment", "a", "--drop"],
130130 ["issues", "extra"],
131+ ["ask", "--withdraw", "x"],
132+ ["ask", "--withdraw", "3", "alice", "q"],
133+ ["ask", "--withdraw", "3", "--issue", "2"],
134+ ["ask", "--withdraw", "3", "--task"],
135+ ["ask", "alice", "q", "--note", "a note without --withdraw"],
131136 ]) {
132137 const r = await avcs(erin, argv);
133138 assert.equal(r.exit, 1, `${argv.join(" ")}: ${r.out}`);
134139 }
135140 assert.equal(seen.length, before);
136141 });
143+ it("withdraw is one POST to the asker's own withdraw/<ask> route", async () => {
144+ const erin = await folder("erin");
145+ const before = seen.length;
146+ await avcs(erin, ["ask", "--withdraw", "#3", "--note", "overtaken by later decisions"]);
147+ const posts = seen.slice(before).filter((s) => s.startsWith("POST"));
148+ assert.equal(posts.length, 1, posts.join("\n"));
149+ assert.match(posts[0]!, /^POST \/p\/issues\d+\/a\/erin\/withdraw\/3$/);
150+ });
137151});