Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 8s
- Add canonical commit-logger SKILL.md enforcing RFC 4180 fact capture - Add log-commit.sh deterministic capture script with --force override for Brain - Add commit-logger README.md adhering to DirectoryContract (type: agent) - Register commit-logger in global skill collection Package Index - Exempt commit-log.csv from inbox-curation drafts triage
3.5 KiB
3.5 KiB
type, status, name, kind, project, tags
| type | status | name | kind | project | tags | ||||
|---|---|---|---|---|---|---|---|---|---|
| agent | active | commit-logger | skill | brain |
|
📝 Commit Logger
Commit Logger is a lightweight, single-pass operational skill responsible for capturing verified Git commit events into Brain's machine-readable ledger (00-inbox/commit-log.csv).
It serves as the deterministic capture boundary between Git repository operations and Brain's historical reflection lifecycle.
🏛️ System Role & Architectural Position
The knowledge capture pipeline cleanly separates mechanical event logging from retrospective synthesis:
flowchart LR
Producer["git-commit<br/>(Verified Commit SHA)"] --> Logger["commit-logger<br/>(Immutable Fact Capture)"]
Logger --> Ledger[("00-inbox/commit-log.csv<br/>(Event Ledger)")]
Ledger --> Consumer["journal-builder (/journal)<br/>(Reconstruct, Test, Synthesize)"]
Consumer --> Journal["03-records/journal/<br/>(Daily Journal Entry)"]
commit-loggerpreserves evidence;journal-buildercreates meaning.
🔑 Core Guarantees & Invariants
- Authoritative Event Identity: The full 40-character commit SHA is the authoritative event identity. The CSV row is only its durable representation.
- Pure Fact Capture (Zero Interpretation): Captures only immutable Git metadata. It does not infer rationale, assign semantic lineage, query the user, or synthesize prose.
- Brain Recursion Guard: Commits inside the
Brainrepository (/home/kiskaadee/Brain) are strictly non-loggable to prevent recursive logging loops. - Authoritative Project Mapping: Maps repositories to
06-projects/only when an authoritative directory or README reference exists; otherwise leavesprojectempty ("") without guessing. - Idempotency Barrier: Appends strictly unique commit SHAs. Duplicate invocations for the same commit are silent no-ops.
📊 Ledger Schema (00-inbox/commit-log.csv)
committed_at,repository,project,branch,commit_sha,parent_sha,subject
| Column | Description | Example |
|---|---|---|
committed_at |
Committer timestamp (ISO-8601 with timezone) | 2026-10-02T16:42:13-05:00 |
repository |
Repository root directory name | bdinvite |
project |
Brain project slug (from 06-projects/) or "" |
bdinvite |
branch |
Current branch name | feat/gitops |
commit_sha |
Full 40-character commit SHA | a81f3c2e9b7d84f... |
parent_sha |
First parent SHA (or "" if initial commit) |
91bc7de41f2a34b... |
subject |
RFC 4180 escaped commit subject line | "validate manifest after pull" |
🛠️ Usage & Invocations
Inter-Skill Invocation
Invoked programmatically by git-commit after verifying the resulting commit SHA:
bash /home/kiskaadee/Brain/05-agents/skills/commit-logger/scripts/log-commit.sh [COMMIT_SHA]
Manual / Catch-up Run
Can be executed in any repository workspace to capture the current HEAD or a specific commit:
# In any project workspace:
bash ~/Brain/05-agents/skills/commit-logger/scripts/log-commit.sh
🔗 Related Components
- 📦 Git Commit: Upstream producer that constructs and verifies atomic commits.
- 📥 Inbox Directory: Housing location for
commit-log.csv. - 🧭 Skill Collection Catalog: Index and architectural matrix of all configured skills.