Command Palette

Search for a command to run...

Назад к скиллам
скилл № 07805

harn-approval-review

Configure who answers a permission ask, tune the reviewer policy, and measure the reviewer against a live corpus.

БесплатноБез исполняемых скриптов
burin-labsот burin-labs★ 34 звезды на GitHub

Установить harn-approval-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Approval review

A permission gate that refuses work on a non-interactive run used to end the run. There was nobody to ask. The approval resolver decides who answers instead, and the reviewer is a model that answers by reading the refused action against the user's actual goal.

Pair with harn-agent for the loop this runs inside and harn-testing for what counts as evidence.

The reviewer is not a security boundary

It is a judgment layer above a boundary that stays exactly where it was. The sandbox is not relieved of its job because a reviewer exists, and no claim about this feature should imply otherwise. Cursor says the same of its own auto-review and is right to.

Two orthogonal axes

PolicyAction {allow, ask, deny} is the per-rule verdict. ApprovalResolver {host, auto_review, allow_all} is who answers when a rule says ask. They are separate types on purpose: PolicyAction is ranked and that rank drives most-restrictive-wins composition across the policy stack, so "is allow_all more restrictive than allow?" is a question with no answer and must never be asked.

  • host — ask a person. A surface that cannot reach one reports the ask as unsatisfiable rather than answering on their behalf.
  • auto_review — route to the reviewer. Headless and eval default.
  • allow_all — answer every ask yes. This is what yolo and full-auto mean, and it has one owner rather than a per-surface empty policy overlay.

Matched deny rules never reach a reviewer, including allow_all. Their receipts record auto_review.unavailable_reason: "deny_rule" and reviewer_answered: false. Reviewers may answer asks and deliberately reviewable refusals such as side-effect ceilings. allow_all also preserves the catastrophic floor.

Install a reviewer on a loop

import { approval_reviewer_for } from "std/agent/approval_review"

agent_loop(harness, task, system, {
  approval_policy: policy,
  approval_reviewer: approval_reviewer_for(harness, review_policy, goal),
})

goal is required, not optional. The reviewer's question is never "is this command dangerous" in the abstract — it is "does THIS goal authorize THIS action". A reviewer given no goal can only reason from the command, which is the weaker instrument and the one that produces both kinds of error.

approval_reviewer is a closure taking the refusal record and returning a decision record. approval_reviewer_for adapts the runtime's shape to approval_review_decide; anything returning {approved, reviewer_answered, rationale} works.

Yolo is this seam, not a bypass

approval_reviewer: approval_allow_all_reviewer(review_policy)

allow_all is a reviewer that says yes. Routing it through the same seam rather than around it means it inherits the floor, the receipt, and the activity record — and there is exactly one place in the system where a refusal can be lifted. It does not lift the catastrophic floor.

It fails closed

No reviewer, no VM context, a closure that raises, an unparseable verdict, or re-entrancy all leave the call denied exactly as it would have been. A bare true is explicitly not an approval: the contract is a decision record, and accepting a stray truthy value is how a seam like this stops meaning anything.

Where the policy lives

crates/harn-vm/src/orchestration/policy/approval_review_policy.toml. Data in TOML, logic in Harn, Rust only at the seam — the provider catalog's split.

table what it holds
[reviewer] model, effort, timeout, on_error (only deny)
[breaker] consecutive and per-turn denial caps, cell-flag share
[floor] categories no reviewer may ever grant
[denylist] categories that start from a presumption of denial
[trust] which inputs may widen authorization and which may never
[verdict] the risk and authorization ladders, and the threshold table

Change the file, not the code. The Rust seam reads it once and hands it to the Harn session.

Two invariants worth stating before you edit anything

The floor is checked before the model is consulted. A request naming a never-grant category never reaches a reviewer that could be argued out of it. A floor enforced only inside the prompt is a suggestion.

The outcome is computed, not reported. The reviewer returns risk and authorization; the allow/deny is derived from the pair by [verdict.thresholds]. A model that tries to assert a verdict cannot, because nothing reads a field where it could put one.

Editing the reviewer prompt

The prompt defines each risk and authorization level, so a model rates what an action does to its real target and how far the goal's consent reaches, not the most alarming word in the command. An action the user plainly asked for is high risk and high authorization; rating it critical to express danger makes it ungrantable, since the table never grants critical.

Out-of-radius actions map to

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл harn-approval-review?

Configure who answers a permission ask, tune the reviewer policy, and measure the reviewer against a live corpus.

Как установить скилл harn-approval-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл harn-approval-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить harn-approval-review с