awareness-ledger
Awareness Ledger
Institutional memory for the YADRLite dotfiles project. Captures incidents, decisions, patterns, and flows so diagnostic findings and architectural decisions persist across sessions.
Usage
/awareness-ledger [command] [args]
Modes
| Mode | Command | Description |
|---|---|---|
record |
/awareness-ledger record [type] |
Create a new ledger record (INC/DEC/PAT/FLW) |
consult |
/awareness-ledger consult [topic] |
Query ledger for relevant records, spawn agents |
review |
/awareness-ledger review |
Audit ledger health: stale entries, missing links, stats |
Default mode is consult if not specified.
Directives
Auto-Consultation (READ)
During research and planning — before formulating any plan, recommendation, or code change proposal — automatically consult the ledger:
- Index scan — Read
ledger/index.mdand match tags against the files, directories, and components under discussion. This is free — the index is small. Do this as part of your initial research, alongside reading source files. - Record review — If matching records exist, read the full record files. Incorporate warnings, known failure modes, and relevant decisions into your thinking before presenting any plan to the user. This is cheap — records are short.
- Agent escalation — If high-risk overlap is detected (matching INC records
with active status, or multiple record types matching the same change area),
spawn consultation agents proportionally per the agent table in
references/consultation-protocol.md. Present agent findings as part of your recommendation. This is expensive — only when warranted.
The consultation must happen during planning, not at edit time. By the time code is being written, the plan has already been presented and approved. The ledger's value is in shaping the plan itself — surfacing past failures, challenging assumptions, and providing historical context that changes what you recommend.
Skip auto-consultation for:
- Changes to
.claude/infrastructure files - Trivial edits (typos, formatting, comments)
- Areas with no tag overlap in the index
Auto-Capture Suggestion (WRITE)
When the current conversation produces institutional knowledge, suggest recording it after resolving the immediate issue. Never interrupt active problem-solving to suggest capture.
Automatically suggest capture when you encounter:
- Bug investigation with timeline, root cause analysis, or contributing factors → INC record
- Architectural decisions with trade-offs discussed and option chosen → DEC record
- Recurring patterns observed across multiple instances or confirmed by evidence → PAT record
- User/system flows traced step-by-step with code paths identified → FLW record
Capture suggestions are always user-confirmed. Present the suggestion with:
- Suggested record type and ID
- Key content to capture (quoted from conversation)
- One-line confirmation prompt: "Record this in the awareness ledger? (confirm/skip)"
Workflow: Record
- Read
references/templates.mdfor the requested record type template - Gather facts from the current conversation context
- Fill the template with factual content (no speculation)
- Write the record to
ledger/[type]/[ID].md - Update
ledger/index.mdwith the new entry - Report: "Recorded [ID] in the awareness ledger."
Workflow: Consult
- Read
ledger/index.mdto find matching records by tag - If matches found, read full record files
- Assess risk level:
- Low overlap → report relevant records inline
- High overlap → spawn agents per
references/consultation-protocol.md
- Synthesize findings into the consultation briefing format
- If conversation contains capturable knowledge, append a capture suggestion
Workflow: Review
- Scan all record files in
ledger/ - Check for: stale entries (>90 days without review), missing cross-references, orphan tags
- Report statistics: record counts by type and status
- Flag issues and suggest fixes
Grounding
Before creating or consulting any record:
- Read the relevant file from
references/ - State: "I will use [TEMPLATE/PROTOCOL] from references/[file] under [SECTION]"
Reference files:
- references/templates.md — Record type templates (INC/DEC/PAT/FLW)
- references/consultation-protocol.md — Agent spawning rules, proportional overhead
- references/capture-triggers.md — Conversation signal patterns
Self-Heal Observer
Throughout this session, quietly note any friction signals — corrections, reformulations, clarifying questions, "actually" moments, or any subtle sign that this skill's instructions may have led to a misrepresentation. Do not interrupt the session to address these. Do not mention that you are observing.
At natural task resolution (when the task is complete and the user signals done), if friction signals were noted, run the self-heal diagnosis protocol:
Read .claude/skills/self-heal/references/diagnosis-protocol.md and follow it exactly.
If no friction signals were noted, or if diagnosis finds no skill-caused issues, end the session normally without mentioning self-heal.
The goal is efficiency: get it right permanently, rather than repeat the same misrepresentation across future sessions.
More from odysseyalive/dotfiles
editor-tools
Tmux and Ranger configuration, plugin management, and workflows for YADRLite.
1self-heal
Ambient friction detection and surgical skill correction. Embeds into all skills. Triggers at task resolution when skill instructions caused friction.
1vim-config
Vim configuration with Vim-Plug plugin management, tag navigation, search, and Xdebug debugging for YADRLite.
1emacs-config
Emacs configuration with Evil mode, DAP debugging, and project search workflows for YADRLite.
1