Repository navigation
Description
Problem
The profile model carries two skill channels with different semantics: embedded skills: list[Skill] (full objects whose mcp_tools can carry secrets) and skill_refs (a name filter whose [] default deliberately breaks symmetry with mcp_server_refs' None default). The embedded channel is what drags a whole secrets apparatus into profiles: resolver _decrypt_skill_mcp_tools + cipher threading, safe_validation_error_detail, the profile store's skill-secret handling, and on cloud (OpenHands/OpenHands#15060) ~150 lines of mask/restore/duplicate-degradation plus the documented X-Expose-Secrets deviation — all to protect secrets inside a model whose docstring says it is "reference-bearing and secret-free at rest".
Worse, the catalogs don't line up across surfaces:
- Canvas has two skill pipelines: settings-path launches inject a build-time npm bundle (
SKILLS_CATALOGfrom@openhands/extensions) asagent_context.skills, while profile-path launches rely on server-sideload_all_skillsdiscovery filtered byskill_refs— which defaults to[]= none. A profile-launched agent gets no public skills while a settings-launched one gets the whole bundle. The picker a profile editor would show (npm names) and the catalogskill_refsresolves against (server discovery) can drift. - The global
/skillspage'sdisabled_skillstoggle is a dead switch on local launches — stored inmisc_settings.app_preferences, consulted by nothing in the conversation-start adapter or the server. - Cloud has no resolve-time catalog at all: skills arrive via workspace discovery at conversation start (
_load_skills_onto_request) filtered by a per-userdisabled_skillsblacklist; the pinned SDK predatesskill_refsentirely.
MCP, by contrast, already has the right shape (mcp_server_refs filtering the named global mcp_config.mcpServers) — canvas just never renders a per-profile picker, so every profile is None = all.
Design
Product model: customisation defines what's globally available; profiles tick a subset. The line that makes it work: the profile catalog is the user/org-curated skill set; workspace/project skills stay runtime-additive and outside profiles (they belong to the repo, not the agent identity, and can't be seen at resolve time anyway).
- Drop
skills: list[Skill]fromOpenHandsAgentProfile. Profiles hold onlyskill_refs. Nothing is in production — bumpAGENT_PROFILE_SCHEMA_VERSION(migration machinery is already scaffolded). Deletes outright: resolver skill-decryption + cipher threading, profile-store skill-secret handling, cloud mask/restore/duplicate-drop + theX-Expose-Secretsdeviation,merge_skills_by_namecomposition in_build_openhands_settings, and the seed's skill-embedding (the sharpest edge of the "first caller's skills become the org default" problem).org.agent_profilesstops needing EncryptedJSON to be load-bearing. - One server-owned catalog. The agent-server already discovers user + public/marketplace skills (
load_all_skills) and has a full install/enable/uninstall subsystem for the user tier. Make it the only source: canvas drops the client-side npm-bundle injection; the/skillspage, the profile-editor picker, and resolution all read the same server catalog. - Global availability is enforced, not decorative.
disabled_skills(or an inverted enabled-set) becomes a server-side filter applied when building the catalog. "Globally available skills" then has one authoritative meaning: G = user-authored ∪ installed ∪ enabled-public. - User-authored skills become named entries in G, stored in the user tier (the existing installed-skills store fits, or a small authored-skills sibling) with their
mcp_toolssecrets encrypted once, there. This is what makes dropping embedded profile skills lossless. skill_refs: list[str] | Nonedefaults toNone= all of G, restoring symmetry withmcp_server_refs. The old argument for the[]default was "don't auto-inject the whole marketplace" — but once the catalog is the curated set G rather than "everything that exists",None=all is what users expect from a fresh profile, and the seed simplifies toskill_refs=None(genuinely behavior-preserving once global path == catalog path).- Cloud needs a home for G — the natural mirror of
mcp_config: an org-level skills container (column + router, same shape as everything else on the org row), withskill_refsresolved against it and workspace discovery remaining an orthogonal additive tier on both paths.
The unified contract (tools axis from the companion issue)
| Axis | Global catalog | Profile field | null means |
Dangling ref |
|---|---|---|---|---|
| MCP | agent_settings.mcp_config.mcpServers |
mcp_server_refs |
all servers | 422 / diagnostics |
| Skills | server catalog G (curated) | skill_refs |
all of G | 422 / diagnostics |
| Tools | runtime registry (GET /tools) |
tools |
default preset | start-time error + usability greying |
One profile-editor "Capabilities" section, three checkbox groups, each with a "use default" master toggle. resolve_agent_profile_dry_run already reports resolved/dangling for MCP and skills; /materialize powers the preview.
Checklist
-
[sdk]profile model v2: drop embeddedskills,skill_refsdefault[]→None, delete skill-secret machinery from resolver/store, schema-version bump + migration -
[sdk/agent-server]catalog = curated G: enforce enabled/disabled server-side when buildingavailable_skills; authored-skills storage in the user tier -
[canvas]drop npm-bundle injection (server is the sole skill source on both launch paths); fold/skillspage semantics into G; per-profile Skills + MCP checkbox groups in the profile editor (needs canvas feat(agent-profiles): Agent Profiles — Settings → Agent as the profile library (local + cloud) agent-canvas#1571's merge-on-save fix first) -
[cloud]org-level skill catalog (column + router mirroringmcp_config); wireavailable_skillsat the SDK pin bump (note: the bump makesavailable_skillsa required kwarg — the never-brick load path must catch broadly)
Open product call
Whether a fresh profile's null skill selection means "all curated skills" — argued yes above, but needs a product ack since it changes the current []-default behavior.
Part of #3713. Companion issue: #3978 (tools). Related: PR #3968, OpenHands/agent-canvas#1571, OpenHands/OpenHands#15060.
Activity
all-hands-bot commentedon Jul 3, 2026
#3979 subsumes #3959 — both address the same root problem (dual skill channels: embedded
skills+skill_refson profiles) with the same desired end-state (one secret-free ref-based field). #3979 effectively answers #3959's decision fork by choosing path (B) 'finish the vertical' and providing the full cross-surface design. Same author, 1 day apart, both under epic #3713, but #3979 does not reference #3959. Discussion will fragment unless consolidated.Found 3 possible duplicate issues:
skills— decide: finish the vertical or revert until the canvas selector existsThese may not be exact duplicates, but the scope appears to overlap enough that keeping discussion in one place may be more useful.
This comment was created by an AI assistant (OpenHands) on behalf of the repository maintainer.
all-hands-bot commentedon Jul 6, 2026
[Automatic Post]: This issue has been waiting for triage. @xingyaoww @neubig @enyst, could you
please take a look and add the appropriate priority label when you have a chance?
This comment was created by an AI agent (OpenHands) on behalf of the user.
simonrosenberg commentedon Jul 7, 2026
Confirming this manifested concretely, with a fix now shipped as a client-side workaround: agent-canvas#1571's mock-llm e2e suite caught exactly the failure mode described in the second bullet above — a slash-command-triggered skill never activated on a profile-launched conversation, because the "default" agent profile's
skill_refswas never set and resolves to[]= none server-side, while the equivalentagent_settings-launched conversation gets the full frontend-bundled public-skill catalog viabuildAgentContext/agent_context.skills.Workaround (commit a30683a2):
useSaveAgentProfile— the single choke point for every real profile save (onboarding seed + Settings create/edit) — now defaultsskill_refstonull(all discovered) whenever a caller doesn't set it explicitly. This is a client-only mitigation for new/edited profiles; it doesn't retroactively fixskill_refson profiles that predate the change and are never re-saved, and it doesn't address the broader duplication/catalog-drift issues this issue and #3959 describe. Flagging as supporting evidence for prioritizing (B) here, or at minimum reconciling the[]-default called out in #3959 point 5 — the "profile created without touching skills resolves to zero skills" failure mode is not hypothetical, it broke a real e2e test.simonrosenberg commentedon Jul 7, 2026
Folded into #4017, which adopts this issue's design (drop embedded
skills, one server-owned catalog, per-profile refs, uniform tri-state) and pairs it with the broader resolver fix — the embedded-skillssecrets apparatus and theskill_refsbackwards default are two faces of the same 'resolver builds minimal-from-scratch' flaw behind #4014/#4016. #4017 also nails down that project skills are repo-scoped and stay outside the profile model entirely (loaded always/additively), which resolves the 'catalog doesn't line up across surfaces' concern for the project tier.simonrosenberg commentedon Jul 10, 2026
Superseded by the reviewed #4018 architecture. Agent Profiles no longer embed skills or use skill_refs; they use disabled_skills over discovered skills, which cannot fail launch on catalog drift. Per-profile capability/editor work that still makes sense is tracked in OpenHands/OpenHands#15563 and the remaining tools work in #3978.
simonrosenberg commentedon Sep 11, 2026
Concrete measurements from wiring the profile path in Agent Canvas, since this issue frames the fix as "canvas must drop the npm-bundle skill injection" without recording what that costs.
The two paths do not differ in whether skills load — they differ in which pipeline supplies them.
agent_settings@openhands/extensions, injected by the client withload_public_skills: falseagent_profile_iddiscover_profile_skills()→load_all_skills(load_public=True, load_user=True)→ a git clone ofhttps://github.com/OpenHands/extensionsThe profile path is already "one server-owned catalog" in design. It resolved to zero skills on a stock local dev stack simply because the clone was never populated.
The bundle is smaller than it looks. The catalog holds 60 skills but is allow-listed, not deny-listed: a launch injects
DEFAULT_ENABLED_SKILL_NAMES— 11 (add-skill,agent-canvas-environment,agent-memory,agent-sdk-builder,code-review,docker,github,openhands-api,openhands-automation,openhands-sdk,skill-creator) — unless the user has set an explicitenabled_skills. Canvas made that choice deliberately (OpenHands/OpenHands#16302): with a build-time snapshot, a deny-list would push every future catalog addition into every system prompt.So the parity gap today is 11 → 0, and the practical effect is that Agent Canvas routes the seeded
defaultprofile throughagent_settingsspecifically to keep those 11 — which is why per-profile fields set ondefaultare silently ignored at launch (OpenHands/OpenHands#17235 exposes tool/prompt scoping that hits exactly this).The trade-off this issue should record before choosing: the npm bundle exists because the clone has latency. The canvas migration note is explicit — "the former
VITE_LOAD_PUBLIC_SKILLSenv var was removed because bundled skills have no clone latency". Moving the profile path onto the server clone reintroduces that, and the two sources can drift in version, not only content: one is pinned at build, the other tracks HEAD.Three ways out, with what each costs:
AgentLaunchAdditionscurrently carries onlysystem_message_suffix_append, so a client sendingagent_profile_idhas no way to supply skills. Adding one keeps the bundle's zero-latency property but entrenches two pipelines.(3) looks like the honest version of (1) to me, but it is a deployment question as much as an SDK one, which is why I am adding the data rather than picking.
Related: OpenHands/OpenHands#17279 (runtime-services context now rides
AgentLaunchAdditionson the profile path — the same class of client-owned enrichment, already solved for the suffix).openhands-ai commentedon Sep 11, 2026
I'm on it! simonrosenberg can track my progress at all-hands.dev
openhands-ai commentedon Sep 11, 2026
Implemented and opened draft PR: #4959
What changed
asyncio.to_thread.OH_PREWARM_PROFILE_SKILLS=0to restore lazy loading for offline deployments..pr/design.htmlbefore/after design artifact.Verification
make buildpassed.Commit:
b84ef11(fix(agent-server): prewarm profile skill catalog)CI is currently running. The PR remains draft; a human must complete the reserved
HUMAN:field before marking it ready for review.