{"version":18,"agent":"pinch","message":"New folders keep .avcs/ for now; the server keeps both state folders out of a project\n\nVersion 17 made new folders with .abso/. An edit mod or Cursor hook installed before the rename looks only for .avcs/config.json, so in a .abso/ folder it would stop recording edits, and nothing would say so. Until installs can say which mods know .abso/, a new folder is made with .avcs/ again (NEW_FOLDER_DIR in client/src/state-dir.ts). Reading is unchanged: a folder with .abso/ works exactly as one with .avcs/, and neither is ever half-moved. The user's files still go to ~/.abso/, since an older client that can't find them says so.\n\nThe server refused only paths under .avcs/, and the test server only .abso/. Both now refuse both, so a folder's state never becomes part of a project, whichever name it has.\n\nTests: new folders get .avcs/; a folder moved to .abso/ records and isn't moved back; the tests that assumed .abso/ for a new folder now use .avcs/.","time":1791523143960,"timeIso":"2026-10-09T05:19:03.960Z","changes":5,"change":209,"files":["client/src/state-dir.ts","client/test/client.test.ts","client/test/fake-server.ts","client/test/key.test.ts","worker/project/http.ts"],"draft":null,"diff":[{"path":"client/src/state-dir.ts","added":10,"removed":5,"diff":"--- a/client/src/state-dir.ts\n+++ b/client/src/state-dir.ts\n@@ -1,6 +1,8 @@\n-// Where abso keeps its state (the rename from avcs). A new folder keeps it in .abso/ and the user's in ~/.abso/.\n-// Folders and machines from before keep working on .avcs/ and ~/.avcs/, untouched: a folder is never half-moved,\n-// so an older client or installed mod still finds it. A later `abso migrate` moves a folder once its mods are updated.\n+// Where abso keeps its state (the rename from avcs). Reading takes .abso/ first, then .avcs/, so a folder in\n+// either works. A new folder is still made with .avcs/ for now: an edit mod or Cursor hook installed before the\n+// rename looks only for .avcs/config.json, and would stop recording a .abso/ folder's edits without a word.\n+// New folders move to .abso/ once installs can say which mods know it; `abso migrate` will move old ones. The\n+// user's files are written to ~/.abso/ (an older client that can't find them says so: it isn't silent).\n // No imports from the rest of the client, so any module can use this.\n \n import { existsSync } from \"node:fs\";\n@@ -10,13 +12,16 @@\n export const OLD_STATE_DIR = \".avcs\";\n const STATE_DIRS = [STATE_DIR, OLD_STATE_DIR] as const;\n \n-/** A folder's state folder: whichever has a config.json (.abso first), else whichever exists, else .abso for a folder not made yet. */\n+/** A folder's state folder: whichever has a config.json (.abso first), else whichever exists, else .avcs for a folder not made yet (see above). */\n export function stateDir(root: string): string {\n \tfor (const name of STATE_DIRS) if (existsSync(join(root, name, \"config.json\"))) return join(root, name);\n \tfor (const name of STATE_DIRS) if (existsSync(join(root, name))) return join(root, name);\n-\treturn join(root, STATE_DIR);\n+\treturn join(root, NEW_FOLDER_DIR);\n }\n \n+/** What a new folder is made with: .avcs until installed mods can be relied on to know .abso. */\n+export const NEW_FOLDER_DIR: string = OLD_STATE_DIR;\n+\n /** A file under the user's home to read: ~/.abso/<parts>, else the old ~/.avcs/<parts> when only that exists, else the new place. */\n export function homeFile(home: string, ...parts: string[]): string {\n \tfor (const name of STATE_DIRS) {"},{"path":"client/test/client.test.ts","added":45,"removed":44,"diff":"--- a/client/test/client.test.ts\n+++ b/client/test/client.test.ts\n@@ -179,7 +179,7 @@\n \t\tconst { name, folders } = await project({ \"src/a.ts\": \"one\\ntwo\\n\", \"README.md\": \"# hi\\n\" }, \"alice\", \"bob\");\n \t\tassert.equal(read(folders.bob!, \"src/a.ts\"), \"one\\ntwo\\n\");\n \t\tassert.equal(read(folders.bob!, \"README.md\"), \"# hi\\n\");\n-\t\tconst config = JSON.parse(read(folders.bob!, \".abso/config.json\"));\n+\t\tconst config = JSON.parse(read(folders.bob!, \".avcs/config.json\"));\n \t\tassert.deepEqual(config, { server: fake.url, project: name, agent: \"bob\" });\n \t\tconst status = await avcs(folders.alice!, \"status\");\n \t\tassert.equal(status.json.version, 0);\n@@ -288,17 +288,17 @@\n \t\tassert.equal((await avcs(dir, \"record\")).json.sent, 0);\n \t});\n \n-\tit(\"keeps .abso/ out of git through .git/info/exclude\", async () => {\n+\tit(\"keeps .avcs/ out of git through .git/info/exclude\", async () => {\n \t\tconst dir = temp();\n \t\twrite(dir, { \"a.txt\": \"a\\n\", \".git/HEAD\": \"ref: refs/heads/main\\n\" });\n \t\tconst r = await avcs(dir, \"init\", \"--server\", fake.url, \"--project\", `p${++projects}`, \"--agent\", \"alice\");\n \t\tassert.equal(r.exit, 0, r.out);\n-\t\tassert.match(read(dir, \".git/info/exclude\"), /^\\/\\.abso\\/$/m);\n+\t\tassert.match(read(dir, \".git/info/exclude\"), /^\\/\\.avcs\\/$/m);\n \t});\n \n \tit(\"never writes the token into the folder\", async () => {\n \t\tconst { folders } = await project({ \"a.txt\": \"a\\n\" }, \"alice\", \"bob\");\n-\t\tassert.ok(!read(folders.bob!, \".abso/config.json\").includes(TOKEN));\n+\t\tassert.ok(!read(folders.bob!, \".avcs/config.json\").includes(TOKEN));\n \t});\n \n \tit(\"says plainly when the token is wrong\", async () => {\n@@ -403,13 +403,13 @@\n \tit(\"logs and exits quietly when the server is down, and record catches up\", async () => {\n \t\tconst { name, folders } = await project({ \"a.txt\": \"one\\n\" }, \"alice\");\n \t\tconst root = folders.alice!;\n-\t\tconst config = JSON.parse(read(root, \".abso/config.json\"));\n-\t\twriteFileSync(join(root, \".abso\", \"config.json\"), JSON.stringify({ ...config, server: \"http://127.0.0.1:9\" }));\n+\t\tconst config = JSON.parse(read(root, \".avcs/config.json\"));\n+\t\twriteFileSync(join(root, \".avcs\", \"config.json\"), JSON.stringify({ ...config, server: \"http://127.0.0.1:9\" }));\n \t\tconst r = await edit(root, \"a.txt\", \"one\\n\", \"ONE\\n\");\n \t\tassert.match(r.outcome, /^error: could not reach/);\n \t\tassert.equal(r.stdout, \"\");\n-\t\tassert.match(read(root, \".abso/hook.log\"), /\\tEdit\\ta\\.txt\\terror: could not reach/);\n-\t\twriteFileSync(join(root, \".abso\", \"config.json\"), JSON.stringify(config));\n+\t\tassert.match(read(root, \".avcs/hook.log\"), /\\tEdit\\ta\\.txt\\terror: could not reach/);\n+\t\twriteFileSync(join(root, \".avcs\", \"config.json\"), JSON.stringify(config));\n \t\tassert.equal((await avcs(root, \"record\")).json.sent, 1);\n \t\tassert.equal((await avcs(root, \"publish\", \"-m\", \"caps\")).exit, 0);\n \t\tassert.equal(shared(name)[\"a.txt\"], \"ONE\\n\");\n@@ -440,7 +440,7 @@\n \t\tconst p = await spawnHook(input);\n \t\tassert.equal(p.status, 0, p.stderr);\n \t\tassert.equal(p.stdout, \"\");\n-\t\tassert.match(read(folders.alice!, \".abso/hook.log\"), /\\tEdit\\ta\\.txt\\tsent edit\\t/);\n+\t\tassert.match(read(folders.alice!, \".avcs/hook.log\"), /\\tEdit\\ta\\.txt\\tsent edit\\t/);\n \t\tconst bad = await spawnHook(\"not json\");\n \t\tassert.equal(bad.status, 0);\n \t});\n@@ -716,7 +716,7 @@\n \t\tconst bob = await avcs(folders.bob!, \"news\");\n \t\tassert.deepEqual(bob.json.news, [\"Announcement from lead (as claimed): Stop publishing until v12 lands\"]);\n \t\tassert.match(\n-\t\t\tread(folders.bob!, \".abso/news.log\"),\n+\t\t\tread(folders.bob!, \".avcs/news.log\"),\n \t\t\t/\\tAnnouncement from lead \\(as claimed\\): Stop publishing until v12 lands\\n$/,\n \t\t);\n \t\tassert.deepEqual((await avcs(folders.bob!, \"news\")).json.news, [], \"each item comes once\");\n@@ -883,7 +883,7 @@\n \t\tassert.equal(follow.exit, 0, follow.stderr);\n \t\tassert.match(follow.stdout, /now follows label stable: .* It is on version 1\\./);\n \t\tassert.equal(read(bob, \"a.txt\"), \"a1\\n\");\n-\t\tassert.equal(JSON.parse(read(bob, \".abso/config.json\")).follow, \"stable\");\n+\t\tassert.equal(JSON.parse(read(bob, \".avcs/config.json\")).follow, \"stable\");\n \t\tassert.match((await text(bob, \"status\")).stdout, /It follows label stable/);\n \t\tassert.match((await text(bob, \"labels\")).stdout, /stable: 1 {3}\\(this folder follows it\\)/);\n \n@@ -897,7 +897,7 @@\n \t\tconst none = await avcs(bob, \"follow\", \"--none\");\n \t\tassert.equal(none.exit, 0, none.out);\n \t\tassert.equal(none.json.version, 2);\n-\t\tassert.equal(\"follow\" in JSON.parse(read(bob, \".abso/config.json\")), false);\n+\t\tassert.equal(\"follow\" in JSON.parse(read(bob, \".avcs/config.json\")), false);\n \t});\n \n \tit(\"plucks some versions of a named draft into shared\", async () => {\n@@ -1084,7 +1084,7 @@\n \t\t);\n \t\tassert.ok(tries[0]!.key && tries.every((t) => t.key === tries[0]!.key), \"one key for every try\");\n \t\tassert.match(\n-\t\t\tread(alice, \".abso/run.log\"),\n+\t\t\tread(alice, \".avcs/run.log\"),\n \t\t\t/starting again \\(try 2\\), no answer came: node hi\\.js\\t.+\\n.*starting again \\(try 3\\)/,\n \t\t);\n \t});\n@@ -1115,7 +1115,7 @@\n \t\t\t[false, true],\n \t\t);\n \t\tassert.match(\n-\t\t\tread(folders.alice!, \".abso/run.log\"),\n+\t\t\tread(folders.alice!, \".avcs/run.log\"),\n \t\t\t/starting again \\(try 2\\), no answer came: node hi\\.js\\trun answered 502: bad gateway/,\n \t\t);\n \t});\n@@ -1580,8 +1580,8 @@\n \tit(\"refuses a folder whose config names another server, before any call\", async () => {\n \t\tconst { folders } = await project({ \"a.txt\": \"a\\n\" }, \"alice\");\n \t\tconst alice = folders.alice!;\n-\t\tconst config = JSON.parse(read(alice, \".abso/config.json\"));\n-\t\twriteFileSync(join(alice, \".abso\", \"config.json\"), JSON.stringify({ ...config, server: \"https://evil.example\" }));\n+\t\tconst config = JSON.parse(read(alice, \".avcs/config.json\"));\n+\t\twriteFileSync(join(alice, \".avcs\", \"config.json\"), JSON.stringify({ ...config, server: \"https://evil.example\" }));\n \t\tconst r = await main([\"status\"], { cwd: alice, env: ENV, write: () => {} });\n \t\tassert.equal(r.exit, 1);\n \t\tassert.match(\n@@ -2029,7 +2029,7 @@\n \t\t// What a partial join leaves: neither the file nor avcs's copy of it.\n \t\tfor (const rel of [\"src/state.ts\", \"vite.config.ts\"]) {\n \t\t\trmSync(join(bob, ...rel.split(\"/\")));\n-\t\t\trmSync(join(bob, \".abso\", \"known\", ...rel.split(\"/\")));\n+\t\t\trmSync(join(bob, \".avcs\", \"known\", ...rel.split(\"/\")));\n \t\t}\n \t\tconst status = await main([\"status\"], { cwd: bob, env: ENV, write: () => {} });\n \t\tassert.match(\n@@ -2277,7 +2277,7 @@\n \tit(\"a command waits, then says who holds the lock; the hook skips; a lock left behind is taken over\", async () => {\n \t\tconst { folders } = await project({ \"a.txt\": \"one\\n\" }, \"alice\");\n \t\tconst root = folders.alice!;\n-\t\tconst lock = join(root, \".abso\", \"lock\");\n+\t\tconst lock = join(root, \".avcs\", \"lock\");\n \t\t// Another process holding the lock, as a long sync would.\n \t\tconst holder = spawn(process.execPath, [\"-e\", \"setTimeout(() => {}, 20000)\"]);\n \t\ttry {\n@@ -2290,13 +2290,13 @@\n \t\t\tassert.match(\n \t\t\t\tblocked.stderr,\n \t\t\t\tnew RegExp(\n-\t\t\t\t\t`another abso command \\\\(sync, process ${holder.pid}, since [0-9:]+ UTC\\\\) is changing this folder's records; run this again when it has finished\\\\. If none is running, delete \\\\.abso/lock\\\\.`,\n+\t\t\t\t\t`another abso command \\\\(sync, process ${holder.pid}, since [0-9:]+ UTC\\\\) is changing this folder's records; run this again when it has finished\\\\. If none is running, delete \\\\.avcs/lock\\\\.`,\n \t\t\t\t),\n \t\t\t);\n \t\t\tconst hooked = await hook(root, \"Write\", { file_path: join(root, \"a.txt\"), content: \"two\\n\" });\n \t\t\tassert.equal(hooked.outcome, \"skipped: another abso command is changing this folder; abso record sends it\");\n \t\t\tassert.equal(\n-\t\t\t\treadFileSync(join(root, \".abso\", \"known\", \"a.txt\"), \"utf8\"),\n+\t\t\t\treadFileSync(join(root, \".avcs\", \"known\", \"a.txt\"), \"utf8\"),\n \t\t\t\t\"one\\n\",\n \t\t\t\t\"the known copy is left alone\",\n \t\t\t);\n@@ -2309,7 +2309,7 @@\n \t\tconst after = await main([\"record\"], { cwd: root, env: ENV, write: () => {} });\n \t\tassert.equal(after.exit, 0, after.stderr);\n \t\tassert.equal(existsSync(lock), false, \"no lock left behind\");\n-\t\tassert.equal(readFileSync(join(root, \".abso\", \"known\", \"a.txt\"), \"utf8\"), \"two\\n\");\n+\t\tassert.equal(readFileSync(join(root, \".avcs\", \"known\", \"a.txt\"), \"utf8\"), \"two\\n\");\n \t});\n \n \tit(\"the mod's check: a lock renewed in the last 2 minutes is held, and so is one it can't read\", () => {\n@@ -2329,7 +2329,7 @@\n \tit(\"two takers never both hold it: an unreadable lock is held until old, and one not renewed is taken over whatever its pid (AVCS - Git Lessons)\", async () => {\n \t\tconst { folders } = await project({ \"a.txt\": \"one\\n\" }, \"alice\");\n \t\tconst root = folders.alice!;\n-\t\tconst lock = join(root, \".abso\", \"lock\");\n+\t\tconst lock = join(root, \".avcs\", \"lock\");\n \t\t// Empty, as one caught between creating and writing: held, not taken.\n \t\twriteFileSync(lock, \"\");\n \t\tassert.equal(tryFolderLock(root, \"hook\"), undefined);\n@@ -2347,7 +2347,7 @@\n \t\tassert.ok(again);\n \t\tagain();\n \t\tassert.deepEqual(\n-\t\t\treaddirSync(join(root, \".abso\")).filter((f) => f.startsWith(\"lock\")),\n+\t\t\treaddirSync(join(root, \".avcs\")).filter((f) => f.startsWith(\"lock\")),\n \t\t\t[],\n \t\t\t\"nothing left aside\",\n \t\t);\n@@ -2365,7 +2365,7 @@\n \t\tconst { folders } = await project(files, \"alice\", \"bob\");\n \t\tconst status = await avcs(folders.alice!, \"status\");\n \t\tassert.deepEqual(status.json.unrecorded, [], \"nothing waits to be recorded right after init\");\n-\t\tassert.match(readFileSync(join(folders.alice!, \".abso\", \"blobs.json\"), \"utf8\"), /\"package-lock\\.json\"/);\n+\t\tassert.match(readFileSync(join(folders.alice!, \".avcs\", \"blobs.json\"), \"utf8\"), /\"package-lock\\.json\"/);\n \t\tassert.equal(readFileSync(join(folders.bob!, \"package-lock.json\"), \"utf8\"), '{\\n  \"v\": 1\\n}\\n');\n \t\tassert.deepEqual((await avcs(folders.bob!, \"status\")).json.unrecorded, []);\n \n@@ -2693,7 +2693,7 @@\n \t\tawait new Promise<void>((ok) => listener.listen(0, \"127.0.0.1\", ok));\n \t\tconst port = (listener.address() as AddressInfo).port;\n \t\tawait new Promise<void>((ok) => listener.close(() => ok()));\n-\t\tconst configPath = join(folders.alice!, \".abso\", \"config.json\");\n+\t\tconst configPath = join(folders.alice!, \".avcs\", \"config.json\");\n \t\tconst config = JSON.parse(readFileSync(configPath, \"utf8\"));\n \t\twriteFileSync(configPath, JSON.stringify({ ...config, server: `http://127.0.0.1:${port}` }));\n \t\tconst status = await main([\"status\"], { cwd: folders.alice!, env: ENV, write: () => {} });\n@@ -3404,17 +3404,17 @@\n \t\t\t(await main([\"status\"], { cwd: dir, env: ENV, write: () => {} })).stdout,\n \t\t\t/This folder is rep, a reader \\(it records and publishes nothing\\)/,\n \t\t);\n-\t\tassert.match(read(dir, \".abso/hook.log\"), /\\tskipped: this folder is a reader\\t/);\n+\t\tassert.match(read(dir, \".avcs/hook.log\"), /\\tskipped: this folder is a reader\\t/);\n \t\t// The server refuses too, whatever the folder says.\n-\t\tconst config = JSON.parse(read(dir, \".abso/config.json\"));\n-\t\twrite(dir, { \".abso/config.json\": JSON.stringify({ ...config, reader: undefined }) });\n+\t\tconst config = JSON.parse(read(dir, \".avcs/config.json\"));\n+\t\twrite(dir, { \".avcs/config.json\": JSON.stringify({ ...config, reader: undefined }) });\n \t\tconst forced = await main([\"record\"], { cwd: dir, env: ENV, write: () => {} });\n \t\tassert.match(forced.stdout + forced.stderr, /agent rep is a reader: it records nothing/);\n-\t\twrite(dir, { \".abso/config.json\": JSON.stringify(config) });\n+\t\twrite(dir, { \".avcs/config.json\": JSON.stringify(config) });\n \t\t// Back to a writer.\n \t\tassert.equal((await avcs(dir, \"restore\", \"--all\")).exit, 0);\n \t\tassert.equal((await avcs(dir, \"reader\", \"off\")).exit, 0);\n-\t\tassert.equal(JSON.parse(read(dir, \".abso/config.json\")).reader, undefined);\n+\t\tassert.equal(JSON.parse(read(dir, \".avcs/config.json\")).reader, undefined);\n \t\twrite(dir, { \"notes.md\": \"now recorded\\n\" });\n \t\tassert.equal((await avcs(dir, \"publish\", \"-m\", \"rep writes\")).exit, 0);\n \t});\n@@ -3425,7 +3425,7 @@\n \t\tassert.equal((await avcs(folders.alice!, \"record\")).exit, 0);\n \t\tconst on = await main([\"reader\", \"on\"], { cwd: folders.alice!, env: ENV, write: () => {} });\n \t\tassert.equal(on.exit, 2);\n-\t\tassert.equal(JSON.parse(read(folders.alice!, \".abso/config.json\")).reader, undefined);\n+\t\tassert.equal(JSON.parse(read(folders.alice!, \".avcs/config.json\")).reader, undefined);\n \t});\n });\n \n@@ -3447,7 +3447,7 @@\n \t\t\t\t\"424ms sending, 63ms queued (in process, async)\",\n \t\t\t\t...(version ? [version] : []),\n \t\t\t].join(\"\\t\");\n-\t\twrite(alice, { \".abso/hook.log\": `${line()}\\n` });\n+\t\twrite(alice, { \".avcs/hook.log\": `${line()}\\n` });\n \t\tinstall(\"0.1.0\");\n \t\tassert.doesNotMatch(await said(), /edit mod/, \"an install without a commit: nothing to compare\");\n \t\tinstall(\"0.1.0+abc1234\");\n@@ -3455,9 +3455,9 @@\n \t\t\tawait said(),\n \t\t\t/\\nThe last edit here \\(at 22:50 UTC\\) came from edit mod from before mods carried a version, but 0\\.1\\.0\\+abc1234 is installed\\. A chat keeps the mod it started with; restart the chat that edits this folder to load the installed one\\.\\n/,\n \t\t);\n-\t\twrite(alice, { \".abso/hook.log\": `${line()}\\n${line(\"avcs-mod/0.1.0+0ld0000\")}\\n` });\n+\t\twrite(alice, { \".avcs/hook.log\": `${line()}\\n${line(\"avcs-mod/0.1.0+0ld0000\")}\\n` });\n \t\tassert.match(await said(), /came from edit mod 0\\.1\\.0\\+0ld0000, but 0\\.1\\.0\\+abc1234 is installed/);\n-\t\twrite(alice, { \".abso/hook.log\": `${line(\"avcs-mod/0.1.0+abc1234\")}\\n` });\n+\t\twrite(alice, { \".avcs/hook.log\": `${line(\"avcs-mod/0.1.0+abc1234\")}\\n` });\n \t\tassert.doesNotMatch(await said(), /edit mod/, \"the installed mod sent it\");\n \t});\n });\n@@ -3819,7 +3819,7 @@\n \t\tassert.equal(r.stderr, \"\");\n \t\tassert.equal(r.streamed, \"first\\nsecond\\n\");\n \t\tassert.equal(r.exit, 3);\n-\t\tassert.match(read(folders.alice!, \".abso/run.log\"), /reconnecting \\(try 1\\) to: node slow\\.js/);\n+\t\tassert.match(read(folders.alice!, \".avcs/run.log\"), /reconnecting \\(try 1\\) to: node slow\\.js/);\n \t});\n \n \tit(\"survives the reconnection dropping too\", async () => {\n@@ -3828,7 +3828,7 @@\n \t\tconst r = await runWith(folders.alice!);\n \t\tassert.equal(r.streamed, \"first\\nsecond\\n\");\n \t\tassert.equal(r.exit, 3);\n-\t\tassert.equal(read(folders.alice!, \".abso/run.log\").trim().split(\"\\n\").length, 2);\n+\t\tassert.equal(read(folders.alice!, \".avcs/run.log\").trim().split(\"\\n\").length, 2);\n \t});\n \n \tit(\"reattaches when the server ends the stream with retry (a deploy), and copes with non-ASCII output\", async () => {\n@@ -3911,7 +3911,7 @@\n \t\tconst alice = folders.alice!;\n \t\tconst synced = await avcs(alice, \"sync\");\n \t\tassert.equal(synced.exit, 0, synced.out);\n-\t\tassert.deepEqual(JSON.parse(read(alice, \".abso/modes.json\")), { \"run.sh\": { exec: true } });\n+\t\tassert.deepEqual(JSON.parse(read(alice, \".avcs/modes.json\")), { \"run.sh\": { exec: true } });\n \t\tif (process.platform !== \"win32\")\n \t\t\tassert.ok((statSync(join(alice, \"run.sh\")).mode & 0o100) !== 0, \"the bit is set on disk\");\n \t\tassert.equal((await avcs(alice, \"record\")).json.sent, 0, \"nothing to send back\");\n@@ -4387,19 +4387,20 @@\n });\n \n describe(\"the state folder after the rename to abso\", () => {\n-\tit(\"keeps new folders in .abso, and folders from before in .avcs, untouched\", async () => {\n+\tit(\"makes new folders with .avcs for now, and works in a .abso folder too, never half-moving either\", async () => {\n \t\tconst { folders } = await project({ \"a.txt\": \"a\\n\" }, \"alice\");\n \t\tconst dir = folders.alice!;\n-\t\tassert.equal(existsSync(join(dir, \".abso\", \"config.json\")), true, \"a new folder keeps its state in .abso\");\n-\t\tassert.equal(existsSync(join(dir, \".avcs\")), false, \"and makes no .avcs\");\n-\t\t// A folder from before: only .avcs. It keeps working, and never gets a second state folder.\n-\t\trenameSync(join(dir, \".abso\"), join(dir, \".avcs\"));\n+\t\t// An edit mod installed before the rename finds only .avcs/config.json: a .abso folder's edits would go unrecorded.\n+\t\tassert.equal(existsSync(join(dir, \".avcs\", \"config.json\")), true, \"a new folder keeps its state in .avcs for now\");\n+\t\tassert.equal(existsSync(join(dir, \".abso\")), false, \"and makes no .abso\");\n+\t\t// A folder moved to .abso (by hand, or a later abso migrate) works the same, and gets no second state folder.\n+\t\trenameSync(join(dir, \".avcs\"), join(dir, \".abso\"));\n \t\twriteFileSync(join(dir, \"a.txt\"), \"a\\nb\\n\");\n \t\tconst rec = await avcs(dir, \"record\");\n \t\tassert.equal(rec.exit, 0, rec.out);\n \t\tassert.equal(rec.json.sent, 1);\n-\t\tassert.equal(existsSync(join(dir, \".abso\")), false, \"an older folder is never half-moved\");\n-\t\tassert.equal(stateDir(dir), join(dir, \".avcs\"));\n+\t\tassert.equal(existsSync(join(dir, \".avcs\")), false, \"a moved folder is never half-moved back\");\n+\t\tassert.equal(stateDir(dir), join(dir, \".abso\"));\n \t});\n \n \tit(\"reads ~/.abso before ~/.avcs and writes only ~/.abso, leaving the old file as it is\", () => {"},{"path":"client/test/fake-server.ts","added":1,"removed":1,"diff":"--- a/client/test/fake-server.ts\n+++ b/client/test/fake-server.ts\n@@ -99,7 +99,7 @@\n const NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$/;\n \n function isLocal(path: string): boolean {\n-\treturn path === \".abso\" || path.startsWith(\".abso/\") || path.startsWith(\"./.abso/\");\n+\treturn [\".abso\", \".avcs\"].some((d) => path === d || path.startsWith(`${d}/`) || path.startsWith(`./${d}/`));\n }\n \n async function readBody(req: IncomingMessage): Promise<Buffer> {"},{"path":"client/test/key.test.ts","added":3,"removed":3,"diff":"--- a/client/test/key.test.ts\n+++ b/client/test/key.test.ts\n@@ -36,14 +36,14 @@\n \tassert.deepEqual(credentialLabel(root, \"https://abso.example\", env), { kind: \"shared token\", id: null });\n });\n \n-test(\"install writes .abso/key and does not leave the key in the returned value\", () => {\n+test(\"install writes .avcs/key and does not leave the key in the returned value\", () => {\n \tconst root = folder();\n \tconst installed = installKey(root, JSON.stringify({ key: KEY, id: ID }));\n \tassert.deepEqual(installed, { id: ID });\n-\tconst stored = readFileSync(join(root, \".abso\", \"key\"), \"utf8\");\n+\tconst stored = readFileSync(join(root, \".avcs\", \"key\"), \"utf8\");\n \tassert.equal(stored.includes(KEY), true);\n \tassert.equal(JSON.stringify(installed).includes(KEY), false);\n-\twriteFileSync(join(root, \".abso\", \"key\"), stored);\n+\twriteFileSync(join(root, \".avcs\", \"key\"), stored);\n });\n \n test(\"a key installed with --server before join is the one join's folder sends\", () => {"},{"path":"worker/project/http.ts","added":4,"removed":2,"diff":"--- a/worker/project/http.ts\n+++ b/worker/project/http.ts\n@@ -66,10 +66,12 @@\n };\n \n /** A path the project won't hold: .avcs/ is each folder's own settings. */\n+/** A path under a folder's state folder (.abso/, or .avcs/ from before the rename), which never leaves it. */\n function localPath(paths: string[]): string | undefined {\n-\treturn paths.find((p) => p === \".avcs\" || p.startsWith(\".avcs/\") || p.startsWith(\"./.avcs/\"));\n+\treturn paths.find((p) => [\".abso\", \".avcs\"].some((d) => p === d || p.startsWith(`${d}/`) || p.startsWith(`./${d}/`)));\n }\n-const LOCAL = (p: string) => fail(400, `${p} is under .avcs/, which stays in the agent's folder`);\n+const LOCAL = (p: string) =>\n+\tfail(400, `${p} is under ${p.replace(/^\\.\\//, \"\").split(\"/\")[0]}/, which stays in the agent's folder`);\n \n /**\n  * The reader rules (#37, Reporter), for one agent call: the answer to"}],"ci":null}