- Move governing axioms, invariants, and RFC 4180 CSV schema to references/ledger-schema.md - Refactor SKILL.md to standard skeleton format (38 lines) - Remove redundant Mermaid diagram
1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| commit-logger | Record verified Git commit events as lossless, immutable records in a machine-readable commit ledger (00-inbox/commit-log.csv). Use when git-commit completes or to log commits. |
Commit Logger
Use when
- Recording a verified Git commit event into the vault ledger (
00-inbox/commit-log.csv). - Automatic handoff from
git-commitafter a commit is created. - Catch-up capture of unlogged commits (
/commit-logger [COMMIT_SHA]). - Not for daily reflection or learning assessment: use
journal-builder. - Not for triaging notes: use
draft-curation.
Steps
- Pre-condition and recursion check. Inspect the target repository root:
git rev-parse --show-toplevel. If inside the vault repository itself or namedBrain, terminate immediately unless--forceor--allow-brainis explicitly provided. - Idempotency check. Verify if the full 40-character commit SHA already exists in
00-inbox/commit-log.csv. If present, exit silently. - Capture via deterministic script. Run the capture script:
bash scripts/log-commit.sh [COMMIT_SHA](defaults toHEADif omitted). Consult references/ledger-schema.md for field definitions. - Verify row. Inspect
00-inbox/commit-log.csvto confirm the row exists and complies with RFC 4180 format.
Your call
- Whether to force logging a vault commit when operating inside the vault (
--force).
Done when
- The verified commit event row exists in
00-inbox/commit-log.csv, or duplicate was safely skipped.
Hands off to
journal-builder: at day end to reconstruct history and assess learning objectives from the ledger.