Repository navigation
loop-memory 0.4.12 — OKF bundle import + DB-level audit triggers
Weekly self-evolution cycle for window 2026-09-20 → 2026-09-27.
Headline features
- OKF v0.2 bundle import — symmetric counterpart to
export-okf(0.4.9).loop-memory import-okf <in_dir>+POST /api/import/okfwalks an OKF bundle directory and upserts each page as a wiki row keyed on(scope, slug). Idempotent, with--scope S,--dry-run,--skip-conflicts. Source: thecolourfoundation/rune (MIT, 2026-09-25) + okf-memory/okf-agent-memory Issues #12-#15 + Deja-Vu (MIT, 2026-09-24) + Google OKF v0.2 spec (Apache-2.0, 2026-09-01). - DB-level
audit_logenforcement via SQLite triggers —MemoryStore._install_audit_triggers()installs 12 SQLite triggers onmemories/wiki_pages/relations/consolidation_runsso the audit trail cannot be skipped even by a rawsqlite3writer.MemoryStore.list_audit_log()reads the log;GET /api/statsreportsaudit_log+audit_triggerscounts. Source: cogstate-eng/memory-eternal v0.4.3enforceAudit()pattern (MIT, 2026-09-23).
Test surface: 31 new regression cases (22 import-okf + 9 audit-triggers). Total: 761 + 33 subtests pass; ruff clean; secret-scan clean.
No new third-party dependency (stdlib-only).
SCHEMA_VERSION: bumped 10 → 11 (idempotent via INSERT ON CONFLICT into schema_meta + CREATE TRIGGER IF NOT EXISTS).
See docs/research/2026-09-27.md for the full weekly survey (15 projects + 4 academic papers).