From 197edf3c1a7653662abce8f8b3b48e978e8ee08d Mon Sep 17 00:00:00 2001 From: Joshua Oosthuizen Date: Tue, 17 Nov 2026 22:41:10 +0200 Subject: [PATCH] README: servers and the agent (2.1), where the protocol lives Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 652593c..5a2e8a5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ roadmap is `crosscode-platform/docs/ROADMAP-v3.md`.) - `backend/` — Express + Prisma (Postgres) API, port 5200 - `frontend/` — Next.js dashboard, port 3200 - `docs/hub-protocol.md` — the contract with installs, protocol 1 (Cross Events 2.1) and 2 (every - product); a copy lives in the `hope-events` repo, and the v2 formats are in `@crosscode/contracts` + product); the main copy lives in `crosscode-platform/docs/`, and the v2 formats are in + `@crosscode/contracts` - `backend/vendor/crosscode-contracts-.tgz` — the shared formats, committed so deploys need no package registry. To update: `npm pack` in `crosscode-platform/packages/contracts` at its new tag, put the file here, `npm install --save file:vendor/` in `backend`, remove the old file @@ -25,6 +26,11 @@ Accounts licence. Keys: `CEH-` Events, `CCA-` Accounts, `CCW-` Website, `CCP-` A Installs only ever call the Hub (register, heartbeat); the Hub never reaches into an install and holds no church data — just versions, health and aggregate counts. +**Servers** (Hub 2.1): an agent on each server (crosscode-platform `apps/agent`) polls the Hub for +signed jobs: New install, scheduled and emergency updates, adopt, uninstall with an encrypted +export. The Hub still never connects to a server; it only answers the agents. Upgrading: +`deployment.md` → "Upgrading to 2.1"; rolling it out: `crosscode-platform/docs/ROLLOUT-1.0.md`. + ## Run it locally Needs Node 20+ and Postgres.