Repository navigation
proto(serving): sandboxed frame and shell broker on one host (#175) - #185
allisonmahmood wants to merge 5 commits into
Conversation
Throwaway prototype for wayfinder ticket #175. Not for main. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…s validated After astra's review: a navigated frame inherits nothing, table and file names are identifiers, op dispatch is own-property only. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Decided with Allison: the frame prints its own document; connect-src stays 'none' on tier 1 content. Co-Authored-By: Claude Fable 5.1 <[email protected]>
So Safari on another machine can reach it over the LAN. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Ok did some reviewing for this pr. I agree with the approach to building it is not to do it all at once, but to do it in steps. AKA build over time. We keep adding to the sdk for tier1, tier 2. etc. I agree with th |
|
We need to use daybreak at every step to ensure no vulnerabilities+ add in security features. But this can come at the end . |
|
Also, I feel the worst part of everytthing will be how we handle external libraries. Patchy needs supported ways to provide them. I need to research more on this, actually, but from my understanding, sometimes some libraries are incompatible with agents at times, or don't do it the right way the first time. |
|
Make sure one thing. We need to make sure explicitly that patchy does not send data (company data) through anything but Patchy. Make that a thing. |
|
Again, there are a lot of tiny things we are gonna have to take into account here when designing for tier 1 such as large sets of data being corrupted while putting them on patch page, having super large files in our database, so definitely keep the database integration stuff in mind. |
|
Closing as not for merge; the prototype answered its question. Findings and the resolution are on #175 (#175 (comment)). The branch stays until Tier 1 serving (#183) has lifted what it needs; delete it then. |
Prototype for #175, the frame-and-broker ticket on the SDK map. Not for merge. It is here so the team can run it, poke at it and argue with it; the branch goes away when the ticket closes.
Tier 1 patches run script, and the decision on #171 is that the script runs in a sandboxed frame on the same host, reaching Patchy only through the shell over postMessage. Nobody had watched a real browser do that yet: deep links, back and forward, images from the patch's own files, downloads, printing, a public patch opened signed out, a viewer from another company.
This is a plain Node host with a session cookie, three fixture patches, the shell with its broker, the SDK as patch code sees it, and a Playwright click-through. Chromium and Firefox pass the whole list. Astra's review moved the broker onto a document-bound MessageChannel so a frame that navigates itself inherits nothing.
Decided on the ticket and reflected here: the frame gets
allow-modalsso patch code prints its own document, and the content CSP keepsconnect-src 'none'so every data call goes through the broker. The findings, the reasoning and what the build ticket must carry are on #175.Try it
Safari is the browser nobody has run this in yet.
Built by Claude Fable 5.1 in Claude Code.