Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
docs(rfcs): an encrypted relay and what it keeps, as rfc 0004
Corey Olson8afb0c81af7f
diff --git a/SPEC.md b/SPEC.mdindex a3528262..bbf7644c 100644--- a/SPEC.md+++ b/SPEC.md@@ -183,7 +183,7 @@ Statuses: approved = decided · draft = proposed · pending = open question · f- A1 [approved, must] Every command prints --json in a documented shape, stable within a major version. | gate: test/api.test.js- A2 [approved, must] `pullboard serve` offers a versioned local HTTP API: the board's state, its moves, and live events. | gate: test/api.test.js- A3 [approved, must] The view uses that API and nothing else, so any app can do what the view does. | gate: test/api.test.js | serves: A2-- A4 [approved, must] The relay serves the same API, so a client works the same against a local board or pullboard.dev. | gate: test/relay.test.js | serves: A2+- A4 [approved, must] The relay serves the same API, sealed, so a client with the key works the same locally or on pullboard.dev. | gate: test/relay.test.js | serves: A2- A5 [approved, must] SPEC.md's grammar, the board's schema and its event log are documented, versioned, and upgraded in place. | gate: test/api.test.js- A6 [approved, must] `pullboard doctor` checks a board's integrity and names how to repair each thing it finds. | gate: test/api.test.js- A7 [approved, aim] `pullboard export` writes a whole board as JSON, and `import` rebuilds it, losing nothing. | gate: test/api.test.js@@ -194,8 +194,8 @@ Statuses: approved = decided · draft = proposed · pending = open question · f- H1 [approved, must] `pullboard relay on|off` links this board to pullboard.dev, after a GitHub sign-in. | gate: test/relay.test.js- H2 [approved, aim] With the relay, each agent has its own token, so a verdict records which agent gave it. | gate: test/relay.test.js- H3 [approved, must] With the relay on, every move passes through it in one order: a claim is won once, everywhere. | gate: test/relay.test.js | serves: H1-- H4 [approved, must] The relay enforces the CLI's own lifecycle, refusing exactly what the CLI refuses. | gate: test/relay.test.js | serves: M1-- H5 [approved, must] Signed in to pullboard.dev, you see and act on your boards live, on phone or desktop. | gate: test/relay.test.js | serves: N26+- H4 [retired] Merged into H16: clients, not the relay, apply moves in the relay's order.+- H5 [approved, must] Signed in and paired, you see and act on your boards live, on phone or desktop. | gate: test/relay.test.js | serves: N26- H6 [retired] Merged into H12.- H7 [approved, must] The relay holds board records, never code; unlinking loses nothing, since the local board stays complete. | gate: test/relay.test.js- H8 [approved, must] You see and act only on boards of repos your GitHub account can read. | gate: test/relay.test.js@@ -205,6 +205,10 @@ Statuses: approved = decided · draft = proposed · pending = open question · f- H12 [approved, must] pullboard.dev never writes to a repo: what you do there, like approving a row, reaches your agents as a request. | gate: test/relay.test.js | serves: H6- H13 [draft, must] Acting on a board, and minting its tokens, needs write access to its repo. | gate: test/relay.test.js | serves: H8- H14 [draft, must] A public repo's board is hidden from readers without triage access, unless its owner publishes it. | gate: test/relay.test.js | serves: H8+- H15 [approved, must] The relay can't read boards: the CLI seals every move and snapshot with a key that stays on your devices. | gate: test/relay.test.js | serves: H7+- H16 [approved, must] Every client applies moves in the relay's order with the CLI's engine, refusing what the CLI refuses. | gate: test/relay.test.js | serves: H3+- H17 [approved, must] A phone or machine joins a board by pairing once, from a code or QR a linked machine prints. | gate: test/relay.test.js | serves: H15+- H18 [approved, must] The relay keeps a board only while linked: unlinking deletes it; 90 idle days delete it; backups last 14 days. | gate: test/relay.test.js | serves: H7## Q · Queues and procedures- Q1 [approved, must] A resource has a name, a capacity, a scope (machine, repo or board) and a queue. | gate: test/resources.test.jsdiff --git a/docs/rfcs/0004-encrypted-relay.md b/docs/rfcs/0004-encrypted-relay.mdnew file mode 100644index 00000000..91b78e9e--- /dev/null+++ b/docs/rfcs/0004-encrypted-relay.md@@ -0,0 +1,47 @@+# RFC 0004: An encrypted relay, and what it keeps++- Status: accepted, 7 October 2026+- Proposed: 7 October 2026, by Corey Olson+- Amends: RFC 0002 (the relay). Rows: A4, H4 (retired into H16), H5, H15 to H18++## Summary++pullboard.dev can't read the boards it relays. The CLI seals every move and every snapshot of a board with a key that never leaves the person's devices; the relay stores and orders sealed blobs it can't open. The relay keeps a board only while it is linked, and briefly after.++## Sealed boards++`pullboard relay on` makes a board key and keeps it on the machine: in the operating system's keychain where there is one, otherwise in `~/.pullboard`, readable only by its user. Before anything leaves the machine, the CLI seals it with that key: each move, each request and each snapshot of the board's state. The relay sees a board id, a GitHub repository (to check who may reach it), who signs in, and when sealed blobs arrive and how large they are. It never sees what they say.++The relay still puts moves in one order (H3). It can't check a move it can't read, so every client does: each CLI applies the moves in the relay's order with the CLI's own engine, so each refuses exactly what the CLI refuses, and a claim is still won once, everywhere. A CLI learns whether its move applied by reading the order back. Clients refuse a sealed move from a newer engine than theirs, naming the version, rather than guess.++## Pairing++A device that can read a board holds its key. A linked machine hands the key to a new device directly, never through the relay:++- **A phone or a browser:** `pullboard relay on` and `pullboard relay pair` print a QR code and a link to app.pullboard.dev with the key after the `#`. Browsers never send that part of an address to a server. The page reads the key there, keeps it in the browser, and unseals the board on the device.+- **Another machine:** `pullboard relay pair` prints a one-time code; `pullboard relay join <code>` on the other machine stores the key there.+- **An agent that can't pair**, such as a cloud session: the key comes from an environment variable, beside its relay token.++Signing in with GitHub decides who may fetch a board's sealed blobs; holding the key decides who can read them. Both are needed.++A person never handles a key by hand. If every device loses it, nothing is lost: the local board is complete (H7), and `pullboard relay on` seals it again under a new key.++## What the relay keeps++- A board, only while it is linked. `pullboard relay off` deletes it from the relay at once.+- A linked board with no activity for 90 days is deleted, after notice to whoever linked it.+- Old moves fold into the latest sealed snapshot, so the relay doesn't keep a board's full history.+- Backups last 14 days.++## The honest limits++- The phone's page comes from app.pullboard.dev. A compromised server could serve a page that reads the key. Every encrypted web app shares this limit; the page's code is open source and can be checked against the release.+- The relay sees metadata: which repositories are linked, who signs in, and when and how much each board changes.+- Nothing on the server can search or summarize a board. Anything like that runs on the person's devices.++## Rows++- A4 now reads: the relay serves the same API, sealed, so a client holding the key works the same against a local board or pullboard.dev.+- H4 retires into H16: every client, not the relay, applies moves in the relay's order with the CLI's engine.+- H5 now reads: signed in and paired, you see and act on your boards live, on phone or desktop.+- H15: the relay can't read boards. H16: clients apply moves in the relay's order. H17: pairing. H18: what the relay keeps.diff --git a/docs/rfcs/README.md b/docs/rfcs/README.mdindex cb730787..34fb4f5b 100644--- a/docs/rfcs/README.md+++ b/docs/rfcs/README.md@@ -9,3 +9,4 @@ An RFC is one file here, numbered next: what changes, why, what it costs, and wh| [0001](0001-standard-doctrine.md) | A standard doctrine, version 1 | accepted || [0002](0002-relay-and-api.md) | The relay and API v1 | accepted || [0003](0003-procedures.md) | Procedures, resources and proposals | accepted |+| [0004](0004-encrypted-relay.md) | An encrypted relay, and what it keeps | accepted |