{"file":"server/README.md","version":318,"total":126,"from":1,"to":126,"lines":[{"n":1,"text":"# abso's open server","atom":"a1535","author":"product","version":153},{"n":2,"text":"","atom":"a1535","author":"product","version":153},{"n":3,"text":"One Cloudflare Worker that hosts abso projects on your own Cloudflare account. Each project is its own Durable Object,","atom":"a1535","author":"product","version":153},{"n":4,"text":"with its history in that object's SQLite storage, and its shared history is pushed out to its own Artifacts git repo.","atom":"a1535","author":"product","version":153},{"n":5,"text":"Issues, asks and news run in a second Durable Object per project, served under `/issues`.","atom":"a1535","author":"product","version":153},{"n":6,"text":"","atom":"a1535","author":"product","version":153},{"n":7,"text":"Many agents can work in one project at once. Each pushes from its own folder; a push that collides with work pushed","atom":"a1535","author":"product","version":153},{"n":8,"text":"since that agent last pulled is held, and the answer names the collision. Projects don't share anything, so more","atom":"a1535","author":"product","version":153},{"n":9,"text":"projects means more Durable Objects, not a bigger one.","atom":"a1535","author":"product","version":153},{"n":10,"text":"","atom":"a1535","author":"product","version":153},{"n":11,"text":"## What you need","atom":"a1535","author":"product","version":153},{"n":12,"text":"","atom":"a1535","author":"product","version":153},{"n":13,"text":"- A Cloudflare account on the Workers Paid plan, for Workers, Durable Objects and Artifacts. Artifacts isn't on the","atom":"a2111","author":"submission","version":187},{"n":14,"text":"  Free plan. Local development (below) needs no account.","atom":"a2111","author":"submission","version":187},{"n":15,"text":"- Node 22 or later to deploy: wrangler needs it. On Node 20, run wrangler through npm's Node 22, as below.","atom":"a1837","author":"node20","version":169},{"n":16,"text":"- Node 20 or later for the client.","atom":"a1837","author":"node20","version":169},{"n":17,"text":"","atom":"a1535","author":"product","version":153},{"n":18,"text":"## Deploy it","atom":"a1535","author":"product","version":153},{"n":19,"text":"","atom":"a1535","author":"product","version":153},{"n":20,"text":"From this folder:","atom":"a1535","author":"product","version":153},{"n":21,"text":"","atom":"a1535","author":"product","version":153},{"n":22,"text":"```bash","atom":"a1535","author":"product","version":153},{"n":23,"text":"npm ci","atom":"a1535","author":"product","version":153},{"n":24,"text":"npx wrangler login","atom":"a1535","author":"product","version":153},{"n":25,"text":"npx wrangler deploy                    # prints the server's address","atom":"a2115","author":"submission","version":188},{"n":26,"text":"npx wrangler secret put ABSO_TOKEN     # any long random string: the token your agents use","atom":"a1535","author":"product","version":153},{"n":27,"text":"```","atom":"a1535","author":"product","version":153},{"n":28,"text":"","atom":"a1535","author":"product","version":153},{"n":29,"text":"On Node 20, `npm ci` warns that wrangler wants Node 22 and installs it anyway; run each wrangler command through npm's","atom":"a1837","author":"node20","version":169},{"n":30,"text":"Node 22 instead of `npx wrangler`:","atom":"a1837","author":"node20","version":169},{"n":31,"text":"","atom":"a1837","author":"node20","version":169},{"n":32,"text":"```bash","atom":"a1837","author":"node20","version":169},{"n":33,"text":"npx -y node@22 node_modules/wrangler/bin/wrangler.js deploy    # and the same for login and secret put","atom":"a1837","author":"node20","version":169},{"n":34,"text":"```","atom":"a1837","author":"node20","version":169},{"n":35,"text":"","atom":"a1837","author":"node20","version":169},{"n":36,"text":"`wrangler deploy` prints the server's address, such as `https://abso.<your-subdomain>.workers.dev`. Until","atom":"a1535","author":"product","version":153},{"n":37,"text":"`ABSO_TOKEN` is set, the server refuses every call. `GET /version` answers without a token.","atom":"a1535","author":"product","version":153},{"n":38,"text":"","atom":"a1535","author":"product","version":153},{"n":39,"text":"Optional: `npx wrangler secret put KEY_HMAC_SECRET` turns on per-agent keys (`abso_sk_...`), issued through","atom":"a1535","author":"product","version":153},{"n":40,"text":"`/admin/agent-keys`, so each agent can have its own credential instead of the shared token.","atom":"a1535","author":"product","version":153},{"n":41,"text":"","atom":"a1535","author":"product","version":153},{"n":42,"text":"## Point the client at it","atom":"a1535","author":"product","version":153},{"n":43,"text":"","atom":"a1535","author":"product","version":153},{"n":44,"text":"The client is in this repository. `npm run build` builds it from `client/abso.ts` into one plain-JS file that runs on","atom":"a1861","author":"node20","version":172},{"n":45,"text":"Node 20 or later, `client/bin/abso.mjs`. From the repository's root:","atom":"a1861","author":"node20","version":172},{"n":46,"text":"","atom":"a1535","author":"product","version":153},{"n":47,"text":"```bash","atom":"a1535","author":"product","version":153},{"n":48,"text":"npm ci","atom":"a1861","author":"node20","version":172},{"n":49,"text":"npm run build","atom":"a1861","author":"node20","version":172},{"n":50,"text":"export ABSO_TOKEN=<the token you set>","atom":"a1535","author":"product","version":153},{"n":51,"text":"export ABSO_TRUSTED_SERVERS=https://abso.<your-subdomain>.workers.dev","atom":"a1535","author":"product","version":153},{"n":52,"text":"alias abso=\"node $PWD/client/bin/abso.mjs\"","atom":"a1837","author":"node20","version":169},{"n":53,"text":"```","atom":"a1535","author":"product","version":153},{"n":54,"text":"","atom":"a1837","author":"node20","version":169},{"n":55,"text":"On Node 24, `alias abso=\"node $PWD/client/abso.ts\"` runs the TypeScript itself, with no build. `npm i -g @abso-cli/abso`","atom":"a1861","author":"node20","version":172},{"n":56,"text":"installs the same client from npm, on Node 20 or later.","atom":"a1861","author":"node20","version":172},{"n":57,"text":"","atom":"a1535","author":"product","version":153},{"n":58,"text":"The client sends its token only to servers you trust, so `ABSO_TRUSTED_SERVERS` (or an entry in","atom":"a1535","author":"product","version":153},{"n":59,"text":"`~/.abso/servers.json`) is needed. Issues go to `<server>/issues` on their own.","atom":"a1535","author":"product","version":153},{"n":60,"text":"","atom":"a1535","author":"product","version":153},{"n":61,"text":"Then start a project from a folder of files, and let a second agent join it:","atom":"a1535","author":"product","version":153},{"n":62,"text":"","atom":"a1535","author":"product","version":153},{"n":63,"text":"```bash","atom":"a1535","author":"product","version":153},{"n":64,"text":"cd my-project","atom":"a1535","author":"product","version":153},{"n":65,"text":"abso init . --server https://abso.<your-subdomain>.workers.dev --project my-project --agent alice","atom":"a1535","author":"product","version":153},{"n":66,"text":"","atom":"a1535","author":"product","version":153},{"n":67,"text":"mkdir ../bob && cd ../bob","atom":"a1535","author":"product","version":153},{"n":68,"text":"abso join my-project --agent bob --server https://abso.<your-subdomain>.workers.dev","atom":"a1535","author":"product","version":153},{"n":69,"text":"```","atom":"a1535","author":"product","version":153},{"n":70,"text":"","atom":"a1535","author":"product","version":153},{"n":71,"text":"On abso.dev, make the project on the website (New project) instead, then run `abso join <project>` in each agent's","atom":"a2035","author":"submission","version":182},{"n":72,"text":"folder.","atom":"a2035","author":"submission","version":182},{"n":73,"text":"","atom":"a2035","author":"submission","version":182},{"n":74,"text":"Each agent works in its own folder: `abso pull`, edit, `abso push -m \"why\"`. When two agents change the same lines,","atom":"a1535","author":"product","version":153},{"n":75,"text":"the second push is held:","atom":"a1535","author":"product","version":153},{"n":76,"text":"","atom":"a1535","author":"product","version":153},{"n":77,"text":"```","atom":"a1535","author":"product","version":153},{"n":78,"text":"Not pushed: 1 collision with work pushed since your last pull.","atom":"a1535","author":"product","version":153},{"n":79,"text":"```","atom":"a1535","author":"product","version":153},{"n":80,"text":"","atom":"a1535","author":"product","version":153},{"n":81,"text":"`abso pull` marks the collision, `abso settle <file> --yours` (or `--theirs`, `--both`) settles it, and the push goes","atom":"a1535","author":"product","version":153},{"n":82,"text":"through. Issues and asks work the same way: `abso issue new \"<title>\"`, `abso ask bob \"<question>\" --issue 1`,","atom":"a1535","author":"product","version":153},{"n":83,"text":"`abso waiting --mine`. `abso help` lists every command.","atom":"a1535","author":"product","version":153},{"n":84,"text":"","atom":"a1535","author":"product","version":153},{"n":85,"text":"## Plain git","atom":"a1535","author":"product","version":153},{"n":86,"text":"","atom":"a1535","author":"product","version":153},{"n":87,"text":"Every project's shared is also a git repo in Artifacts, `abso-<project>`, updated at most once a minute while agents","atom":"a1535","author":"product","version":153},{"n":88,"text":"push. Each commit keeps its author and ends with `abso-version: N`.","atom":"a1535","author":"product","version":153},{"n":89,"text":"","atom":"a1535","author":"product","version":153},{"n":90,"text":"- `POST /p/<project>/git-remote` with the token answers the repo's address and an hour-long token to clone it.","atom":"a1535","author":"product","version":153},{"n":91,"text":"- A plain `git push` to that repo is taken back in as a new version within about 15 seconds while the project is","atom":"a1535","author":"product","version":153},{"n":92,"text":"  active.","atom":"a1535","author":"product","version":153},{"n":93,"text":"","atom":"a1535","author":"product","version":153},{"n":94,"text":"## Local development","atom":"a1535","author":"product","version":153},{"n":95,"text":"","atom":"a1535","author":"product","version":153},{"n":96,"text":"```bash","atom":"a1535","author":"product","version":153},{"n":97,"text":"printf 'ABSO_TOKEN=local-test-token\\nABSO_ARTIFACTS=off\\n' > .dev.vars","atom":"a1535","author":"product","version":153},{"n":98,"text":"npm run dev        # wrangler dev --local","atom":"a1535","author":"product","version":153},{"n":99,"text":"```","atom":"a1535","author":"product","version":153},{"n":100,"text":"","atom":"a1535","author":"product","version":153},{"n":101,"text":"Keep `--local`: Artifacts is a remote binding, and without `--local` wrangler dev connects to your account.","atom":"a1535","author":"product","version":153},{"n":102,"text":"`ABSO_ARTIFACTS=off` skips the push out, which nothing local can reach. wrangler still warns that Artifacts bindings","atom":"a2113","author":"submission","version":187},{"n":103,"text":"may incur charges; with `ABSO_ARTIFACTS=off` the server never uses the binding, so nothing is called or charged.","atom":"a2113","author":"submission","version":187},{"n":104,"text":"`test/e2e-transcript.md` is a full session of the stock client against a local server.","atom":"a2113","author":"submission","version":187},{"n":105,"text":"","atom":"a2113","author":"submission","version":187},{"n":106,"text":"On Windows, a project's storage file sits deep under `.wrangler/state/`, and from a deep folder its path can pass","atom":"a2113","author":"submission","version":187},{"n":107,"text":"Windows' 260-character limit; `abso init` then answers `500: the project object failed`. Keep the state short:","atom":"a2113","author":"submission","version":187},{"n":108,"text":"`npm run dev -- --persist-to C:\\abso-state`.","atom":"a2113","author":"submission","version":187},{"n":109,"text":"","atom":"a1535","author":"product","version":153},{"n":110,"text":"## Limits","atom":"a1535","author":"product","version":153},{"n":111,"text":"","atom":"a1535","author":"product","version":153},{"n":112,"text":"- One project is one Durable Object, so it lives within one object's memory (128 MB). The server estimates a project's","atom":"a1535","author":"product","version":153},{"n":113,"text":"  loaded size, holds new pushes at about 95 MB and refuses to load past 114 MB.","atom":"a1535","author":"product","version":153},{"n":114,"text":"- Scale comes from projects: [scale/README.md](scale/README.md) has the harness, and `scale/results/` the first run on a","atom":"a1535","author":"product","version":153},{"n":115,"text":"  deployed server. Two hundred projects with twenty agents each (4,000 agents) pushed 419 times a second, with a median","atom":"a1535","author":"product","version":153},{"n":116,"text":"  push of 372 ms.","atom":"a1535","author":"product","version":153},{"n":117,"text":"","atom":"a1535","author":"product","version":153},{"n":118,"text":"## How it fits together","atom":"a1535","author":"product","version":153},{"n":119,"text":"","atom":"a1535","author":"product","version":153},{"n":120,"text":"- `src/index.ts`: the Worker's entry.","atom":"a1535","author":"product","version":153},{"n":121,"text":"- `src/router.ts`: authorization (the shared token, or an agent key) and routing to each project's object.","atom":"a1535","author":"product","version":153},{"n":122,"text":"- `src/project-object.ts`: the project's Durable Object: loads the engine from SQLite, answers each call, holds","atom":"a1535","author":"product","version":153},{"n":123,"text":"  oversized projects, and runs the alarm that pushes out to Artifacts and takes plain git pushes in.","atom":"a1535","author":"product","version":153},{"n":124,"text":"- `src/issues/`: issues, asks and news.","atom":"a1535","author":"product","version":153},{"n":125,"text":"- The engine itself is `src/engine/` at the repository's root, the same one the client uses.","atom":"a1535","author":"product","version":153},{"n":126,"text":"- [STORAGE-FORMATS.md](STORAGE-FORMATS.md): what to know before rolling the server back to an older version.","atom":"a1825","author":"review","version":168}],"atoms":[{"atom":"a1535","author":"product","message":"","time":1791912883076,"timeIso":"2026-10-13T17:34:43.076Z","publish":{"draft":null,"version":153,"agent":"product","message":"The open server's README: deploy it to your own Cloudflare account, point the client at it, two agents and a held collision, plain git through Artifacts, local development and its limits. The top README no longer says the server is closed and missing: it names the open server and how to run one.","time":1791912979710,"timeIso":"2026-10-13T17:36:19.710Z"}},{"atom":"a1825","author":"review","message":"","time":1791962164139,"timeIso":"2026-10-14T07:16:04.139Z","publish":{"draft":null,"version":168,"agent":"review","message":"Move the disk-first rollback notes out of the server README into server/STORAGE-FORMATS.md, linked from it. Judges read the README first and the section read as internal (Submission's claims audit, 2026-10-14). Text unchanged.","time":1791962164139,"timeIso":"2026-10-14T07:16:04.139Z"}},{"atom":"a1837","author":"node20","message":"","time":1791963901385,"timeIso":"2026-10-14T07:45:01.385Z","publish":{"draft":null,"version":169,"agent":"node20","message":"Run the client on Node 20: commit a plain-JS build of it as client/bin/abso.mjs, built by npm run build:client and checked current by the project's check. Docs give each real Node minimum: the client 20 (bundle) or 24 (TypeScript), the server's wrangler 22, with a way to run it from Node 20. engines is now >=20.","time":1791963902087,"timeIso":"2026-10-14T07:45:02.087Z"}},{"atom":"a1861","author":"node20","message":"","time":1791965090852,"timeIso":"2026-10-14T08:04:50.852Z","publish":{"draft":null,"version":172,"agent":"node20","message":"Build the client for Node 20 instead of committing the build: npm run build writes client/bin/abso.mjs from client/abso.ts, and npm run pack:npm -- <version> packs that same build as the npm package @abso-cli/abso (it never publishes). The committed bundle and the check that kept it current are gone, so client changes need no rebuild. The READMEs give the build steps.","time":1791965182282,"timeIso":"2026-10-14T08:06:22.282Z"}},{"atom":"a2035","author":"submission","message":"","time":1791976347839,"timeIso":"2026-10-14T11:12:27.839Z","publish":{"draft":null,"version":182,"agent":"submission","message":"README: on abso.dev a project starts on the website (New project) and agents join it; abso init is for your own server","time":1791976348444,"timeIso":"2026-10-14T11:12:28.444Z"}},{"atom":"a2111","author":"submission","message":"","time":1792007007551,"timeIso":"2026-10-14T19:43:27.551Z","publish":{"draft":null,"version":187,"agent":"submission","message":"READMEs for a judge arriving cold: a title; the Workers Paid plan Artifacts needs; wrangler login, and deploy before secret put; what to do with no abso.dev account; how show names a file; how long check takes; the Windows path limit and the local Artifacts warning; the client ships as its bundle. From the judge dry run, Oct 14.","time":1792007042748,"timeIso":"2026-10-14T19:44:02.748Z"}},{"atom":"a2113","author":"submission","message":"","time":1792007013746,"timeIso":"2026-10-14T19:43:33.746Z","publish":{"draft":null,"version":187,"agent":"submission","message":"READMEs for a judge arriving cold: a title; the Workers Paid plan Artifacts needs; wrangler login, and deploy before secret put; what to do with no abso.dev account; how show names a file; how long check takes; the Windows path limit and the local Artifacts warning; the client ships as its bundle. From the judge dry run, Oct 14.","time":1792007042748,"timeIso":"2026-10-14T19:44:02.748Z"}},{"atom":"a2115","author":"submission","message":"","time":1792008165921,"timeIso":"2026-10-14T20:02:45.921Z","publish":{"draft":null,"version":188,"agent":"submission","message":"READMEs: deploy before secret put in the server README too; what the isomorphic-git patch during npm ci is and why; the client builds from the root. From the judge dry run's second pass.","time":1792008187512,"timeIso":"2026-10-14T20:03:07.512Z"}}]}