fix: the CXO sign-in role makes the first role dataset entry #94

Merged
sharang merged 1 commits from fix/role-dataset-bootstrap-cxo into main 2026-10-26 22:48:21 +00:00
Owner

The first entry of a company's role and authority dataset (only the management holders, nothing else) moves from the OWNER sign-in role to CXO.

Why

  • No tenant has an OWNER user. Every tenant's first admin is IT_ADMIN, and the portal cannot assign OWNER, so nobody could start the dataset on stage.
  • Decided by Sharang (S0 spec Q3): the first entry belongs to CXO, the management sign-in role.
  • IT_ADMIN, the technical admin, does not name management.
  • Every later change follows the dataset's own rule (B7: management and document owners).

Change

  • roles.BootstrapRole = "CXO" replaces OwnerRole; the error message and the OpenAPI text are updated.
  • Tests: the bootstrap is refused for IT_ADMIN, OWNER, LEGAL and USER, and through the API for an IT_ADMIN token. The lifecycle test bootstraps with a CXO token.

Stage only.

🤖 Generated with Claude Code

https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf

The first entry of a company's role and authority dataset (only the management holders, nothing else) moves from the `OWNER` sign-in role to **`CXO`**. ### Why - No tenant has an `OWNER` user. Every tenant's first admin is `IT_ADMIN`, and the portal cannot assign `OWNER`, so nobody could start the dataset on stage. - Decided by Sharang (S0 spec Q3): the first entry belongs to `CXO`, the management sign-in role. - `IT_ADMIN`, the technical admin, does not name management. - Every later change follows the dataset's own rule (B7: management and document owners). ### Change - `roles.BootstrapRole = "CXO"` replaces `OwnerRole`; the error message and the OpenAPI text are updated. - Tests: the bootstrap is refused for `IT_ADMIN`, `OWNER`, `LEGAL` and `USER`, and through the API for an `IT_ADMIN` token. The lifecycle test bootstraps with a `CXO` token. Stage only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
sharang added 1 commit 2026-10-26 22:21:31 +00:00
fix: the CXO sign-in role makes the first role dataset entry
ci / test (pull_request) Successful in 24m34s
ci / shared (pull_request) Successful in 14s
ci / image (pull_request) Skipped
6ab437154a
Until a company has recorded its management, the first entry (the
management holders and nothing else) was reserved to the OWNER sign-in
role. No tenant has an OWNER user: every tenant's first admin is
IT_ADMIN, and the portal cannot assign OWNER, so nobody could start the
dataset. Decided by Sharang: the first entry belongs to CXO, the
management sign-in role. IT_ADMIN, the technical admin, does not name
management; every later change follows the dataset's own rule (B7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
sharang merged commit 4dd1179ca4 into main 2026-10-26 22:48:21 +00:00
sharang deleted branch fix/role-dataset-bootstrap-cxo 2026-10-26 22:48:22 +00:00
Sign in to join this conversation.