Skip to content

fix(platform): refresh the standard agent's skills at each start - #4039

Merged
yannickmonney merged 4 commits into
mainfrom
fix/standard-agent-skill-drift
Oct 1, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
fix/standard-agent-skill-drift

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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 with equipment_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:

  • listProjectSkillSlugs is the project's own skill visibility, as the launch stages it, without a member's access check.
  • The write-back keeps its FOR UPDATE SKIP LOCKED behaviour.
  • Setup uses the same listing.
  • A disabled skill drops out instead of stopping the agent.

Verification

  • Unit tests:
    • the start's write-back carries the skills the project can equip now, in the document skills' order;
    • setup uses the project's listing;
    • listProjectSkillSlugs resolves the project viewer, and returns nothing without an org home.
  • Real Postgres: checkStandardAgent now proves a start drops a skill that went away (skills=docx after docx,pptx), alongside its other six checks (24/24 in a filtered run).
  • Local gates: typecheck, oxlint, oxfmt, knip, server tests (13,579), docs tests (222), lint:links, lint:manual.
  • Docs (EN/DE/FR):
    • Project agents now says the standard agent's skills follow what its project can use when a run starts.
    • The Members and Editors getting-started pages now point to the standard agent: Members can hand it work in a project without agents, and Editors learn what takes a project's tasks before they add one.

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.
@yannickmonney yannickmonney changed the title fix(platform): keep the standard agent's skills in step with its project fix(platform): refresh the standard agent's skills at each start Oct 1, 2026
@yannickmonney
yannickmonney merged commit 0d07443 into main Oct 1, 2026
62 checks passed
@yannickmonney
yannickmonney deleted the fix/standard-agent-skill-drift branch October 1, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant