Repository navigation
Conversation
…col v1 WebSocket handler
…o D1-derived tenant DOs
…o offline queue and gateway header trust
…thout waiting for timeout
…y and Node TS programs
…y and Node TS programs
…y and Node TS programs
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P0C2 SOURCE VERIFIED — Stacked Draft PR #5 (base P0C1 #4 → P0B #3 → P0A #2). No merge or production deployment.
Implemented
MoteCloudTenantDurable Object, hibernation attachments, persistent per-account binding, fresh D1 credential/owner checks and stale socket cleanup.auth,heartbeat,command,command_resultframes; allowlistedlockwith 10-second TTL, unique nonce/ID, one in-flight/device, no offline queue, response matched to authenticated device socket.GET /cloud/v1/ws/device/:uuid(provisional routing by D1 owner, then real auth frame in DO) andPOST /cloud/v1/devices/:uuid/commands(phone session and owner validated in gateway and again in DO). Overrides forged internal tenant headers; requires a distinct server-only internal secret.docs/cloud-p0c2-realtime.md.CI evidence — verified 2026-11-16
GitHub Actions CI #41 — 9 / 9 jobs success, head
e2eee784546d87f24f60917806b9c3d0d2df47fd.Relay / Protocol 158 tests PASS + TypeScript PASS (personal and hosted Cloud), staging Worker DO bundle dry-run PASS, existing Worker PASS, Dashboard PASS, repository consistency PASS, Windows PASS, Windows E2E PASS, macOS PASS, Windows Release Artifact test-mode PASS. Earlier CI #33 syntax error and #34/#39 typecheck/test problems were fixed; this CI is the authoritative result for current head.
Still blocked for customer/public launch
This CI is synthetic / bundle-only: no real Cloudflare D1 migration/DO WSS/hibernation or live remote lock, no genuine Apple ID/iOS or desktop Cloud onboarding, no active revocation broadcast, no public abuse/rate controls, account deletion, production signing, App Store approval or deployment. Do not embed the temporary staging gate or internal secret in public clients. The original personal Relay and public domain have not been modified.
Next P0C3
Review/configure a new isolated Cloudflare Staging D1 and DO, verify actual D1 migrations and authentic Apple identity, perform two-account adversarial and real-device WebSocket → OS lock tests, harden revocation and rate limits; only then proceed with native client onboarding and customer release.