Skip to content

Add auth-contributors role with write on ext-auth; make PieterKas and max-stytch Members - #254

Merged
pcarleton merged 5 commits into
mainfrom
claude/auth-contributors-role
Nov 24, 2026
Merged

pcarleton merged 5 commits into
mainfrom
claude/auth-contributors-role

Conversation

@claude

@claude claude Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Paul Carleton · Slack thread

Before: ext-auth grants access to one team, auth-maintainers (admin). Its collaborators are managed from this repo, so a write grant added by hand in GitHub is removed on the next deploy. That is why the "Writer" access given to PieterKas by hand kept lapsing. PieterKas and max-stytch (Max Gerber) have no entry in users.ts, so they hold no role here.

After:

  • A new auth-contributors team has push (write) on ext-auth and nothing else. Its members are PieterKas, nbarbettini (Nate Barbettini), and max-stytch. Their write access is declared in code and survives deploys.
  • PieterKas and max-stytch are also Members on the contributor ladder: both get ROLE_IDS.MEMBERS, which puts them in the members team.
  • nbarbettini's ladder role does not change. He already holds MAINTAINERS, the rung above Member, so he is not given MEMBERS.

What members grants PieterKas and max-stytch:

  • GitHub: push on modelcontextprotocol, and triage on docs, .github, inspector, quickstart-resources, and servers.
  • Discord: the members (synced) role, applied only to entries that have a discord id; the Discord sync skips entries without one. Both entries now have an id, each given by Paul Carleton in the linked thread, so both are synced into members (synced). The sync also removes any other managed (synced) Discord role an account holds that its entry does not declare. Both ids were checked against the Discord server on 2026-11-24:
    • PieterKas (1065355335696658472): on the server as "Pieter Kasselman (Defakto)", holding no roles. The sync adds members (synced) and removes nothing.
    • max-stytch (1099364476354035832): on the server as "Max (Twilio)", holding no roles. The sync adds members (synced) and removes nothing.
    • nbarbettini's Discord roles do not change: auth-contributors has no Discord role.

Why Member: Paul Carleton asked for it in the linked thread. About Nate Barbettini and Max Gerber he wrote that Member is appropriate because "they've both been active auth-ig contributors for over a year", and then "Pieter can also be a member". The README says to add ROLE_IDS.MEMBERS "once the ladder's sponsorship requirements are met". This PR does not record sponsors, so that is for the reviewing core maintainers to confirm.

How:

  • src/config/roleIds.ts and src/config/roles.ts: new AUTH_CONTRIBUTORS role (auth-contributors), GitHub team only. No Discord role, no Google group, no provisionUser, no discordImplies.
  • src/config/repoAccess.ts: ext-auth gains { team: 'auth-contributors', permission: 'push' }. The existing auth-maintainers admin grant is unchanged.
  • src/config/users.ts:
    • PieterKas: new entry with discord: '1065355335696658472' and memberOf: [ROLE_IDS.MEMBERS, ROLE_IDS.AUTH_CONTRIBUTORS].
    • max-stytch: new entry with discord: '1099364476354035832' and memberOf: [ROLE_IDS.MEMBERS, ROLE_IDS.AUTH_CONTRIBUTORS].
    • nbarbettini: ROLE_IDS.AUTH_CONTRIBUTORS added to his existing entry. His other roles (MAINTAINERS, WG_IG_FACILITATORS) are unchanged.
    • Someone who is not already in the org gets an org invite when their team membership is created on deploy.
  • README.md: auth-contributors added to the list of roles with no ladder counterpart.

Parent team: auth-contributors has none, so the role itself grants only push on ext-auth. A GitHub child team inherits its parent's repository access:

  • Under members, everyone later added to auth-contributors would also get the members grants above. Member status is therefore set per person with ROLE_IDS.MEMBERS, which is the way the README documents.
  • Under auth-maintainers, it would inherit admin on ext-auth, plus the grants of working-groups and steering-committee.

This follows the existing no-parent convention for members, maintainers, and security-team.

npm run check passes (format, validate, 87 tests). The Pulumi preview should show a new auth-contributors team, three memberships of it, two new members team memberships (PieterKas and max-stytch), an update to the ext-auth collaborators, and two new Discord member role syncs, for PieterKas (discord-member-sync-1065355335696658472) and max-stytch (discord-member-sync-1099364476354035832); it may also show unrelated pre-existing drift.

Add an auth-contributors GitHub team that grants push on ext-auth and
put PieterKas in it. ext-auth collaborators are managed here, so a
write grant added by hand in GitHub is removed on the next deploy; this
makes the grant durable.

The team has no parent: a child team inherits its parent's repository
access, so nesting under auth-maintainers would grant admin on ext-auth
and nesting under members would grant push on modelcontextprotocol.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HDqNdz6KVjegQzqngoZKa
@claude
claude Bot requested a review from a team as a code owner November 24, 2026 16:10
@claude

claude Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

The "Preview Changes" check is failing with Branch "refs/pull/254/merge" is not allowed to deploy to production due to environment protection rules. The job is rejected before any step runs (zero steps executed, so no checkout and no Pulumi preview of this diff), and the same failure with the same annotation is on #251, #250 and #248; the last same-repo PR where the preview ran was #247 on 2026-11-11. A repo admin needs to allow PR merge refs (refs/pull/*/merge) in the production environment's deployment branch rules for previews to work again. The "Build and Typecheck" job passed on this commit (build, npm run validate, npm run format:check), CodeQL passed, and npm run test passed locally (87 passed, 0 failed; CI does not run it).


Generated by Claude Code

Give Nate Barbettini and Max Gerber write on ext-auth through the auth-contributors team; nbarbettini's existing roles are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HDqNdz6KVjegQzqngoZKa
Add ROLE_IDS.MEMBERS to both entries, as requested by Paul Carleton; nbarbettini already holds MAINTAINERS and the auth-contributors team stays parentless.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HDqNdz6KVjegQzqngoZKa
@claude claude Bot changed the title Add auth-contributors role with write on ext-auth Add auth-contributors role with write on ext-auth; make PieterKas and max-stytch Members Nov 24, 2026
Record the Discord id Paul Carleton supplied for Max Gerber so he is synced into the members (synced) Discord role.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HDqNdz6KVjegQzqngoZKa
Record the Discord id Paul Carleton supplied for Pieter Kasselman so he is synced into the members (synced) Discord role.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HDqNdz6KVjegQzqngoZKa
@pcarleton
pcarleton merged commit 56e5b5e into main Nov 24, 2026
4 of 5 checks passed
@pcarleton
pcarleton deleted the claude/auth-contributors-role branch November 24, 2026 17:08

This branch had an error being deployed

1 failed deployment
production — 9b615117 Deployed Nov 24, 2026 by claude[bot] via Preview Changes #433
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.

2 participants