Deny-All by Default: How Loa Skills Declare Their Permissions
Every skill in Loa is a markdown file with frontmatter. Before cycle-050, that frontmatter described what a skill was for. It did not say what the skill was allowed to touch. The agent running the skill inherited whatever the surrounding session could reach. For a fleet of repositories where agents invoke skills on each other's behalf, that is too much inherited reach. A skill that formats a changelog has no business opening a network connection. A skill that reviews a sprint has no business spawning subagents.

The permissions reference, versioned 1.0 at cycle-050, adds a capabilities: field to the frontmatter of every SKILL.md. We think of it as an intermediate representation. It names what a skill does in model-agnostic terms, and an adapter translates those terms into whatever the host runtime enforces. Today that host is Claude Code, whose permission rules are written per tool, and whose skills are the SKILL.md files in question. A future host may have a different dialect. The skill file should not have to change when the runtime does.
Eight categories, all off
The taxonomy has eight categories, each mapped to a small set of Claude Code tools:
read_filescovers reading file contents, the Read tool.search_codecovers finding files by name or content, Grep and Glob.write_filescovers creating or modifying files, Write and Edit.execute_commandscovers running shell commands, Bash.web_accesscovers fetching URLs and searching the web, WebFetch and WebSearch.user_interactioncovers asking the user a question, AskUserQuestion.agent_spawncovers launching subagents, Agent.task_managementcovers creating and updating tasks, TaskCreate and TaskUpdate.
Every one of them defaults to false. A skill with no capabilities: block gets nothing: it cannot read, cannot search, cannot write. This is the old advice of fail-safe defaults, which Saltzer and Schroeder stated as basing access decisions on permission rather than exclusion. We chose it not because it is elegant but because the alternative fails quietly. Under allow-by-default, a missing annotation is invisible until something goes wrong. Under deny-by-default, a missing annotation surfaces the first time the skill tries to read a file, which is the first time anyone runs it.
The block also carries schema_version: 1, and the reference requires adapters to reject any version they do not recognize. A skill written against a later schema is not half-interpreted by an older adapter. It is refused.
Commands are an argument vector, not a string
The category with the most structure is execute_commands, because running shell commands is where permission systems tend to give up and hand over a shell. The reference does not. A skill that needs commands lists each one as an executable name plus an array of arguments. The name is the executable only: no paths, no shell builtins. The arguments are literal strings, with a glob permitted only in the final position. Pipes, double ampersands, semicolons, backticks, subshells and variable expansion are prohibited outright, and every block must carry deny_raw_shell: true. An adapter that evaluates a raw shell string is out of spec.
So a review skill might declare that it may run git diff and git log with a wildcard in the final argument position, and bats against anything under tests/. It may not run git push. It may not pipe git diff into anything. The reason to be this strict is the same reason command injection keeps appearing on security checklists: once a string is handed to a shell, the boundary between data and program stops being enforced. Splitting the command into a vector keeps that boundary. The adapter matches the vector against the allowlist without parsing shell syntax at all.
Two boolean forms remain. Setting execute_commands to true means all commands, and the reference reserves that for unrestricted skills. Setting it to false means none. There is no middle form that accepts a shell string.
No shorthand for everything
The reference prohibits a capabilities: all sentinel, citing a Flatline review finding. A skill that orchestrates other skills and legitimately needs the whole toolbox has to write out the expanded map: all eight categories, each set to true, by hand.
The argument against the shorthand is about review, not enforcement. An adapter can expand a sentinel as easily as it reads eight lines. A reader of a diff cannot. Eight explicit lines of true are a visible cost. A reviewer who sees web_access: true and agent_spawn: true on a skill that is supposed to translate text will ask why. A reviewer who sees a single word will not, because the word hides the list. We would rather pay the typing.
Cost profiles and fail-closed validation
Alongside capabilities, each skill carries a cost-profile: field with one of four values. Lightweight is read-only analysis with minimal model usage, typically read_files and search_code. The reference names /enhance and /flatline-knowledge as examples. Moderate adds scoped writes and scoped commands, for skills like /review-sprint and /translate. Heavy means full tool access and high usage, for /implement, /ride and /audit. Unbounded is autonomous multi-skill orchestration with every capability, for /run-bridge and /autonomous.
A missing cost-profile is a validation failure. Not a default, not a warning. The reference calls this fail-closed, and it matches the deny-all posture on capabilities: the author has to say something before the skill is admitted. The reference also pairs each profile with the capabilities it is expected to carry, and emits a warning when a skill declares one outside its tier. A lightweight skill asking for agent_spawn is treated as a warning rather than a hard failure, and the warning is the point. It makes the mismatch between stated cost and requested reach legible to whoever reads the validation output.
Versioning the vocabulary
Capability names are a vocabulary shared between every skill file and every adapter, so changing them is a compatibility event. The reference adopts the semantic versioning split. Adding a new category is a minor bump and is backward-compatible. Changing what an existing category means is a major bump and is breaking. Adapters check the schema version and refuse versions they do not know. Version 1 is the only row in the migration table so far. We expect that table to grow slowly, and we would rather it grow slowly than be amended in place.
What this buys the fleet
The fleet we write about on hosaka.fm is many repositories with agents doing most of the work in each. Skills move between repositories, and so do the agents that invoke them. A capability map in the skill file means the question of what a skill can do is answered in the file, in eight lines, before anyone runs it. It means a permissions audit across the fleet is a search over frontmatter rather than a reading of prose. And it means that when a new runtime arrives with its own permission dialect, the translation is written once, in an adapter, rather than once per skill.
Deny-all is cheap to write and costly to forget, in exactly the direction we want. The loud mistake is a skill that asks for too little and fails on first run. The quiet mistake, the one this schema removes, is a skill that asks for nothing and receives everything.
A ring of keys, each cut for a door not yet built.
Get the next post
Free membership: new posts on how the fleet is built, delivered by email. Subscribe free
№ 1758