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

abso login --web says what the link reaches: a box's only the projects the box was granted, at most as a writer, until the box is revoked or ends (abso 1464, website 1125, Security); a PAT's at most as a writer. The help says the same, and that it writes issues, replies, answers, groups and announcements and changes no members, roles, visibility, keys, boxes or settings. Tests: client/test/web-session.test.ts (4).

of shared·box-grants··Not checked

Version 303 · Files at version 304

3 files, 11 lines added, 6 removed.

--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -220,7 +220,7 @@
220220 usage:
221221 "abso login [--no-browser] [--no-ask] [--projects <name,name>] [--role <reader|writer|owner>] [--days <1-90>] | abso login --web [--pat-file <file>] [--site <url>]",
222222 about:
223− "Sign this box in once: it opens the approve page in your browser with the code filled in, prints the link and the code too, and waits while a person approves the code on the website, choosing the projects, the highest role and how long. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. No browser opens with --no-browser or ABSO_NO_BROWSER, over SSH, under CI, or on Linux without a display. In an agent's folder on the same server, it also asks a person in that project to approve it (the person who approved the agent's box, else the project's owners), as an abso ask, so nobody has to relay the code; the box can then be granted that project at no more than the agent's own role. --no-ask shows the code only. --web, on staging only, signs a browser in to the website instead: it prints a link that works once, within a minute, and signs whichever browser opens it in as the person who approved this box (or, with --pat-file, the test account whose PAT that file holds). The box's sign-in, the PAT and the session never appear; agents never sign in to the website on prod.",
223+ "Sign this box in once: it opens the approve page in your browser with the code filled in, prints the link and the code too, and waits while a person approves the code on the website, choosing the projects, the highest role and how long. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. No browser opens with --no-browser or ABSO_NO_BROWSER, over SSH, under CI, or on Linux without a display. In an agent's folder on the same server, it also asks a person in that project to approve it (the person who approved the agent's box, else the project's owners), as an abso ask, so nobody has to relay the code; the box can then be granted that project at no more than the agent's own role. --no-ask shows the code only. --web, on staging only, signs a browser in to the website instead: it prints a link that works once, within a minute, and signs whichever browser opens it in as the person who approved this box, but only to the projects the box was granted and at most as a writer, until the box is revoked or ends (or, with --pat-file, as the test account whose PAT that file holds, at most as a writer). It writes issues, replies, answers, groups and announcements, and changes no members, roles, visibility, keys, boxes or settings. The box's sign-in, the PAT and the session never appear; agents never sign in to the website on prod.",
224224 run: async (args, env) => {
225225 const server = boxServer(args, env);
226226 if (bool(args, "web")) {
@@ -230,7 +230,7 @@
230230 if (patFile === undefined && (record === undefined || record.expiresAt <= Date.now()))
231231 throw new UsageError(`this box isn't signed in to ${server}: abso login first, or --pat-file <file>`);
232232 const handoff = await webHandoff(site, patFile === undefined ? record!.credential : patFromFile(patFile));
233− return { text: handoffText(handoff, site), json: { ...handoff } };
233+ return { text: handoffText(handoff, site, patFile === undefined), json: { ...handoff } };
234234 }
235235 const open =
236236 bool(args, "no-browser") || browserSkip(env.env, process.platform) !== null
--- a/client/src/web-session.ts
+++ b/client/src/web-session.ts
@@ -107,11 +107,14 @@
107107 };
108108}
109109
110−/** What abso login --web says: the one link, how long it works, and who it signs in as. */
111−export function handoffText(h: Handoff, site: string, now = Date.now()): string {
110+/** What abso login --web says: the one link, how long it works, who it signs in as, and what it reaches (Security). */
111+export function handoffText(h: Handoff, site: string, boxed = true, now = Date.now()): string {
112112 const seconds = Math.max(0, Math.round((Date.parse(h.expiresAt) - now) / 1000));
113+ const reach = boxed
114+ ? "only to the projects this box was granted, at most as a writer, until the box is revoked or ends"
115+ : "at most as a writer";
113116 return [
114− `Open this link in your browser within ${seconds} seconds. It signs that browser in to ${site} as ${h.name}, until ${h.sessionEnds}, and works once:`,
117+ `Open this link in your browser within ${seconds} seconds. It signs that browser in to ${site} as ${h.name}, until ${h.sessionEnds}, and works once. It reaches ${reach}:`,
115118 h.url,
116119 ].join("\n");
117120}
--- a/client/test/web-session.test.ts
+++ b/client/test/web-session.test.ts
@@ -33,9 +33,11 @@
3333 }) as typeof fetch;
3434 const h = await webHandoff(SITE, BOX, fetcher);
3535 assert.deepEqual(seen, [{ url: `${SITE}/login/handoff`, authorization: `Bearer ${BOX}`, body: null }]);
36− const text = handoffText(h, SITE, NOW);
36+ const text = handoffText(h, SITE, true, NOW);
3737 assert.match(text, /within 60 seconds/);
3838 assert.match(text, /as christopher, until 2026-10-16T21:00:00.000Z, and works once/);
39+ assert.match(text, /only to the projects this box was granted, at most as a writer/);
40+ assert.match(handoffText(h, SITE, false, NOW), /It reaches at most as a writer:/);
3941 assert.match(text, /\/login\/handoff#t{50}$/);
4042 assert.doesNotMatch(text + JSON.stringify(h), /abso_bx_/);
4143});