Repository navigation
fix(platform): refresh the standard agent's skills at each start - #4039
Merged
Merged
Conversation
The standard agent took the project's document skills once, at setup, and nobody can edit a managed agent: a skill an admin disabled afterwards failed every start with equipment_missing until someone deleted the agent. Every start now writes back the document skills the project can equip at that moment (listProjectSkillSlugs, the project's own visibility, as the launch stages them), beside the runtime, model and instructions, so a disabled skill drops out instead of stopping the agent.
6 tasks
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.
Follow-up to #4029 (the organization's standard agent), found while checking that main had nothing left behind.
The defect
The standard agent got the project's document skills (
docx,pptx,xlsx,pdf) once, when it was set up. Nobody can edit a managed agent:PROJECT_AGENT_MANAGED. So if an admin later disabled one of those skills, or it otherwise stopped being visible to the project, every start failed withequipment_missing. The only way out was deleting the standard agent in each project. That is the kind of dead end the original customer finding was about.The fix
Every start now writes back the document skills the project can equip at that moment, beside the runtime, model and instructions it already re-resolves:
listProjectSkillSlugsis the project's own skill visibility, as the launch stages it, without a member's access check.FOR UPDATE SKIP LOCKEDbehaviour.Verification
listProjectSkillSlugsresolves the project viewer, and returns nothing without an org home.checkStandardAgentnow proves a start drops a skill that went away (skills=docxafterdocx,pptx), alongside its other six checks (24/24 in a filtered run).lint:links,lint:manual.