feat(organization): M1 org rights table and role bundles (#1873) #1897

Merged
jason.woltje merged 3 commits from org-m1 into refactor 2026-11-10 19:33:30 +00:00
Owner

Slice M1 of the accounts design (docs/plans/2026-11-10_accounts-design.md, section 3 and section 9).

  • packages/organization/src/org-rights.mjs: ten rights with grantable flags, owner/member/collaborator/approver bundles, VERB_RIGHTS, normalizeRights, canGrant, rightLevel. Pure and frozen; no caller yet. Unknown rights and verbs refuse.
  • Business old-path shim.
  • Bus: exports PERSON_TASK_VERBS next to BOARD_VERBS; #dispatch refuses an unlisted tasks.* verb with unknown-verb. A test pins the switch handlers to the list.

VERB_RIGHTS is pinned against the imported CONSOLE_VERBS, USER_VERBS, BOARD_VERBS and PERSON_TASK_VERBS, so a new verb without an assignment fails.

Gate on base 01b79e1db: 188 files, 2029 pass / 0 fail. Rebased on 821fbe8e9 (range-diff identical): org-rights 18/0, person-task-verbs 4/0, agent-levels 15/0, rename-v1-contract 7/0. Review: Opus 5.5 high, approve with one P3, fixed in the test-only third commit.

Slice M1 of the accounts design (docs/plans/2026-11-10_accounts-design.md, section 3 and section 9). - `packages/organization/src/org-rights.mjs`: ten rights with grantable flags, owner/member/collaborator/approver bundles, VERB_RIGHTS, normalizeRights, canGrant, rightLevel. Pure and frozen; no caller yet. Unknown rights and verbs refuse. - Business old-path shim. - Bus: exports PERSON_TASK_VERBS next to BOARD_VERBS; #dispatch refuses an unlisted `tasks.*` verb with unknown-verb. A test pins the switch handlers to the list. VERB_RIGHTS is pinned against the imported CONSOLE_VERBS, USER_VERBS, BOARD_VERBS and PERSON_TASK_VERBS, so a new verb without an assignment fails. Gate on base 01b79e1db: 188 files, 2029 pass / 0 fail. Rebased on 821fbe8e9 (range-diff identical): org-rights 18/0, person-task-verbs 4/0, agent-levels 15/0, rename-v1-contract 7/0. Review: Opus 5.5 high, approve with one P3, fixed in the test-only third commit.
jason.woltje added 3 commits 2026-11-10 19:33:23 +00:00
jason.woltje merged commit a7b2199390 into refactor 2026-11-10 19:33:30 +00:00
Sign in to join this conversation.