Skip to content

loop-memory 0.4.12 — OKF bundle import + DB-level audit triggers

Choose a tag to compare

@github-actions github-actions released this 27 Sep 12:03
· 4 commits to main since this release

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/okf walks 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_log enforcement via SQLite triggers — MemoryStore._install_audit_triggers() installs 12 SQLite triggers on memories / wiki_pages / relations / consolidation_runs so the audit trail cannot be skipped even by a raw sqlite3 writer. MemoryStore.list_audit_log() reads the log; GET /api/stats reports audit_log + audit_triggers counts. Source: cogstate-eng/memory-eternal v0.4.3 enforceAudit() 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).