StateStore RPC OpenPRs (proto/state/v1/state.proto, handler internal/infrastructure/staterpc/server.go), ListOpenPRs in internal/infrastructure/postgres/queries/tasks.sql (via Store.OpenPRs in internal/infrastructure/postgres/store.go): the query has no org_id filter and the Go caller passes no scope, so any principal-carrying caller receives every org's pr_open tasks (owner, repo, PR number, identity, outputs). The daemon review scan needs the all-org view, so keep that path for unscoped callers. Done when the query filters on the caller's org.
Acceptance criteria
OpenPRs filters results to the caller organization while preserving the unscoped daemon path.
Imported from beads archie-core-kgxw.23 · GitHub #1592 · type bug · priority P1 · created 2026-10-10 · closed 2026-10-11
StateStore RPC OpenPRs (proto/state/v1/state.proto, handler internal/infrastructure/staterpc/server.go), ListOpenPRs in internal/infrastructure/postgres/queries/tasks.sql (via Store.OpenPRs in internal/infrastructure/postgres/store.go): the query has no org_id filter and the Go caller passes no scope, so any principal-carrying caller receives every org's pr_open tasks (owner, repo, PR number, identity, outputs). The daemon review scan needs the all-org view, so keep that path for unscoped callers. Done when the query filters on the caller's org.
### Acceptance criteria
OpenPRs filters results to the caller organization while preserving the unscoped daemon path.
### Close reason
Fixed on feat/org-epic (PR #1634)
---
_Imported from beads `archie-core-kgxw.23` · GitHub #1592 · type bug · priority P1 · created 2026-10-10 · closed 2026-10-11_
sam
added the highbug labels 2026-10-27 13:35:48 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
StateStore RPC OpenPRs (proto/state/v1/state.proto, handler internal/infrastructure/staterpc/server.go), ListOpenPRs in internal/infrastructure/postgres/queries/tasks.sql (via Store.OpenPRs in internal/infrastructure/postgres/store.go): the query has no org_id filter and the Go caller passes no scope, so any principal-carrying caller receives every org's pr_open tasks (owner, repo, PR number, identity, outputs). The daemon review scan needs the all-org view, so keep that path for unscoped callers. Done when the query filters on the caller's org.
Acceptance criteria
OpenPRs filters results to the caller organization while preserving the unscoped daemon path.
Close reason
Fixed on feat/org-epic (PR #1634)
Imported from beads
archie-core-kgxw.23· GitHub #1592 · type bug · priority P1 · created 2026-10-10 · closed 2026-10-11