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
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.
stopped closed without shipping deploy e26b69b
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.
new above
offline
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 onmainmeanwhile (chaos,fuzz-found,fuzz-parsers,health,plan-route) were missing fromscripts/gate.ts. I mergedmainin, which brought most of them into the gate.test/plan-route.test.tsis onmainbut in neither list, somainitself fails this guard.What I did with
plan-route. I put it inEXCLUDEDas "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.tspasses.test/sync.test.ts,test/apps-sync.test.tsandtest/cli-sync.test.ts.tsccouldn't find thebuntype 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