hapi principal create for Persons and Bots #79

Open
opened 2026-11-27 16:43:21 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

The Owner can create Principals only from the in-pod CLI: hapi principal create person|bot with a name (and a description for Bots). The first Person can be created as the Owner when no Owner exists yet. There is always exactly one Owner after that, and no HTTP route creates Principals. Principals are never hard-deleted.

Acceptance criteria

  • hapi principal create person and ... bot print the new Principal's id
  • --owner succeeds only when no Owner exists, and fails otherwise
  • Principal ids are UUIDv7
  • No HTTP route can create a Principal
Part of #73 (spec: #72) ## What to build The Owner can create Principals only from the in-pod CLI: `hapi principal create person|bot` with a name (and a description for Bots). The first Person can be created as the Owner when no Owner exists yet. There is always exactly one Owner after that, and no HTTP route creates Principals. Principals are never hard-deleted. ## Acceptance criteria - [ ] `hapi principal create person` and `... bot` print the new Principal's id - [ ] `--owner` succeeds only when no Owner exists, and fails otherwise - [ ] Principal ids are UUIDv7 - [ ] No HTTP route can create a Principal
bobby added the ready-for-agent label 2026-11-27 16:43:21 -05:00
bobby added a new dependency 2026-11-27 16:43:21 -05:00
bobby added a new dependency 2026-11-27 16:43:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#79