18 files, 34 lines added, 34 removed.
--- a/client/README.md
+++ b/client/README.md
@@ -263,7 +263,7 @@
263263- stamp the mod with the last commit that changed its files: plugin.json's 264264 version becomes `0.1.0+702c616` (`.dirty` when the files differ from that 265265 commit), and the mod sends it with each call to the server as 266− `X-Avcs-Client`. A commit that changes none of them leaves nothing to
266+ `X-Abso-Client`. A commit that changes none of them leaves nothing to 267267 install, and nothing to restart for; 268268- check a staged copy first, with `claude plugin validate` and the mod's own 269269 tests in the plugin test kit, and change nothing if either fails @@ -276,7 +276,7 @@
276276folder in place of the skills folder. `abso --version` prints this client's 277277version and the mods installed on this machine, and says when this client 278278has a newer mod to install. The command-line client sends its own version 279−with each call too (`X-Avcs-Client: avcs-cli/0.1.0+<commit checked out>`).
279+with each call too (`X-Abso-Client: avcs-cli/0.1.0+<commit checked out>`). 281281## The view (avcs-view) --- a/client/hooks/register.test.ts
+++ b/client/hooks/register.test.ts
@@ -32,7 +32,7 @@
3232 on("http.fetch", (_$, e) => { 3434 auth.push((e.init?.headers as Record<string, string> | undefined)?.authorization ?? "none"); 35− clients.push(String((e.init?.headers as Record<string, string> | undefined)?.["x-avcs-client"]));
35+ clients.push(String((e.init?.headers as Record<string, string> | undefined)?.["x-abso-client"])); 3636 return { value: { status: 200, ok: true, headers: {}, text: JSON.stringify({ news: news.shift() ?? [] }) } }; 3838 on("session.append", (_$, e) => { --- a/client/hooks/register.ts
+++ b/client/hooks/register.ts
@@ -229,7 +229,7 @@
231231 "content-type": "application/json", 232− "x-avcs-client": CLIENT,
232+ "x-abso-client": CLIENT, 233233 ...(bearer ? { authorization: `Bearer ${bearer}` } : {}), @@ -364,7 +364,7 @@
366366 "content-type": "application/json", 367− "x-avcs-client": CLIENT,
367+ "x-abso-client": CLIENT, 368368 ...(bearer ? { authorization: `Bearer ${bearer}` } : {}), 370370 body: JSON.stringify(payload), --- a/client/hooks/stamp.ts
+++ b/client/hooks/stamp.ts
@@ -1,5 +1,5 @@
11// Which abso mod this is (#29), sent with each call to the server as 2−// X-Avcs-Client. The installer (src/install.ts) writes the installed copy of
2+// X-Abso-Client. The installer (src/install.ts) writes the installed copy of 33// this file with the version it installs: plugin.json's, plus the commit 44// (0.1.0+702c616). Loaded straight from a checkout, it stays undefined. 55export const STAMP: string | undefined = undefined; --- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -156,7 +156,7 @@
156156 this.startRetryDelaysMs = startRetryDelaysMs; 159− /** What a box run is for, for the server's box-run records (#39): X-Avcs-Kind on POST /run. */
159+ /** What a box run is for, for the server's box-run records (#39): X-Abso-Kind on POST /run. */ 160160 runKind: RunKind = "run"; 162162 /** The Issues Worker (#54) this folder's issues calls go to; set by the issues commands (issues.ts). */ @@ -173,7 +173,7 @@
173173 headers(contentType?: string): Record<string, string> { 175175 // Which client made the call (#29); the mods send theirs too. 176− "x-avcs-client": `abso-cli/${clientVersion()}`,
176+ "x-abso-client": `abso-cli/${clientVersion()}`, 177177 ...(this.config.token ? { authorization: `Bearer ${this.config.token}` } : {}), 178178 ...(contentType ? { "content-type": contentType } : {}), @@ -479,7 +479,7 @@
480480 res = await fetch(this.url(path, this.issuesServer), { 482− headers: { ...this.headers("application/octet-stream"), "x-avcs-name": encodeURIComponent(name) },
482+ headers: { ...this.headers("application/octet-stream"), "x-abso-name": encodeURIComponent(name) }, 483483 body: bytes as Uint8Array<ArrayBuffer>, 484484 signal: AbortSignal.timeout(Math.max(this.timeoutMs, 120_000)), @@ -882,9 +882,9 @@
883883 async run(command: string, tarGz: Uint8Array<ArrayBuffer>, io: RunIO): Promise<number> { 884884 const res = await postRun(this, command, tarGz, io.onRetry, io.replace, io.fresh); 885− // X-Avcs-Box: cold means the box started for this run; X-Avcs-Prep says whether it started from the prep (#37).
886− io.onBox?.(res.headers.get("x-avcs-box") === "cold", res.headers.get("x-avcs-prep") ?? undefined);
887− return follow(this, res, res.headers.get("x-avcs-run"), { at: 0, errAt: 0 }, io);
885+ // X-Abso-Box: cold means the box started for this run; X-Abso-Prep says whether it started from the prep (#37). 886+ io.onBox?.(res.headers.get("x-abso-box") === "cold", res.headers.get("x-abso-prep") ?? undefined); 887+ return follow(this, res, res.headers.get("x-abso-run"), { at: 0, errAt: 0 }, io); @@ -898,7 +898,7 @@
899899 ): Promise<string> { 900900 const res = await postRun(this, command, tarGz, onRetry, replace); 901− const id = res.headers.get("x-avcs-run");
901+ const id = res.headers.get("x-abso-run"); 902902 if (id === null) { 903903 // No id: the box failed before the job started ({"error"} in the body), or the server can't detach. 904904 await consumeRun(res, { out: () => {} }, { at: 0, errAt: 0 }); --- a/client/src/box-commands.ts
+++ b/client/src/box-commands.ts
@@ -308,7 +308,7 @@
309309 // avcs's own lines (on stderr); --quiet drops them, and the box's stdout and stderr stay as they are (#37). 310310 const notice = bool(args, "quiet") ? (_text: string): void => {} : (env.writeErr ?? env.write); 311− // What the box said about its prep (X-Avcs-Prep): null when it has none.
311+ // What the box said about its prep (X-Abso-Prep): null when it has none. 312312 let prepState: string | null | undefined; 313313 const posix = undoGitBashPaths(args.positionals, env.env); 314314 if (posix.undone.length > 0) { @@ -517,7 +517,7 @@
517517 * (ABSO_BOX=2 in its environment), so their runs don't wait on each other. 520− * What this folder last heard about a box's prep: a run's X-Avcs-Prep, or
520+ * What this folder last heard about a box's prep: a run's X-Abso-Prep, or 521521 * abso prep and prep --forget. null means no prep; undefined, never heard. So 522522 * publish --check can refuse before running a check that can't be trusted 523523 * (#37: a 40 s suite ran, then was refused). --- a/client/src/box-run.ts
+++ b/client/src/box-run.ts
@@ -41,7 +41,7 @@
4141 readonly onRetry?: (why: string, attempt: number) => void; 4242 /** Stop the runs still going in the box first, instead of a 409 (abso run --replace). */ 4343 readonly replace?: boolean; 44− /** Called when the run starts: whether the box is fresh, and what X-Avcs-Prep says about its prep. */
44+ /** Called when the run starts: whether the box is fresh, and what X-Abso-Prep says about its prep. */ 4545 readonly onBox?: (cold: boolean, prep: string | undefined) => void; 4646 /** Start from the plain image this once, not the prep (abso run --fresh). */ 4747 readonly fresh?: boolean; @@ -154,11 +154,11 @@
154154 `${api.url(api.agentPath("run"))}?cmd=${encodeURIComponent(command)}&stderr=split${replace ? "&replace=1" : ""}${fresh ? "&fresh=1" : ""}${boxQuery(api.box)}`, 157− headers: { ...api.headers("application/gzip"), "x-avcs-run-key": key, "x-avcs-kind": api.runKind },
157+ headers: { ...api.headers("application/gzip"), "x-abso-run-key": key, "x-abso-kind": api.runKind }, 161− if (answer.status < 500 || answer.headers.get("x-avcs-run") !== null) {
161+ if (answer.status < 500 || answer.headers.get("x-abso-run") !== null) { --- a/client/src/client-version.ts
+++ b/client/src/client-version.ts
@@ -1,4 +1,4 @@
1−// Which client this is (#29), for `avcs --version` and for the X-Avcs-Client
1+// Which client this is (#29), for `avcs --version` and for the X-Abso-Client 22// header the command-line client sends with each call: plugin.json's version 33// plus the commit checked out where the client runs (0.1.0+ed45dad). The 44// commit is read from .git without running git, since every command pays for --- a/client/src/install.ts
+++ b/client/src/install.ts
@@ -7,7 +7,7 @@
77// last commit that changed the mod's own files (0.1.0+702c616, or 88// 0.1.0+702c616.dirty when they differ from it), and hooks/stamp.ts says 99// the same, so the mod sends it with each call to the server 10−// (X-Avcs-Client). A commit that changes none of them changes nothing to
10+// (X-Abso-Client). A commit that changes none of them changes nothing to 1111// install, and nothing to restart for. 1212// 2. Checks the staged copy: `claude plugin validate`, then the mod's own 1313// tests in Claude Code's plugin test kit. If either fails, nothing in the --- a/client/src/key-admin.ts
+++ b/client/src/key-admin.ts
@@ -57,7 +57,7 @@
5959 ...(config.token ? { authorization: `Bearer ${config.token}` } : {}), 60− "x-avcs-admin": admin,
60+ "x-abso-admin": admin, 6262 signal: AbortSignal.timeout(30_000), --- a/client/test/attach.test.ts
+++ b/client/test/attach.test.ts
@@ -133,7 +133,7 @@
133133 calls.map((c) => `${c.method} ${c.url.replace(/^\/p\/[^/]+/, "")}`), 134134 ["POST /a/ann/attachments", "POST /a/ann/attachments", "POST /a/ann/issue"], 136− assert.equal(calls[0]!.headers["x-avcs-name"], "shot.png");
136+ assert.equal(calls[0]!.headers["x-abso-name"], "shot.png"); 137137 assert.equal(calls[0]!.headers["content-type"], "application/octet-stream"); 138138 assert.deepEqual([...calls[0]!.body], [0x89, 0x50, 0x4e, 0x47, 1, 2, 3]); 139139 const opened = JSON.parse(calls[2]!.body.toString()) as { title: string; attachments: string[] }; --- a/client/test/fake-server.ts
+++ b/client/test/fake-server.ts
@@ -91,7 +91,7 @@
9191 failPublish: "after" | "before" | undefined; 9292 /** Run the merge queue's rounds now (after queueHold is let go). */ 9393 kickQueue(name: string): Promise<void>; 94− /** Each run POST's X-Avcs-Run-Key, and whether a run started for it. */
94+ /** Each run POST's X-Abso-Run-Key, and whether a run started for it. */ 9595 runStarts: { key: string | undefined; started: boolean; cmd: string; kind?: string }[]; 9696 close(): Promise<void>; @@ -250,7 +250,7 @@
250250 ...files.map((rel) => ({ path: rel, data: readFileSync(join(box!, ...rel.split("/"))) })), 253− res.writeHead(200, { "content-type": "application/gzip", "x-avcs-files": String(files.length) });
253+ res.writeHead(200, { "content-type": "application/gzip", "x-abso-files": String(files.length) }); 254254 res.end(Buffer.from(gz)); @@ -482,13 +482,13 @@
482482 if (agent === undefined || !NAME.test(agent)) 483483 return send(res, 400, { error: "agent names use letters, digits, '.', '_' and '-'" }); 484484 if (op === "run") { 485− const key = req.headers["x-avcs-run-key"];
485+ const key = req.headers["x-abso-run-key"]; 486486 const dropped = fake.dropRunStarts > 0; 487487 fake.runStarts.push({ 488488 key: typeof key === "string" ? key : undefined, 489489 started: !dropped, 490490 cmd: url.searchParams.get("cmd") ?? "", 491− kind: String(req.headers["x-avcs-kind"] ?? ""),
491+ kind: String(req.headers["x-abso-kind"] ?? ""), 494494 fake.dropRunStarts--; @@ -656,7 +656,7 @@
656656 const run: Run = { out: Buffer.alloc(0), err: Buffer.alloc(0), split, end: undefined, listeners: new Set() }; 657657 hosted.runs.clear(); 658658 hosted.runs.set(id, run); 659− res.writeHead(200, { "content-type": "application/x-ndjson", "x-avcs-box": "warm", "x-avcs-run": id });
659+ res.writeHead(200, { "content-type": "application/x-ndjson", "x-abso-box": "warm", "x-abso-run": id }); 660660 res.write(`${JSON.stringify({ run: id, ...(split ? { stderr: "split" } : {}) })}\n`); 661661 streamRun(res, run); 662662 const emit = (line: string): void => { --- a/client/test/install.test.ts
+++ b/client/test/install.test.ts
@@ -487,7 +487,7 @@
489489 } as ConstructorParameters<typeof Api>[0]).headers("application/json"); 490− assert.equal(headers["x-avcs-client"], `abso-cli/${clientVersion()}`);
490+ assert.equal(headers["x-abso-client"], `abso-cli/${clientVersion()}`); 491491 assert.match(clientVersion(), /^\d+\.\d+\.\d+(\+[0-9a-f]{7})?$/); --- a/client/test/key-admin.test.ts
+++ b/client/test/key-admin.test.ts
@@ -71,7 +71,7 @@
7272 const issued = await keyNew(config, ADMIN, "tester-1"); 7373 assert.deepEqual(issued, { id: "k_ab12cd34", key: KEY, agent: "tester-1" }); 74− assert.equal(seen[0]!.headers!.get("x-avcs-admin"), ADMIN);
74+ assert.equal(seen[0]!.headers!.get("x-abso-admin"), ADMIN); 7575 assert.equal(seen[0]!.url!.includes(ADMIN), false); 7676 assert.equal(seen[0]!.url!.includes(KEY), false); --- a/client/view/hooks/register.tsx
+++ b/client/view/hooks/register.tsx
@@ -127,7 +127,7 @@
127127async function get($: Engine, f: Folder, path: string): Promise<any> { 128128 const bearer = await token($, f.server); 129129 const r = await $.http.fetch(`${f.server.replace(/\/+$/, "")}/p/${encodeURIComponent(f.project)}${path}`, { 130− headers: { "x-avcs-client": CLIENT, ...(bearer ? { authorization: `Bearer ${bearer}` } : {}) },
130+ headers: { "x-abso-client": CLIENT, ...(bearer ? { authorization: `Bearer ${bearer}` } : {}) }, 132132 if (!r.ok) throw new Error(`${path} answered ${r.status}`); 133133 return JSON.parse(r.text); --- a/client/view/hooks/stamp.ts
+++ b/client/view/hooks/stamp.ts
@@ -1,5 +1,5 @@
11// Which avcs-view mod this is (#29), sent with each call to the server as 2−// X-Avcs-Client. The installer (client/src/install.ts) writes the installed
2+// X-Abso-Client. The installer (client/src/install.ts) writes the installed 33// copy of this file with the version it installs: plugin.json's, plus the 44// commit (0.1.0+702c616). Loaded straight from a checkout, it stays undefined. 55export const STAMP: string | undefined = undefined; --- a/worker/project/project-types.ts
+++ b/worker/project/project-types.ts
@@ -20,7 +20,7 @@
2020 readonly atom: Atom; 2121 readonly session?: string; 2222 readonly subagent?: string; 23− /** The client that sent it (#41, the edits mark): its X-Avcs-Client, such as avcs-mod/0.1.0+702c616. */
23+ /** The client that sent it (#41, the edits mark): its X-Abso-Client, such as avcs-mod/0.1.0+702c616. */ 2424 readonly client?: string; --- a/worker/project/project.ts
+++ b/worker/project/project.ts
@@ -268,7 +268,7 @@
268268 readonly #versionChange = new Map<string, number>(); 269269 /** Every note (#44), by id. */ 270270 readonly #notes = new Map<number, NoteRecord>(); 271− /** Mod versions (X-Avcs-Client) in the order they first sent an edit (#41): the last is taken as the installed one. */
271+ /** Mod versions (X-Abso-Client) in the order they first sent an edit (#41): the last is taken as the installed one. */ 272272 #mods: string[] = []; 273273 /** The merge queue (#39), in order: publishes to shared waiting for their batch's check. */ 274274 #queue: QueuedPublish[] = []; @@ -483,7 +483,7 @@
486− * How the agent's newest edit arrived (#41). The mod sends X-Avcs-Client
486+ * How the agent's newest edit arrived (#41). The mod sends X-Abso-Client 487487 * avcs-mod/<stamp>; the hook sends abso-cli/<version> (avcs-cli/ before #59) with the chat's 488488 * session; abso record and git pushes send no session. Edits stored before 489489 * the client was recorded have only the session: those count as the mod