fix(memory): extended-memory extraction quality - #275
Merged
Merged
Conversation
…er-class TTL, type quotas - Extractor prompt gains example-first REJECT guidance (provenance-in-text, release ephemera, self-referential bookkeeping) and generalizing ACCEPTs. - Write-time quality validator (qualityViolation) enforces the prompt's contract mechanically: session IDs, turn numbers, PR numbers, commit hashes, version tags, pending_review references, and already-stored restatements never persist as atom text. - Ephemeral atom classes (intent, goal, error, question, file) now carry a TTL (default 14 days, ephemeral_ttl_days) and stop being recalled when expired; durable classes and pinned atoms are exempt. - Extraction runs are quota-bounded: max 3 atoms per type and 8 per run, quality-ranked by confidence so trimming keeps the strongest memories. - docs/CONFIG.md documents ephemeral_ttl_days.
…d regexes, reviewable drops - MergeConfig now honors ephemeral_ttl_days (was silently ignored). - qualityRules anchored to provenance shapes: turn numbers require a following comma/paren (prose like 'per turn 100 requests' survives), commit hashes require a digit, bare vX.Y.Z semver added as release ephemera (Go 1.24-style two-component versions stay safe). - Drops log the matched rule name for reviewability. - Legacy atoms with zero CreatedAt never TTL-expire. - filterExpiredAtoms returns a fresh slice instead of aliasing the input.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
odek | ae814c0 | Commit Preview URL Branch Preview URL |
Sep 27 2026, 02:31 PM |
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.
Summary
ephemeral_ttl_days, default 14) and stop being recalled once expired; durable classes and pinned atoms are exempt. Legacy atoms without a creation time never expire.Notes
ephemeral_ttl_days.Verification
go test ./internal/memory/extended/ -count=1green (coverage 90.6%, touched files ~95-100%)go test -racegreen,go vetclean