Skip to content

memory_status blocked-writes follow evidence visibility; STORE counts documented machine-wide (decision #213 B) #306

Closed

Description

@abogartz

Implements the accepted decision on #213 (accept B, maintainer 2026-11-04): blocked-write details follow memory_evidence visibility; aggregate STORE counts stay machine-wide and get documented as such.

Problem

blockedRecent (src/status/write.ts) reads today+yesterday write_blocked evidence with no visibility filter and emits ts, sid, reason; memory_status and the TUI payload show other repositories' session ids and block reasons while memory_evidence correctly hides them. Verified current at 06e4e28.

Fix direction

Give blockedRecent the caller's Reader and filter lines through evidenceVisibleTo (src/store/model/visibility.ts) — the quarantine list in the same surface already uses reportReader. Pass the reader at the memory_status call site in src/index.ts and in the TUI payload builder (src/injection-epochs.ts); coordinate the shared assembly with #168. State in the tool description/README that aggregate STORE counts are machine-wide by decision.

Acceptance

  • RED: scenario test — seed a repo-B write_blocked line with a distinctive sid plus repo-B rows; a repo-A memory_status prints the repo-B sid. Fails on main for exactly that reason.
  • GREEN: repo-A status omits the line and shows only its own blocked writes; the admin/global reader still sees all; STORE counts are identical before and after for every reader (counts deliberately not scoped); TUI payload agrees with the tool.
  • No existing assertion weakened; bun run typecheck && bun run lint && bun run test green, bun run test:e2e since src/ changed.

Activity

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

    @ocsi-triager

    osi-spec-hash: cbe6da30d3ca5562 2026-11-04T23:38:07Z - 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
    fix:pr-open
    and removed
    fix:working
    on Nov 5, 2026
  4. added a commit that references this issue on Nov 5, 2026
  5. abogartz-opencode-self-improvement commented on Nov 5, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.15.38 🎉

    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:readyfix:pr-openreleasedseverity:mediumstore-security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions