Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… POS, tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… sides Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ummary, unpair, CORS Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…er URL rules, secrets grep Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… pre-auth limits, random manual token 1. POS enforces its own pairing limits (open session only, one outstanding attempt, 3 per code, 20 claims/day); normative in protocol.md 5.2 and design.md; RefPos and mock POS. 2. Per-socket in-memory limits: hello once, 60 requests/min, pair.open bucket; close 4429, 60 s ban. 3. PREAUTH_LIMITER per IP before every unauthenticated Durable Object call. 4. An approved, undelivered attempt blocks new claims until collected or past its deadline. 5. Manual-route device token is random, minted at delivery; vectors and docs updated. 6. A failed POS reply without an error object becomes bad_reply (502). 7. A replaced socket's late close no longer ends the live socket's attempt. 8. Request bodies are streamed and cut at 4 KiB. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Implements milestones M0–M3 of docs/design.md. Wire contract: docs/protocol.md.
Tested locally: typecheck clean, 81 tests, and mock POS/phone against wrangler dev.
Deviations from the design:
finalon 408 pair_timeout, top-levelmessageon errors, 426 when X-Flo-Proto is missing; the POS appendsk=to the QR.Not verified: WAF rule and per-location rate limiting (need a deployed zone), real 15 s/75 s timings, 10-minute hibernation soak, crypto.subtle in the Capacitor webviews, billing questions in design §12. Security review of the key exchange is pending; do not release before it.
🤖 Generated with Claude Code