Repository navigation
Add searchable per-user memory and nightly dreaming - #2
Merged
Merged
Conversation
Postgres-backed Eve memory slot: long-term facts and matching notes are recalled before each model call; memory__save/search/forget tools; an hourly schedule consolidates notes into facts at 3 a.m. local time; and a /memory page to inspect, search, correct, and forget.
Run agent work from signed Composio app events
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pidge previously forgot information between conversations. This adds per-user searchable notes, recalled long-term facts, a nightly consolidation pass (“dreaming”), and an authenticated /memory page for reviewing, confirming, correcting, and forgetting memories.
Behavior
memory__savecalls always create unconfirmed inferred notes. Dreamed facts remain inferred; model input cannot grant explicit provenance. Explicit facts and corrections come from authenticated /memory actions. Tool-driven forgetting requires Eve approval. Scheduled reports receive search only; notify hand-offs disable the slot.Example automatic tool input:
{"text":"May prefer aisle seats."}creates an inferred note. A person adds or confirms an explicit fact on /memory.Evidence
All data and provider results were synthetic. No model, messaging, email, or live subscription calls were made.
The focused run includes two additional checks added after the full run: migration upgrades and bounded/stale dreaming output. Final typecheck, lint, build, and release privacy check passed (172 tracked paths). The release check initially rejected a synthetic address using example.test; the fixture now uses its accepted example.com domain.
Pinned Eve lifecycle regressions restore JSON-serialized durable state into a fresh context and exercise both turn-start and compaction recall after mutation. Other regressions cover complete provenance erasure, atomic capacity failures, explicit duplicate confirmation, concurrent saves, one model-stub call across eight simultaneous dreams, expired leases, forgotten dependencies, pending-note pagination, and secret-shaped inputs.
The migration test compares empty and original-memory-0005 upgrade paths, runs migrations twice, preserves synthetic preexisting rows, resolves old duplicate active rows without dropping their provenance, and compares resulting columns and indexes.
Migration and remaining verification
Apply
0005_memorythen0006_memory_safetyviapnpm db:migrate. No new environment variables. PR #3 depends on this branch and adds the next trigger migration; merge #2 first, then #3. Neither PR is deployed by this work.Live model capture quality, real dreaming, /memory browser interaction, and channel delivery remain unverified. Capture remains model-driven; ordinary user turns can still save an incorrect unconfirmed observation. Search is keyword-based. Exact normalized tombstones do not prevent semantic paraphrases of forgotten content, and forgetting does not erase conversation history, provider logs, or backups. Downtime during the local 3 a.m. hour skips that night's pass.
ELI5
Pidge keeps a searchable notebook for each person. It can suggest notes and summarize them overnight, but only the person can mark a fact as confirmed. The person can correct or erase the notebook at /memory.