Repository navigation
manage-user: the roster sends overseer and lead, and set_flags sets a seat's roles - #339
Merged
Merged
Conversation
… 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>
This was referenced Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two changes to the CT↔PT bridge function.
rosteralso sendsis_overseerandis_leadfor each account. It sent only the admin and twin flags, so PipeTooling read an overseer as a plain seat.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 forwardset_flagsyet.Checked
npm run check: all 14 steps pass. The running function was read before this change and matchedmain. The function was not run locally (no Deno on this machine).🤖 Generated with Claude Code