Skip to content

P0: Value-keyed rejection tombstone — rejected content must stay rejected across re-ingestion #35

Closed

Description

@abogartz

Part of #83.

Problem

Nothing is keyed on a rejected value. The blocklist keys on ts (row identity); memory_forget/prune deletes the row. Re-ingest the original source (or re-run auto-capture over the same transcript) and the rejected fact is stored again as if new.

This is step 6 of the Agent Memory Atlas 13-step deletion-durability test ("most systems fail here"): https://neoneye.github.io/agent-memory-atlas/benchmarks/ — and the pattern the atlas calls the most-repeated gap in the field ("Deleting without refusing… something has to be keyed on the value"). MemoryGraft (arXiv:2512.16962) shows poisoned memories persisting through retrieval; Weighted Memory Tree (arXiv:2608.20631) shows suppressing and removing look identical for one turn and diverge over a session.

Proposal

  • New rejected.logfmt at the memory root, keyed by the contentHash the gates already compute (ch on gate_start / write_blocked).
  • GATE-3 consults it: exact/near match against a tombstoned hash → blocked, reason previously_rejected, hint carries the original rejection reason + date.
  • memory_forget/prune and block record the content hash so a human rejection tombstones the value; explicit un-tombstone command as the escape hatch.
  • Auto-capture and import route through runWriteGate, so they inherit the check for free.
  • Audit events only, never values (atlas step-10 inversion: a deletion log that reproduces the deleted secret is a compliance problem).

Cost

~60 lines + tests. Pair with the re-ingestion stress test (#43 — its item 4 is the red-first acceptance spec for this ticket).

Activity

  1. added
    store-security
    on Oct 24, 2026
  2. added
    severity:critical
    on Oct 30, 2026
  3. abogartz commented on Oct 30, 2026

    @abogartz
    OwnerAuthor

    Severity triage 2026-10-30 — severity:critical (the MVP blocker)

    Reviewed against main @ 525ed89 (v0.14.24). Still entirely unbuilt: grep -rn "rejected.logfmt\|previously_rejected" src/ → zero hits. Nothing in the codebase is keyed on a rejected value.

    This is the only ticket on the board I am marking critical, and it is the one I'd pick up next. Reasoning:

    1. It is the only open gap where the product's stated promise is false for a user today. "Block this / forget this" is the user's control over what enters their prompts. Right now re-ingesting a source resurrects it. Every other open security ticket is either closed, narrowed behind preconditions, or a hardening improvement on a boundary that already holds.
    2. The acceptance spec is already committed and waiting. test/negative-eval.test.ts:349 — test.skip("pruned content stays rejected when replayed through the gate (#35)"), with the comment "at which point un-skip this test — it must turn green without being edited." That is a red-first spec sitting in the tree with the exact pass condition written. Unusually cheap start.
    3. The hash you need already exists — ch on gate_start / write_blocked, computed by the gates today. This is plumbing, not research.
    4. Both write paths that could resurrect content (memory_import, auto-capture) already route through runWriteGate, so GATE-3 inherits the check for free.

    Your own title says P0 and #83 calls it "the durable-rejection gap everything else in the field fails" — I agree, and it is also the highest-value-per-line remaining. #43's residuals and the skipped spec both clear behind it.

    One scoping note worth deciding up front: your proposal says the tombstone records hashes only, never values (atlas step-10 inversion). That is right, but it means "exact/near match" has to be a decision — exact contentHash match is trivial and unambiguous, near-match needs a normalization rule (case? whitespace? the flattenMemoryText collapse?) and near-match false positives silently block a legitimate new write. I'd ship exact-match-only first and keep near-match as a follow-up, so a false positive can't eat a user's write.

  4. abogartz commented on Oct 30, 2026

    @abogartz
    OwnerAuthor

    Started on branch fix/rejection-tombstone-35 → PR #194.

    Scope as agreed: near-match included, not exact-only.

    Two notes for when you review it, both raised in the PR body:

    1. The 0.40 near-match floor is measured, not chosen. Rewordings of the same claim scored 0.500–0.615, same-topic-different-claim 0.059–0.235, unrelated 0.000, so 0.40 sits mid-gap. My first guess (0.8) would have made the mechanism never fire — a genuine rewording scores 0.47.
    2. Mutation-checking found an unpinned invariant in my own tests. Collapsing the guard band killed nothing, because the only over-blocking test used prose that scores 0.0 against anything and so stays green at any floor. Added a pin over the 0.059–0.235 pairs; it dies when the band is collapsed and passes at shipped settings.

    Acceptance is the spec you already committed: negative-eval.test.ts un-skipped without editing its assertions, and the scenarios-scripted import case flipped to row absent, tally blocked exactly as its comment predicted.

    bun run gate on the branch: 739 pass / 11 skip / 0 fail unit, 11/0 terminal e2e, tsc clean, biome lint 0.

  5. abogartz-opencode-self-improvement commented on Oct 30, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.14.25 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  6. added 2 commits that reference this issue on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    releasedseverity:criticalstore-security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions