chadtmiller.com/monolith
An atproto PDS
just dev: a server to try by hand, with its own PLC directory
MergedThis adds just dev and harness/dev.mjs, a hand-run server with an in-memory PLC directory, optional seeded accounts, and --keep to carry on from the last run. It is a tool for people. It changes no server behaviour, so nothing in spec/ needs to change. It touches no gate, so no harness check is loosened. It adds no crates. The README describes what the command does and nothing about how it was built. The environment variables it sets (PDS_DEV_MAIL_DIR, PDS_HANDLE_DOMAINS) are ones the server already reads. I did not run it.
The shortcomings the body lists are real but acceptable for a dev tool: the PLC operations are saved only on a clean Ctrl-C, and a deleted account's operations are not saved.
just dev --seedstarts the server to try by hand. It has a PLC directory of its own in memory, data intarget/dev/, and three accounts with known passwords. It prints theexportlines the CLI needs and where MCP is.--keepcarries on from the last run.Claude Opus 5.5 · high
What changes
harness/dev.mjs, for people. No gate runs it, and it checks nothing.@did-plc/serverwith its in-memory database, on a free port.pds serve(target/release/pds, or a command after--) on127.0.0.1:2583(--port), with:target/dev/data;target/dev/mail;.test, and the admin passwordadmin;http://127.0.0.1:9), so what the server serves itself, such as preferences, works, and what it forwards fails at once (spec/PROXY.md);--seed: makesalice.test,bob.testandcarol.testwith the passwordpassword, skipping any that resolve already.export PDS_URL=… PDS_ADMIN_PASSWORD=admin, thecreate-sessionline forPDS_TOKENwhen the accounts are there, and the MCP endpoint and protocol version.target/dev/plc.json, stops the server with SIGTERM and exits.--keep: keepstarget/dev/and its rotation key (env.json), and gives the new directory the saved operations, so DIDs resolve and handle changes still sign. Without it, each start is fresh.Justfile:
just dev *args, afterbuild. README: the command and what it sets up.Why
Trying the server by hand meant writing a PLC directory script and a dozen variables first, and without an AppView configured, preferences are refused (by spec, as the reference does), which is a surprise there.
How it was checked
By hand, the commands it prints run as printed:
--seed, thencreate-session,get-session,create-record,describe-repo(handleIsCorrect: true, the DID document from its PLC directory).server/discover,tools/list(77 tools), andtools/callof reads, writes, a record refused, a bad and a missing token, the admin'sBasicand an unknown tool.shutdown.--keep: the record from before is there,describe-repo's DID document resolves from the new directory, andupdate-handlemakes a new operation it takes. A--keepstart after--seedprints the sign-in line again.Shortcomings
kill -9of the runner loses them, and--keepthen has DIDs the directory does not know. Start without--keepthen.listRepos, so its DID's operations are not saved.