Docs: roadmap v3 and Hub protocol moved to crosscode-platform/docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 09:48:31 +02:00
co-authored by Claude Opus 5.5
parent 2bb5580e10
commit 897b27cc42
3 changed files with 24 additions and 1137 deletions
+18 -37
View File
@@ -1,11 +1,14 @@
# Handover — where things stand and how to carry on
Last updated: 2026-11-05, after **2.1.1** (deployed), **Hub 2.0.0** (released, not deployed yet),
**contracts 1.1.0** and the crosscode-site address prices (not deployed yet); ROADMAP-v3 updated for
the monorepo move and the `crosscode` deploy script (decisions 21–24). **The plan from here is
[ROADMAP-v3.md](./ROADMAP-v3.md)** (Accounts, Church Website, Church App, Cross Code Hub; decisions
table near the end). How Cross Events got to 2.x is in [ROADMAP-v2.md](./ROADMAP-v2.md); the round
before that in [FEATURES-ROUND-1.md](./FEATURES-ROUND-1.md).
Last updated: 2026-11-05, after **2.1.1** (deployed). **This file covers Cross Events only**
(what's been done, where the code lives, known gaps). **The plan for every product and where each
phase stands moved to the platform monorepo:** `crosscode-platform/docs/` →
[ROADMAP-v3.md](../../crosscode-platform/docs/ROADMAP-v3.md),
[HANDOVER.md](../../crosscode-platform/docs/HANDOVER.md) (all products) and
[EVENTS-2.2-PLAN.md](../../crosscode-platform/docs/EVENTS-2.2-PLAN.md) (the next Events release:
the move into the monorepo). The Hub protocol moved there too (`docs/hub-protocol.md`). How Cross
Events got to 2.x is in [ROADMAP-v2.md](./ROADMAP-v2.md); the round before that in
[FEATURES-ROUND-1.md](./FEATURES-ROUND-1.md).
The product is called **Cross Events** (renamed from Hope Events in 1.41.3); the Hub is the
**Cross Events Hub**. Technical names keep `hope-events` on purpose — the repo, browser storage
@@ -91,40 +94,18 @@ encrypted settings unreadable or break existing installs.
## Next up
1. **Roadmap v3** ([ROADMAP-v3.md](./ROADMAP-v3.md), decided 2026-11-03). Everything in
ROADMAP-v2 is done: 2.1.1 is deployed, and the marketing site (`../crosscode-site`,
crosscode.co.za, with prices) is live. Build order (§9):
- **0 — contracts 1.0.0: released 2026-11-04** (`../crosscode-platform`, tag `contracts@1.0.0`):
`crosscode.event/1`, `crosscode.church/1`, `crosscode.identity/1`, Hub protocol v2, generated
JSON Schema in `packages/contracts/schemas/`. **1.1.0** (2026-11-04) adds `requires` on Hub
releases. Not published to Gitea's package registry, and won't be (decision 22).
- **1 — Hub 2.0.0: released 2026-11-05** (`../events-hub`, tag `v2.0.0`; plan and what each step
did in its `docs/HUB-2.0-PLAN.md` and CHANGELOG): products and one licence per product, protocol
v2 next to v1 (Linked products), releases per product with requirements, billing per church
(bundles, founding, Website storage, App tiers, prorating), the church's address, AI per church,
dashboard per product. **Deploying it:** `events-hub/deployment.md` → "Upgrading to 2.0" (run
`check-hub2` first). crosscode-site has the address prices (merged, deploy it too). Then
installs show up per product; Cross Events 2.1.x keeps speaking protocol 1 until 2.4.0.
- **1b — Cross Events 2.2.0: moves into the monorepo** as `apps/events` with its history, and the
**`crosscode` script** (`deploy <church> [events] [website] [app]` — Accounts always —,
`status`, `install`, `adopt`) replaces `scripts/deploy.sh` / `install.sh`. Run
`crosscode adopt` once per existing install; then archive this repo (ROADMAP-v3 §8,
"Releases and updates"). From here on this file and the roadmap live in the monorepo.
- **1c — Cross Events 2.3.0:** **authenticator app 2FA** (TOTP + recovery codes) next to email
and WhatsApp (`TwoFactorMethod` enum in `prisma/schema.prisma`).
- **2 — Cross Events 2.4.0:** protocol v2, Linked products, the event feed (publish and show).
- **3 — Accounts 1.0.0**, **4 — Church Website 1.0.0**, **5 — Cross Events 3.0.0** (sign-in
moves to Accounts), **6 — Church App 1.0.0** (House of Prayer).
- **Before selling the Website or App:** put the prices decided in ROADMAP-v3 §10 in
`crosscode-site/src/data/pricing.mjs` and the Hub's `frontend/src/lib/tiers.ts`.
- Servers stay **PM2 + nginx** (no Docker); one database per product per church.
1. **Roadmap v3**, across every product: see `crosscode-platform/docs/HANDOVER.md` ("Where each
phase stands", "Next up"). For Cross Events that means **2.2.0** (the move into the monorepo as
`apps/events`, with the `crosscode` script; `crosscode-platform/docs/EVENTS-2.2-PLAN.md`), then
**2.3.0** (authenticator app 2FA, `TwoFactorMethod` in `prisma/schema.prisma`) and **2.4.0**
(protocol v2, Linked products, the event feed).
- **Deploying until 2.2.0:** `bash scripts/deploy.sh --check`, then
`bash scripts/deploy.sh v<version>` on each server (installs ask through Request update as
usual). From 2.2.0 on: `crosscode deploy <church> events`.
- **AI for a church:** set the licence's monthly AI cap above R0 on the Hub (Hub 1.6.0+); with
no cap the buttons don't show.
- Testing AI locally: run the Hub (`../events-hub`, port 5200), set Settings → AI there, give a
test licence an AI cap, and start Cross Events with `HUB_URL=http://localhost:5200`.
- **Deploying:** `bash scripts/deploy.sh --check`, then `bash scripts/deploy.sh v<version>` on
each server (installs ask through Request update as usual). From Events 2.2.0 on:
`crosscode deploy <church> events` (ROADMAP-v3 §8).
2. **AI rules** (decided 2026-10-29, roadmap §15): the AI buttons show only when the licence's
monthly cap is above R0, and are disabled (not hidden) once it's reached. The Hub charges the
real cost plus a markup % (a default and a per-licence override) and counts the cap in charged
@@ -277,7 +258,7 @@ Languages (Afrikaans, §10) and Wallet passes (§7) are removed from scope (2026
## Where the Hub client lives (1.41.0, update requests 1.42.0)
- Protocol: `docs/hub-protocol.md` — the same file is in the Hub repo (`joshua/events-hub`,
- Protocol: `crosscode-platform/docs/hub-protocol.md` (moved from `docs/` here on 2026-11-05) — the same file is in the Hub repo (`joshua/events-hub`,
developed at `../events-hub`); change both together.
- `backend/src/hub/`: `publicKey.js` (the production Hub key, built in since 1.42.1 — if the Hub's
signing key is ever regenerated, update it here in a release; `HUB_PUBLIC_KEY` env overrides it