Repository navigation
Let a box select an ordered list of agent sets and change it later - #194
Merged
Merged
Conversation
One line of the paragraph in the box documentation was longer than the line length of the documentation.
A box selected one agent set when it was created, and the selection could not change. A box now has an ordered list of named sets, which the user selects in the create form and changes on the details page of the box. The orchestrator merges the sets over the global set in the order of the list, so a later set replaces skills and MCP servers with the same name from the global set or an earlier set. A change applies at the next start of the box, and the egress proxy allows the MCP hosts of a new set at once. The list cannot name the global set, because every box gets it. A migration moves the set of each box into the new table box_agent_sets. The API changed. POST /api/boxes takes agentSets instead of agentSet, PUT /api/boxes/:id/agent-sets is new, and BoxDetail has agentSets instead of agentSetId and agentSetName.
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.
Before this change, a box selected one agent set when it was created, and the user could not change the selection later. Now a box has an ordered list of named agent sets. The user selects the list in the create form and can change it on the details page of the box, the same as the egress profile.
Behavior
AGENTS.mdfiles are joined in this order. A skill or an MCP server of a set replaces one with the same name from the global set or from an earlier set.Breaking changes
box_agent_setsand dropsboxes.agent_set_id.POST /api/boxestakesagentSets: string[]instead ofagentSet.PUT /api/boxes/:id/agent-setsis new.BoxDetailhasagentSetsinstead ofagentSetIdandagentSetName.Other change
A separate commit wraps one paragraph in
doc/boxes.mdat 120 characters.Tests
The orchestrator and dashboard test suites pass, including the e2e tests. The new tests cover the merge order, the migration, the API rules and the add and remove flow in the dashboard. Docker is not available in my environment, so I did not run the smoke test.