nightly-ledger-capture
Stage missing honesty, trust-decay, failure-mode, and decision-outcome records from local evidence. Use when capturing nightly ledger candidates; writes…
от wrg32786★ 26 звёзд на GitHub
Установить nightly-ledger-capture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/nightly-ledger-capture
This is Leg F's capture protocol. It keeps human judgment human-gated while making mechanical claims reproducible.
Local sources
Read:
- today's valid capsules by frontmatter
created_at; - dated Session Log entries (capsule lines or blocks)
- explicitly referenced local Git commits and diffs;
- current
HONESTY_LEDGER.md,TRUST_DECAY.md, andFAILURE_MODES.md; DECISION_LOG.mdandDECISION_OUTCOMES.md.
These sources discover claims. An agent-authored capsule or log entry cannot verify its own claim. The implementation has no dependency on an external coordination service and reports its source scope as local memory plus Git.
Candidate predicates
Honesty
Stage when the day contains consequential multi-file work, a large change, a verified/shipped/deployed/merged claim tied to an artifact, or an uncaptured tradeoff/cost/stopped-short statement. Honesty classification requires judgment, so it is always staged.
Trust decay
Stage the one to three most consequential confident claims only when consequential work is also present. Capture the exact claim, claimant, source reference, and proposed executable resolution predicate. Later narration is not a resolution oracle.
Failure mode
Stage when a diagnosis contains a verified cause plus a real red-before and green-after receipt and the class is not already represented.
Decision outcome
An exact operator answer has already crossed its human gate. Direct append is legal only when all are true:
- exact authored text is
HELD | DRIFTED | REVERSED | STILL UNCLEAR; - decision date and exact heading uniquely match one decision;
- interval is exactly 30, 60, or 90 days and is due inside the documented tolerance;
- the interval is absent from the matching outcome entry; and
- the pre-write SHA-256 still matches.
Invoke:
node daemons/nightly-decision-outcome.mjs --root <aigent-root> \
--as-of <YYYY-MM-DD> --decision-date <YYYY-MM-DD> \
--decision-title "<exact heading>" --interval <30|60|90> \
--outcome "<enum>" --operator-text "<exact enum>" \
--operator-source "<durable direct operator ref>" \
--expected-file-sha "<pre-read sha256>"
The writer compare-and-swaps, appends one check, verifies it, and dedupes replay. Ambiguity remains staged.
Staging product
Append through the sole writer to:
vault/memory/runtime/NIGHTLY_CAPTURE_CANDIDATES.jsonl
node daemons/nightly-ledger-stage.mjs --root <aigent-root> \
--date <YYYY-MM-DD> --candidate-json '<serialized object>'
Candidate fields:
{
"candidate_id": "nc-YYYYMMDD-NN",
"ledger": "honesty|trust_decay|failure_modes|decision_outcomes",
"claim": "...",
"source_refs": ["..."],
"evidence_class": "judgment|mechanical",
"predicate_proposal": {
"type": "file_sha256_equals|json_field_equals|git_commit_present",
"args": {},
"expected": "..."
},
"predicate_receipt": null,
"status": "staged",
"created_at": "ISO"
}
The writer allocates max suffix plus one, hashes normalized content for
dedupe, forces status=staged, serializes JSON, and re-parses the complete
file. Mechanical evidence requires a current green receipt; judgment may carry
only a proposed predicate.
Direct mutation predicate
Local hash-comparison Finding (Stage 1)
Opt in on the existing baseline attestation failure path:
bash scripts/doctor.sh <aigent-root> --attest --finding
Only an undeclared required-file hash mismatch invokes capture, using the expected hash from the baseline manifest; default attestation output stays unchanged. Capture never changes the measured attestation class; if storage fails, one detail line says the Finding was not recorded, and NONCOMPLIANT still exits 1. UNKNOWN and COMPLIANT attestations emit no Finding. The predicate evaluator also supports explicit capture:
node daemons/nightly-ledger-predicate.mjs --root <aigent-root> \
--type file_sha256_equals --path <relative-artifact> \
--expected <independently-pinned-sha256> --finding
The evaluator compares file bytes with the caller's pinned expectation. Source
bytes are never parsed as instructions, verdicts, targets, receipts, or authority.
The ordinary invocation remains read-only. A healthy comparison emits no Finding.
A readable mismatch emits FAIL; absent or unreadable file evidence emits
UNKNOWN with a HOLD statement. Missing or non-string targets, escaping paths,
and malformed expected hashes throw before writing. Both states remain observations. A hash
mismatch alone does not establish a product defect or a verified cause.
The existing stageLedgerCandidate append path stores one trust_decay row in
NIGHTLY_CAPTURE_CANDIDATES.jsonl under the resolved runtime directory. It reuses
candidate_id, created_at, claim, source_refs, status=staged, and
dedupe_key. A producer-owned finding extension supplies:
producer,product.name, Node version, and exact SHA-2
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Bash
FAQ
Что делает скилл nightly-ledger-capture?
Stage missing honesty, trust-decay, failure-mode, and decision-outcome records from local evidence. Use when capturing nightly ledger candidates; writes require an oracle.
Как установить скилл nightly-ledger-capture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nightly-ledger-capture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…