Repository navigation
Description
Implements the accepted decision on #214 (accept A, maintainer 2026-11-04): rejection is absolute — memory_undo force omits tombstoned values.
Problem
restoreSnapshot (src/store/undo.ts) consults no tombstone in any mode: force reinstates a value that memory_forget tombstoned, leaving the store holding an active row it also records as rejected. This contradicts #35's stated property that no tool lifts a rejection. Verified current at 06e4e28.
Fix direction
In restoreSnapshot, before publishing in force mode, consult the rejection tombstones (src/store/tombstones/rejection.ts / tombstone.ts) and omit keys that carry one; report them in a new rejectedOmitted list on the result, separate from the existing deletedOmitted. Update the check-mode reply and the memory_undo tool description in src/index.ts so the contract is stated where agents read it. Tombstone lines themselves are never edited or deleted; mis-forget recovery stays human (remove the tombstone, then plain undo).
Acceptance
- RED: scenario test — store a decision, snapshot its day file,
memory_forgetit, thenmemory_undowithforce=true: the row comes back recallable. Fails on main for exactly that reason. - GREEN: force omits the tombstoned row, names it in
rejectedOmitted, and the row stays non-recallable; a force undo of a snapshot containing rows deleted by ordinary means still restores those; blocklisted rows stay hidden in every mode; the tombstone evidence line is byte-identical before and after. - No existing assertion weakened;
bun run typecheck && bun run lint && bun run testgreen,bun run test:e2esincesrc/changed.
Activity
ocsi-triager commentedon Nov 4, 2026
osi-spec-hash: 9cae4ed762e6a814 2026-11-04T23:38:09Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
fix: apply rejection floor to every undo mode (#307)
Merge pull request #312 from abogartz/fix-issue-307-20261105T0318Z
chore(release): 0.15.36 [skip ci]
fix: memory_undo force omits tombstoned rejections (abogartz#307)
abogartz-opencode-self-improvement commentedon Nov 5, 2026
🎉 This issue has been resolved in version 0.15.36 🎉
The release is available on:
Your semantic-release bot 📦🚀