Offer skills below `'operator'` authority through `list_skills` and `load_skill` instead of the `Skills` catalog
Reading guide: start with Skills.for_run and _load in skills/_capability.py. _load records which skills have a SKILL.md below 'operator', using authority_of(path) in the workspace the library is read from. for_run keeps those skills out of the deferred-capability catalog and offers them through skills/_toolset.py. The key decision is still yours: keep these Skills-only tools for V1, or replace them with the generic route you described on this PR. In that route, any deferred capability below 'operator' is listed by a framework tool, and load_capability returns its instructions as a tool result. It needs #12434's projection, which isn't built yet. You can skip the merge-commit bookkeeping: the PR diff is the port only.
Ported from Workspace.trusted to authority (#11836, #12473), now decided per skill instead of per workspace.
- A skill whose
SKILL.mdis below'operator'stays out of the deferred-capability catalog andload_capability. The model callslist_skills(names mapped to descriptions) andload_skill(one skill's instructions), and both arrive as tool output. - With
read_files=True,read_skill_filealso reads the files of a skilllist_skillslists, without aload_capabilityfirst (Douwe's decision), and they arrive as tool output, like the skill's body fromload_skill. An'operator'skill still has to be loaded first. - Each skill takes its own file's level in the workspace its library is read from (the run's workspace or
workspace=). Onepath_authority={'skills/vendored': 'none'}entry moves just those skills, and one agent can mix both routes. - The toolset is built once and shared with each run's copy, so durable engines see the toolset they registered. A Temporal test runs both tools as activities.
- The instruction wording was chosen by a live probe (6 models, n=5). With "At the start of a task, call
list_skills...", the right skill was picked 5/5 on all six models. A wording that explained why the skills were held back made Claude models skip the tool (0/6). - On
main, a workspaceSKILL.mdthat tries to redirect the agent is sent as a system message. GPT-6.1 Sol resisted it 0/24 there, and 24/24 when the same file arrived as user-role data with its provenance. - Docs: the Skills page and its README twin,
docs/workspace.md, and the harnessKNOWLEDGE-AND-MEMORYreference, which also answers the Codex finding.
Nothing changes for 'operator' skills, and a regression test covers an operator skill named skills.
Compatibility / release note
Labeled compatibility impact. Release note:
- Durable runs using
Skillsrecord onerealpathper configured skill directory and perSKILL.mdat run start. Let in-flight runs finish, or use Temporal worker versioning / a new DBOS app version, before upgrading.
Review notes (your call)
- Generic route vs. these tools. Above. My recommendation: ship this for V1 (the beta), since #12434 isn't built, and file the generic route as the follow-up that retires these tools.
- The note directs the model ("At the start of a task, call
list_skills"). The 11/04 audit suggested describing the skills rather than directing the model to them, but the probe shows the directive is what gets the tool used at all. I kept the probed wording. - Re-reading per call. Each
list_skills/load_skillcall reads the libraries again throughctx.workspace. I kept that because the shared toolset has to work inside durable activities. Reading once per run would need per-run state the activity can rebuild. run.id = None(when an operator skill shares the capability's id) is still there. It goes away with a single loader.
Follow-ups: #13774 (one load_capability route that carries each capability's authority, replacing the dedicated list_skills/load_skill tools; also settles the generic tool-name collision).
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.
š¤ Generated with Claude Code