New agent identities get an org and role at creation #301

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

Goal

Creating a bot or service account assigns it to the caller's org with a role immediately.

Evidence

EnsureAgentOrgMembership runs only at State Store boot (internal/infrastructure/postgres/orgs.go:145-151, internal/app/statestore/server.go:160-166).

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run task check once at the end; if it fails twice on the same problem, comment on this bead and stop.

Stop when

  • POST /api/identities for a bot/service account assigns the caller's org and role in the same write.
  • The new identity is authorized without a restart.
    Then commit (Conventional Commits, scoped by package), bd close this bead and stop.

Close reason

Fixed on feat/org-epic (PR #1634)


Imported from beads archie-core-kgxw.14 · GitHub #1317 · type bug · priority P2 · created 2026-10-05 · closed 2026-10-11

## Goal Creating a bot or service account assigns it to the caller's org with a role immediately. ## Evidence EnsureAgentOrgMembership runs only at State Store boot (internal/infrastructure/postgres/orgs.go:145-151, internal/app/statestore/server.go:160-166). ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run `task check` once at the end; if it fails twice on the same problem, comment on this bead and stop. ## Stop when - [ ] POST /api/identities for a bot/service account assigns the caller's org and role in the same write. - [ ] The new identity is authorized without a restart. Then commit (Conventional Commits, scoped by package), `bd close` this bead and stop. ### Close reason Fixed on feat/org-epic (PR #1634) --- _Imported from beads `archie-core-kgxw.14` · GitHub #1317 · type bug · priority P2 · created 2026-10-05 · closed 2026-10-11_
sam added the mediumbug labels 2026-10-27 13:35:46 +00:00
sam self-assigned this 2026-10-27 13:35:46 +00:00
sam closed this issue 2026-10-27 13:35:46 +00:00
sam added a new dependency 2026-10-27 13:42:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#301