Policy and profiles
Policy should be boring to review and safe to commit. We keep it in one file in your repository, with no secrets inside it:
workspace: defaultservices: github: capabilities: create_issue: approval # the agent proposes, you decide x: oauth2: client_id: <your app's client id>profiles: reader: # a profile narrows; it can never widen github: [get_user, list_repos]Three answers
Section titled “Three answers”Every capability ends at one of three answers. You can read the table from most permissive to least; an omitted answer does not sneak in above them.
| Policy | Meaning |
|---|---|
agent |
The caller may trigger the effect directly. |
approval |
The agent may propose; a human decides. This is the zero value, so a missing or misspelled policy fails safe rather than open. |
deny |
Unavailable to anyone on this workspace. A floor no profile can lift. |
Where the defaults come from
Section titled “Where the defaults come from”The catalogue classifies each capability by what it does to the world, because reversibility is the distinction that matters:
- a read observes and changes nothing →
agent - a write changes something you could undo →
approval - a destructive capability cannot be undone →
approval
A capability nobody has classified is never agent-callable. An unknown effect is treated as a write, not as a read.
That gives us the useful default: a new capability waits for a person instead of quietly inheriting authority nobody reviewed.
Profiles
Section titled “Profiles”A profile is a named subset handed to one caller:
stk mcp --profile readerIt can only narrow. A profile naming a capability that policy denies does not widen it, and an unknown profile does not quietly resolve to the default — it is an error, because silently granting the default set to a caller that asked for something else is the wrong direction to fail in.
Once you start the MCP server with reader, that caller sees only the named
subset. The profile can close doors; it cannot open one policy already closed.
Checking what a caller can see
Section titled “Checking what a caller can see”stk doctorreports the profiles declared and, for each, what it exposes.
You can now compare the intended subset with the broker’s report before handing the profile to an agent.