Repository navigation
fix(kernel): require verified caller identity for the Supabase proxy and Download bridges - #550
Conversation
|
Claude finished @kshivang's task in 7m 25s —— View job Review of
|
| Gap | Why it matters |
|---|---|
authenticated watchDownloads |
finding #2 - the suite is green either way today |
| revoked token → refused | ProcessTokenRegistry.revoke then call; the interceptor's "stale token after a respawn" case is untested at the bridge level, on both bridges |
symlink and .. paths |
the KDoc explicitly claims "a symlink or a .. cannot walk outside it"; nothing pins it, and #3 shows the claim is only half-true |
revealInFolder tracked happy path |
openFile has one (:193), revealInFolder only has refusals |
| refusal descriptions | no test asserts NO_IDENTITY vs NOT_A_TRACKED_DOWNLOAD, so the two guards are indistinguishable to the suite |
select filters / range |
"arguments intact" (:119) asserts table and columns only. Worth noting the pre-existing rangeFrom >= 0 && rangeTo > 0 at SupabaseServiceBridge.kt:62 silently drops a 0..0 range - not introduced here, still unpinned |
What's right
- Wire-level tests through a real
ProcessIdentityInterceptorrather than direct Kotlin calls - the only way this gate is actually under test - and theprovider.calls.isEmpty()assertion on every refusal, which is the assertion that would catch a check placed after the side effect. - Fail-closed on a null identity, with the refusal logged before the throw.
- Identity is checked before the path guard in
openFile/revealInFolder, so an anonymous caller learns nothing about what is tracked. - Canonicalization does close the escape direction (
.., or a symlink pointing outside the tracked set), which is the half that matters most. SupabaseServiceBridge.logCalllogs the table/function name and neverparametersJson- correct under AGENTS.md's "Decoding Supabase payloads" rule, since acreate_secretcall carries the password in its parameters. One thought: it is INFO on every call of a proxy a plugin may poll, so expect volume.- The class KDocs are genuinely good on why this bridge is not a narrower grant than the secret bridge, and on not relitigating in-process plugins' equivalent access.
· branchfix/ipc-bridge-caller-identity-supabase-download
5c54c59 to
f7cc2d7
Compare
|
Bounded response to the completed review of original
I did not expand this into the shared authentication-helper refactor (finding 8): #575 already supplies a distinct transport/ownership redesign. Repeating that implementation here would create competing security contracts. The old interceptor comment inventory and pre-existing Supabase 0..0 range behavior are recorded as follow-up context, not fixes this branch claims to deliver. Additional optional permutations are useful but do not replace the focused positive/refusal regression cases above. Canonical paths still do not guarantee filesystem race immunity against same-user mutation. Original gates and tests remain credited to Antriksh (@Antriksh1984); the repairs above are reviewer work. Original-head CI passed; current-head CI and the shared-lock focused tests plus ktlint/detekt are pending. No new test pass or merge approval is claimed. @claude Please perform one final targeted verification of these bounded repairs at |
|
@Antriksh1984 Your Supabase/download caller gates, audit logging and tracked-download restriction close useful access gaps. The original 15 wire tests and original commit remain credited to you; the rebased commit preserves your author metadata. Reviewer repairs are separately recorded in the PR description and review response. Final pushed head is The remaining blocker is infrastructure/review completion: current-head CI is queued, local focused tests plus ktlintCheck/detekt have not acquired the shared build lock, and the single final changed-head Claude request has not completed. Original-head green CI does not validate reviewer changes. This is not evidence that your original implementation failed CI, and reviewer work must not be assigned to you as original work. Next steps: obtain passing current-head DownloadServiceBridgeTest/SupabaseServiceBridgeTest and quality checks, inspect the final requested review, address any substantiated findings, and recheck dev integration before undrafting. The separate #505 vault/RBAC implementation is now merged into dev; this PR remains distinct. The sampled provider snapshot and same-user filesystem race limitations are documented, and broad helper/version/range refactors are not silently included. Per the user's bounded-disposition policy I am converting this open PR to draft after the handoff rather than bypassing pending checks or spending hours polling. Repairs are pushed and preserved; no merge of this unvalidated head occurred. |
|
Claude finished @kshivang's task in 4m 51s —— View job Verification of the bounded repairs
Head note: the pushed tip here is Verdict: all five claimed repairs are present and correct in the code. No remaining substantive blocker from me. One prose defect was introduced by the finding-6 reword and is worth a one-line fix; everything else below is a recorded non-blocker. Repair-by-repair
Two things I checked that you did not claim, because they would have been silent regressions:
One new nit, introduced by the finding-6 reword
Reads as "and this path does not provide an executable-consent dialog". Given how much this repo leans on its own comments being the record, it is worth the one-line fix rather than leaving a mangled sentence in the paragraph that exists specifically to state the limitation accurately. Fix this → Recorded non-blockers (no action asked)
What I did not verifyI could not run Gradle in this environment (the invocations are blocked here), so compilation, |
|
Pushed |
…and Download bridges SupabaseServiceBridge is a generic, unrestricted Postgrest proxy backed by the signed-in user's own RLS-scoped Supabase session - its rpc() reaches the same create_secret/update_secret RPCs SecretServiceBridge exists to protect, and select() can read any table RLS exposes. Neither select nor rpc checked caller identity (BossConsole#53), so any local process reaching the kernel's IPC socket had the same reach as a legitimately installed plugin, attributable to nobody. Both now require a verified process identity, matching SecretServiceBridge's established pattern, with audit logging on every call. DownloadServiceBridge.openFile/revealInFolder shell out to the OS's own "open with default application" command for any path that exists on disk, with no check that the path has anything to do with a download - before this, an unauthenticated caller on the IPC bridge could make BOSS execute any file on disk via the OS default-handler mechanism, completely bypassing BossConsole#484's executable-download-warning consent dialog (that path never goes through it at all). Every RPC on the bridge now requires a verified caller identity, and openFile/revealInFolder are additionally confined to a path this provider's own downloads list is currently tracking - canonical-path compared, so a symlink or a `..` cannot walk outside it - turning "open any file that exists" into "open a file BOSS itself downloaded". Both bridges get real gRPC-server-and-client tests (matching PluginUIServiceBridgeTest's pattern): an anonymous caller is refused with PERMISSION_DENIED on every RPC, the underlying provider is asserted never invoked on a refusal, and DownloadServiceBridge additionally covers an authenticated caller naming a path outside the tracked set.
…ity branch
detekt's default MaxLineLength (120) rejected a 128-char assertEquals in
DownloadServiceBridgeTest that ktlint's wider 140-char .editorconfig limit had
let through - wrap it. Also finishes the finding-6 KDoc reword the bot review
flagged as ungrammatical ("this is the path does not provide" -> "this path
provides no executable-consent step") and reflows that paragraph.
No behavior change; addresses the last remaining code-quality blocker noted
in the PR's review thread.
fe10bee to
2837631
Compare
|
All five open PRs went CONFLICTING/DIRTY simultaneously after dev picked up #450 (the main.kt startup-phase refactor) plus several other merges - same tangled-history symptom as #484 hit earlier: Fixed by rebuilding this branch: identified the commits genuinely unique to this PR, cherry-picked them in order onto a fresh |
|
@claude Please review current head |
|
Claude finished @kshivang's task in 4m 7s —— View job Review of
|
| Property | Status on 2837631 |
|---|---|
| Stream identity captured synchronously | ✅ DownloadServiceBridge.kt:40, before the flow is returned |
| Fails closed on a missing interceptor | ✅ :42-44 - null lambda and null identity both land on PERMISSION_DENIED |
| Revocation and token rotation end the stream | ✅ :47 re-invokes CURRENT_IDENTITY per snapshot and compares != caller. Since CURRENT_IDENTITY is { registry.identityFor(token) }, this catches both revoke and the re-issue a respawn performs (ProcessTokenRegistry.kt:52) |
| Canonical path forwarded, not the raw one | ✅ :156 checkNotNull(requestedCanonical).path, pinned for both RPCs at DownloadServiceBridgeTest.kt:189-203 |
| Blank path / blank destination cannot authorize the CWD | ✅ two guards (:139, :145), pinned at :205-218 with the refusal description asserted, so the case cannot silently pass through the identity gate instead |
| Sampled-snapshot limitation documented | ✅ :130-132 |
| Prose no longer claims executable consent | ✅ see above |
Two things I checked against the new dev base rather than taking forward, because the #450/#505 merges could have invalidated them:
- The interceptor still reaches these bridges.
BossIpcServer.kt:76installsProcessIdentityInterceptoronly whentokenRegistry != null, and the interceptor is server-wide so it coversfallbackHandlerRegistry-resolved late services (:75).KernelBootstrap.kt:422unconditionally constructs the registry in KERNEL mode and:486passes it, whileregisterPluginServicesreturns early in MONOLITH. So a legitimate child is not refused, and there is no path where these bridges land on an un-intercepted server. ProcessTokenRegistrymakes the revocation test deterministic, not timing-lucky.revokeandidentityForare both@Synchronized, so the test'srevoke→setDownloadsordering has a real happens-before with the server-side re-check. Combined withreceived.receive()proving the server collector had already bound, andMutableStateFlowguaranteeing the next emission attempt,tryReceive().isFailureat:180is a sound assertion rather than a race.
Nit 1 - a dead detekt baseline entry, left behind by this PR
composeApp/detekt-baseline.xml:672 suppresses:
MaxLineLength:DownloadServiceBridge.kt$DownloadServiceBridge$override suspend fun pauseDownload(request: DownloadIdRequest): OperationResult
On dev that method was a single 140-ish-char expression body; this PR turns it into a block body (DownloadServiceBridge.kt:86-89), so nothing matches that ID any more. detekt does not fail on unused baseline entries, which is why CI is green - it is just dead weight in a file that is easier to keep honest than to clean later. (The three sibling entries at :669-671 for the DownloadStatusData when arms are still live and still needed.)
Nit 2 - the one bridge with a streaming RPC is the one whose helper KDoc omits the streaming caveat
Both siblings that landed with #505 warn on the helper itself:
SecretServiceBridge.kt:222/RoleManagementServiceBridge.kt:192- "Unary RPCs only:AUTHENTICATED_PROCESS_IDis a per-call snapshot… a streaming RPC must captureCURRENT_IDENTITYinstead."
DownloadServiceBridge.kt:159-164 does not, and it is the only one of the three where a streaming RPC sits in the same class as the unary helper - so it is the one place where someone adding a second stream could reach for authenticatedCallerOrRefuse and get exactly the bug finding 1 was. One sentence, copied from the sibling.
Changed context since the last review, recorded not asked
- Finding 7 is resolved by dev, not by this branch. fix(kernel): require a verified caller identity for the secrets and RBAC IPC bridges #505 landed, so
SecretServiceBridgenow has a real KDoc and a real helper - the[SecretServiceBridge]grant-scope reference atSupabaseServiceBridge.kt:18no longer points at the opposite of what it promises. - Finding 8's duplication count went 3 → 5.
authenticatedCallerOrRefusenow exists in PluginUI, Secret, RoleManagement (from dev) plus the two here, all sharing the sameNO_IDENTITYstring. Deferring the shared helper to fix(ipc): authenticate process calls and survive a dead repair client #575 remains the right call - notably, fix(kernel): require a verified caller identity for the secrets and RBAC IPC bridges #505 also inlined its own gRPC harness inSecretServiceBridgeTest, so this PR matches the house pattern rather than adding a new one, and there is no shared fixture on dev it should have reused. ProcessIdentityInterceptor's KDoc inventory is wrong in a new way.:17still says "thirteen other service bridges as of writing, none of them authenticated today" and:23names PluginUI/Secret/RoleManagement as "the three that currently make it" - after this PR it is five of fifteen. Still a two-sentence edit for whoever is next in that file; it is a security inventory, so it is worth someone actually doing rather than deferring indefinitely.- Previously recorded and unchanged: revocation takes effect at the next emission rather than proactively tearing the stream down;
DownloadDataProviderProxyreconnects on refusal with ≤30s backoff;[FileSystemUtils.openFile]at:22is not import-resolvable for Dokka; therangeFrom >= 0 && rangeTo > 0drop of a0..0range is pre-existing; canonical-path checking is not filesystem-race immunity against another same-user process.
What I did not verify
Gradle invocations are blocked in this environment, so compilation, ktlintCheck, detekt and the test suites are unverified by me - your green hosted CI on this head is the evidence for those. Statically I did confirm: no U+2014 in the four files; nothing over 120 characters except the three DownloadStatusData lines that are already baselined; and the registration/interceptor/credential wiring described above. I am not approving the merge.
· branch fix/ipc-bridge-caller-identity-supabase-download
|
@Antriksh1984 Your clean replay and final formatting/KDoc fix are verified. The current Claude review (#550 (comment)) reports no substantive blocker; all earlier security findings remain resolved. I independently checked the current diff, interceptor/channel wiring, main/dev equivalence in the affected paths and actual CI XML (18 passing focused tests, no skips). All current-head hosted checks are green. The two cosmetic suggestions are recorded as nonblocking follow-ups: the obsolete MaxLineLength baseline ID no longer matches any finding and therefore suppresses no current violation; the unary helper is only called by unary RPCs, while watchDownloads already captures CURRENT_IDENTITY synchronously and has a real revocation regression. Neither changes current correctness or requires reopening the validated implementation. Broader helper/inventory consolidation belongs with the separate #575 transport work. Emission-time revocation, sampled-path lookup and same-user filesystem races remain explicit limitations. Your original gates/audit/path restriction and tests, prior reviewer repairs, and your final follow-up are separately credited in the description. This is suitable for dev integration, subject to the serialized final state/check/mergeability recheck. No main merge, app launch or database deployment. |
…and Download bridges (#550) * fix(kernel): require verified caller identity for the Supabase proxy and Download bridges SupabaseServiceBridge is a generic, unrestricted Postgrest proxy backed by the signed-in user's own RLS-scoped Supabase session - its rpc() reaches the same create_secret/update_secret RPCs SecretServiceBridge exists to protect, and select() can read any table RLS exposes. Neither select nor rpc checked caller identity (BossConsole#53), so any local process reaching the kernel's IPC socket had the same reach as a legitimately installed plugin, attributable to nobody. Both now require a verified process identity, matching SecretServiceBridge's established pattern, with audit logging on every call. DownloadServiceBridge.openFile/revealInFolder shell out to the OS's own "open with default application" command for any path that exists on disk, with no check that the path has anything to do with a download - before this, an unauthenticated caller on the IPC bridge could make BOSS execute any file on disk via the OS default-handler mechanism, completely bypassing BossConsole#484's executable-download-warning consent dialog (that path never goes through it at all). Every RPC on the bridge now requires a verified caller identity, and openFile/revealInFolder are additionally confined to a path this provider's own downloads list is currently tracking - canonical-path compared, so a symlink or a `..` cannot walk outside it - turning "open any file that exists" into "open a file BOSS itself downloaded". Both bridges get real gRPC-server-and-client tests (matching PluginUIServiceBridgeTest's pattern): an anonymous caller is refused with PERMISSION_DENIED on every RPC, the underlying provider is asserted never invoked on a refusal, and DownloadServiceBridge additionally covers an authenticated caller naming a path outside the tracked set. * fix(kernel): revalidate download streams and use checked paths * fix(kernel): capture stream identity and reject empty download paths * style(tests): align download regression expression wrapping * fix(kernel): clear code-quality on the download/supabase caller-identity branch detekt's default MaxLineLength (120) rejected a 128-char assertEquals in DownloadServiceBridgeTest that ktlint's wider 140-char .editorconfig limit had let through - wrap it. Also finishes the finding-6 KDoc reword the bot review flagged as ungrammatical ("this is the path does not provide" -> "this path provides no executable-consent step") and reflows that paragraph. No behavior change; addresses the last remaining code-quality blocker noted in the PR's review thread. --------- Co-authored-by: Shivang <shivang.iitk@gmail.com>
) * test(db): gate the two client-grant shapes that produced #547 three times (#596) * test(db): gate the two client-grant shapes that produced #547 three times `ALTER DEFAULT PRIVILEGES` in 20251023000014_grants.sql hands every later table client grants, and three tables then shipped with a permissive write policy on top of that: plugin_downloads (#488), completed_authentications (#536) and secret_access_log / plugin_api_key_logs (#538). Each was caught by a person reading a migration. identity-disclosure audit. That audit asks who can READ identity. Neither it nor the default-privileges change reaches the shape above: a default-privilege revoke is not retroactive, CHECK 3 filters `cmd in ('SELECT','ALL')` so an INSERT policy is invisible to it, and CHECK 3b filters `not relrowsecurity` while both #538 tables had RLS enabled with a permissive policy. Adds supabase/audit/client_grant_audit.sql with two exact catalog checks: * G1 names any public table a client role can reach without RLS. No allowlist, because all 34 tables in the schema enable RLS today. * G2 names any INSERT/UPDATE/DELETE/ALL policy reachable by anon, authenticated or PUBLIC whose predicate is the literal `true`. G2 keys on the predicate, not on a missing `TO` clause. The missing `TO` is how all three slipped past review, but 101 of the 128 policies in this schema omit it, so gating on that would report most of the schema. Predicate plus write plus client role matches two policies in the whole schema, and both are the ones #538 removes. G2 is asserted as a subset rather than as HEALTHY while those two are still on dev, so the gate passes before and after #538 and still fails on anything new. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(db): exclude restrictive policies from write lint * docs(db): state audit limits and cross-suite regression coverage * docs(db): name the exact companion policy assertion --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Shivang <shivang.iitk@gmail.com> * fix(browser): actually warn before downloading an executable file (#484) * fix(browser): actually warn before downloading an executable file warnForExecutables defaults to true and its KDoc promises a warning before a recognized executable finishes downloading, but the branch that was supposed to show it was an empty TODO block ("for now, just proceed") - so the download always proceeded silently regardless of the setting, for every user, with no way to turn the (nonexistent) warning off since there is no Settings UI for it either. confirmExecutableDownload mirrors pickSaveFile's own pattern exactly, since both are called from the same synchronous StartDownloadCallback and both need a blocking answer before it returns: a Swing confirm dialog run via SwingUtilities.invokeAndWait, failing closed (treated as cancel) if the dialog itself cannot be shown, matching how a null save path from pickSaveFile already cancels the same callback. Declining releases the claimed save path and cancels the download the same way the existing parent-directory-failure bail does, just above it in the same callback. * fix(browser): close executable consent and cancellation gaps * fix(browser): bind download consent to a usable window and explicit choice * feat(browser): add a user-facing toggle for the executable download warning Settings > Browser > Downloads > "Warn before downloading executable files", on by default. BrowserSettings.warnForExecutables is persisted through the existing BrowserSettingsManager JSON store alongside the other browser toggles, and FluckEngine reads it live at download time instead of the unpersisted DownloadSettings copy, so a change applies to the next download without restarting BOSS. Disabling it skips only the executable warning; filename checks, save-path handling and cancellation cleanup are unchanged. Addresses the maintainer's follow-up on #484. * fix(settings): index the executable-download-warning toggle for search SettingsSearchIndexDriftTest failed CI on all three platforms: the new "Warn before downloading executable files" toggle (Settings > Browser > Downloads) had no entry in SettingsSearchIndex, so Settings search could not find it. Added a Downloads group under the FLUCK section, extracted into its own downloadsEntries() helper alongside the existing fileAndLinkEntries() to keep browserEntries() under detekt's LongMethod threshold. * fix(browser): pin the warning toggle's persistence and volatility - BrowserSettingsManager: settingsFile is now an internal var with a reloadForTest() seam (same pattern as DefaultAppsSettingsManager), so the persisted-value tests exercise the real saveSettings/load path instead of re-stating the assignment; covers save+reload round-trips, a file predating the key, and a corrupt file - ExecutableDownloadConsentTest: the live-read test re-implemented the call site, so it now pins the StartDownloadCallback argument textually (SettingsSearchIndexDriftTest idiom) - a revert to the unpersisted downloadSettings copy now fails the build - BrowserSettings.warnForExecutables is @volatile: written on the Compose UI thread, read on the JxBrowser download callback thread - DownloadSettings.warnForExecutables removed: no reader left it; the live flag is BrowserSettings.warnForExecutables * test(browser): make the persistence tests measure the reload, not the assignment Addressing the second Claude review of 70a4874: - default test asserted process-global state that the test's own @beforeeach causes to be loaded from the developer's real settings file - it would pass in CI and fail on a machine with the toggle off. It now pins the persisted shape's default; the in-memory direction is carried by the predating-key reload test. - the round-trip test moved the in-memory value away between save and reload, so deleting the load-apply in BrowserSettingsManager now fails it. - the whole persisted shape (all eleven fields, including the four system-property mirrors) is snapshotted in @beforeeach - after the first access that may trigger the manager's real-file load - and restored in @AfterEach, since reloadForTest() rewrites all of them. - reloadForTest KDoc states the deliberate no-reset divergence from DefaultAppsSettingsManager.resetForTest. * fix(browser): test the download dialog's owner resolution and surface it R1: the dialog-owner resolution (active window, else a fallback, else refuse) was the only new decision in the executable-download warning with no test - the branch that silently cancels a user's download had nothing pinning it. Extracted pickDialogOwner(activeWindow, candidates), mirroring resolveActionableWindowIdFrom's own pure-function split, and added cases covering active-window-wins, non-displayable-active falling back, and no-usable-owner refusing. R2: the fallback resolved exactly one window id and refused outright if it wasn't displayable, even when another registered window was open - reachable in the interval where a window has been disposed but its EDT unregister hasn't run yet. pickDialogOwner now takes an ordered list of candidates and scans all of them; WindowFocusManager. candidateWindowsForDialogOwner() supplies that list (the resolved fallback window first, then every other registered window), covered by a test where the first candidate is stale and a later one is usable. R3: nothing called toFront()/requestFocus() on the resolved owner, so a background BOSS could still show this modal somewhere the operator doesn't see, with the JxBrowser callback thread waiting behind it. Already running on the EDT inside confirmExecutableDownloadOnEdt's own Runnable, so this calls AWT directly rather than needing invokeLater. * fix(review): preserve current release metadata in download consent PR * fix(review): tighten executable consent cleanup and default coverage --------- Co-authored-by: Shivang <shivang.iitk@gmail.com> * test: harden source convention scans (#508) Co-authored-by: sgoel2be24-cyber <223222024+sgoel2be24-cyber@users.noreply.github.com> * fix(plugins): scope PluginStorageFactory.createStorage to the calling plugin's own id (#548) * fix(plugins): scope PluginStorageFactory.createStorage to the calling plugin's own id TrackingPluginContext (the only PluginContext a plugin's own code ever holds - every registration path wraps createSandboxedContext in one before calling register()) exposed the raw, unscoped PluginStorageFactory straight through from its delegate. That factory takes an arbitrary pluginId per call and the desktop implementation persists purely off that string (~/.boss/plugin-data/{pluginId}/storage.properties), with no check anywhere that it names the caller. Any installed plugin could reach another plugin's persisted data with nothing more than: context.pluginStorageFactory?.createStorage("victim-plugin-id") - read, overwrite, or clear() it. Added ScopedPluginStorageFactory, which binds createStorage to the context's own pluginId (a construction-time value the plugin does not control) and ignores whatever id the caller passes in - the same pattern DownloadCenterProviderImpl.forPlugin already uses to keep one plugin's transfer ids from colliding with or addressing another's. SandboxedPluginContext is untouched: it already passed downloadCenterProvider through unscoped in the same way, since TrackingPluginContext wraps it and is the only context a plugin ever sees - matching that existing, working precedent rather than adding a second, redundant scoping layer. Added tests/TrackingPluginContextStorageScopeTest.kt: the underlying factory is only ever asked for the context's own plugin id regardless of what a caller requests, and a write made through one plugin's storage reference never lands in another plugin's real storage. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * test(plugins): model shared storage in isolation regression * test(plugins): assert scoped provider identity and document boundary --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Shivang <shivang.iitk@gmail.com> * fix(browser): validate co-browse control payloads before splicing into JS (#549) Validate remote co-browse control objects before embedding them in page JavaScript. Reject unquoted expressions recursively and preserve valid control messages and escaped string data. Original diagnosis, object guard and six regression tests by Antriksh. Prior review repair adds recursive token validation and four regressions; contributor replayed all three commits cleanly onto dev. All ten hosted checks and ten focused tests pass. Co-authored-by: Antriksh <antrikshsingh850@gmail.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * fix(kernel): require verified caller identity for the Supabase proxy and Download bridges (#550) * fix(kernel): require verified caller identity for the Supabase proxy and Download bridges SupabaseServiceBridge is a generic, unrestricted Postgrest proxy backed by the signed-in user's own RLS-scoped Supabase session - its rpc() reaches the same create_secret/update_secret RPCs SecretServiceBridge exists to protect, and select() can read any table RLS exposes. Neither select nor rpc checked caller identity (BossConsole#53), so any local process reaching the kernel's IPC socket had the same reach as a legitimately installed plugin, attributable to nobody. Both now require a verified process identity, matching SecretServiceBridge's established pattern, with audit logging on every call. DownloadServiceBridge.openFile/revealInFolder shell out to the OS's own "open with default application" command for any path that exists on disk, with no check that the path has anything to do with a download - before this, an unauthenticated caller on the IPC bridge could make BOSS execute any file on disk via the OS default-handler mechanism, completely bypassing BossConsole#484's executable-download-warning consent dialog (that path never goes through it at all). Every RPC on the bridge now requires a verified caller identity, and openFile/revealInFolder are additionally confined to a path this provider's own downloads list is currently tracking - canonical-path compared, so a symlink or a `..` cannot walk outside it - turning "open any file that exists" into "open a file BOSS itself downloaded". Both bridges get real gRPC-server-and-client tests (matching PluginUIServiceBridgeTest's pattern): an anonymous caller is refused with PERMISSION_DENIED on every RPC, the underlying provider is asserted never invoked on a refusal, and DownloadServiceBridge additionally covers an authenticated caller naming a path outside the tracked set. * fix(kernel): revalidate download streams and use checked paths * fix(kernel): capture stream identity and reject empty download paths * style(tests): align download regression expression wrapping * fix(kernel): clear code-quality on the download/supabase caller-identity branch detekt's default MaxLineLength (120) rejected a 128-char assertEquals in DownloadServiceBridgeTest that ktlint's wider 140-char .editorconfig limit had let through - wrap it. Also finishes the finding-6 KDoc reword the bot review flagged as ungrammatical ("this is the path does not provide" -> "this path provides no executable-consent step") and reflows that paragraph. No behavior change; addresses the last remaining code-quality blocker noted in the PR's review thread. --------- Co-authored-by: Shivang <shivang.iitk@gmail.com> * fix(plugins): give a plugin's file panel an owner and its own directory mode (#551) (#552) * fix(plugins): give a plugin's file panel an owner and its own directory mode (#551) FilePickerProviderFactory created every panel as FileDialog(null as Frame?, ...) and showed it with a bare isVisible = true. Two consequences, and they are different failures. No owner. The panel has no window to be modal to and none to come forward over, so it can open behind the Compose window. onResult(null) then reaches the plugin looking exactly like a cancel. No directory mode. apple.awt.fileDialogForDirectories is process-wide and read by the native peer at creation, and a modal panel runs a nested event loop on the EDT that keeps dispatching. NativeFileDialogs already recorded this file as one of three that create a LOAD dialog without stating the flag, and the consequence it named: such a panel opened inside the browser's folder panel comes up as a directory chooser. That part is a defect independent of the reported symptom. NativeFileDialogs had already solved both for the browser's own panels, and its comment says the durable fix is to route every FileDialog in the tree through one helper. This extracts that helper rather than adding a third copy of it. NativeFileDialogs now delegates to it and loses its private duplicates, so the two cannot drift. The property discipline is split out as withDirectoryMode so it is testable without a display: an absent property is cleared rather than written back as "false", a present one is restored verbatim, nesting unwinds in reverse, and a throwing body still restores. Seven tests cover it. The owner selection and the panel itself are not covered and cannot be from a headless test. The catch blocks now log at error rather than warn and say that the plugin will see the failure as a user cancel, since onResult(null) is the only channel this API has and the log is the only place the difference exists. 570 tests in the browser package pass, including the existing NativeFileDialogs suite. ktlint and detekt clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(plugins): preserve save filters from PR 611 Consolidate Jaspreet Singh’s save-filter addition into arjun28115’s shared owned-dialog implementation. Remove comments left behind by the helper extraction. Co-authored-by: Jaspreet Singh <jaspreetsinghupkar@gmail.com> * test(pickers): preserve pre-existing directory flag in teardown * fix(pickers): deliver one result per pick, and accept a dotted extension The two shared-provider defects handed back on #552. Neither came from the ownership change; both live in the picker this PR touches, and both are silent. 1. `onResult` was called inside the same `try` that catches picker failures, so a plugin whose callback threw received its path and then a `null` immediately after. `null` is indistinguishable from a cancel, so one pick produced two answers and the second one was wrong. Delivery now goes through `deliverOnce`, which sets its flag before invoking, so a throw from the plugin's callback cannot be retried by the catch. The two throws are told apart by when they happen: a picker failure arrives before delivery and still reports the cancel. 2. The API takes `List<String>` and says nothing about the spelling, so plugins pass both `csv` and `.csv`, and every consumer appended its own dot. The macOS filter tested `name.endsWith(".$ext")` and Swing's FileNameExtensionFilter adds the dot itself, so `.csv` was matched as `..csv`. No file is named that, so the filter hid every valid choice instead of narrowing to them. `normalizedExtensions` strips a leading dot and drops blanks, and both platforms and both methods now route through it. Normalising rather than declaring a bare-extension contract, because the contract is not checkable at the plugin boundary and the failure it produces is a panel that lists nothing, which reads as "no matching files here". Both fixes are in Open and Save. The Save path also gains a comment saying what its filter does NOT do: a native SAVE panel narrows what is listed and does not constrain what the user types, so the returned path may still carry any extension or none. The three helpers are `internal` and pure so the rules are testable without an AWT panel on the EDT. The provider calls exactly these, so reverting a call site is a compile error rather than a silently unexercised test. 11 tests cover one delivery per pick, a throwing callback, a failure before delivery, csv/.csv, mixed case, whitespace, blank-only and empty filter lists. ktlint 1.8.0 clean; no line over 120 columns. No local test run is claimed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(pickers): repair what CI caught on the rebased head Two failures, both mine, neither caused by the rebase. `compileTestKotlinDesktop` failed at FilePickerDeliveryTest:34. `assertEquals` takes one type parameter for both arguments, and `listOf("...")` against a `MutableList<String?>` gives it nothing to unify, so inference failed outright. The expectation is now spelled `listOf<String?>(...)`, matching the two assertions further down that already were. The `emptyList()` expectations are spelled `emptyList<String>()` for the same reason, before they hit it too. `detekt` failed on SpreadOperator at both FileNameExtensionFilter constructions. The rule is not new and the code is not either: renaming `filters` to `extensions` moved the element out of whatever suppressed it before. Suppressed at the two functions with the reasoning written out, matching what NativeFileDialogs.onOpenFiles in this same PR already does. The spread is over a plugin's declared filter list, a handful of entries, and FileNameExtensionFilter is Java varargs with no collection overload to prefer. Worth saying plainly: a type error is something a compile would have caught and I shipped it without one. There is no working Gradle path on this machine, so ktlint is the only gate I can run locally, and it does not type-check. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Shivang <shivang.iitk@gmail.com> Co-authored-by: Jaspreet Singh <jaspreetsinghupkar@gmail.com> * feat(mcp): trust a whole plugin's tools at once, not one at a time (#542) * feat(mcp): trust a whole plugin's tools at once, not one at a time Adds a "Trust This Plugin" option to the MCP tool approval dialog - a persisted, provider-wide ALLOW covering every tool a plugin contributes, not just the one call being approved. Answers the actual friction: a plugin with several mutating tools currently means approving each one individually, in the same session, one at a time. McpToolPolicyConfig gains a second rule map, providerRules, keyed by providerId rather than tool name. policyFor(toolName, providerId) now resolves both, with DENY - at either level - always winning first and unconditionally: a provider-wide DENY is not "most specific wins" and must not be overridable by a narrower per-tool ALLOW, the same posture DENY already has against session trust everywhere else in this engine. Below that: session trust, then an explicit tool-specific rule (ALLOW or ASK), then the provider's own ALLOW, then the risk-based default. providerId is an optional parameter so an existing caller that only ever checked a tool name keeps compiling. setToolPolicy, the new setProviderPolicy and revokeProviderPolicy now share one persistAndPublish helper for the persist-and-fault-report shape, so a future change to how a write failure is logged or reported cannot update one path and silently miss the others - the mistake a similar policy engine made once already by not sharing this logic. revokeProviderPolicy removes the key rather than rewriting it to some neutral value, for the same reason. McpApprovalDecision.Approved gains a trustProvider flag alongside the existing trustForSession one. Persisting it is a synchronous disk write, so it runs under withContext(Dispatchers.IO) rather than on whatever dispatcher delivered the MCP call - and a failed persist doesn't block the call the operator already approved past; it falls back to session trust for that one tool instead; a new PROVIDER_TRUST_PERSIST_FAILED ledger disposition records that the durable grant did not save. The new button sits in its own row below the main actions, not next to "Approve Once" - it is the broadest grant this dialog can make, so it should take a deliberate reach rather than risk a fast click landing on it by mistake. A caption names the scope. Revocation is a new McpProviderTrustDialog (list + per-row revoke, mirroring the shape an equivalent per-tool dialog would need) reachable from a "Trusted plugins (n)" button in the bottom bar, next to the existing session- trust revoke button - only shown once a provider is actually trusted. Test plan: McpProviderPolicyTest pins policyFor's full precedence table (provider ALLOW/DENY against tool rules, session trust, the policy-unreadable fault) and persistence (round-trips through a real file; revoke removes the key, survives reload; revoking one provider leaves another's trust untouched). McpGovernedInvocationTest adds two integration cases through the real registry: approving one tool with trustProvider lets a sibling tool from the same provider through with no second prompt and no session-trust call, and revoking provider trust makes its tools ask again. No Compose-level test for the dialogs themselves - no test infrastructure exists yet for this UI layer on this branch (no ScrimmedModalSemanticsTest-style harness), noted here rather than left unstated. Verified: full :composeApp:allTests passes except the two pre-existing, environment-specific Windows symlink-privilege failures already known from earlier this week (DesktopFileScannerTest, DiscardDownloadContainmentTest). ktlintCheck/detekt clean. * test(mcp): pin the provider-trust persist-failure fallback A failed provider-wide persist must still run the already-approved call, record PROVIDER_TRUST_PERSIST_FAILED, session-trust only that one tool, and leave the provider's other tools asking. Mirrors the blocked-write setup the per-tool failure case in McpPersistentApprovalTest uses. Agent-side regression coverage added during sweep BOSS_SWEEP_20260911_mcp-policy; not part of the author's submission. * fix(mcp): guard provider-wide trust writes against a stale approval dialog trustProvider ("Trust This Plugin") called setProviderPolicy directly, with none of the revocation/DENY/availability guards validateApproval already applies before setToolPolicy's persisted write. A revoke or DENY landing while the dialog was open (e.g. an operator resetting the tool from "Persisted MCP policies") could be silently overwritten: the call in hand was correctly withheld, but the provider-wide ALLOW still persisted, leaving every other tool that provider contributes AUTO_ALLOWED from an authorization the reset was supposed to invalidate. setProviderPolicy now takes the same preserveDeny/expectedRevocation guards setToolPolicy has, checked under the same lock, plus an optional toolName since the revocation check is inherently per-tool. The trustProvider branch in approvedAuthorization pre-checks isAvailable/revocationVersion/policyFor before writing (mirroring validateApproval exactly) and, on a false return, disambiguates a guard refusal (POLICY_DENIED, call does not run) from a genuine disk failure (PROVIDER_TRUST_PERSIST_FAILED, call still runs - the existing, deliberate fallback for that case). New regression test in McpGovernedInvocationTest reproduces the review's exact scenario (a revokePersistedPolicy landing while a prompt is open) and confirms it fails without the fix. AGENTS.md's governed-MCP section now documents provider-wide trust as its own scope, including the deliberate asymmetry between a stale-dialog refusal and a disk-failure fallback. * fix(mcp): invalidate queued grants when provider trust is reset * fix(mcp): clear code-quality on the provider-scoped-policy branch detekt flagged setProviderPolicy's preserveDeny guard as ComplexCondition (4 boolean/comparison operators inline) and a 121-char assertEquals in McpProviderRevocationTest as MaxLineLength (over detekt's default 120, though under ktlint's wider 140-char .editorconfig limit). Extract the DENY check into isProviderOrToolDenied() - same behavior, named and testable on its own - and wrap the long assertEquals. No behavior change. --------- Co-authored-by: Shivang <shivang.iitk@gmail.com> * fix(keymap): make an explicit Ctrl chord fire on the Control key off macOS (#553) (#559) Make explicit Ctrl bindings fire on Control off macOS, with shared capture/matching rules and platform-aware chord identity for conflict detection and migration. Preserve distinct macOS modifiers and reject unsupported Super capture. Original implementation and contributor follow-up by @arjun28115. Earlier review-agent work integrated dev, rejected unsupported Super captures, and corrected comments; those repairs are separately credited in the PR description. Closes #553. * fix(chrome): restore a minimized window before focusing it (#560) (#561) Restore iconified frames before focusing through either WindowFocusManager entry point, preserving maximized state. Original shared helper and headless mask tests by @arjun28115 (#561). Independent equivalent implementation and missing-target regression by @Sahvendra7 (#580), retained through consolidation. Earlier review-agent work integrated that regression and clarified restore ordering and documentation. Closes #560. Co-authored-by: Sahvendra <shyamajanidhaka@gmail.com> * fix(cli): prevent readiness queue lost commands (#633) * fix(cli): prevent readiness queue lost commands * fix(cli): close initialization queue race and guard deferred logging --------- Co-authored-by: ayush <workside@gamil.com> Co-authored-by: Shivang <shivang.iitk@gmail.com> * fix(cli): queue external command approval prompts * fix(cli): guard queued approvals against double clicks and floods * fix(cli): log command holding only after enqueue succeeds --------- Co-authored-by: arjun28115 <singlaarjun28@gmail.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Antriksh <antrikshsingh850@gmail.com> Co-authored-by: Shikhar Goel <sgoel2_be24@thapar.edu> Co-authored-by: sgoel2be24-cyber <223222024+sgoel2be24-cyber@users.noreply.github.com> Co-authored-by: Jaspreet Singh <jaspreetsinghupkar@gmail.com> Co-authored-by: Sahvendra <shyamajanidhaka@gmail.com> Co-authored-by: Ayush Santosh Chhatre <109429245+Ayush04-C@users.noreply.github.com> Co-authored-by: ayush <workside@gamil.com>
GitServiceBridge had no caller-identity check on any of its fourteen RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could read the open project's full commit history and working-tree status, and could discardChanges (destroying uncommitted work), checkout, cherryPick or revert against the project's real git repository with no credential at all. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The four watch streams (file status, commit log, is-repo, is-loading) capture identity synchronously before returning and re-check it on every emission, so a revoked token stops a live stream rather than only new calls - matching the shape PR risa-labs-inc#550's review settled on for this bridge's siblings.
LogServiceBridge had no caller-identity check on any of its nine RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could watchLogs to see the live stdout/stderr stream of the running BOSS process, or call exportLogs to pull its full history, with no credential at all. Unlike a bridge whose values are deliberately routed through LogSanitizer at the call site, nothing about this stream is scrubbed for IPC exposure - it is whatever every logger.info/warn/error call site across this large and growing codebase happened to write, which is not a guarantee that none of it is a stack trace, a file path, or something else nobody meant to expose to an arbitrary local process. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The four watch streams capture identity synchronously before returning and re-check it on every emission, matching the shape PR risa-labs-inc#550's review settled on for this bridge's siblings.
ActiveTabsServiceBridge had no caller-identity check on any of its seven RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could watchActiveTabs to see every open tab's title and URL across every window (browsing history and open documents, disclosed with no credential), and could createBrowserTab to force the browser to navigate to an arbitrary URL, or closeTab/selectTab to manipulate what the user is looking at. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The one watch stream captures identity synchronously before returning and re-checks it on every emission, matching the shape PR risa-labs-inc#550's review settled on for this bridge's siblings.
* fix(kernel): require verified caller identity for the Git bridge GitServiceBridge had no caller-identity check on any of its fourteen RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could read the open project's full commit history and working-tree status, and could discardChanges (destroying uncommitted work), checkout, cherryPick or revert against the project's real git repository with no credential at all. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The four watch streams (file status, commit log, is-repo, is-loading) capture identity synchronously before returning and re-check it on every emission, so a revoked token stops a live stream rather than only new calls - matching the shape PR #550's review settled on for this bridge's siblings. * style(tests): wrap chained builder calls in GitServiceBridgeTest Real CI's ktlintDesktopTestSourceSetCheck flagged chain-method-continuation violations (a local run had missed this) - wrap the affected builder chains onto their own lines, per ktlintFormat. No behavior change. * test(kernel): cover revoked callers and log stream refusals --------- Co-authored-by: Shivang <shivang.iitk@gmail.com>
* fix(kernel): require verified caller identity for the Log bridge LogServiceBridge had no caller-identity check on any of its nine RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could watchLogs to see the live stdout/stderr stream of the running BOSS process, or call exportLogs to pull its full history, with no credential at all. Unlike a bridge whose values are deliberately routed through LogSanitizer at the call site, nothing about this stream is scrubbed for IPC exposure - it is whatever every logger.info/warn/error call site across this large and growing codebase happened to write, which is not a guarantee that none of it is a stack trace, a file path, or something else nobody meant to expose to an arbitrary local process. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The four watch streams capture identity synchronously before returning and re-check it on every emission, matching the shape PR #550's review settled on for this bridge's siblings. * test(kernel): verify revocation and diagnose stream refusals --------- Co-authored-by: Shivang <shivang.iitk@gmail.com>
* fix(kernel): require verified caller identity for the Git bridge GitServiceBridge had no caller-identity check on any of its fourteen RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could read the open project's full commit history and working-tree status, and could discardChanges (destroying uncommitted work), checkout, cherryPick or revert against the project's real git repository with no credential at all. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The four watch streams (file status, commit log, is-repo, is-loading) capture identity synchronously before returning and re-check it on every emission, so a revoked token stops a live stream rather than only new calls - matching the shape PR #550's review settled on for this bridge's siblings. * style(tests): wrap chained builder calls in GitServiceBridgeTest Real CI's ktlintDesktopTestSourceSetCheck flagged chain-method-continuation violations (a local run had missed this) - wrap the affected builder chains onto their own lines, per ktlintFormat. No behavior change. * test(kernel): cover revoked callers and log stream refusals --------- Co-authored-by: Shivang <shivang.iitk@gmail.com>
* fix(kernel): require verified caller identity for the Log bridge LogServiceBridge had no caller-identity check on any of its nine RPCs. Any process able to open a connection to the kernel IPC server - not only the plugins the host itself loaded - could watchLogs to see the live stdout/stderr stream of the running BOSS process, or call exportLogs to pull its full history, with no credential at all. Unlike a bridge whose values are deliberately routed through LogSanitizer at the call site, nothing about this stream is scrubbed for IPC exposure - it is whatever every logger.info/warn/error call site across this large and growing codebase happened to write, which is not a guarantee that none of it is a stack trace, a file path, or something else nobody meant to expose to an arbitrary local process. Gate every RPC behind authenticatedCallerOrRefuse(), the same PERMISSION_DENIED-on-no-identity pattern PluginUIServiceBridge established for BossConsole#53. The four watch streams capture identity synchronously before returning and re-check it on every emission, matching the shape PR #550's review settled on for this bridge's siblings. * test(kernel): verify revocation and diagnose stream refusals --------- Co-authored-by: Shivang <shivang.iitk@gmail.com>
Summary
Two more unauthenticated IPC bridges closed, following the same BossConsole#53 pattern as
SecretServiceBridge/RoleManagementServiceBridge.SupabaseServiceBridgeis a generic, unrestricted Postgrest proxy: it runs every call on the signed-in user's own RLS-scoped Supabase session.rpc()reaches the exact samecreate_secret/update_secret/share RPCs the Secret Manager UI calls (see AGENTS.md's "Decoding Supabase payloads" section), andselect()can read any table RLS exposes to that user - this bridge is not scoped to one feature, it is the whole Postgrest surface. Neitherselectnorrpcchecked caller identity: any local process reaching the kernel's IPC socket had the same reach as a legitimately installed plugin, attributable to nobody. This does not change what an authenticated caller may do (every in-process plugin already has identical unrestricted access viaPluginContext.supabaseDataProvider- an existing, accepted design decision) - it only closes whether the caller is even a real, spawned BOSS process at all.DownloadServiceBridge.openFile/revealInFoldershell out to the OS's own "open with default application" command (open/start/xdg-open) for any path that exists on disk, with zero check that the path has anything to do with a download. Before this fix, an unauthenticated caller on the IPC bridge could make BOSS execute or open any file on disk via the OS default-handler mechanism - for an executable,start "" file.exeand a double-click are the same action. This bridge path provides no executable-consent step. This PR confines access to tracked downloads; it does not add executable consent for authenticated callers.Changes
ProcessIdentityInterceptor.AUTHENTICATED_PROCESS_IDon every RPC, refusing withPERMISSION_DENIEDand logging viaBossLoggerwhen absent - matchingSecretServiceBridge's establishedauthenticatedCallerOrRefuseshape.SupabaseServiceBridgeadditionally logs every call (caller, rpc, target) for audit purposes, since this proxy has no read-only concept - aselectis as capable of exposing a secret asrpc("get_user_secrets", ...).DownloadServiceBridge.openFile/revealInFolderget a second, narrower guard: the requested path is canonicalized and compared against every currently-trackedDownloadItemData.destinationPath, refusing any path not in that set. This turns "open any file that exists" into "open a file BOSS itself downloaded" - the only thing either RPC's name actually promises.Test plan
SupabaseServiceBridgeTestandDownloadServiceBridgeTest, both real gRPC-server-and-client tests (matchingPluginUIServiceBridgeTest's pattern viaProcessIdentityInterceptor/ProcessTokenRegistry/ProcessTokenClientInterceptor):PERMISSION_DENIEDon every RPC, with the underlying provider asserted never invoked - a refusal that still reached the provider would defeat the point.DownloadServiceBridgeTestadditionally covers an authenticated caller naming a path outside the tracked-downloads set (refused) and inside it (allowed)../gradlew :composeApp:compileKotlinDesktop :composeApp:compileTestKotlinDesktopclean../gradlew ktlintCheck detektclean.Attribution and current validation
Antriksh (@Antriksh1984) authored the identity gates, Supabase audit logging, tracked-download path restriction and original 15 wire tests. The clean dev replay retains that contribution as
a3f41305e. Prior reviewer work (5efc93b90,e53e7e8d0,358cf43e0) added per-emission revocation checks, synchronous context capture, canonical-path forwarding and blank-path regressions. Antriksh subsequently fixed the reviewer assertion formatting and KDoc at283763122. These repairs are separately attributed and do not change the original contribution score.Current head
2837631222dca7c3f956607900e82c76704a87f1: hosted Build & Test succeeds on Linux, macOS and Windows; quality and all other checks are green. Downloaded current-head Ubuntu test XML verifies 14 DownloadServiceBridge tests and 4 SupabaseServiceBridge tests, zero failures/errors/skips. Current-head Claude review reports no blocker: #550 (comment) . See the sweep review comment for the authoritative review link and disposition.The prior draft validation handoff is superseded by this current-head evidence. Local rerun remains queued under the shared build lock, so no local pass is claimed. No app launch or live database deployment occurred. These host-side IPC changes have no visual UI delta.
Limitations: stream revocation takes effect before the next emission, not proactive connection teardown; the download list is a sampled snapshot; canonical-path checking does not prevent same-user filesystem races or add executable consent. Shared transport/helper consolidation remains separate #575 work.