agent 1.7.0 + contracts 1.23.0: a demo scenario seeds whatever the church has installed

- contracts 1.23.0: the seed-scenario job (church, scenario, optional adminEmail; 45 minutes),
  SEED_SCENARIO_JOB_MIN_AGENT 1.7.0.
- agent 1.7.0: seed-scenario -> `crosscode demo <church> --scenario <s>`; seed-demo for
  accounts and app, and --scenario passed on to every product.
- crosscode script: `crosscode demo <church> --scenario <s>` loads the scenario on every product
  the church has here (Accounts, Events, the Website, the App), skipping the rest; every
  installed release checked first; the first failure stops the rest and names what's out of
  step (loaded / skipped in the report). `crosscode demo <church> app` says the App's demo comes
  with App 1.0.0.
- Docs: HANDOVER, APP-1.0-PLAN, VERSIONS, CHANGELOG, agent What's New.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 16:25:31 +02:00
co-authored by Claude Opus 5.5
parent 7391f97cfa
commit 2e8e4c04ca
17 changed files with 408 additions and 42 deletions
+24 -14
View File
@@ -29,11 +29,11 @@ links with the Website and Cross Events, so the three feel like one church.
**Where things stand:** every earlier phase is released and rolled out, including the Church Website
at Hope Family Church and a second church (confirmed by Joshua 2026-11-30). **Phase 6 progress
(2026-11-30):** `contracts@1.20.0`, `1.21.0` and `1.22.0`, `accounts@1.9.0`, `events@3.8.0` and `website@1.8.0`
released (not deployed yet), with the new shared package `@crosscode/demo` 1.1.0 (§12, "Demo scenarios").
(2026-11-30):** `contracts@1.20.0` to `1.23.0`, `accounts@1.9.0`, `events@3.8.0`, `website@1.8.0` and
`agent@1.7.0` released (not deployed yet), with the new shared package `@crosscode/demo` 1.1.0 (§12, "Demo scenarios").
The Bible publishers' terms were checked ([BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)): 1.0
uses only the free translations, the KJV and the Berean Standard Bible (decision 14, contracts 1.22.0).
Next: `agent@1.7.0`, Hub `v2.26.0`, then `app@1.0.0` (§15).
Next: Hub `v2.26.0`, then `app@1.0.0` (§15).
**Who uses 1.0:** the demo church (cross-demo2, Acacia Hill) first, then Hope Family Church. Then
it goes on sale (crosscode-site, ROADMAP §9).
@@ -41,7 +41,7 @@ it goes on sale (crosscode-site, ROADMAP §9).
**Done when:**
- `app@1.0.0`, `contracts@1.20.0` (released 2026-11-30), `contracts@1.21.0` (released 2026-11-30), `contracts@1.22.0` (released 2026-11-30), `accounts@1.9.0`
(released 2026-11-30), `events@3.8.0` (released 2026-11-30), `website@1.8.0` (released 2026-11-30), `agent@1.7.0` and Hub `v2.26.0` are tagged; the Hub installs
(released 2026-11-30), `events@3.8.0` (released 2026-11-30), `website@1.8.0` (released 2026-11-30), `agent@1.7.0` (released 2026-11-30) and Hub `v2.26.0` are tagged; the Hub installs
the App from New install (after Accounts) and lists its releases.
- On a demo client, **Load a demo scenario** in the Hub loads Accounts, Events, the Website and
the App with the same church, people and events, in one step (§12, "Demo scenarios").
@@ -517,15 +517,24 @@ data that describes **the same church**, so a demo shows the three products work
profile it uses for each product (`accounts`, `events`, `website`, `app`), so the Hub and the
agent agree; a test checks every profile it names exists. `seed-demo` takes an optional
`scenario`, and `accounts` joins `DEMO_PRODUCTS` (its demo is the church profile and the people).
- **Agent 1.7.0:** runs `crosscode demo <church> <product> --profile <p> [--scenario <s>]` for
every product, so a product can tell a scenario load from a single one.
- **Agent 1.7.0** (released 2026-11-30): runs `crosscode demo <church> <product> --profile <p>
[--scenario <s>]` for every product, so a product can tell a scenario load from a single one,
and the whole scenario in **one `seed-scenario` job** (contracts 1.23.0, Joshua 2026-11-30):
`crosscode demo <church> --scenario <s>` **seeds whatever the church has installed** on that
server, Accounts first, then Events, the Website and the App, and skips the products it doesn't
have (a client with only Accounts and the Website gets both). Every installed release is
checked against `DEMO_SCENARIO_MIN_VERSIONS` before anything changes; the first failure stops
the rest and names the products now out of step (the report's `loaded` and `skipped`).
Each product also works without the others: the Website without Accounts uses the scenario's
own church profile, without Events its own events; the App without Events its own events.
- **Hub 2.26.0:** on a demo client (every install marked as a demo site), **Load a demo
scenario**: pick one from the list, see which installs it will replace (and any product the
client has that the scenario doesn't cover), type the client's short name once, and the Hub
queues one batch in order: **Accounts first** (profile and people), then **Events**, the
**Website** and the **App**, each job starting only after the one before it succeeded; a failure
stops the rest and says which product is now out of step. At the end the products sync the
event feed, and one email reports the whole batch. The client page shows the scenario last
sends **one `seed-scenario` job** to the client's server (agent 1.7.0+). The server loads every
product the client has there, **Accounts first** (profile and people), then **Events**, the
**Website** and the **App**, skipping what isn't installed; a failure stops the rest and the
report says which products are now out of step. The Website and the App fetch Events' feed as
they load, and one email reports the job. The client page shows the scenario last
loaded and when. Loading one product's demo on its own stays (as now), marked "out of step with
the scenario" until a scenario is loaded again. The Hub refuses a scenario when an install
needs a newer release (each scenario lists the minimum versions it needs).
@@ -543,15 +552,16 @@ data that describes **the same church**, so a demo shows the three products work
| `crosscode-platform` `packages/contracts` | `app` in `DEMO_PRODUCTS`, `APP_MODULES`, the `app` part of the church export, `crosscode.devotional/1` and its CSV rules, the translations, `messaging.get`, `whatsapp.optout` | `contracts@1.20.0` (**released 2026-11-30**) |
| `crosscode-platform` `packages/contracts` | `agent.DEMO_SCENARIOS`, `scenario` in `seed-demo`, `accounts` in `DEMO_PRODUCTS` | `contracts@1.21.0` (**released 2026-11-30**) |
| `crosscode-platform` `packages/contracts` | The free translations only in 1.0 (`licence`, `FREE_BIBLE_TRANSLATION_IDS`, the CSV `translations` option), the Berean Standard Bible (`BSB`) added; the publishers' exact notices (`copyright`, `acknowledgement`, the Bible Society's `disclaimer`), `publisher` and `permissionsUrl`, `FREE_QUOTE_VERSES`, `quotedVerses`; `AFR83` named "Afrikaans 1983/1992-vertaling" | `contracts@1.22.0` (**released 2026-11-30**) |
| `crosscode-platform` `packages/contracts` | `seed-scenario`: a whole demo scenario in one job, on whatever the church has installed (`SEED_SCENARIO_JOB_MIN_AGENT`) | `contracts@1.23.0` (**released 2026-11-30**) |
| `crosscode-platform` `apps/accounts` | `messaging.get` for linked products, a hint when the messaging settings change, the WhatsApp opt-out for every product; demo data (the scenario's church profile with its logo and icon, and its people) | `accounts@1.9.0` (**released 2026-11-30**) |
| `crosscode-platform` `apps/events` | STOP stops all WhatsApp, passed to Accounts; the opt-out read from Accounts; a demo profile per scenario (its four kept) | `events@3.8.0` (**released 2026-11-30**) |
| `crosscode-platform` `apps/website` | Demo profiles take the scenario's people and events (`--scenario`) | `website@1.8.0` (**released 2026-11-30**) |
| `crosscode-platform` `apps/agent` | `seed-demo` for `app` and `accounts`, `--scenario` passed on | `agent@1.7.0` |
| `crosscode-platform` `apps/agent` | `seed-demo` for `app` and `accounts`, `--scenario` passed on; `seed-scenario` (the whole scenario on what's installed) | `agent@1.7.0` (**released 2026-11-30**) |
| `crosscode-platform` `packages/demo` | New: the scenarios' churches, people (`gender` from 1.1.0) and SVG logos | `@crosscode/demo` 1.1.0 (workspace, **released with Accounts 1.9.0 / Events 3.8.0**) |
| `crosscode-platform` `packages/ui` | The tab bar and bottom sheet, if worth sharing; otherwise nothing | workspace |
| `crosscode-platform` `packages/seo` | `Article` builder for devotionals and announcements; the icon generator for the manifest | workspace |
| `crosscode-platform` `scripts/` | `products/app.sh`, `app.env.template.json`, bats tests | — |
| `events-hub` | App in New install, its releases, env template, billing on the band, renewal check, FastPanel email, Devotionals (write, schedule 3 months ahead, Import CSV in the free translations, the endpoint for Apps), **Load a demo scenario** on a demo client (vendored contracts 1.22.0) | Hub `v2.26.0` |
| `events-hub` | App in New install, its releases, env template, billing on the band, renewal check, FastPanel email, Devotionals (write, schedule 3 months ahead, Import CSV in the free translations, the endpoint for Apps), **Load a demo scenario** on a demo client (one `seed-scenario` job; vendored contracts 1.23.0) | Hub `v2.26.0` |
| `crosscode-site` | Church App on sale (ROADMAP §9): its page, the active-member tiers, House of Prayer screenshots, the bundle examples (§10), FAQ, `SoftwareApplication` JSON-LD | `v1.10.0` |
## 14. Testing
@@ -591,8 +601,8 @@ data that describes **the same church**, so a demo shows the three products work
WhatsApp opt-out) and `events@3.8.0` (STOP passed to Accounts), **both released 2026-11-30**,
rolled out to every church (not yet).
2. `contracts@1.21.0` (demo scenarios, **released 2026-11-30**), with the scenario demo loaders in Accounts 1.9.0, Events
3.8.0, `website@1.8.0` (**released 2026-11-30**), and `agent@1.7.0`.
3. Hub `v2.26.0` (vendored contracts 1.22.0) deployed, and the first 3 months of Cross Code
3.8.0, `website@1.8.0` and `agent@1.7.0` (**both released 2026-11-30**).
3. Hub `v2.26.0` (vendored contracts 1.23.0) deployed, and the first 3 months of Cross Code
devotionals written or imported, in the KJV or BSB (decision 14).
4. `app@1.0.0` tagged after the e2e and Lighthouse runs.
5. **cross-demo2** (Acacia Hill): New install → App, every demo scenario loaded once, the