Repository navigation
Description
Summary
A skill can be marked disable-model-invocation: true ("explicit use only"). Tale presents that as advice to the model, not as a rule it enforces: the skill list tells the model to use the skill only when the user names it, and nothing in load_skill, read_skill_file or run_code checks the flag. The upload dialog and most docs say so, but one chat docs sentence reads as a guarantee. This issue collects the evidence and the options so the team can decide whether the flag should stay advice or become a rule. It proposes no fix.
What the flag does today
- Authors set it in
SKILL.mdfrontmatter, through the REST API (disableModelInvocation,services/platform/scripts/openapi/spec.ts:1475) or the upload dialog (app/features/skills/components/skill-upload/steps/preview-step.tsx:108). - The model sees it as one sentence in the skill list: "… Use it only when the user asks for it by name." (
lib/agent/skills-block.ts:48, built fromreadSkillCatalog,backend/domains/agent_tools/skills.ts:55). - The three places that read a skill's content check who may see the skill and, for an agent, whether it is equipped (
skillReachable,backend/domains/agent_tools/scope.ts:112), but not the flag:load_skillandread_skill_file(agent_tools/skills.ts:98,:160) and theskillsargument ofrun_code(agent_tools/run-code.ts:348). The skill list shows at most 40 skills; any other skill can still be loaded by name. - The chat composer has no way to pick a skill (
app/features/chat/components/composer.tsx:9: "no skill picker"), so "named by the user" exists only as words in a message. The platform has no signal to enforce against. - The automation agent path words it the same way (
backend/core/automations/agent_host.ts:884).
What Tale says about it
| Where | Says |
|---|---|
skill upload dialog (messages/en/skills.yml:86) |
"Requests explicit use of this skill; does not restrict access." |
skills reference (docs/en/platform/workspace/skills.md:137) |
"Treat this metadata as an instruction, not an access restriction." |
agent skills (docs/en/platform/agents/skills.md:35) |
"This is guidance, not an access control." |
chat page (docs/en/platform/chat/files-and-skills.md:48) |
"A skill whose author marked it for explicit use only is used only when you ask for it by name." |
The last sentence is the only one that reads as a guarantee. It was written with #4817 and promises more than the code enforces (German and French carry the same sentence).
What this allows
After reading text that tells it to use a given skill, for example a document it was asked to summarize, a model can load or run a skill whose author marked it explicit-only. The call is visible in the reply's steps, but nothing blocks it.
The impact depends on where the skill's scripts run:
- In chat and in task runs on the shared engine, in the light sandbox: no organization credentials and 180 s per call. What that sandbox can reach is the subject of Decision: should code in a sandbox session be able to reach the spawner, the backend and other sessions on the Docker sandbox network? #4870, what it can write of Decision: bound how much disk one sandbox workspace may use on Docker (there is no per-session quota) #4871.
- In a harness run the skills are staged for the agent CLI (
skills-block.tsheader), where the agent has its own tools, and secrets and connectors when configured. Whether a given CLI enforces the flag itself was not checked.
Not known: how many skills in practice use the flag, or for what (cost, side effects, publishing). No explicit-only skill was in the #4817 tier evaluation. That evaluation also measured how well models follow the skill list: the matching skill was loaded first in 10 of 10 matching prompts by one model and 4 of 10 by another. It measured loading, not refraining, but it shows that adherence to a prompt-level instruction differs by model.
Options (not exhaustive, no preference stated)
- Keep it advice. Say so everywhere, including the chat page, and consider renaming the upload dialog label.
- Enforce by naming. In the three entry points, refuse an explicit-only skill unless the latest user message names it (a match on slug or display name). Cheap; brittle for paraphrase and other languages; and in a task run the "user message" is the task text and comments.
- Enforce by selection. A skill picker or slash command in the chat composer (and the task dialog) records the person's choice with the message; the entry points allow an explicit-only skill only for a selected one. Needs UI, wire format, EN/DE/FR strings and docs.
- Hide, then enforce. Leave explicit-only skills out of the model's list unless selected, and refuse them at the entry points. The model cannot use what it cannot see, and cannot guess a slug past the check.
- Make it an access setting. Treat it as part of who or what may invoke a skill, next to visibility and equipment. Larger scope.
Questions
- Should the flag mean the same in chat, task runs on the shared engine and harness runs?
- What counts as naming a skill, and who decides (the person, the task author)?
- Until this is decided, should the chat page's sentence be reworded to match the code?
Related
#4849 (the security review that surfaced this, item 8b), #4817 (chat skills), #4870 and #4871 (what code in a light sandbox can reach and write).
Observed at main a83e645e27.
Activity
yannickmonney commentedon Nov 14, 2026
Decision
Explicit-only skills will be enforced by the platform. A skill marked
disable-model-invocation: truecan be used by a model only when a person chose it for that turn or run, through a selection the platform records. Words a model reads never count. Neither does text written by an agent, a workflow, an issue import or an automation key, nor a message that merely mentions the skill.What counts as chosen, using the one
/namegrammar fromlib/skills/slash.ts:/namein the person's message, or the skill checked under the conversation's Skills section (at most four). A delegated or sub-agent turn inherits its parent's choice./namein a description last written by a member, on a task that does not mirror an external issue, or in the member-written comment that starts the run. Imported issues, workflow-created or workflow-updated tasks, and agent-created tasks never choose./namein the agent step's prompt as authored, read before{{ }}values are filled in.Equipping an agent with a skill, or listing it in a step's skills, makes the skill reachable. It does not choose it.
How it is enforced:
load_skill,read_skill_fileandrun_code'sskills. It refuses an unchosen explicit-only skill withnot_chosen, and the refusal tells the model to ask the person to start a message with/<slug>.This is a usage rule, not access control: who can see a skill does not change.
Answers
Rationale
The flag exists so that skills with side effects or cost run only when a person means it. A rule that lives only in the prompt can be broken by injected text. #4963 already records the person's choice in chat, so enforcing it is a small server-side check. Task descriptions and automation prompts can also carry text from public issue trackers, webhooks, workflows and agents, so a
/namecounts only when a member wrote it. Hiding unchosen skills keeps the model from trying them, and the check stops a guessed slug.Implementation units
chosenSkillson the tool scope, the shared check in all three tools, thenot_chosenfailure, the filtered skill list, a skills spec rule, a manual box, and EN/DE/FR step text.