Repository navigation
feat(session-share): pull shared sessions over outbound WSS - #201075
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesAdds outbound WSS sources to the Session Share catalog using dedicated device identities, publication-read tokens, and optional Cloudflare Access credentials. Example: A receiver behind a firewall connects to wss://team.example.com as gateway:team.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-authored PR open: the outbound capability is useful and absent from main, but request-lifecycle behavior, recovery guidance, and a patch-caused CI failure need correction. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe plugin combines paired-node and outbound Gateway sources into the existing read-only session catalog; source-side grants select the sessions returned over signed Gateway RPC. flowchart LR
A[Catalog viewer] --> B[Session Share catalog]
B --> C[Paired node adapter]
B --> D[Outbound WSS adapter]
D --> E[Source Gateway admission]
E --> F[Device grants and session selection]
F --> G[Read only session pages]
Technical reviewBest possible solution: Retain the existing catalog and credential owners, check configuration authority when requests start, preserve actionable recovery errors, and integrate the outbound client with the existing call-site guard. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the missing outbound path on main and the introduced failure cases; no target code was executed during this read-only review. Is this the best way to solve the issue? An outbound adapter behind the existing catalog is appropriate, but it should follow request-start authority semantics and expose recovery instructions that can resolve the reported condition. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74e5127c0c3d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +335, Tests +449, Docs +66, Generated 0. Total +850 across 11 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 3:04 AM ET / 08:04 UTC. |
a46ba4c to
c7ecb5d
Compare
c4658d8 to
5d59a9a
Compare
|
Merged via squash.
|
…#201075) * feat(session-share): pull shared sessions over outbound WSS * fix(session-share): preserve admitted reads and expose restart recovery * fix(session-share): retain actionable startup retirement errors * fix(session-share): qualify socket turnover and preserve SDK exports * test(session-share): preserve exports with partial SDK doubles
What Problem This Solves
Receivers that cannot accept an inbound source-node connection need to read selected sessions through an outbound WSS connection.
User Impact
Configured Gateway sources appear beside paired nodes as read-only catalogs. Operators must preprovision a dedicated named non-primary identity and an explicit singleton publication-read token. Nothing enrolls automatically or falls back to broader credentials.
Why This Change Was Made
Builds on source-side device grants. URL, identity selector, SecretRefs and provider bindings are captured from one startup snapshot. Relevant changes retire the connection; unrelated reloads keep it usable. Replies from retired connections are discarded.
No steering or writer credential is included.
Evidence
The outbound candidate passed 39 tests across six files, two signed-WSS cases, production SDK declaration checks, 38 selected package compilations plus the negative boundary canary, and scoped type/lint/config checks. The explicit package-local check passed after the repository package checker refreshed its separate development declarations.
The stock ES2023 library check reports
Promise.withResolversin unchangedsession-catalog.ts; the explicit package check uses Node 26/ES2024. Independent exact-slice review accepted publication.The WSS fixture uses test-owned identities, pinned local TLS and synthetic Access-shaped headers. This is not live Cloudflare Access validation. No live enrollment, credentials, configuration or deployment changed.
No steering or reader write privilege is included. No live deployment was performed.
Exact revision and proof entry points
c4658d819fe006ebc2051d3b012f6a4ba458d258a46ba4cfd4b5c84a544ad587e3ad0f0716403b2e93dcbb85f20c109606e7ec88a766e3bab95e7d0eFocused runs used
node scripts/run-vitest.mjswith isolated repository-suite configurations,maxWorkers: 1and file parallelism disabled, selecting:extensions/session-share/src/gateway-catalog.test.tsextensions/session-share/src/node-commands.test.tstest/plugins/session-share-gateway.integration.test.tstest/plugins/session-share-filters.integration.test.tstest/plugins/session-share.integration.test.tssrc/plugin-sdk/gateway-reader-identity.test.tstest/plugins/session-share-publication.gateway.test.tsunder the isolated Gateway suite.SDK command:
node --import ./scripts/tsx.mjs scripts/build-all.mts pluginSdkStrictSmoke.Package command:
node --import ./scripts/tsx.mjs scripts/check-extension-package-tsc-boundary.mts.Stack order
3/4. Depends on the preceding PR (
feat/session-share-device-source-20261118). Merge prerequisites before retargeting/revalidating this exact diff; do not merge this stack out of order.Depends on #201074.