README: servers and the agent (2.1), where the protocol lives

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME
This commit is contained in:
2026-11-17 22:41:10 +02:00
co-authored by Claude Opus 5.5
parent a6e9f6bc97
commit 197edf3c1a
+7 -1
View File
@@ -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-<version>.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/<file>` 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.