Skip to content

manage-user: the roster sends overseer and lead, and set_flags sets a seat's roles - #339

Merged
realrobertdouglas merged 1 commit into
mainfrom
claude/manage-user-roles
Nov 26, 2026
Merged

realrobertdouglas merged 1 commit into
mainfrom
claude/manage-user-roles

Conversation

@realrobertdouglas

Copy link
Copy Markdown
Contributor

What

Two changes to the CT↔PT bridge function.

  • roster also sends is_overseer and is_lead for each account. It sent only the admin and twin flags, so PipeTooling read an overseer as a plain seat.
  • A new verb, set_flags { ct_user_id, is_admin?, is_overseer?, is_lead? }. It changes only the flags it is given and answers with all three. Switching off the last admin is refused, so the app is never left with nobody who can manage its users.

Why

PipeTooling is the record of people. Its People → Users tab shows each person's seat here, and its person desk is gaining a Role there line with the three switches.

Prod

Merging this changes nothing: the function runs what was last deployed. The deploy is its own step (supabase functions deploy manage-user --project-ref hrqxvfydmvtvwhvefmqc), approved by the owner on 2026-11-26. PipeTooling's proxy does not forward set_flags yet.

Checked

npm run check: all 14 steps pass. The running function was read before this change and matched main. The function was not run locally (no Deno on this machine).

🤖 Generated with Claude Code

… seat's roles

PipeTooling's People screens are about to show who holds which role here, and
its person desk is about to set them. The roster sent only the admin and twin
flags, so an overseer read as a plain seat.

- roster also sends is_overseer and is_lead.
- set_flags { ct_user_id, is_admin?, is_overseer?, is_lead? } changes only the
  flags it is given. The last admin is never switched off.

Behind the bridge secret like every verb here. Nothing changes until the
function is deployed, and PipeTooling's proxy does not forward set_flags yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@realrobertdouglas
realrobertdouglas merged commit 8d89619 into main Nov 26, 2026
1 of 5 checks passed
@realrobertdouglas
realrobertdouglas deleted the claude/manage-user-roles branch November 26, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant