Skip to content

refactor(effect): migrate mate memory runtime - #173

Merged
robinbraemer merged 2 commits into
mainfrom
feat/effect-memory-model
Aug 2, 2026
Merged

refactor(effect): migrate mate memory runtime#173
robinbraemer merged 2 commits into
mainfrom
feat/effect-memory-model

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Outcome

Migrates the remaining Mate-memory graph to typed Effect programs while preserving Pi host contracts, native file formats, pause-generation semantics, bounded recall, extraction, and Dream coordination.

Closes #98.
Progresses #102.

What changed

  • Replaced raw filesystem, crypto, JSON/YAML, Promise orchestration, timers, and thrown failures in memory schema/store/activity, relevance selection, maintenance, and the Pi extension with Effect services, Schema, scoped handles, Fibers, and typed errors.
  • Made pause/mutation guards lazy at execution time so a pause racing a final filesystem commit fails closed.
  • Preserved bounded index/topic/activity loading, symlink defenses, native edit validation/stamping, pending-capacity reservations, redaction, telemetry attribution, Dream locking, and lock ownership.
  • Exposed createMateMemoryStoreEffect; retained the existing published Promise shape only through the single reviewed shared legacy host adapter for not-yet-migrated executable consumers.
  • Replaced five Promise/Bun suites with five @effect/vitest suites and removed eleven stale baseline entries.
  • Added the memory suites to the repository-wide Effect test gate.

Verification

  • bun run effect:check — 411 TypeScript paths assigned; no violations
  • bun run build
  • bun run typecheck
  • bun run effect:test — 61 files, 344 tests
  • bun run effect:bun:test — 2 files, 6 tests
  • bun run site:test — 27 files, 114 tests
  • broader legacy test phase completed successfully before the Effect and site phases
  • git diff --check

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
agentos-site c43acfa Aug 02 2026, 12:37 AM

@robinbraemer
robinbraemer merged commit fd9c101 into main Aug 2, 2026
1 of 3 checks passed
@robinbraemer
robinbraemer deleted the feat/effect-memory-model branch August 2, 2026 00:42
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.

refactor(effect): migrate Pi extensions, memory, and compaction

1 participant