effect-ledger
БесплатноБез исполняемых скриптовНе проверенRecord an effect, sign an effect, reconcile an effect or check "did this PR merge" through the signed AIWG effect ledger, using one aiwg effect command with…
от jmagly★ 233 звезды на GitHubОб этом скилле
Effect Ledger
Record and reconcile side effects (tracker comments, PR merges, issue closes,
git commits and tags, files, decision receipts) in the signed AIWG effect
ledger with the aiwg effect CLI. The ledger proves what AIWG recorded and
what a verifier observed. It never authorizes an effect and never replays one:
an operator decision authorizes, the ledger proves.
Triggers
- "record an effect" →
aiwg effect record - "sign an effect" →
aiwg effect record(signed intent and completed) - "reconcile effect" →
aiwg effect reconcile - "did this PR merge" →
aiwg effect reconcile --kind tracker.pr.merged, oraiwg effect probe --kind tracker.pr.merged --target gitea:owner/repo#34when no merge intent was recorded (read-only, writes nothing) - "did we already post this comment" →
aiwg effect lookupbefore posting - "verify the effect ledger" →
aiwg effect verify(add--with-decisions <audit.jsonl>to check #1567 operator-decision links) - "reconcile authorization decisions" →
aiwg effect verify --decisions - "the effect ledger lock is stuck" →
aiwg effect recover-lock(operator only)
When to record
Record every externally visible effect that a retry or a crash could repeat: cycle and closing comments, merges, issue closes, tags, release files, and decision receipts. Do not record read-only queries.
Process
Name the effect. Pick the kind and target, and the causal context that makes it unique. For a cycle comment:
--kind tracker.comment --target gitea:owner/repo#12 --issue 12 --action cycle-comment --cycle 1.aiwg effect id <identity>prints the effect ID.Check before acting. Run
aiwg effect lookup <identity>. Exit 0 means the effect is already present: do not repeat it. Exit 4 means an earlier attempt has no outcome: runaiwg effect reconcilefirst.Carry the ID into the target wherever the target allows it: a hidden
<!-- aiwg-effect: <effect-id> -->line in a comment body, or anEffect-Id: <effect-id>git trailer. Verifiers use the marker to prove the effect happened.Perform the effect, then record and sign it in one call:
aiwg effect record --kind tracker.comment --target gitea:owner/repo#12 \ --issue 12 --action cycle-comment --cycle 1 --payload-file comment.mdrecordwrites the signed intent, runs the kind's verifier, and appendscompletedwhen the verifier reportspresent. Repeating it with the same payload exits 0 with"idempotent":true. Use--unverifiedonly when no verifier can see the target, and say so in your report.Reconcile uncertain effects.
aiwg effect reconcile <effect-id>(or the same identity flags) asks the verifier again and appends areconciledrecord each time. For "did this PR merge", once the merge intent is recorded:aiwg effect reconcile --kind tracker.pr.merged --target gitea:owner/repo#34. Reconciling an effect with no recorded intent is a usage error (exit 2); record the intent first withaiwg effect intentoraiwg effect record, or useaiwg effect probe <identity>for an ad-hoc check that records nothing (same exit codes 0, 3 and 4).Link the authorizing decision when an operator approved the effect:
--link operatorDecisionEventId=sha256:<hex>(andoperatorDecisionRecordHash) onintentorrecord.
Decision reconciliation
Use aiwg effect verify --decisions to reconcile recorded authorization receipts
against exact protected effects. A trusted host supplies the optional versioned
--effect-file binding to aiwg config authorization receipt or a fresh check.
Use --scope-ended-at <UTC timestamp> when the queried scope has ended.
The report distinguishes grant fulfilled/pending/missing and denial
respected/violated; missing denial records and legacy unbound decisions remain
not recorded. Unknown evidence remains unresolved. A denied occurrence stays
a violation after compensation; record compensation as a separate effect with
context.compensatesEffectId referencing the original ID. This command is
read-only. Exit 5 means a violated denial, 3 a missing grant, 4 unresolved
evidence, and 6 an integrity failure. Policy and human-denial capture are
unchanged. See $AIWG_ROOT/docs/configuration/hitl-authorization.md for bindings,
coverage limits and disposition semantics.
Exit codes
| Code | Meaning | What to do |
|---|---|---|
| 0 | present or recorded | Continue |
| 3 | absent | The target does not show the effect. Do not assume it is safe to replay; follow the workflow's own policy |
| 4 | unknown | Stop and escalate. Never replay on unknown |
| 5 | conflict | The same effect ID was recorded with a different payload. Stop |
| 6 | integrity failure | The ledger failed verification. Stop and report |
| 2 / 1 / 7 | usage / internal / artifact root unavailable | Fix the command or the artifact root; nothing was written |
Rules
- Output is JSON by de
Установить effect-ledger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл effect-ledger?
Record an effect, sign an effect, reconcile an effect or check "did this PR merge" through the signed AIWG effect ledger, using one aiwg effect command with scriptable exit codes
Как установить скилл effect-ledger?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл effect-ledger запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic