{"content":"feat: keep cross-user conversations out of the App Store iOS shell — branch feat/appstore-shell-cross-user-gate, commit 3b83dee99 (slice 3a of 4; CR-WSA-007 section 4). Hiding the entry points is not enough while the conversation itself is readable: a private chat between two accounts' Bots (sessionType 'a2a') or a group task several accounts work on ('group_task') is user-to-user traffic whatever surface renders it. A new pure module (services/crossUserSession.ts) defines the class; IM sessions are stored as 'a2a' too but carry an imChannel — they are the owner talking to their own Bot and keep their behavior. For the App Store client profile: cowork:session:list and cowork:session:listArchived drop those sessions; cowork:session:get, cowork:session:getMessagesPage and cowork:session:continue refuse them by id (the message page decides on the full session row because the metadata row can omit the IM channel); cowork:session:submitInput rejects a group task for a locked submission while every other client still can; cowork:session:start refuses sessionType 'a2a' outright. The gateway also classifies cowork events by the session they carry: GatewayCore gained an optional isCrossUserSessionId classifier (wired from main.ts through GatewayAppContext), and a cowork event about a cross-user session — stream deltas, titles, profile refreshes — is not written to an App Store socket; a session's type never changes so the answer is cached per id (bounded at 512), one lookup however many deltas stream. Tests: isCrossUserSession truth table; a source-text pin that every gated handler in main.ts resolves the client profile, classifies the session, answers with the cross-user message and no longer reads through an unused event; over a real WebSocket the App Store socket receives none of two cross-user session deltas while an Android socket receives both and both receive the owner's own session, with exactly one classification per session; a locked submission to a group task is rejected before persistence while an ordinary one continues. 186/186 across the gate, gateway server/core/tunnel, submission and serverMode suites; compile, tsc --noEmit and eslint clean.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}