{"version":72,"agent":"pinch","message":"Asks become threads: abso reply <ask> \"...\" adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.","time":1791609984916,"timeIso":"2026-10-10T05:26:24.916Z","changes":6,"change":887,"files":["client/src/api.ts","client/src/issues-wire.ts","client/src/issues.ts","client/src/main.ts","client/src/mcp.ts","client/test/issues.test.ts"],"draft":null,"diff":[{"path":"client/src/api.ts","added":15,"removed":0,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -450,6 +450,16 @@\n \t\treturn this.#issues(\"GET\", `/issue/${id}`);\n \t}\n \n+\t/** The asks this agent sent: the open ones, then the latest answered, each with its thread. */\n+\tasked(): Promise<{ asks: readonly (Ask & { title: string | null })[] }> {\n+\t\treturn this.#issues(\"GET\", this.agentPath(\"asked\"));\n+\t}\n+\n+\t/** One ask, open or closed, with its thread and who it waits on. */\n+\taskThread(id: number): Promise<{ ask: Ask & { title: string | null } }> {\n+\t\treturn this.#issues(\"GET\", `/ask/${id}`);\n+\t}\n+\n \t/** Open asks of someone (an agent, or person:<id>), soonest due first; every open ask without `of`. */\n \twaiting(of?: string): Promise<{ asks: readonly (Ask & { title: string | null })[] }> {\n \t\treturn this.#issues(\"GET\", `/waiting?${query({ of })}`);\n@@ -630,6 +640,11 @@\n \t\treturn this.#issues(\"POST\", this.agentPath(`ack/${id}`), body);\n \t}\n \n+\t/** Adds to an ask's thread, as its asker or the one asked; the other side hears it, and the ask stays as it is. */\n+\treply(id: number, body: { text: string; question?: boolean }): Promise<{ ask: Ask; news?: IssueNews }> {\n+\t\treturn this.#issues(\"POST\", this.agentPath(`reply/${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);"},{"path":"client/src/issues-wire.ts","added":14,"removed":0,"diff":"--- a/client/src/issues-wire.ts\n+++ b/client/src/issues-wire.ts\n@@ -85,8 +85,22 @@\n \toutcome?: \"withdrawn\";\n \t/** When the one asked acknowledged it without answering yet, with their note; it stays open. Absent until then. */\n \tack?: { at: number; note: string };\n+\t/** Its thread: what the asker and the one asked said on it, oldest first. The answer closes it and isn't one of these. Absent from older servers. */\n+\treplies?: AskReply[];\n+\t/** Who it waits on now: the one asked, or the asker while the newest reply is a question from the one asked. Null once it's closed. Absent from older servers. */\n+\twaitingOn?: string | null;\n }\n \n+/** One reply on an ask, from the asker or the one asked. Neither opens nor closes it. */\n+export interface AskReply {\n+\tid: number;\n+\tby: string;\n+\ttext: string;\n+\tat: number;\n+\t/** A question back from the one asked: the ask waits on the asker until they reply. */\n+\tquestion?: true;\n+}\n+\n export interface Claim {\n \tagent: string;\n \tchange: number;"},{"path":"client/src/issues.ts","added":103,"removed":6,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -27,6 +27,7 @@\n import { fromEnv } from \"./env-names.ts\";\n import { ignoredHere } from \"./fetch.ts\";\n import { loadIgnore, relativeTo } from \"./folder.ts\";\n+import type { AskReply } from \"./issues-wire.ts\";\n import { queuedLines, standing } from \"./queue.ts\";\n import { seenText, shortWhen } from \"./times.ts\";\n \n@@ -70,16 +71,35 @@\n \treturn `  ${String(i.id).padStart(3)}  ${i.status.padEnd(11)}  ${q(i.title)}${detail.length > 0 ? ` (${detail.join(\"; \")})` : \"\"}`;\n }\n \n-function askLine(a: Ask & { title?: string | null }, api?: Pick<Api, \"attachmentUrl\">): string {\n+/** The first line of a reply, for lists; abso ask <N> shows it whole. */\n+const firstLine = (text: string): string => {\n+\tconst line = text.split(\"\\n\")[0]!;\n+\treturn line.length < text.length ? `${line} ...` : line;\n+};\n+\n+/** One reply in an ask's thread. */\n+function replyLine(r: AskReply, indent: string, whole: boolean): string {\n+\treturn `${indent}${r.by}, ${shortWhen(r.at)}${r.question ? \", a question\" : \"\"}: ${q(whole ? r.text : firstLine(r.text))}`;\n+}\n+\n+/**\n+ * An ask: its head line, its files and options, then, in a list, its newest reply, or with `thread`, every\n+ * reply, oldest first; then its answer. Older servers send no thread, only the one asked's acknowledgement.\n+ */\n+function askLine(a: Ask & { title?: string | null }, api?: Pick<Api, \"attachmentUrl\">, thread = false): string {\n \tconst what = a.review ? \"a review\" : a.kind === \"task\" ? \"a task\" : \"a question\";\n \tconst where = a.issue === null ? \"\" : ` on issue ${a.issue}${a.title ? ` (${q(a.title)})` : \"\"}`;\n+\tconst replies = a.replies;\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\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.ack ? `acknowledged ${shortWhen(a.ack.at)}, not answered yet` : \"\",\n+\t\t!a.answer && a.ack && replies === undefined ? `acknowledged ${shortWhen(a.ack.at)}, not answered yet` : \"\",\n \t\t!a.answer && !a.ack && a.seen !== undefined ? seenText(a.seen) : \"\",\n+\t\treplies && replies.length > 0 ? (replies.length === 1 ? \"1 reply\" : `${replies.length} replies`) : \"\",\n+\t\t// Whose turn it is, when it isn't the one asked's: they asked something back.\n+\t\t!a.answer && a.waitingOn && a.waitingOn !== a.of ? `waiting on ${a.waitingOn}` : \"\",\n \t\ta.due ? `due ${a.due}` : \"\",\n \t\ta.blocks.length > 0 ? `blocks ${a.blocks.join(\", \")}` : \"\",\n \t].filter((x) => x !== \"\");\n@@ -87,7 +107,10 @@\n \tconst lines = [head, ...attachmentLines(api, a.attachments, \"    \")];\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 && a.ack && a.ack.note !== \"\") lines.push(`    ${a.of} acknowledged: ${q(a.ack.note)}`);\n+\tif (replies === undefined) {\n+\t\tif (!a.answer && a.ack && a.ack.note !== \"\") lines.push(`    ${a.of} acknowledged: ${q(a.ack.note)}`);\n+\t} else if (thread) lines.push(...replies.map((r) => replyLine(r, \"    \", true)));\n+\telse if (replies.length > 0) lines.push(replyLine(replies[replies.length - 1]!, \"    last: \", false));\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)\n@@ -624,6 +647,7 @@\n \tif (str(args, \"note\") !== undefined)\n \t\tthrow new UsageError('--note goes with --withdraw: abso ask --withdraw <ask> --note \"why\"');\n \tconst [of, ...words] = args.positionals;\n+\tif (of !== undefined && words.length === 0 && /^\\d+$/.test(of)) return showAsk(args, env, of);\n \tif (of === undefined || words.length === 0)\n \t\tthrow new UsageError(\n \t\t\t'abso ask <who> \"<question>\" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options \"A|B|C\"]; who is an agent, or person:<id>',\n@@ -659,6 +683,49 @@\n \t};\n }\n \n+/** abso ask <N>: one ask, open or closed, with its whole thread, its answer and whose turn it is. */\n+async function showAsk(args: Parsed, env: Env, word: string): Promise<Output> {\n+\tconst others = [\"issue\", \"due\", \"blocks\", \"options\", \"attach\"].filter((f) => str(args, f) !== undefined);\n+\tif (others.length > 0 || bool(args, \"review\") || bool(args, \"task\"))\n+\t\tthrow new UsageError('abso ask <N> shows ask N; to ask, say who and what: abso ask <who> \"<question>\"');\n+\tconst id = issueNumber(word, \"the ask number\");\n+\tconst { api, config } = openIssues(env);\n+\tconst { ask } = await api.askThread(id);\n+\tconst side = ask.of === config.agent || ask.by === config.agent;\n+\tconst turn = ask.waitingOn === config.agent ? \"you\" : ask.waitingOn;\n+\tconst steps = !side\n+\t\t? \"\"\n+\t\t: ask.answer\n+\t\t\t? `abso reply ${id} \"...\" still adds to it.`\n+\t\t\t: ask.of === config.agent\n+\t\t\t\t? `abso reply ${id} \"...\" adds to it; abso answer ${id} \"...\" answers and closes it.`\n+\t\t\t\t: `abso reply ${id} \"...\" adds to it.`;\n+\tconst next = [!ask.answer && turn ? `It waits on ${turn}.` : \"\", steps].join(\" \");\n+\treturn {\n+\t\ttext: [askLine(ask, api, true), next.trim()].filter((l) => l !== \"\").join(\"\\n\"),\n+\t\tjson: { ask },\n+\t};\n+}\n+\n+/** abso reply <ask> \"<words>\" [--question]: add to an ask's thread, as its asker or the one asked. */\n+export async function runReply(args: Parsed, env: Env): Promise<Output> {\n+\tconst [first, ...words] = args.positionals;\n+\tconst id = issueNumber(first, \"the ask number\");\n+\tif (words.length === 0)\n+\t\tthrow new UsageError(\n+\t\t\t`abso reply <ask> \"<words>\" [--question]: adds to an ask's thread, as its asker or the one asked`,\n+\t\t);\n+\tconst { api, config } = openIssues(env);\n+\tconst question = bool(args, \"question\");\n+\tconst r = await api.reply(id, { text: words.join(\" \"), ...(question ? { question: true } : {}) });\n+\tconst other = r.ask.by === config.agent ? r.ask.of : r.ask.by;\n+\tconst turn =\n+\t\t!r.ask.answer && r.ask.waitingOn\n+\t\t\t? ` It waits on ${r.ask.waitingOn === config.agent ? \"you\" : r.ask.waitingOn}.`\n+\t\t\t: \"\";\n+\treturn { text: `Replied on ask ${id}. ${other} hears it.${turn}`, json: { ask: r.ask } };\n+}\n+\n /** abso 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\", \"attach\"].filter((f) => str(args, f) !== undefined);\n@@ -708,7 +775,8 @@\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: abso waiting [--of <agent or person:id>] [--mine]\");\n+\t\tthrow new UsageError(\"waiting takes no words: abso waiting [--of <agent or person:id>] [--mine] [--asked]\");\n+\tif (bool(args, \"asked\")) return askedOf(args, env);\n \tconst { api, config } = openIssues(env);\n \tconst mine = bool(args, \"mine\") || str(args, \"of\") === config.agent;\n \tconst of = mine ? config.agent : str(args, \"of\");\n@@ -728,7 +796,7 @@\n \t\t\t\t: [\n \t\t\t\t\t\t`${plural(asks.length, \"open ask\")}${of ? ` of ${of}` : \"\"}, soonest due first:`,\n \t\t\t\t\t\t...asks.map((a) => askLine(a, api)),\n-\t\t\t\t\t\t'abso answer <ask> \"...\" answers one asked of you.',\n+\t\t\t\t\t\t'abso ask <N> shows one with its thread; abso reply <N> \"...\" adds to it; abso answer <N> \"...\" answers one asked of you.',\n \t\t\t\t\t]),\n \t\t].join(\"\\n\"),\n \t\tjson: {\n@@ -740,6 +808,35 @@\n \t};\n }\n \n+/** abso waiting --asked: the asks you sent, open ones first, then the latest answered, each with its newest reply. */\n+async function askedOf(args: Parsed, env: Env): Promise<Output> {\n+\tif (bool(args, \"mine\") || str(args, \"of\") !== undefined)\n+\t\tthrow new UsageError(\"--asked lists the asks you sent; it takes no --mine or --of\");\n+\tconst { api, config } = openIssues(env);\n+\tconst { asks } = await api.asked();\n+\tconst open = asks.filter((a) => !a.answer);\n+\tconst closed = asks.filter((a) => a.answer);\n+\treturn {\n+\t\ttext: [\n+\t\t\t...(asks.length === 0\n+\t\t\t\t? [`${config.agent} hasn't asked anything yet.`]\n+\t\t\t\t: [\n+\t\t\t\t\t\t...(open.length > 0\n+\t\t\t\t\t\t\t? [`${plural(open.length, \"open ask\")} you sent:`, ...open.map((a) => askLine(a, api))]\n+\t\t\t\t\t\t\t: []),\n+\t\t\t\t\t\t...(closed.length > 0\n+\t\t\t\t\t\t\t? [\n+\t\t\t\t\t\t\t\t\t`${closed.length === 1 ? \"The latest answered\" : `The latest ${closed.length} answered`}:`,\n+\t\t\t\t\t\t\t\t\t...closed.map((a) => askLine(a, api)),\n+\t\t\t\t\t\t\t\t]\n+\t\t\t\t\t\t\t: []),\n+\t\t\t\t\t\t\"abso ask <N> shows one with its whole thread.\",\n+\t\t\t\t\t]),\n+\t\t].join(\"\\n\"),\n+\t\tjson: { asks },\n+\t};\n+}\n+\n /** abso ack <ask> [\"note\"]: tell the asker you have it, and answer later. The ask stays open until abso answer. */\n export async function runAck(args: Parsed, env: Env): Promise<Output> {\n \tconst [first, ...words] = args.positionals;\n@@ -748,7 +845,7 @@\n \tconst note = words.join(\" \");\n \tconst r = await api.ack(id, note !== \"\" ? { note } : {});\n \treturn {\n-\t\ttext: `Acknowledged ask ${id}. ${r.ask.by} hears it; the ask stays open until abso answer ${id} \"...\".`,\n+\t\ttext: `Acknowledged ask ${id}. ${r.ask.by} hears it; abso reply ${id} \"...\" adds more as you go, and the ask stays open until abso answer ${id} \"...\".`,\n \t\tjson: { ask: r.ask },\n \t};\n }"},{"path":"client/src/main.ts","added":14,"removed":7,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -41,7 +41,7 @@\n import { runDraftSync, runLand, runSwitch } from \"./drafts.ts\";\n import { runExport } from \"./export.ts\";\n import { runBlame, runWhere, runWho, runWhy } from \"./history.ts\";\n-import { runAck, runAnswer, runAsk, runIssue, runIssues, runSearch, runWaiting } from \"./issues.ts\";\n+import { runAck, runAnswer, runAsk, runIssue, runIssues, runReply, runSearch, runWaiting } from \"./issues.ts\";\n import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from \"./key-admin.ts\";\n import { browserSkip, openInBrowser } from \"./open-browser.ts\";\n import { initInOrg, runOrg, runOrgs } from \"./orgs.ts\";\n@@ -445,9 +445,9 @@\n \t\t\tattach: \"string\",\n \t\t},\n \t\tusage:\n-\t\t\t'abso ask <who> \"<question>\" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options \"A|B|C\"] [--attach <file,file>] | abso ask --withdraw <ask> [--note \"why\"]',\n+\t\t\t'abso ask <who> \"<question>\" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options \"A|B|C\"] [--attach <file,file>] | abso ask <N> | abso 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. --attach sends files with the question, as on an issue. --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\t\t\"Ask an agent, or a person (person:<id>), something; they hear it. Who must be one of the project's agents or members; a name that isn't is refused, with the closest one suggested. abso ask <N> shows ask N, open or closed, with its whole thread, its answer and whose turn it is. 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. --attach sends files with the question, as on an issue. --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 \tsearch: {\n@@ -458,10 +458,10 @@\n \t\trun: runSearch,\n \t},\n \twaiting: {\n-\t\tflags: { of: \"string\", mine: \"boolean\" },\n-\t\tusage: \"abso waiting [--of <agent or person:id>] [--mine]\",\n+\t\tflags: { of: \"string\", mine: \"boolean\", asked: \"boolean\" },\n+\t\tusage: \"abso waiting [--of <agent or person:id>] [--mine] [--asked]\",\n \t\tabout:\n-\t\t\t\"The open asks, soonest due first: every one, those of someone (--of), or those of you (--mine). --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news.\",\n+\t\t\t\"The open asks, soonest due first: every one, those waiting on someone (--of), or those waiting on you (--mine), each with its newest reply. An ask waits on the one asked until they answer, or on the asker after a reply with --question, until the asker replies. --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news. --asked lists the asks you sent instead, open ones first, then the latest answered.\",\n \t\trun: runWaiting,\n \t},\n \tanswer: {\n@@ -476,9 +476,16 @@\n \t\tflags: {},\n \t\tusage: 'abso ack <ask> [\"<note>\"]',\n \t\tabout:\n-\t\t\t\"Acknowledge an ask of you without answering it yet: the asker hears it, with your note, and the ask stays open, shown as acknowledged. abso answer closes it later.\",\n+\t\t\t\"Acknowledge an ask of you without answering it yet: it's the first reply in its thread. The asker hears it, with your note, and the ask stays open. abso reply adds more; abso answer closes it later.\",\n \t\trun: runAck,\n \t},\n+\treply: {\n+\t\tflags: { question: \"boolean\" },\n+\t\tusage: 'abso reply <ask> \"<words>\" [--question]',\n+\t\tabout:\n+\t\t\t'Add to an ask\\'s thread, as its asker or the one asked, open or closed: \"ok, let me check\", what you found, a follow-up. The other side hears it, and the ask stays as it is; abso answer still closes it. --question, from the one asked, asks the asker something back: the ask waits on them until they reply. On a public project, anyone can read the thread.',\n+\t\trun: runReply,\n+\t},\n \tunqueue: {\n \t\tflags: {},\n \t\tusage: \"abso unqueue\","},{"path":"client/src/mcp.ts","added":1,"removed":0,"diff":"--- a/client/src/mcp.ts\n+++ b/client/src/mcp.ts\n@@ -53,6 +53,7 @@\n \t\"waiting\",\n \t\"answer\",\n \t\"ack\",\n+\t\"reply\",\n \t\"orgs\",\n \t\"org\",\n ] as const;"},{"path":"client/test/issues.test.ts","added":111,"removed":2,"diff":"--- a/client/test/issues.test.ts\n+++ b/client/test/issues.test.ts\n@@ -29,6 +29,32 @@\n const seen: string[] = [];\n /** The bodies of the copy requests it took. */\n const copies: Record<string, unknown>[] = [];\n+/** The bodies of the replies it took. */\n+const replies: { text: string; question?: boolean }[] = [];\n+/** An open ask of fay's from desk with a thread: fay's ack, then a question back, so it waits on desk. */\n+const threaded = {\n+\tid: 7,\n+\tissue: 3,\n+\ttitle: \"Sync is slow\",\n+\tby: \"desk\",\n+\tof: \"fay\",\n+\tkind: \"question\",\n+\tquestion: \"Which way?\",\n+\treview: false,\n+\tdue: null,\n+\trecommendation: null,\n+\toptions: [],\n+\tblocks: [],\n+\tat: 0,\n+\tanswer: null,\n+\tseen: 0,\n+\tack: { at: 0, note: \"ok, let me check\" },\n+\treplies: [\n+\t\t{ id: 1, by: \"fay\", text: \"ok, let me check\", at: 0 },\n+\t\t{ id: 2, by: \"fay\", text: \"staging or live?\\nlive is 906\", at: 0, question: true },\n+\t],\n+\twaitingOn: \"desk\",\n+};\n const dirs: string[] = [];\n \n before(async () => {\n@@ -71,6 +97,36 @@\n \t\t\treturn send(200, {\n \t\t\t\task: { id: Number(ack[2]), by: \"desk\", of: ack[1], answer: null, ack: { at: Date.now(), note: \"\" } },\n \t\t\t});\n+\t\t// A reply answers with the ask; from the one asked, a question makes it wait on the asker.\n+\t\tconst reply = /\\/a\\/([^/]+)\\/reply\\/(\\d+)$/.exec(req.url ?? \"\");\n+\t\tif (req.method === \"POST\" && reply) {\n+\t\t\tlet raw = \"\";\n+\t\t\treq.on(\"data\", (c: Buffer) => (raw += c.toString(\"utf8\")));\n+\t\t\treq.on(\"end\", () => {\n+\t\t\t\tconst body = JSON.parse(raw) as { text: string; question?: boolean };\n+\t\t\t\treplies.push(body);\n+\t\t\t\tsend(200, {\n+\t\t\t\t\task: {\n+\t\t\t\t\t\tid: Number(reply[2]),\n+\t\t\t\t\t\tby: \"desk\",\n+\t\t\t\t\t\tof: reply[1],\n+\t\t\t\t\t\tanswer: null,\n+\t\t\t\t\t\twaitingOn: body.question ? \"desk\" : reply[1],\n+\t\t\t\t\t},\n+\t\t\t\t});\n+\t\t\t});\n+\t\t\treturn;\n+\t\t}\n+\t\t// One ask with its thread, and the asks an agent sent.\n+\t\tconst one = /\\/ask\\/(\\d+)$/.exec(req.url ?? \"\");\n+\t\tif (req.method === \"GET\" && one) return send(200, { ask: { ...threaded, id: Number(one[1]) } });\n+\t\tif (req.method === \"GET\" && /\\/a\\/[^/]+\\/asked$/.test(req.url ?? \"\"))\n+\t\t\treturn send(200, {\n+\t\t\t\tasks: [\n+\t\t\t\t\tthreaded,\n+\t\t\t\t\t{ ...threaded, id: 8, replies: [], answer: { by: \"fay\", words: \"yes\", at: 0 }, waitingOn: null },\n+\t\t\t\t],\n+\t\t\t});\n \t\tsend(500, { error: \"a stand-in\" });\n \t});\n \tawait new Promise<void>((ok) => issues.listen(0, \"127.0.0.1\", ok));\n@@ -146,7 +202,8 @@\n \n \tit(\"are MCP tools\", () => {\n \t\tconst names = mcpTools().map((t) => t.name);\n-\t\tfor (const n of [\"issues\", \"issue\", \"search\", \"ask\", \"waiting\", \"answer\"]) assert.ok(names.includes(n), n);\n+\t\tfor (const n of [\"issues\", \"issue\", \"search\", \"ask\", \"waiting\", \"answer\", \"ack\", \"reply\"])\n+\t\t\tassert.ok(names.includes(n), n);\n \t\tassert.deepEqual(argvFor(\"ask\", { args: [\"alice\", \"Which login?\"], issue: \"3\", review: true }), [\n \t\t\t\"ask\",\n \t\t\t\"--issue=3\",\n@@ -210,13 +267,65 @@\n \t\tconst before = seen.length;\n \t\tconst r = await main([\"ack\", \"7\", \"on it after the deploy\"], { cwd: fay, env: ENV(), write: () => {} });\n \t\tassert.equal(r.exit, 0, r.stdout + r.stderr);\n-\t\tassert.equal(r.stdout, 'Acknowledged ask 7. desk hears it; the ask stays open until abso answer 7 \"...\".\\n');\n+\t\tassert.equal(\n+\t\t\tr.stdout,\n+\t\t\t'Acknowledged ask 7. desk hears it; abso reply 7 \"...\" adds more as you go, and the ask stays open until abso answer 7 \"...\".\\n',\n+\t\t);\n \t\tconst posts = seen.slice(before).filter((s) => s.startsWith(\"POST\"));\n \t\tassert.deepEqual(posts.length, 1, posts.join(\"\\n\"));\n \t\tassert.match(posts[0]!, /^POST \\/p\\/issues\\d+\\/a\\/fay\\/ack\\/7$/);\n \t\tassert.equal((await main([\"ack\"], { cwd: fay, env: ENV(), write: () => {} })).exit, 1);\n \t});\n \n+\tit(\"reply is one POST to reply/<ask> with the words, and says whose turn it is\", async () => {\n+\t\tconst fay = await folder(\"fay\");\n+\t\tconst before = seen.length;\n+\t\tconst r = await main([\"reply\", \"7\", \"staging or live?\", \"--question\"], { cwd: fay, env: ENV(), write: () => {} });\n+\t\tassert.equal(r.exit, 0, r.stdout + r.stderr);\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\\/fay\\/reply\\/7$/);\n+\t\tassert.deepEqual(replies.at(-1), { text: \"staging or live?\", question: true });\n+\t\tassert.equal(r.stdout, \"Replied on ask 7. desk hears it. It waits on desk.\\n\");\n+\t\tassert.equal((await main([\"reply\", \"7\"], { cwd: fay, env: ENV(), write: () => {} })).exit, 1);\n+\t});\n+\n+\tit(\"ask <N> reads one ask with its whole thread, oldest first, and whose turn it is\", async () => {\n+\t\tconst fay = await folder(\"fay\");\n+\t\tconst before = seen.length;\n+\t\tconst r = await main([\"ask\", \"7\"], { cwd: fay, env: ENV(), write: () => {} });\n+\t\tassert.equal(r.exit, 0, r.stdout + r.stderr);\n+\t\tassert.match(seen.slice(before).join(\"\\n\"), /^GET \\/p\\/issues\\d+\\/ask\\/7$/m);\n+\t\tassert.match(\n+\t\t\tr.stdout,\n+\t\t\t/^ {2}ask 7: desk, .* asks fay a question on issue 3 \\(\"Sync is slow\"\\) \\(2 replies; waiting on desk\\): \"Which way\\?\"$/m,\n+\t\t);\n+\t\tconst ack = r.stdout.indexOf('    fay, Jan 1 1970 00:00 UTC: \"ok, let me check\"');\n+\t\tconst back = r.stdout.indexOf('    fay, Jan 1 1970 00:00 UTC, a question: \"staging or live?\\\\nlive is 906\"');\n+\t\tassert.ok(ack > 0 && back > ack, r.stdout);\n+\t\tassert.match(\n+\t\t\tr.stdout,\n+\t\t\t/^It waits on desk\\. abso reply 7 \"\\.\\.\\.\" adds to it; abso answer 7 \"\\.\\.\\.\" answers and closes it\\.$/m,\n+\t\t);\n+\t\t// The asker reads it as their turn, and can't answer it.\n+\t\tconst desk = await folder(\"desk\");\n+\t\tconst d = await main([\"ask\", \"7\"], { cwd: desk, env: ENV(), write: () => {} });\n+\t\tassert.match(d.stdout, /^It waits on you\\. abso reply 7 \"\\.\\.\\.\" adds to it\\.$/m);\n+\t});\n+\n+\tit(\"waiting --asked lists the asks you sent, open first, then the latest answered\", async () => {\n+\t\tconst fay = await folder(\"fay\");\n+\t\tconst before = seen.length;\n+\t\tconst r = await main([\"waiting\", \"--asked\"], { cwd: fay, env: ENV(), write: () => {} });\n+\t\tassert.equal(r.exit, 0, r.stdout + r.stderr);\n+\t\tassert.match(seen.slice(before).join(\"\\n\"), /^GET \\/p\\/issues\\d+\\/a\\/fay\\/asked$/m);\n+\t\tassert.match(r.stdout, /^1 open ask you sent:$/m);\n+\t\tassert.match(r.stdout, /^ {4}last: fay, .*, a question: \"staging or live\\? \\.\\.\\.\"$/m);\n+\t\tassert.ok(r.stdout.indexOf(\"ask 7:\") < r.stdout.indexOf(\"The latest answered:\"), r.stdout);\n+\t\tassert.ok(r.stdout.indexOf(\"The latest answered:\") < r.stdout.indexOf(\"ask 8:\"), r.stdout);\n+\t\tassert.match(r.stdout, /^ {4}answer: \"yes\"$/m);\n+\t});\n+\n \tit(\"an acknowledged ask reads as acknowledged, not answered, with the note under it\", () => {\n \t\tconst ask = {\n \t\t\tid: 7,"}]}