feat(hub): contain cross-tenant dispatch at Workbench seams - #723
Merged
Merged
Conversation
TheGreatAxios
force-pushed
the
cl-7324-dispatch-containment
branch
6 times, most recently
from
September 15, 2026 21:12
8647767 to
4ea4503
Compare
Guard the two Workbench-owned dispatch seams so a foreign-tenant allocation can never dispatch against an anchor run of another tenant: service-level tenant_mismatch (retryable, never terminal) wraps deployReadyAllocation, and the mail/signals dispatch routes answer 403 allocation_tenant_mismatch before enqueue/grant materialization. Documents the closed dispatchable-backend set in config. Fixes CL-7324
TheGreatAxios
force-pushed
the
cl-7324-dispatch-containment
branch
from
September 15, 2026 21:46
4ea4503 to
552e759
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements CL-7324 Option A (bench-owner, hub-provisioned, tenant-bound dispatch only; Workbench-side containment; vendor/intx untouched).
Guards the two Workbench-owned dispatch seams so a foreign-tenant allocation can never dispatch against an anchor run of another tenant:
tenant_mismatch(never terminal, never falls through to another tenant) with reportError context.allocation_tenant_mismatchon the mail/signals dispatch routes before enqueue/grant materialization.Zero edits under vendor/intx.
Verification
apps/hub/src/dispatch-tenant-guard.test.ts: 10 pass (tenant-mismatch retry, 403 on foreign allocation, no fall-through, fail-closed on missing anchor)bun test apps/hub/src: 114 pass / 0 fail across 23 filestsc --noEmitin apps/hub: clean; eslint on touched files: cleanFixes CL-7324