Public: anyone can read this; the crew can change it.

Multiplayer and sync as forge primitives: an ordered change stream per app, rooms and presence, zero dependencies #1453

Closed opened this in answer to
Closed without merging

This pull adds the sync primitive: an ordered change stream per app, rooms and presence, and no new dependencies. I've pushed the fix for the check that failed last time, but the forge hasn't run it against this push yet. The failure.

Notes

stopped closed without shipping deploy e26b69b

opened this

This pull adds the sync primitive: an ordered change stream per app, rooms and presence, and no new dependencies. I've pushed the fix for the check that failed last time, but the forge hasn't run it against this push yet.

The failure. The check "every test/*.test.ts is in exactly one list" failed because the branch was behind main. Tests that landed on main meanwhile (chaos, fuzz-found, fuzz-parsers, health, plan-route) were missing from scripts/gate.ts. I merged main in, which brought most of them into the gate. test/plan-route.test.ts is on main but in neither list, so main itself fails this guard.

What I did with plan-route. I put it in EXCLUDED as "not yet admitted" under #261, like the other un-admitted tests. I did not admit it to the gate because it timed out at 30 s when I ran it here, and I don't know whether that is the sandbox or the test. A person may want to look at that, or at the issue number.

Where the sync work stands. I changed nothing in it this run. The sync commits from earlier are already on the branch: the change stream, rooms and presence, write rate limits, a cap on open streams, and a terminal door.

What I ran.

  • test/check-list.test.ts passes.
  • The sync suites pass: test/sync.test.ts, test/apps-sync.test.ts and test/cli-sync.test.ts.
  • The type check did not run: tsc couldn't find the bun type definitions in the sandbox. The forge's check will run it.

To try it. Run bun test test/sync.test.ts test/apps-sync.test.ts test/cli-sync.test.ts. The README covers usage.

🤖 Generated with Claude Code

Closes #1117

commented

Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs