Repository navigation
Workspaces (multi-tenancy): design doc - #220
Merged
Merged
Conversation
The 1.5.0 preparation for feature 5 of #178 is this document; the schema does not change yet. Agent names are global and double as the ADK app name, so the doc keeps them unique across the installation. The real work is scoping every dashboard route by workspace, with a test that walks all routes against two workspaces. It proposes workspaces and members, workspace_id on projects and on log rows, a default workspace for existing data, and lists provider keys per workspace as the question that decides the rest.
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.
Part of #178, feature 5 (a 2.0 theme). For 1.5.0, the preparation is this design doc:
documents/design/workspaces.md. The schema doesn't change yet.What the code shows
/apps/{name}, the session keys,token_usage_logs.agent_nameand agent budget scopes.Proposal
workspaces, andworkspace_memberswith the rolesowner,adminandmember.projects.workspace_id, and everything that belongs to a project follows from it.workspace_id, written when the row is written (usage, guardrails, responses, audit). Costs and audit entries stay where they were recorded, even when agents move or are deleted.workspacescope, and personal access tokens are bound to one workspace.(workspace_id, role);/dashboard/api/route against a two-workspace fixture, so a missed filter fails CI.Open questions:
A cheap step for after 1.5.0, useful even without workspaces: write
project_idontotoken_usage_logsandaudit_logs.