Repository navigation
Workspaces phase 2m: what the review of 2l found (#277) - #331
Merged
Merged
Conversation
A review of 2l alone (5cad65f..484f9f3) found no cross-workspace path, which closes phase 2. These are its bugs: - A parent with a non-ASCII name had no sub-agents: json.dumps stores the name with \u escapes, which the parent_agents LIKE missed. Building the tree, a rename and a project move now match both spellings (may_name_as_parent). - The eval pages' test case list, history, suite scores and the regression check count the workspace's test cases only. - The admin check resolves a platform admin's workspace off the event loop too, and writes a denial's audit row off it. - A trigger's project_id of true or 2.5 is a 400; create and update parse it once. - An import naming no project goes to project 1 where the workspace has it, else to its oldest project. - The 2l tests follow PEP 8 and carry type hints.
This was referenced Nov 11, 2026
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 #277. A review of 2l alone (
5cad65f..484f9f3) found no cross-workspace path, which closes phase 2. This PR fixes the bugs it did find.Changes
Non-ASCII parent names.
is_agent_nameaccepts any identifier, such aspomoćnik.parent_agentsis written withjson.dumps, which stores that name as"pomoćnik". TheLIKE '%"pomoćnik"%'lookup therefore found no children:AgentManager.get_subagents) gave such a parent no sub-agents;The new
may_name_as_parentmatches both spellings, with_and%escaped, and the list is then compared exactly. Checked on MySQL 8.Eval pages. These queries now count only the current workspace's test cases, as the playground has since 2l:
A test case always has its agent's workspace, so this is consistency, not a leak.
Dashboard admin check.
Trigger
project_id.trueand2.5are a 400; before, they became projects 1 and 2. Create and update parse the value once.Import. An agent or memory block naming no project goes to project 1 when the workspace has it, and to the workspace's oldest project otherwise. This covers a Default workspace whose project 1 was deleted.
2l tests. They now follow PEP 8 and carry type hints: no lambda assignment, hinted helpers.
Not changed:
rollback()runs on every model call. It costs one round trip, andget_or_create_userdoesn't report whether it created the user.Tests
TestReviewOfPhase2l: six tests, and each fails without its fix.test_client_contract: 12/12, unchanged.gen_docs --check: OK.Docs
Updated:
docs/user/agents.md: the import rule.docs/user/evals.md: the page shows the workspace's evals.driftalso lists these guides, which still hold:docs/user/triggers.mdanddocs/dev/trigger-engine.md:project_idvalidation isn't described.docs/dev/agent-runtime.md: "rows whoseparent_agentsJSON list contains the parent's name" is still what the code does.docs/dev/alerts.mdanddocs/dev/template-format.md: untouched code indashboard_server.py.docs/dev/auth-and-access.md: "makes it to check for an admin, in a thread … the route's dependency reuses it and the workspace it resolved" is now true for platform admins too.