grant-access
When a step was denied a call (a feed line whose word says denied:), read what it was denied and why, and propose to the person the narrowest grant that would have let it through, or say the deny is kept on purpose.
- License 许可
- MIT
- 所属仓库
- emyann/nemia
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- grant-access
- description
- When a step was denied a call (a feed line whose word says denied:), read what it was denied and why, and propose to the person the narrowest grant that would have let it through, or say the deny is kept on purpose.
03 SKILL.md 正文
Grant access
The feed carries a line of its own for each call a step's fence refused, as soon as the harness reports it and while the step still
works: its word is denied: <call>, the call by its name alone, and the line says which step and which of its tries it belongs to. One
denial is one line, however many passes read it, and a call refused twice is two lines. A step on a harness that reports no denial while
it runs says them only at the end. The fence is its agent's: what it may call unasked (allowedTools:), what it may never call (disallowedTools:), the tools it is given at all
(tools:), and the folders it may write. Each list sits under the block of the harness the agent runs on, in its frontmatter:
A line here written nemia <verb> … names the verb <verb>: at a shell, type it as written; on the MCP port, call its tool, whose
schema says its arguments. The verbs skill names each verb's tools, and which run at a shell alone.
claude:
fence:
allowedTools: Bash(git diff:*), Bash(npm run lint)
disallowedTools: Bash(git push:*)
A file written before may still have the lists at the top level; they read the same. A step may narrow its agent's fence and never widen it, so a grant always goes on the agent. A denial is either the fence doing its work, or a grant the agent lacks to do its job.
Read it
nemia show --raw <run>andnemia logs <run> <step>: what the step was asked to do, and what it was doing when it was denied.- Read the agent's definition in the factory's folder (
nemia factory, then its file): its fence as written, and its job. - Decide which it is:
- Kept on purpose: a push, a merge, a delete, a kill by name, a write outside its job. The deny is right; the step should have taken another way, or asked.
- A grant it lacks: a call its job needs — a check it is told to run, a read of a folder it is told to read — that its fence does not let through unasked.
Propose it
Say to the person, in a few lines: the run and step, each call denied as the note says it, what the step was doing, and your verdict.
For a grant, name the narrowest rule that would have let the call through, and where it goes: the line to add to the agent's
allowedTools:, under its claude: { fence: … } block (a command by its exact prefix, never a whole tool), or a folder to add to what it may write. Never propose a grant of a
call its agent's disallowedTools: refuses: say it is kept on purpose.
The person decides. With their word, file the change as a card for the factory's own work (nemia inbox add), naming the agent, the rule
and the run that met the denial: you never edit an agent's definition yourself. Keep a pending fact for the card until it is started.
04 同仓库更多 Skills
groom-the-inbox
Read each card in play in the inbox against the repository and say, per card, done (the commit on the base that landed it), replaced (the decision or card that did), stale (each fact that moved, what it said and what it says now) or standing, reading closely only what the period touched. For the janitor's step, which proposes and never acts: a person removes or amends each card by the command the check writes.
write-a-spec
Turn an accepted intent into a spec an engineer can build from in this repository: the goal restated, the approach and why, every path it touches, the steps, the tests that prove it, the risks, and what is still open. For a step that designs a change before anyone builds it.
review-a-change
Review a change in this repository as a second engineer would: against its intent and spec, by reading the diff and the suite's verdict, with findings that name the file, the line and what goes wrong. For a read-only step that decides whether the work goes round again.
read-the-stats
Read a factory's stats since the janitor's last run, against the same length of time before it, write a short report, and propose one correction per card — an allow or deny by name, a line in an agent's body or a skill, or a refusal kept on purpose — each with the numbers behind it, never one already in the inbox. For the janitor's step, which proposes and never acts.
land-a-branch
Land a run's result on the base branch in this repository's own checkout, the way the step says it lands: make that one act, read its result, and write the message that records what landed — or change nothing and say why it refused. For a gated ending step (workspace: base).
implement-a-change
Build a change from its spec in this repository: tests first where a rule is claimed, small commits, the tests of what changed green for the right reason, and each review finding answered in the next round. For a step that writes the code.