Skip to content

Merge main into dev — Persistent Cortex storage (v0.4.1)#61

Merged
ApiliumDevTeam merged 7 commits intodevfrom
main
Mar 9, 2026
Merged

Merge main into dev — Persistent Cortex storage (v0.4.1)#61
ApiliumDevTeam merged 7 commits intodevfrom
main

Conversation

@ApiliumDevTeam
Copy link
Contributor

Summary

Test plan

  • cargo build --workspace && cargo test --workspace

v0.3.7 — Security hardening, legacy separation, crash prevention
Release v0.3.8 — Kitsune P2P Phase 2
Release v0.4.0 — Rebrand AI crates & legal standardization
Switch Cortex from volatile in-memory GraphDB to Sled-backed persistent
storage by default (~/.aingle/cortex/graph.sled). Add --db and --memory
CLI flags, /api/v1/flush endpoint, Ineru memory snapshot export/import,
and graceful shutdown with automatic data flush.

- Add db_path to CortexConfig with :memory: escape hatch
- Add AppState::with_db_path() for Sled or memory initialization
- Add AppState::flush() for graph + Ineru snapshot persistence
- Add GraphDB::flush() and GraphStore::flush() delegating to backend
- Add IneruMemory export/import/save/load snapshot methods
- Add POST /api/v1/flush REST endpoint
- Enable sled-backend feature in aingle_cortex by default
- Graceful shutdown flushes graph + saves Ineru snapshot on SIGINT
- Bump all crate versions 0.4.0 → 0.4.1
Use tokio::select! to listen for both SIGINT (ctrl_c) and SIGTERM,
ensuring Cortex flushes graph data and saves Ineru snapshots when
the sidecar manager sends SIGTERM during binary updates.
Persistent Cortex storage with Sled backend and Ineru snapshots
@ApiliumDevTeam ApiliumDevTeam merged commit 518ca9c into dev Mar 9, 2026
26 of 28 checks passed
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.

1 participant