nightly-ledger-capture
Skill19 starsChanged 5 months agoMITView on GitHub
Discovers missing honesty, trust-decay, failure-mode, and decision-outcome entries from local evidence; stages judgment and permits direct mutation only after an executable oracle.
In this repository72 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-fitnessSkill
- body-checkSkill
- briefSkill
- Caddy AuditSkill
- caddy-enrollSkill
- Caddy ExplainSkill
- caddy-muteSkill
- capsule-compactSkill
- closeSkill
- codex-adapterSkill
- cognitive-updateSkill
- comms-summarizeSkill
- compact-noteSkill
- context-capsuleSkill
- context-hygieneSkill
- critique-planSkill
- decideSkill
- deep-reconSkill
- DiagnoseSkill
- digestSkill
- dreamSkill
- EnvelopeSkill
- find-weaknessSkill
- First 10 MovesSkill
- first-winSkill
- frontend-slidesSkill
- Honesty CheckSkill
- humanize-docsSkill
- impeccableSkill
- learn-from-failureSkill
- LearnSkill
- meta-improveSkill
- meta-improve-vaultSkill
- nightly-close-paritySkill
- nightlySkill
- openSkill
- operator-setupSkill
- orientSkill
- pauseSkill
- ponytailSkill
- port-specSkill
- PromoteSkill
- reconcileSkill
- research-deepSkill
- resumeSkill
- Sandbox RoutingSkill
- scout-vaultSkill
- Self-ReviewSkill
- semantic-searchSkill
- setupSkill
- ship-adapterSkill
- Skill AuditSkill
- skill-huntSkill
- skill-recallSkill
- solution-huntSkill
- sprite-specSkill
- startSkill
- statusSkill
- StuckSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 132
After capture, run daemons/nightly-ledger-review.mjs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/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; - canonical dated Session Log 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
Direct ledger mutation is legal only when:
daemons/nightly-ledger-predicate.mjsexecuted it;- type is
file_sha256_equals,json_field_equals, orgit_commit_present; - arguments are structured data rooted inside the selected root, never shell text;
- receipt hash, observed result, literal exit, and expected result match;
- the artifact is external to the claim narration and directly decides it;
- mutation delegates to the existing canonical ledger owner and embeds the receipt.
Otherwise stage. Never flip a prose resolution based on self-confirmation.
After capture, run daemons/nightly-ledger-review.mjs. Its literal
FRIDAY_MEASUREMENT receipt reports the weekly counts without applying any
judgment-bearing proposal.
Return:
LEDGER_CAPTURE PASS staged=<N> direct=<N> duplicates=<N> sources=local-memory,gitDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

