feat: nightly brain-expand, GPU resource management, memory decay zones#24
Merged
Conversation
…ecay zones - Add bin/lacp-brain-nightly: cron-ready wrapper with pre-flight checks (disk space, GPU VRAM, knowledge root), log rotation, failure notifications, and --install-cron flag for self-registration - Add gpu_pressure_ok(), acquire_gpu_lock(), release_gpu_lock() to lacp-lib.sh (nvidia-smi check with portable macOS fallback using atomic mkdir) - Add memory decay zone env vars inspired by Ori-Mnemos ACT-R model: LACP_MEMORY_DECAY_IDENTITY (0.1), KNOWLEDGE (1.0), OPERATIONS (3.0) - Add config/lacp-brain-nightly.cron template - Document all new env vars in config/lacp.env.example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three capabilities inspired by the ytscribe knowledge refinery architecture and Ori-Mnemos competitor analysis:
1. Nightly brain-expand wrapper (
bin/lacp-brain-nightly)~/.lacp/state/nightly-last-result.json--install-cronflag for self-registration to user's crontabconfig/lacp-brain-nightly.cron2. GPU resource management (
scripts/lacp-lib.sh)gpu_pressure_ok()— checks nvidia-smi for VRAM availability, skips gracefully on macOSacquire_gpu_lock()/release_gpu_lock()— flock on Linux, atomic mkdir on macOS with stale lock detectionLACP_RUNTIME_MIN_GPU_HEADROOM_MB,LACP_RUNTIME_GPU_LOCK_FILE3. Memory decay zones (config only)
Inspired by Ori-Mnemos ACT-R cognitive decay model and three metabolic zones:
LACP_MEMORY_DECAY_IDENTITY=0.1— identity notes barely decayLACP_MEMORY_DECAY_KNOWLEDGE=1.0— standard decayLACP_MEMORY_DECAY_OPERATIONS=3.0— operational notes burn hotKnowledge ingest (Obsidian)
15 notes written to vault inbox via MCP tools:
Test plan
bash -n bin/lacp-brain-nightlysyntax checkbash -n scripts/lacp-lib.shsyntax checkgpu_pressure_okreturns 0 on macOS (no nvidia-smi)acquire_gpu_lock+release_gpu_lockwork on macOSbin/lacp-brain-nightly --helpoutputs usagebin/lacp-test --quickpasses