Skip to content

feat(vault): add MEMORY.md root pointer index and memory-refresh command - #45

Merged
galimba merged 4 commits into
mainfrom
feat/memory-md
Jul 8, 2026
Merged

feat(vault): add MEMORY.md root pointer index and memory-refresh command#45
galimba merged 4 commits into
mainfrom
feat/memory-md

Conversation

@galimba

@galimba galimba commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Implements #11 with the design settled in triage: agent-editable operational state + deterministic refresh command (not an HR-012-protected file).

  • MEMORY.md (root, well under the 200-line budget): categorized pointers — core files, rules, latest lint report, recently active wiki pages. Ships in the pristine fresh-template state.
  • vault-tools.sh memory-refresh (new lib-memory.sh): regenerates it deterministically and idempotently; recently-active section derived from git history (core.quotePath=false so non-ASCII names survive); safe when memory/notes/ doesn't exist.
  • Doctor validates presence (warning-level — older instances don't hard-fail) and the <200-line budget.
  • Context loading order updated in CLAUDE.md / AGENTS.md / CODEX.md: MEMORY.md is step 2; added to the Critical Files table.

Verification

test-memory-refresh.sh (generation, line budget, idempotency, doctor acceptance) passes; crash repro from adversarial review (missing memory/notes/ under pipefail) fixed and re-verified; doctor exit 0; shellcheck/markdownlint clean.

Closes #11

🤖 Generated with Claude Code

galimba and others added 4 commits July 7, 2026 16:56
MEMORY.md is a thin (<200 lines), agent-editable entry-point file:
categorized pointers to the core files, rules, latest lint report, and
recently active wiki pages. New module lib-memory.sh implements
vault-tools.sh memory-refresh, which regenerates it deterministically
(idempotent; recently-active section derived from git history with
quotePath disabled for non-ASCII names). Doctor validates presence
(warning-level, so older instances do not hard-fail) and the sub-200
line budget.

Context loading order in CLAUDE.md, AGENTS.md, and CODEX.md now reads
MEMORY.md as step 2. Adds tests/test-memory-refresh.sh.

Design per issue discussion: agent-editable operational state with a
deterministic refresh command, not an HR-012-protected file.

Closes #11

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
# Conflicts:
#	.vault/scripts/vault-tools.sh
#	CHANGELOG.md
# Conflicts:
#	.vault/scripts/vault-tools.sh
#	CHANGELOG.md
@galimba
galimba merged commit 6a1dce1 into main Jul 8, 2026
7 checks passed
@galimba
galimba deleted the feat/memory-md branch July 8, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(vault): add MEMORY.md as thin root pointer index for agent context loading

1 participant