New agent identities get an org and role at creation #301
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#301
Reference in new issue
Block a user
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 checkonce at the end; if it fails twice on the same problem, comment on this bead and stop.Stop when
Then commit (Conventional Commits, scoped by package),
bd closethis 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