feat(code): support multi-team workspace routing - #38
Merged
Conversation
Contributor
Author
|
🔀 This branch had merge conflicts with |
Contributor
Author
|
🔀 This branch had merge conflicts with |
danii1
force-pushed
the
feature/dev-57
branch
from
September 3, 2026 09:41
e0e3a60 to
ff750fd
Compare
danii1
force-pushed
the
feature/dev-57
branch
from
September 3, 2026 09:43
ff750fd to
97b8c72
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
Rewrites DEV-57 on top of #124's workspace-only worker commands. One workspace worker can now poll multiple teams, tracker accounts, or tracker products without sharing clients, credentials, cursors, or dedupe state.
This is intentionally a breaking workspace configuration change: workspace mode has not shipped to customers, so the implementation does not retain the earlier experimental shape.
Configuration model
Each
[[teams]]entry defines a named tracker source:repois a fixed team-to-repository mapping. A fixed team ignores unscoped routing rules and cannot also have team-scoped rules.For a team that spans several repositories, omit
repoand route explicitly:Team-scoped and unscoped rules apply to an unfixed team. Conflicting matches fail as ambiguous; no match in a multi-repo workspace fails as unrouted. A one-repo workspace retains the only-repository fallback.
Credentials compose in this order:
.envenv_file[teams.env]Task subprocesses also receive the selected team's tracker and identity, so comments and transitions return to the correct board.
Runtime behavior
process.envbetween team ticks.devintern worker ...command surface from refactor(code): consolidate workspace commands under worker #124; there is no standalone workspace command or--repocompatibility path.devintern worker connect <tracker> --team <name>uses the selected team's credentials. The team is inferred when exactly one team uses that tracker.Documentation
Updates the workspace, worker, relay, scaffold, and changelog documentation, including fixed-team and multi-repository-team examples, routing precedence, environment precedence, reload behavior, and the current relay limitation.
Verification
bun run formatbun run lint(existing warnings, zero errors)bun run typecheckbun run test— 1,338@getdevintern/codetests pass; all monorepo packages passbun run buildBase
Rebased directly onto
mainafter #124 merged. The PR now contains one feature commit on top of the consolidated workspace-only worker command surface.