{"version":14,"agent":"infra-split","message":"An asker can take back an ask: abso ask --withdraw <ask> [--note \"why\"]\n\nAn 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.\n\n- `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.\n- 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.\n- 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\".\n- The server side of the route comes with the hosted Issues service. Until it's there, the call answers with that server's error.\n\nTests: 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).","time":1791514878707,"timeIso":"2026-10-09T03:01:18.707Z","changes":10,"change":118,"files":["client/README.md","client/src/api.ts","client/src/issues-wire.ts","client/src/issues.ts","client/src/main.ts","client/test/issues.test.ts"],"draft":null,"diff":[{"path":"client/README.md","added":1,"removed":0,"diff":"--- a/client/README.md\n+++ b/client/README.md\n@@ -98,6 +98,7 @@\n | `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. |\n | `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`). |\n | `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. |\n+| `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. |\n | `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). |\n \n Every command takes `--json`."},{"path":"client/src/api.ts","added":5,"removed":0,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -517,6 +517,11 @@\n \t\treturn this.#issues(\"POST\", this.agentPath(`answer/${id}`), body);\n \t}\n \n+\t/** Takes back an ask this agent made, with a note on why; the one asked hears it. */\n+\twithdraw(id: number, body: { note?: string }): Promise<{ ask: Ask; news?: IssueNews }> {\n+\t\treturn this.#issues(\"POST\", this.agentPath(`withdraw/${id}`), body);\n+\t}\n+\n \t/** Notes on lines (#44), by file or change; open ones only with `open`. */\n \tnotes(q: { file?: string; change?: number; open?: boolean } = {}): Promise<{ notes: readonly NoteAnswer[] }> {\n \t\treturn this.json(\"GET\", `/notes?${query({ file: q.file, change: q.change, open: q.open ? 1 : undefined })}`);"},{"path":"client/src/issues-wire.ts","added":3,"removed":0,"diff":"--- a/client/src/issues-wire.ts\n+++ b/client/src/issues-wire.ts\n@@ -73,9 +73,12 @@\n \t/** Issues it holds up, besides its own. */\n \tblocks: number[];\n \tat: number;\n+\t/** Its answer; for a withdrawn ask, the asker's note on why, with the asker as `by`. */\n \tanswer: { by: string; words: string; at: number } | null;\n \t/** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */\n \tseen: number | null;\n+\t/** \"withdrawn\" when the asker took it back; absent for an open or answered ask, and from older servers. */\n+\toutcome?: \"withdrawn\";\n }\n \n export interface Claim {"},{"path":"client/src/issues.ts","added":22,"removed":2,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -59,7 +59,9 @@\n \tconst where = a.issue === null ? \"\" : ` on issue ${a.issue}${a.title ? ` (${q(a.title)})` : \"\"}`;\n \tconst extra = [\n \t\t// Who answered, and when, on the ask's own line, so a handled ask can't pass for an open one.\n-\t\ta.answer ? `answered by ${a.answer.by}, ${shortWhen(a.answer.at)}` : \"\",\n+\t\ta.answer\n+\t\t\t? `${a.outcome === \"withdrawn\" ? \"withdrawn\" : \"answered\"} by ${a.answer.by}, ${shortWhen(a.answer.at)}`\n+\t\t\t: \"\",\n \t\t!a.answer && a.seen !== undefined ? seenText(a.seen) : \"\",\n \t\ta.due ? `due ${a.due}` : \"\",\n \t\ta.blocks.length > 0 ? `blocks ${a.blocks.join(\", \")}` : \"\",\n@@ -68,7 +70,9 @@\n \tconst lines = [head];\n \tif (a.options.length > 0) lines.push(`    options: ${a.options.map((o, i) => `${i + 1}. ${q(o)}`).join(\", \")}`);\n \tif (a.recommendation) lines.push(`    ${a.recommendation.by} recommends: ${q(a.recommendation.text)}`);\n-\tif (a.answer) lines.push(`    answer: ${q(a.answer.words)}`);\n+\tif (a.answer && a.outcome === \"withdrawn\") {\n+\t\tif (a.answer.words !== \"\") lines.push(`    why: ${q(a.answer.words)}`);\n+\t} else if (a.answer) lines.push(`    answer: ${q(a.answer.words)}`);\n \treturn lines.join(\"\\n\");\n }\n \n@@ -429,6 +433,10 @@\n }\n \n export async function runAsk(args: Parsed, env: Env): Promise<Output> {\n+\tconst withdraw = str(args, \"withdraw\");\n+\tif (withdraw !== undefined) return withdrawAsk(args, env, withdraw);\n+\tif (str(args, \"note\") !== undefined)\n+\t\tthrow new UsageError('--note goes with --withdraw: avcs ask --withdraw <ask> --note \"why\"');\n \tconst [of, ...words] = args.positionals;\n \tif (of === undefined || words.length === 0)\n \t\tthrow new UsageError(\n@@ -459,6 +467,18 @@\n \treturn { text: `Asked ${of} (ask ${r.id}). They hear it; avcs waiting shows what's open.`, json: { id: r.id } };\n }\n \n+/** avcs ask --withdraw <ask> [--note \"why\"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */\n+async function withdrawAsk(args: Parsed, env: Env, word: string): Promise<Output> {\n+\tconst others = [\"issue\", \"due\", \"blocks\", \"options\"].filter((f) => str(args, f) !== undefined);\n+\tif (args.positionals.length > 0 || others.length > 0 || bool(args, \"review\") || bool(args, \"task\"))\n+\t\tthrow new UsageError('avcs ask --withdraw <ask> [--note \"why\"] takes nothing else: it takes back an ask you made');\n+\tconst id = issueNumber(word, \"the ask number\");\n+\tconst { api } = openIssues(env);\n+\tconst note = str(args, \"note\");\n+\tconst r = await api.withdraw(id, note !== undefined ? { note } : {});\n+\treturn { text: `Withdrew ask ${id}. ${r.ask.of} hears it, and it no longer waits on them.`, json: { ask: r.ask } };\n+}\n+\n export async function runWaiting(args: Parsed, env: Env): Promise<Output> {\n \tif (args.positionals.length > 0)\n \t\tthrow new UsageError(\"waiting takes no words: avcs waiting [--of <agent or person:id>] [--mine]\");"},{"path":"client/src/main.ts","added":12,"removed":3,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -374,11 +374,20 @@\n \t\trun: runIssue,\n \t},\n \task: {\n-\t\tflags: { issue: \"string\", review: \"boolean\", task: \"boolean\", due: \"string\", blocks: \"string\", options: \"string\" },\n+\t\tflags: {\n+\t\t\tissue: \"string\",\n+\t\t\treview: \"boolean\",\n+\t\t\ttask: \"boolean\",\n+\t\t\tdue: \"string\",\n+\t\t\tblocks: \"string\",\n+\t\t\toptions: \"string\",\n+\t\t\twithdraw: \"string\",\n+\t\t\tnote: \"string\",\n+\t\t},\n \t\tusage:\n-\t\t\t'avcs ask <who> \"<question>\" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options \"A|B|C\"]',\n+\t\t\t'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\"]',\n \t\tabout:\n-\t\t\t\"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.\",\n+\t\t\t\"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.\",\n \t\trun: runAsk,\n \t},\n \twaiting: {"},{"path":"client/test/issues.test.ts","added":14,"removed":0,"diff":"--- a/client/test/issues.test.ts\n+++ b/client/test/issues.test.ts\n@@ -128,10 +128,24 @@\n \t\t\t[\"answer\", \"3\"],\n \t\t\t[\"issue\", \"1\", \"--comment\", \"a\", \"--drop\"],\n \t\t\t[\"issues\", \"extra\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"x\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"3\", \"alice\", \"q\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"3\", \"--issue\", \"2\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"3\", \"--task\"],\n+\t\t\t[\"ask\", \"alice\", \"q\", \"--note\", \"a note without --withdraw\"],\n \t\t]) {\n \t\t\tconst r = await avcs(erin, argv);\n \t\t\tassert.equal(r.exit, 1, `${argv.join(\" \")}: ${r.out}`);\n \t\t}\n \t\tassert.equal(seen.length, before);\n \t});\n+\n+\tit(\"withdraw is one POST to the asker's own withdraw/<ask> route\", async () => {\n+\t\tconst erin = await folder(\"erin\");\n+\t\tconst before = seen.length;\n+\t\tawait avcs(erin, [\"ask\", \"--withdraw\", \"#3\", \"--note\", \"overtaken by later decisions\"]);\n+\t\tconst posts = seen.slice(before).filter((s) => s.startsWith(\"POST\"));\n+\t\tassert.equal(posts.length, 1, posts.join(\"\\n\"));\n+\t\tassert.match(posts[0]!, /^POST \\/p\\/issues\\d+\\/a\\/erin\\/withdraw\\/3$/);\n+\t});\n });"}],"ci":null}