OpenPRs RPC reads across orgs #311

Closed
opened 2026-10-27 13:35:48 +00:00 by sam · 0 comments
Owner

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

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
sam self-assigned this 2026-10-27 13:35:48 +00:00
sam closed this issue 2026-10-27 13:35:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#311