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

abso ack <ask> ["note"]: the one asked says they have an ask and will answer later. The ask stays open and keeps blocking; abso issue shows it as acknowledged with the note, and the asker hears it. The Ask wire type gains ack, the API client gains ack(), and the skill mentions the command.

of shared·pinch··Not checked

Version 52 · Files at version 53

8 files, 107 lines added, 3 removed.

--- a/client/skills/abso/SKILL.md
+++ b/client/skills/abso/SKILL.md
@@ -44,6 +44,7 @@
4444- `abso issue new "<title>" --description "..."`: open one.
4545- `abso issue <N> --comment "..."`: comment.
4646- `abso waiting --mine`, then `abso answer <ask> "..."`: answer what's asked of you.
47+ `abso ack <ask>` says you have it when the answer has to wait.
4748- Images and files on an issue: `abso issue <N> --save-attachments <folder>`
4849 saves them, then read the files. Their links are for people signed in on
4950 the website, and refuse an agent's fetch.
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -625,6 +625,11 @@
625625 return this.#issues("POST", this.agentPath(`answer/${id}`), body);
626626 }
627627
628+ /** Acknowledges an ask of this agent without answering it: the asker hears it, and the ask stays open. */
629+ ack(id: number, body: { note?: string }): Promise<{ ask: Ask; news?: IssueNews }> {
630+ return this.#issues("POST", this.agentPath(`ack/${id}`), body);
631+ }
628633 /** Takes back an ask this agent made, with a note on why; the one asked hears it. */
629634 withdraw(id: number, body: { note?: string }): Promise<{ ask: Ask; news?: IssueNews }> {
630635 return this.#issues("POST", this.agentPath(`withdraw/${id}`), body);
--- a/client/src/issues-wire.ts
+++ b/client/src/issues-wire.ts
@@ -83,6 +83,8 @@
8383 seen: number | null;
8484 /** "withdrawn" when the asker took it back; absent for an open or answered ask, and from older servers. */
8585 outcome?: "withdrawn";
86+ /** When the one asked acknowledged it without answering yet, with their note; it stays open. Absent until then. */
87+ ack?: { at: number; note: string };
8688}
8789
8890export interface Claim {
--- a/client/src/issues.ts
+++ b/client/src/issues.ts
@@ -78,7 +78,8 @@
7878 a.answer
7979 ? `${a.outcome === "withdrawn" ? "withdrawn" : "answered"} by ${a.answer.by}, ${shortWhen(a.answer.at)}`
8080 : "",
81− !a.answer && a.seen !== undefined ? seenText(a.seen) : "",
81+ !a.answer && a.ack ? `acknowledged ${shortWhen(a.ack.at)}, not answered yet` : "",
82+ !a.answer && !a.ack && a.seen !== undefined ? seenText(a.seen) : "",
8283 a.due ? `due ${a.due}` : "",
8384 a.blocks.length > 0 ? `blocks ${a.blocks.join(", ")}` : "",
8485 ].filter((x) => x !== "");
@@ -86,6 +87,7 @@
8687 const lines = [head, ...attachmentLines(api, a.attachments, " ")];
8788 if (a.options.length > 0) lines.push(` options: ${a.options.map((o, i) => `${i + 1}. ${q(o)}`).join(", ")}`);
8889 if (a.recommendation) lines.push(` ${a.recommendation.by} recommends: ${q(a.recommendation.text)}`);
90+ if (!a.answer && a.ack && a.ack.note !== "") lines.push(` ${a.of} acknowledged: ${q(a.ack.note)}`);
8991 if (a.answer && a.outcome === "withdrawn") {
9092 if (a.answer.words !== "") lines.push(` why: ${q(a.answer.words)}`);
9193 } else if (a.answer)
@@ -738,6 +740,19 @@
738740 };
739741}
740742
743+/** abso ack <ask> ["note"]: tell the asker you have it, and answer later. The ask stays open until abso answer. */
744+export async function runAck(args: Parsed, env: Env): Promise<Output> {
745+ const [first, ...words] = args.positionals;
746+ const id = issueNumber(first, "the ask number");
747+ const { api } = openIssues(env);
748+ const note = words.join(" ");
749+ const r = await api.ack(id, note !== "" ? { note } : {});
750+ return {
751+ text: `Acknowledged ask ${id}. ${r.ask.by} hears it; the ask stays open until abso answer ${id} "...".`,
752+ json: { ask: r.ask },
753+ };
754+}
741756export async function runAnswer(args: Parsed, env: Env): Promise<Output> {
742757 const [first, ...words] = args.positionals;
743758 const id = issueNumber(first, "the ask number");
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -41,7 +41,7 @@
4141import { runDraftSync, runLand, runSwitch } from "./drafts.ts";
4242import { runExport } from "./export.ts";
4343import { runBlame, runWhere, runWho, runWhy } from "./history.ts";
44−import { runAnswer, runAsk, runIssue, runIssues, runSearch, runWaiting } from "./issues.ts";
44+import { runAck, runAnswer, runAsk, runIssue, runIssues, runSearch, runWaiting } from "./issues.ts";
4545import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from "./key-admin.ts";
4646import { initInOrg, runOrg, runOrgs } from "./orgs.ts";
4747import { runUnqueue } from "./queue.ts";
@@ -467,6 +467,13 @@
467467 "Answer an ask of you, in your own words, by picking an option (by number or text), or, for a task, with --done. --attach sends files with the answer. The asker hears it.",
468468 run: runAnswer,
469469 },
470+ ack: {
471+ flags: {},
472+ usage: 'abso ack <ask> ["<note>"]',
473+ about:
474+ "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.",
475+ run: runAck,
476+ },
470477 unqueue: {
471478 flags: {},
472479 usage: "abso unqueue",
--- a/client/src/mcp.ts
+++ b/client/src/mcp.ts
@@ -52,6 +52,7 @@
5252 "ask",
5353 "waiting",
5454 "answer",
55+ "ack",
5556 "orgs",
5657 "org",
5758] as const;
--- a/client/src/skill.ts
+++ b/client/src/skill.ts
@@ -54,6 +54,7 @@
5454- \`abso issue new "<title>" --description "..."\`: open one.
5555- \`abso issue <N> --comment "..."\`: comment.
5656- \`abso waiting --mine\`, then \`abso answer <ask> "..."\`: answer what's asked of you.
57+ \`abso ack <ask>\` says you have it when the answer has to wait.
5758- Images and files on an issue: \`abso issue <N> --save-attachments <folder>\`
5859 saves them, then read the files. Their links are for people signed in on
5960 the website, and refuse an agent's fetch.
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -14,7 +14,8 @@
1414import { after, before, describe, it } from "node:test";
1515import { readConfig, readMachineServers } from "../src/config.ts";
1616import { issuesServerFor, tokenGoesTo } from "../src/core.ts";
17−import { searchLines } from "../src/issues.ts";
17+import { issuePage, searchLines } from "../src/issues.ts";
18+import type { IssuePage } from "../src/issues-wire.ts";
1819import { main } from "../src/main.ts";
1920import { argvFor, mcpTools } from "../src/mcp.ts";
2021import { type Fake, startFake } from "./fake-server.ts";
@@ -64,6 +65,12 @@
6465 });
6566 return;
6667 }
68+ // An ack answers with the ask, acknowledged and still open.
69+ const ack = /\/a\/([^/]+)\/ack\/(\d+)$/.exec(req.url ?? "");
70+ if (req.method === "POST" && ack)
71+ return send(200, {
72+ ask: { id: Number(ack[2]), by: "desk", of: ack[1], answer: null, ack: { at: Date.now(), note: "" } },
73+ });
6774 send(500, { error: "a stand-in" });
6875 });
6976 await new Promise<void>((ok) => issues.listen(0, "127.0.0.1", ok));
@@ -197,6 +204,71 @@
197204 assert.equal(posts.length, 1, posts.join("\n"));
198205 assert.match(posts[0]!, /^POST \/p\/issues\d+\/a\/erin\/withdraw\/3$/);
199206 });
208+ it("ack is one POST to the one asked's ack/<ask> route, and says the ask stays open", async () => {
209+ const fay = await folder("fay");
210+ const before = seen.length;
211+ const r = await main(["ack", "7", "on it after the deploy"], { cwd: fay, env: ENV(), write: () => {} });
212+ assert.equal(r.exit, 0, r.stdout + r.stderr);
213+ assert.equal(r.stdout, 'Acknowledged ask 7. desk hears it; the ask stays open until abso answer 7 "...".\n');
214+ const posts = seen.slice(before).filter((s) => s.startsWith("POST"));
215+ assert.deepEqual(posts.length, 1, posts.join("\n"));
216+ assert.match(posts[0]!, /^POST \/p\/issues\d+\/a\/fay\/ack\/7$/);
217+ assert.equal((await main(["ack"], { cwd: fay, env: ENV(), write: () => {} })).exit, 1);
218+ });
220+ it("an acknowledged ask reads as acknowledged, not answered, with the note under it", () => {
221+ const ask = {
222+ id: 7,
223+ issue: 3,
224+ by: "desk",
225+ of: "fay",
226+ kind: "question",
227+ question: "Which way?",
228+ review: false,
229+ due: null,
230+ recommendation: null,
231+ options: [],
232+ blocks: [],
233+ at: 0,
234+ answer: null,
235+ seen: 0,
236+ ack: { at: 0, note: "on it after the deploy" },
237+ };
238+ const page = {
239+ issue: {
240+ id: 3,
241+ title: "t",
242+ status: "blocked",
243+ parent: null,
244+ opened: { by: "desk", at: 0 },
245+ agent: null,
246+ agents: [],
247+ blockedBy: [],
248+ labels: [],
249+ versions: [],
250+ waitingOn: ["fay"],
251+ closed: null,
252+ description: "",
253+ lines: null,
254+ watchers: [],
255+ },
256+ comments: [],
257+ edits: [],
258+ asks: [ask],
259+ claims: [],
260+ children: [],
261+ } as unknown as IssuePage;
262+ const text = issuePage(page).join("\n");
263+ assert.match(
264+ text,
265+ /\n {2}ask 7: desk, [^\n]*asks fay a question on issue 3 \(acknowledged [^;)]+, not answered yet\): "Which way\?"\n {4}fay acknowledged: "on it after the deploy"/,
266+ );
267+ assert.doesNotMatch(text, /answer:/);
268+ const answered = { ...ask, answer: { by: "fay", words: "This way", at: 0 } };
269+ const later = issuePage({ ...page, asks: [answered] } as unknown as IssuePage).join("\n");
270+ assert.doesNotMatch(later, /acknowledged/, "an answer replaces the ack");
271+ });
200272});
201273
202274describe("abso issue <N> --copy-to <project>", () => {