Repository navigation
feat: prepare restricted Session Share steering connections - #201173
vincentkoc wants to merge 1 commit into
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. |
|
Found 1 test failure on Blacksmith runners: Failure
|
|
Codex review: needs maintainer review before merge. What this changesAdds a separately restricted Session Share writer transport and person-authorized discovery of an exact active steering target. Example: A paired device requests only operator.session-share.steer.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds a distinct Session Share foundation absent from main; no definite introduced correctness or security defect was established. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway authentication admits a signed device into a restricted transport, while a separate person-authorized RPC resolves session and backend run IDs through existing session-access and controller owners. flowchart TD
A[Signed paired device] --> B[Restricted transport admission]
B --> C[Session Share method authorization]
C --> D[Future source handlers]
E[Authenticated person] --> F[Session write authority]
F --> G[Exact backend discovery]
Technical reviewBest possible solution: Keep this foundation on the existing transport and session-authority owners, with source grants and remote sending delivered in their stated follow-up. Do we have a high-confidence way to reproduce the issue? This is a new capability rather than a reported bug; source inspection establishes its admission and discovery paths, and no target code was executed. Is this the best way to solve the issue? Generalizing the existing restricted reader transport preserves one authentication owner, and discovery appropriately reuses session-write authority and physical backend capture. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9d6f4a94adf5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +174, Tests +243, Docs +30, Generated 0. Total +447 across 33 files. Added test files: 0. 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. Review metrics
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, 7:24 AM ET / 12:24 UTC. |
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
What Problem This Solves
Session Share needs a separately restricted connection for future remote steering, without upgrading read credentials or granting devices a person's authority. Active steering also needs discovery of the actual running backend target rather than a catalog guess.
Depends on #201152; stacked on
feat/session-steer-reconciled-20261118.User Impact
No remote steering is enabled yet. Operators get a separate, singleton writer transport and genuine-person-only exact-target discovery; source writer methods default-deny until a later grant/handler slice exists. Reader credentials cannot write. No enrollment, config migration, UI, deployment or credentials are included.
Why This Change Was Made
Reuse the reader's signed-device authentication, minimal hello, dispatch and revocation lifecycle with fixed writer methods (
session-share.steer.targetand.send) restricted to the Session Share owner. Device authentication never supplies human identity. Discovery resolves the physical backend session/run with current person and session-write authority; sending still revalidates exact IDs. The existing steering lookup remains unchanged.Evidence
Exact reviewed head
9e9ee48fe654a0c156f423d86603848f6c94a952, treef9886a89ba880f2f2148098a29004e888a36a9ca.Limits: isolated signed-WSS fixtures are not live authenticated remote-writer, Cloudflare, UI or native-Codex end-to-end proof. Source human grant, outbound adapter and UI are explicitly deferred. No merge or deployment is authorized by this PR.