Skip to content

Viewer unblock: a no-op must not remove another copy's value rejection #209

Closed

Description

@WhollyMindless

Proposed classification: bug, store-security, severity:medium. Labels require maintainer permissions; these are suggestions for your triage.

For maintainer triage and approval of scope. Reviewed main at bf9f4d2, still current when these proposals were prepared. Review probes use synthetic temporary stores; this is not a report of a production incident. No implementation or assignment is implied by this issue.

VIEW-1: removeBlock/removeTombstone report success for no-ops; unblocking a never-blocked row lifts a blocked copy's tombstone

Reproduction: Temp store: rows A and B with identical content; blockMemory(B). Then removeBlock('2000-01-01T00:00:00.000Z'), unrejectMemory('deadbeef'), unblockMemory(A).

Observed: removeBlock(never-blocked) -> true; unrejectMemory(unknown ch) -> true; unblockMemory(A) -> true. B stays blocked, but the tombstone count drops 1 -> 0.

Effect: /api/unblock and /api/unreject return {unblocked|unrejected: true} for no-ops and rewrite the file needlessly. A no-op unblock can withdraw a rejection that still guards a blocked copy, so the value can be re-ingested.

Preconditions: Direct API call, or a stale client. page.html:232 only renders 'unblock' for blocked rows, so normal UI use does not hit the harmful case.

Proposed scope / decision requested

Make removeBlock/removeTombstone accurately report no-op outcomes and skip needless rewrites; unblock should not lift a value rejection when the requested row was not unblocked. Test a stale/direct API call on never-blocked A while identical-content B remains blocked, plus valid unblock behavior. This report does not decide whether deliberately unblocking one real copy should lift a shared rejection.

Please accept, narrow, defer, or decline this independently of the other review findings. We will wait for your direction before taking implementation. Happy to supply a checked-in regression reproducer with an accepted fix; the review report and probe artifacts are preserved locally.

Activity

  1. added
    bug
    store-security
    severity:medium
    agent:ready
    on Nov 1, 2026
  2. ocsi-triager commented on Nov 3, 2026

    @ocsi-triager

    osi-spec-hash: a1101cf8f00adeea 2026-11-03T23:52:45Z - 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.

  3. added
    fix:working
    on Nov 4, 2026
  4. added
    fix:pr-open
    and removed
    fix:working
    on Nov 4, 2026
  5. added a commit that references this issue on Nov 4, 2026
  6. abogartz-opencode-self-improvement commented on Nov 4, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.15.21 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    agent:readybugfix:pr-openreleasedseverity:mediumstore-security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions