/Users/tqwhite/Documents/webdev/botWorld
Phases 0-4 COMPLETE / Phases 5-9 PENDING Currently on Phase 5: Consolidation Pipeline
Process Document (tracking all work):
/Users/tqwhite/Documents/webdev/botWorld/system/management/zNotesPlansDocs/memoryConsolidationProcess.md
This Context Dump:
/Users/tqwhite/Documents/webdev/botWorld/system/management/zNotesPlansDocs/memoryConsolidationContextDump_20250109.md
Original Handoff (reference):
/Users/tqwhite/Documents/webdev/botWorld/system/management/zNotesPlansDocs/memoryConsolidationHandoff.md
Specification V4 (the truth):
/Users/tqwhite/Documents/webdev/botWorld/system/management/zNotesPlansDocs/memoryConsolidationSpecification_V4.md
Implementation Plan V4 (the roadmap):
/Users/tqwhite/Documents/webdev/botWorld/system/management/zNotesPlansDocs/memoryConsolidationImplementationPlan_V4.md
brainBridge.js: /Users/tqwhite/Documents/webdev/botWorld/system/code/cli/lib.d/brain-bridge/brainBridge.js
Backup Script Created: /Users/tqwhite/Documents/webdev/botWorld/system/code/scripts/backup-memory-consolidation.sh
Full backup created at: /Users/tqwhite/Documents/webdev/botWorld/backups/memory-consolidation-20250908_180350/
/Users/tqwhite/Documents/webdev/botWorld/backups/memory-consolidation-20250908_180350/restore-from-this-backup.sh
test_2025-09-08__23_06_12_830Z
- Promoted to shortTermtest_shortterm_ready_2025-09-08T23:06:37.069Z
- Promoted to longTermtest_promotion_ready_2025-09-08T23:06:21.352Z
- Energy 1.5test_near_expiry_2025-09-08T23:06:28.671Z
- Energy 0.0000023 (expired)test_decay_math_2025-09-08T23:07:52.159Z
- Energy 1.213 (math verification)-testMemory
command works-boostMemory
adds +1.0 energy correctly-listTestMemories
shows all test memories-decayEnergy --testOnly
works correctlyLIMIT toInteger($batchSize)
/Users/tqwhite/Documents/webdev/botWorld/system/code/cli/lib.d/wise-friend/brain/logs/
process.nextTick(() => { exec('brainBridge --brain=milo -consolidateAll') })
# Monitoring
brainBridge --brain=milo -memoryStatus
brainBridge --brain=milo -memoryHealth
brainBridge --brain=milo -listTestMemories
# Test Management
brainBridge --brain=milo -testMemory "content"
brainBridge --brain=milo -boostMemory <id>
brainBridge --brain=milo -deleteTestMemories
# Consolidation
brainBridge --brain=milo -decayEnergy --testOnly
brainBridge --brain=milo -promoteMemories --testOnly
brainBridge --brain=milo -consolidateAll --testOnly # Needs implementation
E(t) = E₀ × e^(-λt)
Where:
- Working tier: λ = 0.5 (half-life ~1.4 hours)
- Short-term: λ = 0.05 (half-life ~14 hours)
- Long-term: λ = 0.001 (half-life ~700 hours)
- Promotion thresholds: 2.0 (W→S), 5.0 (S→L)
- Expiry threshold: < 0.1
Original problem: LIMIT toInteger(config.promotionBatchSize)
fails because Cypher doesn't allow variables in LIMIT.
Solution: Pass batchSize as parameter and use LIMIT toInteger($batchSize)
All test memories have isTest: true
All commands accept --testOnly
flag
Real memories NEVER affected by test operations
{
id: string,
content: string,
tier: 'working' | 'shortTerm' | 'longTerm',
energy: float,
created: datetime,
lastAccessed: datetime,
accessCount: integer,
isTest: boolean,
validFrom: datetime,
validTo: null | datetime // null = current
}
brainBridge --brain=milo -memoryStatus
Text TQ at: txttq "message"