Skip to content

feat(roles): one request process for every role - #114

Draft
jwm4 wants to merge 7 commits into
mainfrom
docs/ladder-rework
Draft

jwm4 wants to merge 7 commits into
mainfrom
docs/ladder-rework

Conversation

@jwm4

@jwm4 jwm4 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Why

This is the companion to the contributor ladder rework proposed in fullsend-ai/fullsend (chore: let writers approve and unify the role request process). That pull request changes LADDER.md so that every role above Vouched is requested the same way: an issue in this repository, maintainer approvals as comments on the issue, then /fs-code. This pull request makes this repository match.

Tracking issue: Track the contributor ladder rework across repositories

What changes

  1. Request forms. The Triage, Write and Maintainer forms now state the new criteria and the approvals each request needs. The Maintainer form is retitled "Maintainer request". There is a new Admin request form.
  2. A check for the code agent. AGENTS.md gains a "Role requests" section. Before the code agent adds anyone to a role team in peribolos.yaml, it counts the maintainer approvals on the request issue, looks for a standing objection, and checks how long the request has been open. If a condition is not met, it makes no change and says which one. A "Removals" subsection does the same for taking someone off a role team.
  3. Code owners. CODEOWNERS adds the maintainers team beside the admins team, so a maintainer who is not an admin can approve and merge here. That includes the peribolos.yaml pull requests that grant or remove roles. Admins keep the approval they already had. The comment in repos/org.yml is updated to say so.
  4. Slack notifier. The notifier recognises Admin requests and the new Maintainer title.

Why maintainers approve here, not only admins

CODEOWNERS today names only the admins team, so every change here needs an admin's approval. This pull request adds the maintainers team. A change to any file, peribolos.yaml and the rulesets included, can then be approved by any one maintainer. This is deliberate, for these reasons:

  • The ladder gives the decision to maintainers. LADDER.md in the linked pull request says "Maintainers decide every role request above Vouched", and that they decide "who holds each role, including who the admins are". If only admins can approve the pull request that carries a decision out, the five maintainers who are not admins can decide a grant but cannot complete it. Admins would then be a second gate that the ladder does not describe and sets no criteria for.
  • Admin is a role for administrative work, not a higher level of trust. The ladder makes Admin a separate role, "not a step above Maintainer". If this repository stayed admin-only, Admin would be the role that controls who is on every team, which is the opposite of what the ladder says.
  • The pool gets wider, but a change needs the same number of people. Today a change needs one approval from one of six people. After this, it needs one approval from one of eleven. Every admin is also a maintainer today, so the eleven are exactly the maintainers. The maintainers team already has maintain access to this repository.

What still guards a change here:

  • Every change is a pull request, and GitHub does not let the author approve their own.
  • lint and the two dry runs are required checks, so the planned change to teams and settings is shown before a merge.
  • Every change has a public record of who wrote it and who approved it.

The approval counts are a convention, not a security control. The two or three maintainer approvals a role request needs are a rule that maintainers are expected to follow. They are not something GitHub enforces, and this pull request does not try to make them one. The code agent's check supports the convention in two ways. It corrects someone who has forgotten the rule, because a /fs-code comment that comes too early or with too few approvals is refused with the reason. And it discourages ignoring the rule, because the normal path counts the approvals and lists them in the pull request. A maintainer who went around the process would have to do so on purpose, in a public pull request that a second person approved.

Design decisions to check

  • The agent's check is a written rule, not a hard gate. GitHub still requires only one approval on the pull request that grants a role. The check stops honest mistakes: a /fs-code comment that comes too early is refused with the reason. The person who approves and merges the pull request confirms the conditions as well.

To do when this merges

  • Create the admin-request label in this repository. The new form and the notifier use it, and it does not exist yet.

Noticed, not changed

  • The two Triage teams have different members today (triagers has 19, fullsend-triagers has 24). The new rule adds a new Triage holder to both. This pull request does not change who is on either team.

Testing

  • python3 scripts/lint.py passes.
  • The repository's tests pass (31 tests, including the notifier's).
  • peribolos.yaml is untouched, and repos/org.yml changes only in a comment, so the dry runs should plan no changes.

Merging

This is a draft so that it does not merge before the ladder rework does. It should merge straight after that one.

This description is from Bill Murdock, with assistance from Claude Code.

🤖 Generated with Claude Code

Follow the reworked contributor ladder in fullsend-ai/fullsend:

- CODEOWNERS names the maintainers team beside the admins team, so
  maintainers approve and merge changes here, including role grants.
- The Write and Maintainer request forms ask for the new criteria, and
  an Admin request form is added. The Maintainer form is titled
  "Maintainer request" to match the others.
- AGENTS.md tells the code agent to check a role request's approvals,
  objections and time open before it edits peribolos.yaml.
- The Slack notifier recognizes admin requests and describes the new
  approval rules.

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:05 PM UTC · Completed 10:15 PM UTC

Commit: deb1be3 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.97

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Dec 2, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by protected path and workflow modifications balanced by low churn, low author contention, and stable history across touched files.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

  • [logic-error] AGENTS.md:136 — The step-down rule restores "the role below" along Maintainer → Write → Triage, but says nothing about Admin. The new Admin form lets a Write-only holder become Admin; on stepping down, the agent could add them to teams.maintainers.members with no approvals (a Maintainer request needs three).
    Remediation: Make Admin step-down explicit: remove only the Admin list and keep the person's existing contributor roles. Limit automatic lower-role restoration to the Maintainer → Write → Triage ladder.
  • [logic-error] .github/ISSUE_TEMPLATE/write-request.yml:17 — The form (and the Slack text in scripts/notify_role_request.py) says a Write request needs "no standing objection". AGENTS.md lets a Write request with a standing objection pass on approvals from more than half of the listed maintainers. Maintainers following the form and the agent will reach different answers for the same request.
    Remediation: Pick one objection policy and state it consistently in AGENTS.md, write-request.yml, and the write-request Slack text, including the majority override if intended.
  • [protected-path] AGENTS.md — This PR modifies protected paths: .github/ISSUE_TEMPLATE/*.yml (including the new admin-request.yml), .github/workflows/notify-role-request-slack.yml, AGENTS.md, and scripts/notify_role_request.py. The description explains the rationale (companion to chore: let writers approve and unify the role request process fullsend#10026), but no issue in this repository is linked. Human approval is always required for protected-path changes. Note also that the CODEOWNERS change lets a single maintainer who is not an admin give the one required approval for any file here, including peribolos.yaml and the rulesets.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

The Write request form and the Slack notifier said a Write request
needs no standing objection. AGENTS.md and LADDER.md let it pass with
approvals from more than half of the maintainers. Say that in both.

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
The step-down rule keeps the role below the one given up, in the order
Maintainer, Write, Triage. Admin is not in that order, so say that
giving it up removes the person from the Admin list and, by itself,
changes no other role list.

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:49 PM UTC · Completed 6:57 PM UTC

Commit: a2e297b · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.27

@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by protected path and workflow modifications balanced by low churn, low author contention, and stable history across touched files.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

High

  • [permission-expansion] CODEOWNERS:1 — Line 1 changes from * @fullsend-ai/admins to * @fullsend-ai/maintainers @fullsend-ai/admins. An approval from any listed owner satisfies code-owner review, and repos/org.yml requires only one approving review with require_code_owner_review: true. A maintainer who is not an admin can therefore give the single approval for every path, including peribolos.yaml (org admin list and team grants), repos/org.yml, the governance workflows and CODEOWNERS itself. The peribolos workflow applies merged changes automatically. The "three maintainer approvals" role-request rule exists only as text in AGENTS.md and the issue forms. It guides the code agent and does not bind human-authored pull requests. The PR description presents this wider merge authority as intentional, and the authorizing change lives in another repository, so I could not verify it. This needs an explicit human governance decision. A bot should not revert it.
    Remediation: Confirm the boundary is accepted. If it is not, keep admin-only entries for permission-bearing paths (peribolos.yaml, repos/, settings.yml, .github/workflows/, CODEOWNERS, org/). To let maintainers approve grants on their own, add a required, tamper-resistant check that enforces the role-request approval counts. Consider require_last_push_approval: true in repos/org.yml before widening the approver pool.

Medium

  • [protected-path] .github/ISSUE_TEMPLATE/, .github/workflows/notify-role-request-slack.yml, AGENTS.md, scripts/notify_role_request.py — This PR modifies protected governance and infrastructure files. The description explains the rationale and points to a tracking issue in fullsend-ai/fullsend, not this repository. Human approval is required for protected-path changes regardless of context.

Earlier findings

  • AGENTS.md:136, logic-error — resolved. The Removals rules now say that giving up Admin removes the person only from the Admin list and changes no other role list (AGENTS.md:140-143).
  • .github/ISSUE_TEMPLATE/write-request.yml:17, logic-error — resolved. The form now lets a Write request pass with approvals from more than half of the maintainers when an objection stands, matching AGENTS.md (write-request.yml:16-18).

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

The role name stays "Write". A person with it is "a writer", the same
way the documents already write "a maintainer" and "an admin".

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:09 PM UTC · Completed 7:16 PM UTC

Commit: 61b7fd6 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.06

@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by protected path and workflow modifications balanced by low churn, low author contention, and stable history across touched files.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

High

  • [permission-expansion] CODEOWNERS:1 — Adding maintainers to the wildcard ownership rule lets a non-admin maintainer give the one required code-owner approval for every governance change (repos/org.yml requires one approving review and code-owner review; five maintainers are not admins). This covers the org-level admins list, workflows, rulesets, CODEOWNERS itself and the agent approval policy, not only approved role requests, and the written role-request check does not constrain hand-written PRs. Unchanged since the prior review.
    Remediation: Keep admin-only ownership for security-sensitive governance files with narrower CODEOWNERS entries, or add an independently enforced authorization check before maintainers can approve role-grant changes; otherwise a human governance owner should explicitly accept this expansion.

Medium

  • [role-escalation] AGENTS.md:135 — The stepping-down exception can turn a requester-controlled role claim into a grant without maintainer approvals: the check verifies only that the person stepping down wrote or confirmed the request, not that they currently hold the role they are giving up. Someone without Maintainer access could claim to step down from Maintainer and have Write memberships added, skipping the two-approval and 48-hour Write checks. The PR still needs a code-owner approval to merge.
    Remediation: Before applying the lower-role exception, fetch the person's current memberships from peribolos.yaml on the default branch and require that they hold the role being given up; reject unsupported claims and require the ordinary grant checks for any other membership addition.
  • [protected-path] AGENTS.md — This PR modifies protected paths (.github/ISSUE_TEMPLATE/*, .github/workflows/notify-role-request-slack.yml, AGENTS.md, CODEOWNERS, scripts/notify_role_request.py). The description explains the rationale and links a tracking issue in another repository, but human approval is always required for protected-path changes.

Earlier findings

  • AGENTS.md:136, logic-error, resolved — fixed by an earlier change in this PR.
  • .github/ISSUE_TEMPLATE/write-request.yml:17, logic-error, resolved — fixed by an earlier change in this PR.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

Copy link
Copy Markdown

Finding threads left open (1):

  1. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.

Stepping down needs no approvals and keeps the role below. Without a
check that the person holds the role they name, a step-down issue could
add someone to a lower role's lists with no approvals.

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:21 PM UTC · Completed 8:29 PM UTC

Commit: 7b2410a · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.26

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by protected path and workflow modifications balanced by low churn, low author contention, and stable history across touched files.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

High

  • [permission-expansion] CODEOWNERS:1 — The catch-all rule changes from * @fullsend-ai/admins to * @fullsend-ai/maintainers @fullsend-ai/admins. repos/org.yml requires one approving review plus code-owner review, so one approval from any maintainer (11 people) can now merge any governance change. That includes edits to the teams.admins roster in peribolos.yaml, rulesets, workflows, and CODEOWNERS itself. Before this PR the approval had to come from an admin. The approval counts in AGENTS.md bind only the code agent and are not an enforced merge gate. The PR body says the widening is deliberate, but it still removes independent admin review of access changes. This is unchanged since the prior review.
    Remediation: Keep admin-only ownership for security-sensitive paths (peribolos.yaml, CODEOWNERS, repos/, settings.yml, .github/workflows/) and give maintainers ownership only of role-request paths. Or add an enforced gate that requires an admin for those paths before maintainer-approved access changes can merge. If admin and maintainer approval is intended to be equivalent, a human owner needs to decide that explicitly.

Medium

  • [logic-error] AGENTS.md:137 — The new rule at lines 135-137 says a step-down passes only for a role the person holds, and otherwise the agent must "make no change". Lines 138-142 let a person who steps down ask to give up the role below too, so it is not added. Take a Maintainer who is not on the Write lists and asks to give up both Maintainer and Write. The new check sees they do not hold Write and can reject the whole request, which blocks a valid Maintainer removal. The roster allows this: several teams.maintainers.members are not in teams.writers.members or teams.fullsend-writers.members.
    Remediation: Apply the "must hold the role" check only to roles actually being removed. When someone explicitly declines a fallback role they do not hold, skip adding it instead of rejecting the removal of the roles they do hold. Keep rejecting requests that would only add a lower role without removing a held one.
  • [protected-path] AGENTS.md — This PR modifies protected paths: .github/ISSUE_TEMPLATE/* (4 files), .github/workflows/notify-role-request-slack.yml, AGENTS.md, and scripts/notify_role_request.py. The description explains the rationale and links a tracking issue in another repository, but human approval is always required for protected-path changes. CODEOWNERS and repos/org.yml are governance files outside the protected list and are covered by the finding on CODEOWNERS.

Earlier findings

  • AGENTS.md:135 — role-escalation, resolved. The new lines at 135-137 require the person to be on the role's list in peribolos.yaml on the default branch, and say to make no change and add no one if they are not. A step-down issue can no longer be used to grant a lower role without approvals.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

Copy link
Copy Markdown

Finding threads left open (3):

  1. Thread: the explanation was posted, but the thread could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  2. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  3. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.

Stepping down used to add a person to the lists for the role below if
they were missing. That made a removal able to grant a role with no
approvals, and needed further rules to contain it. Remove the addition
and the rules that guarded it.

Assisted-By: Claude Fable 5.2(Claude Code)
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:38 PM UTC · Completed 9:46 PM UTC

Commit: f10be0b · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.42

@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by protected path and workflow modifications balanced by low churn, low author contention, and stable history across touched files.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

High

  • [permission-expansion] CODEOWNERS:1 — Line 1 changes * @fullsend-ai/admins to * @fullsend-ai/maintainers @fullsend-ai/admins. repos/org.yml requires only required_approving_review_count: 1 with require_code_owner_review: true, so one maintainer who is not an admin can now give the code-owner approval for any file in this repo. That covers peribolos.yaml (including the teams.admins list), rulesets and settings, workflows, and CODEOWNERS itself. Per the base peribolos.yaml, the maintainers team has 11 members and includes all 6 admins, so 5 non-admins gain this power (the PR author is one of them). Two non-admin maintainers could author and approve a PR that adds one of them to the admins team with no admin involved. The PR description says the delegation is deliberate and that the 2–3 approval counts in AGENTS.md are "a convention, not a security control". GitHub enforces nothing beyond one code-owner approval, and the external authorization it relies on (chore: let writers approve and unify the role request process fullsend#10026) could not be verified here.
    Remediation: Keep admin-only ownership for security-sensitive paths (for example /CODEOWNERS, /repos/, /settings.yml, /.github/workflows/, /org/) with path-specific rules after the wildcard. Or get explicit sign-off from the admins/security owners that accepts repository-wide delegation, including control of the admins team. If maintainer approval is kept for peribolos.yaml, consider raising required_approving_review_count so the approval counts are partly enforced.

Medium

  • [protected-path] AGENTS.md — This PR modifies protected paths: .github/ISSUE_TEMPLATE/* (four files), .github/workflows/notify-role-request-slack.yml, AGENTS.md, scripts/notify_role_request.py. The description explains the rationale and links a tracking issue in another repository, but human approval is always required for protected-path changes, regardless of context.

Earlier findings

  • AGENTS.md:138, logic-error, resolved — the step-down rule that could add a person to a lower role's lists without approvals was replaced by "A removal only removes" (lines 138–140), which adds no one to any list.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread CODEOWNERS
@@ -1 +1 @@
* @fullsend-ai/admins
* @fullsend-ai/maintainers @fullsend-ai/admins

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[high] permission-expansion

Adding @fullsend-ai/maintainers to the wildcard CODEOWNERS rule lets one non-admin maintainer supply the code-owner approval for every file here (peribolos.yaml incl. the admins team, rulesets, workflows, CODEOWNERS itself); repos/org.yml requires only one approving review. 5 non-admin maintainers gain this power; external authorization could not be verified.

Suggested fix: Keep admin-only ownership for security-sensitive paths via path-specific CODEOWNERS rules, or obtain explicit admin/security-owner sign-off for repository-wide delegation; consider raising required_approving_review_count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant