/rpc: a listener bound to 0.0.0.0 must reject no-origin POST /rpc without the browser access token (Unauthorized server access). Non-POST, missing client id, and invalid JSON fail before a session is opened.parseBearerToken and isLoopbackHost fail closed on blank/non-Bearer credentials, non-loopback hosts, and 0.0.0.0. Bracketed IPv6 and IPv4-mapped loopback still count as local.lastConnectedAt; event-stream verification must. Blank/null device-id headers and missing tokens fail closed.cowork/workspace/document/* requires workspaceSettings before dispatch (same blast radius as spreadsheet/presentation). Connection taskReadAllowed/taskMutationAllowed are assigned from conversations/turns; turns alone cannot mutate.notAfter, are unusable and must rotate.test/transport/auth-loopback.test.tstest/loopback-http-rpc.test.tstest/h3.pairing-store.test.tstest/h3.mobile-http-jsonrpc.test.tstest/h3.persisted-listener.test.tstest/harness.raw-loop-validation.test.tssrc/server/transport/h3/persistedListener.ts (__internal.isCertificateUsable)Recent main commits extracted H3 transport, pairing, loopback, and HTTP response helpers. Those paths gate remote RPC, mobile file access, and pairing identity. The new tests lock the fail-closed branches that integration coverage around /ws and presentation/spreadsheet did not hit.
Does not duplicate open coverage PRs #331–#335.
test/platform-boundary.test.ts: 111 tests greenbun run check, bun run typecheck, bun run docs:check: cleanbiome check --write on touched filesSign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 4 months ago
test: cover transport auth, H3 document gates, and artifact validation
#336 main ← cursor/missing-test-coverage-5081
Updated 2 weeks ago