Repository navigation
Conversation
…and poll endpoints
…ollback integration tests
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.
P0C1 PARTIAL — Stacked Draft PR, base:
feature/mote-cloud-p0b-auth-20261116(PR #3), which builds on P0A #2. No production deployment or merge.Verified source scope
cloud/migrations/0003_pairing_claim.sqluses a single atomic SQLite UPDATE+trigger: valid QR approval inserts exactly one account-owned device; duplicate credential constraints fail/roll back. This is validated in local Node SQLite, not yet real Cloudflare D1.CloudPairingRepository: random 256-bit one-use claim, hashed secrets, 5-minute expiry, 6-digit on-screen confirmation, separate desktop polling proof.tenantAdmission.ts: server-side D1 account/device/credential checks for future WSS; only a nonforgeable verified admission yields tenant routing key. Actual DO WSS and dispatch not implemented.CI evidence
GitHub Actions CI #32 (all nine jobs SUCCESS), head
90c78979d96224728369408bc8e1ad6badcbdf8c. Relay tests, typecheck, staged Worker dry-run, repository, macOS/Windows/E2E and unsigned Windows release test artifact checks passed. Previous CI #29 had two test-fixture/status assertion failures, corrected. #32 verifies source and tests only, not real iOS/Apple/D1/WebSocket.Blocked
No live Cloudflare staging D1 migration, Apple real identity test, per-account DO WSS, real remote command/lock, native iOS, signed public binaries, public rate limits or account deletion. Private test-only staging gate cannot ship in customer clients. Public SaaS remains blocked.
Next
P0C2: separate tenant DO and authenticated Protocol v1 WebSocket, verified phone lock dispatch with 10s TTL, revocation and no-offline-queue E2E; then genuine Cloudflare D1 staging tests. Full operator notes:
docs/cloud-p0c1-pairing.md.