Skip to content

docs: approvers come from the Relay platform; explicit grants may approve deploys, secrets and destructive actions - #177

Merged
khaliqgant merged 4 commits into
mainfrom
docs/approvers-from-relay-platform
Nov 27, 2026
Merged

khaliqgant merged 4 commits into
mainfrom
docs/approvers-from-relay-platform

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Approved by Khaliq (#owner-decisions 251907114153873408, 2026-11-26 7:08 PM PT): "Let granted approvers approve deploys, secrets and destructive actions, but only with an explicit grant for that kind of action and only as a used approval, and land all five PRs once reviewed". This PR changes the approval rules, which is a hard limit. That entry is the approval for it. It may merge once it is reviewed with no requested changes and checks are green. merge-train:hold stays on; permissions-rebase-coordinator does the merge.

What changes

Approvers come from the Relay platform, not from repo files. The approval section (AGENTS.md) changes in these places:

  • New bullet after the hard limits: the one redeemable exception. An approver that a code owner granted in the Relay platform, pinned to an exact Relay identity, may approve three hard-limit classes: deploys (including promotions, releases and publishes), secrets or IAM, and destructive actions.
    • It may do so only when its grant explicitly includes that class of action.
    • It counts only as a successfully redeemed approval whose redeem response reports that approver, the explicit class and the pin to the sending identity.
    • None of this is ever inferred from the delivered line, and a code_owner-standing line alone still never redeems a hard limit.
    • Every other hard limit stays non-redeemable: contract-step migration merges where listed, out-of-path production migrations, and changes to .github/CODEOWNERS or the approval rules.
    • An approver cannot approve a PR it authored or pushed to.
  • The hard-limit bullet. Its two "no redeem" sentences now say "except the approver redeem in the next bullet". The list of hard limits and the human approver wording are unchanged.
  • Code-owner bullet. It keeps its definition and adds: approvers come from the Relay platform. They are the code owners, plus agent approvers a code owner grants there, each pinned to an exact Relay identity. Repo files never name an approver.
  • Delegate-approval bullet. A redeemed approval is a code owner's OK only when the redeem reports code_owner standing, or reports an approver a code owner granted in the platform, pinned to the sending identity. The own_owner exclusion stays for redeems that report no such approver.
  • Audit-log, fallback and PR-hold lines. These now name the explicit-grant approver redeem as the only redeem that can stand in for those three hard-limit classes.

Unchanged: the redeem-before-acting, fresh-redeem-on-new-head, receipt and peer-claim rules. No agent is named. Docs-only: there is no code, workflow, CODEOWNERS, secret or branch-policy change.

🤖 Generated with Claude Code

A redeemed approval is a code owner's OK when the redeem reports code_owner
standing or an approver a code owner granted in the Relay platform, pinned
to an exact Relay identity. Hard limits and their approver wording are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d5c11c77-b38a-4deb-b494-7ae34cf9637b

No actionable comments were generated in the recent review.

Walkthrough

AGENTS.md now defines which Relay identities can approve as delegates and which redeem responses count as a code owner’s OK. It also clarifies that hard limits remain outside delegate approval and that #owner-decisions is an audit log.

Changes: Approval guidance

Layer / File(s) Summary
Redeem qualification rules
AGENTS.md
The guidance ties delegated approvers to exact Relay identities. A redeem counts as a code owner’s OK only when the response reports code_owner standing or a matching code-owner-granted approver. It excludes own_owner standing alone and hard limits, and describes #owner-decisions as an audit log after a qualifying redeem.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · previous review 143d5

This updates the guidance on which Relay identities can approve as delegates and when a redeemed approval counts as a code owner's OK. It changes no code or workflows, so production risk is negligible. Merge only after Khaliq's explicit go, as the PR states. Confirm that the backend redeem response reports the fields this guidance relies on before agents depend on the rule.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names the main change: the approval docs now say approvers come from the Relay platform, and explicit grants may approve deploys, secrets and destructive actions. The AGENTS.md diff updates …
Description check Passed The description explains the change in detail. It covers the new redeemable exception for granted approvers, the code-owner and delegate-approval wording, and the audit-log and fallback lines. It also…
Full details: Title check

Explanation

The title names the main change: the approval docs now say approvers come from the Relay platform, and explicit grants may approve deploys, secrets and destructive actions. The AGENTS.md diff updates the approver definition, the hard-limit bullet, the delegate-approval bullet and the audit-log wording to match. The title is specific and accurate, though long at 114 characters.

Full details: Description check

Explanation

The description explains the change in detail. It covers the new redeemable exception for granted approvers, the code-owner and delegate-approval wording, and the audit-log and fallback lines. It also records the approval entry and the merge hold. It is related to the changeset and passes this lenient check.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the Relay line,
The sender’s identity must align.
A redeem confirms the owner’s say,
While hard limits stay away.
The audit log records the trail,
And carrots cheer the clearer tale.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2f1ec2c-5fa7-4bd7-81c8-b83446a3e180
Commits

Reviewing files that changed from the base of the PR and between 55a7a88 and 143d509.

Files selected for processing: 1

  • AGENTS.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Devin Review: 2 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The documentation appears safe to merge; no actionable issues remain.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The documentation appears safe to merge; no actionable issues remain.

Summary

Updates AGENTS.md to describe Relay-granted approvers and their limited authority.

  • Relay-granted approvers count only when the redeem confirms their authority.

Reviews (4) · Last reviewed commit: "docs: keep the (code owner) redeem path;..." · Reviewed by Greptile

… destructive actions

Per Khaliq's decision (#owner-decisions 251907114153873408): only with an
explicit grant for that class, only as a redeemed approval whose response
reports the approver, class and identity pin. Every other hard limit stays
non-redeemable; grants never cover CODEOWNERS or the approval rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@khaliqgant khaliqgant changed the title docs (do not merge without Khaliq's go): approvers come from the Relay platform docs: approvers come from the Relay platform; explicit grants may approve deploys, secrets and destructive actions Nov 27, 2026
Comment thread AGENTS.md Resolved
khaliqgant and others added 2 commits November 26, 2026 19:16
Review fix (d5-gate-owner): a contract-step migration, CODEOWNERS or
approval-rule merge still needs a code owner's own go or a top-level entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m response

Review fixes (Greptile, Devin, CodeRabbit): the redeem response reports only
ok, consumed and the checked head, never standing, so requiring it to report
code_owner standing broke today's (code owner) path. Restore that rule; an
approver counts only once the redeem response reports it, which it does not
yet. The scope-check bullet and the hold rule now follow the exception and
require a qualifying redeem, and the exception never covers a contract-step
migration merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@khaliqgant
khaliqgant merged commit 90636f6 into main Nov 27, 2026
5 checks passed
@khaliqgant
khaliqgant deleted the docs/approvers-from-relay-platform branch November 27, 2026 03:44
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