{"content":"feat: deny cross-user channels to the App Store iOS shell at the gateway — branch feat/appstore-shell-cross-user-gate, commit 0d14e1598 (slice 1 of 4; change request CR-WSA-007). Problem: the cloud tenant ships the Phase 2 cross-user capabilities (Bot private chat, Gig Square, provider discovery, group tasks, OpenTeam, contacts), and the mobile gateway had no idea which client was on the socket, so nothing stopped the iOS native shell from reaching them — the UI simply had no screen for them. App Store Review defines Messaging and Chat as users communicating or public posting, and the owner decided the first iOS release keeps those capabilities out of the app. Wire: the invoke frame gains an optional client: { shell, os } declaration (01 C2 Frames; the facts window.idbotsMobile reports); present-but-malformed is an INVALID_FRAME and is never dropped silently; the declaration is sticky per socket; frames from pre-CR clients stay byte-identical. Gateway: a new pure clientProfile module resolves the declaration; shell=capacitor + os=ios is the 'appstore' profile; allowlist 1.3.0 -> 1.4.0 adds a cross-user channel set (9 A2A cowork channels, gigSquare:* and groupTask:* families, providerDiscovery, openTeamCollab, contacts, the metatask board, the MetaWeb listener switches) that the appstore profile is denied with CHANNEL_NOT_ALLOWED at every tier, plus a cross-user event set (groupTask:*, metatask:update, providerDiscovery:changed, cowork:delegation:stateChange) that is not written to appstore sockets. The set only narrows: every other client (Android shell, PWA, browser, pre-CR) keeps the exact tier decision it had. The declared facts now travel through invokeRegisteredHandler as event.gateway.client so IPC handlers can apply the same profile. Tests: frame codec accepts/absent/rejects client declarations; only the Capacitor iOS shell resolves to appstore; the cross-user set names real allowlisted channels; over a real WebSocket at tier P2 the appstore client is denied 19 cross-user channels while ordinary channels work and the handler sees the facts, four other clients are unchanged, the profile is sticky, and cross-user events reach only non-appstore sockets; the mobile GatewayClient attaches window.idbotsMobile facts. 90/90 across gatewayCore, gatewayServer, ipcContract and gatewayTunnel; regenerating the IPC contract also heals the stale-contract red that merge 9643e9f39 left on main. tsc --noEmit and eslint clean. Next slices: turn-level tool gating, session visibility, push filtering.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}