{"draft":null,"from":110,"to":318,"files":[{"path":"server/test/e2e-transcript.md","added":247,"removed":0,"diff":"--- /dev/null\n+++ b/server/test/e2e-transcript.md\n@@ -0,0 +1,247 @@\n+# End to end: the stock client against `wrangler dev --local`\n+\n+Server: `http://127.0.0.1:8799` (server/ in abso-core, run with `npx wrangler dev --local`, Artifacts off).\n+Token: an invented local test token in `server/.dev.vars`, given to the client as `ABSO_TOKEN`.\n+Project: `e2e-1791907434`. Folders are temporary, outside abso-core. Run 2026-10-13T16:03Z.\n+\n+## Init and join\n+\n+```\n+(starter) $ abso init . --server http://127.0.0.1:8799 --project e2e-1791907434 --agent starter\n+Created project e2e-1791907434 at version 0 from 3 text files in <temp>\\starter.\n+Wrote a starting .absoignore (Claude Code state and operating system files); edit it like .gitignore.\n+No abso.json written: package.json gives no check or build to guess, so CI has nothing to run on each new version. To give it a check, push an abso.json like {\"check\": \"npm test\"} (abso ci --help says what it runs).\n+This folder is agent starter. Settings are in .abso/config.json.\n+Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: node <abso-core>\\client\\install-mod.ts installs it, and new chats load it. Anything else: abso record.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso join e2e-1791907434 --agent alice --dir . --server http://127.0.0.1:8799\n+Joined e2e-1791907434 as alice at version 0: wrote 3 files into <temp>\\alice.\n+Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: node <abso-core>\\client\\install-mod.ts installs it, and new chats load it. Anything else: abso record.\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso join e2e-1791907434 --agent bob --dir . --server http://127.0.0.1:8799\n+Joined e2e-1791907434 as bob at version 0: wrote 3 files into <temp>\\bob.\n+Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: node <abso-core>\\client\\install-mod.ts installs it, and new chats load it. Anything else: abso record.\n+[exit 0]\n+```\n+\n+## Both agents edit and push (different files)\n+\n+```\n+(alice) $ abso push -m Alice edits line two\n+Recorded first: 1 changed (hello.txt).\n+Pushed version 1.\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso push -m Bob writes the notes\n+Recorded first: 1 changed (notes.md).\n+Pushed version 2. It went on top of version 1 (alice: \"Alice edits line two\"), which your folder doesn't have yet. Nothing of theirs was overwritten; run abso pull to see both.\n+[exit 0]\n+```\n+\n+## A collision: both change line four\n+\n+```\n+(alice) $ abso pull\n+Pulled to version 2: 1 file updated, 0 deleted.\n+  updated: notes.md\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso pull\n+Pulled to version 2: 1 file updated, 0 deleted.\n+  updated: hello.txt\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso push -m Alice rewrites line four\n+Recorded first: 1 changed (hello.txt).\n+Pushed version 3.\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso push -m Bob rewrites line four\n+Recorded first: 1 changed (hello.txt).\n+Not pushed: 1 collision with work pushed since your last pull.\n+  hello.txt:\n+    yours (line 4):\n+      line four, as bob wants it\n+    theirs, by alice in version 3 (\"Alice rewrites line four\") (line 4):\n+      line four, as alice wants it\n+Run abso pull: each of those files comes back holding both sides' lines, with no markers. Edit it to what it should be, then push again.\n+News:\n+  alice pushed \"Alice rewrites line four\" (version 3), which changes hello.txt lines 4-4, where your draft also changes lines; run abso pull to see both versions.\n+[exit 2]\n+```\n+\n+## Log and status\n+\n+```\n+(bob) $ abso log\n+shared is at version 3.\n+version 3 by alice, 2026-10-13 16:03 UTC: Alice rewrites line four\n+  1 file: hello.txt\n+version 2 by bob, 2026-10-13 16:03 UTC: Bob writes the notes\n+  1 file: notes.md\n+version 1 by alice, 2026-10-13 16:03 UTC: Alice edits line two\n+  1 file: hello.txt\n+version 0 by init, 2026-10-13 16:03 UTC: Start the project\n+  3 files: .absoignore, hello.txt, notes.md\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso status\n+Project e2e-1791907434: shared is at version 3. This folder is bob, working in shared. Signed in with shared token.\n+Everything in this folder is recorded.\n+Agents:\n+    alice, base 3, 0 draft changes\n+  * bob, base 2, 1 draft change: hello.txt\n+    starter, base 0, 0 draft changes\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso status\n+Project e2e-1791907434: shared is at version 3. This folder is alice, working in shared. Signed in with shared token.\n+Everything in this folder is recorded.\n+Agents:\n+  * alice, base 3, 0 draft changes\n+    bob, base 2, 1 draft change: hello.txt\n+    starter, base 0, 0 draft changes\n+[exit 0]\n+```\n+\n+## Other checks against the same server, with curl\n+\n+- No token, or a wrong one: 401 `missing or wrong token`. `GET /version` answers without one.\n+- Per-agent keys (`AGENT_KEYS=on`, a local `KEY_HMAC_SECRET`): `POST /admin/agent-keys` without `x-abso-admin` is 403; with it, a writer key for `carol` is issued and listed. Carol's key syncs as carol; as `dave` it is 403 `that key is not for this agent`; on another project, 403 `that key is not for this project`.\n+- Blobs: a PUT whose bytes don't hash to the name is 400 `the bytes hash to …, not …`; the right hash is stored and read back; a name that isn't a SHA-256 is 400.\n+- `GET head` answers `{version, at}` from storage. `GET feed?from=<end>&wait=3` holds for 3 seconds, then answers with no events.\n+- `/issues/p/<project>/...` reached the issues stand-in (404 `issues aren't on this server yet`) after auth, before the issues code landed; the run below is against the issues code itself.\n+- `POST git-remote` with Artifacts off: 501 `this server has no Artifacts binding, so no git remote`.\n+\n+## Issues, asks and news, with no issues server named\n+\n+Server: `http://127.0.0.1:8797` (`npm run dev` in server/, which is `wrangler dev --local`; `ABSO_ARTIFACTS=off`).\n+Token: an invented local test token in `server/.dev.vars`, given to the client as `ABSO_TOKEN`.\n+HOME and USERPROFILE: a new empty temporary folder, so no `~/.abso/servers.json`; `ABSO_ISSUES_SERVER` unset.\n+The client finds issues at `http://127.0.0.1:8797/issues`. Project: `e2e-issues-1791907724`. Run 2026-10-13T16:08Z.\n+\n+```\n+(alice) $ abso init . --server http://127.0.0.1:8797 --project e2e-issues-1791907724 --agent alice\n+Created project e2e-issues-1791907724 at version 0 from 2 text files in <temp>\\alice.\n+Wrote a starting .absoignore (Claude Code state and operating system files); edit it like .gitignore.\n+No abso.json written: package.json gives no check or build to guess, so CI has nothing to run on each new version. To give it a check, push an abso.json like {\"check\": \"npm test\"} (abso ci --help says what it runs).\n+This folder is agent alice. Settings are in .abso/config.json.\n+Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: node <abso-core>\\client\\install-mod.ts installs it, and new chats load it. Anything else: abso record.\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso join e2e-issues-1791907724 --agent bob --dir . --server http://127.0.0.1:8797\n+Joined e2e-issues-1791907724 as bob at version 0: wrote 2 files into <temp>\\bob.\n+Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: node <abso-core>\\client\\install-mod.ts installs it, and new chats load it. Anything else: abso record.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso issue new \"Sync is slow on big folders\" --description \"A pull of 5000 files takes a minute.\"\n+Opened issue 1. abso start \"...\" --issue 1 starts on it.\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso issue 1 --comment \"Seen it too: most of the minute is hashing.\"\n+Commented on issue 1. Its agents hear it.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso ask bob \"Hash on the server or in the client?\" --issue 1\n+Asked bob (ask 1). They hear it; abso waiting shows what's open.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso ask carol \"Can you review the hashing?\" --issue 1\n+abso ask: POST /a/alice/ask answered 400: \"carol\" isn't an agent in e2e-issues-1791907724, so nobody would hear the ask. abso status lists the agents.\n+[exit 1]\n+```\n+\n+```\n+(bob) $ abso news\n+1 news item:\n+  alice (as claimed) told you, 16:08 UTC:\n+    alice asks bob a question on issue 1 (\"Sync is slow on big folders\"): \"Hash on the server or in the client?\" Answer: abso answer 1 \"...\"\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso waiting --mine\n+1 open ask of bob, soonest due first:\n+  ask 1: alice, 16:08 UTC, asks bob a question on issue 1 (\"Sync is slow on big folders\") (new): \"Hash on the server or in the client?\"\n+abso ask <N> shows one with its thread; abso reply <N> \"...\" adds to it; abso answer <N> \"...\" answers one asked of you.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso issues\n+1 issue, most recently updated first:\n+    1  blocked      \"Sync is slow on big folders\" (waiting on bob; updated 16:08 UTC)\n+abso issue <N> shows one.\n+[exit 0]\n+```\n+\n+```\n+(bob) $ abso answer 1 \"In the client: the server never sees unchanged files.\"\n+Answered ask 1. alice hears it.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso news\n+1 news item:\n+  bob (as claimed) told you, 16:08 UTC:\n+    bob answered alice's question on issue 1: \"In the client: the server never sees unchanged files.\"\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso issue 1\n+Issue 1: \"Sync is slow on big folders\" [open]\n+Opened by alice, 16:08 UTC.\n+\n+  A pull of 5000 files takes a minute.\n+\n+Asks:\n+  ask 1: alice, 16:08 UTC, asks bob a question on issue 1 (answered by bob, 16:08 UTC): \"Hash on the server or in the client?\"\n+    answer: \"In the client: the server never sees unchanged files.\"\n+\n+Comments:\n+  bob, 16:08 UTC: \"Seen it too: most of the minute is hashing.\"\n+\n+Watchers: alice, bob.\n+\n+abso start \"...\" --issue 1 starts on it; abso issue 1 --comment \"...\" comments; abso ask <who> \"...\" --issue 1 asks.\n+[exit 0]\n+```\n+\n+```\n+(alice) $ abso waiting --asked\n+The latest answered:\n+  ask 1: alice, 16:08 UTC, asks bob a question on issue 1 (\"Sync is slow on big folders\") (answered by bob, 16:08 UTC): \"Hash on the server or in the client?\"\n+    answer: \"In the client: the server never sees unchanged files.\"\n+abso ask <N> shows one with its whole thread.\n+[exit 0]\n+```"}],"unmatched":[]}