Skip to content

Let capture correct an outdated memory in full - #51

Merged
bguidolim merged 2 commits into
mainfrom
bruno/capture-memory-corrections
Oct 28, 2026
Merged

bguidolim merged 2 commits into
mainfrom
bruno/capture-memory-corrections

Conversation

@bguidolim

Copy link
Copy Markdown
Collaborator

Why

When a session finds that a memory it relied on is wrong, capture treats the fix like a new note folded into the old one, so the memory gets a patch around a wrong premise instead of a correction. Capture now rewrites every statement the code contradicts, up to the whole memory, and checks the result as a whole.

If nothing true remains, capture marks the memory superseded rather than deleting it, so the audit drops it with approval. Without version control on the memories folder, the old text stays below the marker, since it is the only copy.

Test plan

  • mcs sync, then work on code a memory describes wrongly and run continuous-learning → expect the contradicted statements rewritten in place, not a section appended
  • Do the same with a memory whose whole claim no longer holds → expect a SUPERSEDED line under Applies to: and the file kept
  • Run /memory-audit → expect that memory proposed as a D1 drop

- Treat a memory the code contradicts as a capture candidate and rewrite every contradicted statement
- Mark an obsolete memory SUPERSEDED for the audit to drop instead of deleting it
- Keep the old body below the marker when the memories folder has no version control
- Put a correction branch first in Step 2 so a wrong memory is never treated as already captured
- Run the checks on the rewritten text and Drives on the whole file, so a Check 1 failure has an outcome
- Drop Pending and skip Refresh for an obsolete memory, and report corrections in the closing note
@bguidolim
bguidolim added this pull request to stack #53 October 28, 2026 23:26
@bguidolim
bguidolim merged commit 7005da5 into main Oct 28, 2026
5 checks passed
@bguidolim
bguidolim deleted the bruno/capture-memory-corrections branch October 28, 2026 23:38
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.

1 participant