vow-enforcement
БесплатноБез исполняемых скриптовНе проверенClassifies and enforces constraints via soft vows, hard vows, and Nen Court layers
от athola1 421 установка в других каталогахОб этом скилле
Night Market Skill: ported from claude-night-market/imbue. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Rules that depend on willpower fail under pressure. Enforcement earns trust by making the right path the only path.
Vow Enforcement
The Problem
ODCV-Bench found that agents break self-imposed constraints 30-50% of the time when goals conflict. Practitioner consensus confirms: past 150 soft rules, compliance drops for ALL rules, old ones included.
The core insight: "settings.json is a firewall; CLAUDE.md is an employee handbook." Handbooks work for guidance. Firewalls work for enforcement. Mixing them up creates a false sense of security.
Three Enforcement Layers
| Layer | Mechanism | Compliance | Examples |
|---|---|---|---|
| Soft Vow | Skill instructions, CLAUDE.md rules | ~80% | "Write tests first", "Keep commits small" |
| Hard Vow | Hooks (PreToolUse/PostToolUse), settings.json permissions | ~100% | Block --no-verify, enforce file size limits |
| Nen Court | External validator agents checking output | Deterministic | Lint checks, test runs, constraint audits |
Soft Vows rely on model compliance. Cheap to add and easy to iterate, but unreliable under goal conflict. Use when the constraint requires judgment, violation is annoying but not dangerous, or you are still learning what the right rule is.
Hard Vows block forbidden actions before they execute via hooks and settings.json permissions. Use when the constraint is binary, violation causes real damage, or the soft vow version was violated repeatedly.
Nen Court spawns external validator agents that audit output after a phase completes. Use when the constraint requires analysis (not pattern matching), a hook cannot express the rule, or the check needs codebase context.
Vow Classification Protocol
When adding a new constraint, follow this sequence:
Step 1: Start as Soft Vow
Add the rule to the relevant skill or CLAUDE.md. This is the cheapest path: zero cost, minutes to deploy, ~80% compliance.
Step 2: Monitor Violation Rate
Track violations via execution logs, post-hoc audits
(imbue:justify reports), user complaints, and Nen
Court findings from related audits.
Step 3: Graduate if Needed
If violation rate exceeds 20% over a 30-day window:
- Binary constraint? Graduate to Hard Vow (hook).
- Judgment constraint? Graduate to Nen Court.
- Ambiguous? Try Hard Vow first. If false positives exceed 10%, move to Nen Court.
Night Market Vow Inventory
Current classification of existing constraints:
| Constraint | Current Layer | Target Layer | Notes |
|---|---|---|---|
| Iron Law (no impl without failing test) | Nen Court | Nen Court | validators/iron_law.py audits commit order (#406) |
No --no-verify |
Hard | Hard | Already hook-enforceable |
| Scope-guard worthiness scoring | Soft | Soft | Requires judgment, not binary |
| Proof-of-work evidence | Nen Court | Nen Court | validators/proof_of_work.py checks [Ex] refs and status (#406) |
| Bounded discovery reads | Hard | Hard | vow_bounded_reads.py with fcntl.flock for parallel safety (#418) |
| No AI attribution in commits | Hard | Hard | Hook pattern-matches git commit command |
| Markdown line wrapping at 80 chars | Nen Court | Nen Court | validators/markdown_wrap.py flags >80-char prose lines (#406) |
| No emojis in commits | Hard | Hard | Hook pattern-matches git commit command |
Validator Invocation
The three Nen Court validators are standalone scripts under
plugins/imbue/validators/. Each reads JSON on stdin and writes a
verdict JSON on stdout, using exit codes 0 (pass), 1 (violation), and
2 (inconclusive). Examples:
# Markdown wrap audit on a list of files
echo '{"files": ["README.md", "docs/guide.md"]}' \
| python plugins/imbue/validators/markdown_wrap.py
# Iron Law audit on an explicit commit log
echo '{"commits": [
{"sha": "abc", "ts": 100, "files": ["tests/test_x.py"]},
{"sha": "def", "ts": 200, "files": ["src/x.py"]}
]}' | python plugins/imbue/validators/iron_law.py
# Proof-of-work audit on agent output
echo '{"text": "Tested foo [E1] [E2] [E3]. Status: PASS.", "min_evidence": 3}' \
| python plugins/imbue/validators/proof_of_work.py
Mission orchestrator integration: dispatch the appropriate validator at each phase boundary (see Nen Court Protocol below) and treat exit code 1 as a blocking gate, exit code 2 as advisory.
Vow Graduation Criteria
A vow graduates when any of these conditions hold:
- Frequency: 3+ violations detected in 30 days
- Severity: Single violation caused rollback, data loss, or broken CI
- User escalation: User explicitly requests enforcement ("make it impossible to X")
Graduation Process
- Document the violation patter
Установить vow-enforcement в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл vow-enforcement?
Classifies and enforces constraints via soft vows, hard vows, and Nen Court layers
Как установить скилл vow-enforcement?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vow-enforcement запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic