Skip to content

TL-18 | Demo seed on real time, one lead incident, and a repeatable Maincloud reset #34

Closed

Description

@SJAryan

A (seed, reset, invites) with C (numbers) • P0 • Blocks the TL-13 recording. Related: #20 (C's dispatch rules, still open), #12.

Three problems found while testing TL-07 on Maincloud:

  1. The clock doesn't match real time. The seed sets freeAt for drivers and assets to the incident clock (2026-11-08 02:00 CST), but reserve and readyAt use ctx.timestamp. Before 2 AM, R4 reads "ready 02:13" while the check-in is at the current time, so margins come out around −200 min and every case lands in Act now. Seed freeAt relative to the publish time, or add an owner reducer that reanchors the incident to now. The demo must show C's numbers (Watch, then +17 → −3 after the detour, best R4-ALT +6, Act now) live.
  2. The story doesn't match. The fixture and the team update make the winter freeze the lead incident with H17. The live seed has H17 under tornado-1, and the freeze has F03/F09/F14. Decide on one lead incident and seed H17 into it with C's locked numbers. Keep the second incident playable.
  3. There's no repeatable demo reset. A script (kept outside the repo, or one that reads codes from the environment) should republish or reset Maincloud to the seed and set the follow-up interval for the demo. It should also create a fresh coordinator, two driver, two resident and one bridge invite, and print where to paste each one. Never commit the codes.

Also: once #20 merges, spacetimedb/src/rules.ts becomes a re-export of ./domain/dispatch, as its header comment says.

Done when a reset run at any time of day gives the agreed numbers on the live board, D's three windows and B's bridge claim fresh roles, and the commands are documented in docs/setup.md.

Added after the integration check (main + #33 + #20 + #31 merge cleanly; client build, module tsc, C 17/17 and bridge 62/62 pass):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions