Repository navigation
Waterfall Memory Architecture
The Waterfall Memory Pipeline is the core operational mechanism of the Tier 5 Autonomic Nervous System. It is designed to solve the "Knowledge Drift" and "Token Burn" problems inherent in autonomous AI agents.
Instead of an agent carrying its entire sprawling history into every turn, A.I.M. utilizes a self-cleaning autonomic hierarchy. This ensures that the agent's Active Context remains lean and focused on architectural truth, while its Deep Memory is safely offloaded and synthesized into axioms.
Refinement happens in logical background waves. Each stage only fires once its specific "Wait Interval" has been met since its last execution. These intervals are fully adjustable via core/CONFIG.json.
💡 Note on Terminology: Do not confuse these Pipeline Stages with the 5 Tiers of the Cognitive Architecture. This entire timeline represents the internal machinations of Tier 5 (Autonomic).
| Stage | Name | Default Interval | Objective |
|---|---|---|---|
| Stage 1 | Harvester | 1 Hour | Convert raw chat export deltas into structured technical reports. |
| Stage 2 | Proposer | 12 Hours | Consolidate Stage 1 reports into a structured Delta Proposal. |
| Stage 3 | Refiner | 1 Day | Distill Stage 2 proposals into a cohesive Daily State. |
| Stage 4 | Consolidator | 3 Days | Elevate Stage 3 achievements into macro project milestones. |
| Stage 5 | Archivist | 6 Days (144h) | Solidify Stage 4 milestones into dense, factual engrams and Auto-Apply to Deep memory/KIs. |
To keep the pipeline efficient, A.I.M. enforces a strict Consumption Rule. When a higher stage successfully processes data from a lower stage, it "consumes" that data.
- Logic: If Stage 2 (Proposer) consolidates reports from Stage 1, those hourly reports are immediately archived or deleted.
-
Benefits:
- Zero Redundancy: The agent's background processor never reviews the same data twice.
- Stateless Execution: Each script only looks for "new" files in its target folder.
-
Automatic Cleanup: The
memory/directory does not bloat over time. Once a fact is committed, the intermediate scaffolding is purged.
A.I.M. treats "What happened" and "What we learned" as two completely different systems.
The Waterfall pipeline described above is strictly for updating long-term state. It uses an ARC-only model (Add/Remove/Contradict) to save tokens. Only the final commit operation performs a full rewrite of the memory files.
A separate mechanism runs during the handoff process to preserve the full record of every session.
- During
/reincarnate, theLAST_SESSION_FLIGHT_RECORDER.mdcaptures an exact trace of the workflow history to provide deep searchability if an agent later realizes it forgot how an implementation occurred.
The entire pipeline is user-configurable natively inside Antigravity by altering core/CONFIG.json (replacing the legacy aim tui cockpit menu).
- Set Intervals: Change how frequently each Stage fires.
-
Toggle Cleanup: Choose between
ARCHIVEmode orDELETEmode for consumed files.
- Atomic Architecture (The KISS Manifesto)
- Origin Story
- The Logic Of A.I.M.
- The A.I.M. Handbook (Operator's Manual)
- The Swarm Post Office (Comms Interface)
- The Master Schema
- Waterfall Memory Architecture
- Technical Specification
- Script Map (Core Codebase Map)
- Brain Map (Memory Architecture)
- A.I.M. Prompt Injection Map
- AI Prompt Ledger
- Onboarding Identity Map
- Handoff Architecture Guide
- Reincarnation Map
- TUI Map (Cockpit UI Logic)
- The Global Chalkboard (Concept: Document Data Bus)
- Remote Fleet Architecture (Concept: The Phantom Keyboard)
- The Eureka Protocol (Concept: Live Context Pruning)
- The Sovereign Swarm (Concept: BitTorrent DataJack)
- The Decoupled Brain (Concept: Obsidian Transport Layer)
- Obsidian Bridge Architecture
- Layered Engram Architecture
- The Pragmatic Feature Manifesto
- The Cascading Memory Engine
- Hybrid RAG (Semantic + Lexical)
- Cognitive Routing
- The DataJack Protocol
- Runbook Engram Creation
- The GitOps Bridge
- Feature Quarantine Daemon
- The 30 Percent Rule
- TUI Handoff Report
- The Universal Skills Framework
- Vibe Coding Pipelines (Automated Agentic Assembly)
- Cartridge Farming Ecosystem
- Design Future Architectures
- The Collective Cortex (Vision: SETI@home for AI)
- Sovereign Swarm (P2P) (Architecture: P2P DataJack)
- Eureka Protocol & Synapses (Protocol: Synthetic Data Factory)