docs (do not merge yet): approvers reported by redeem

KH
7d ago
+2-2

Do not merge yet. This changes the approval rules, which is a hard limit. Landing it needs a code owner's go, and it comes after the cloud#6709 security fix-forward deploys. The fix-forward covers a spoofable commit-author self-approval check and a movable releases/latest baseline. Approver-grant creation is on hold until then. merge-train:hold stays on.

Tracks cloud#6711.

What changes

The approval section (AGENTS.md) said the redeem response "does not report approvers yet". cloud#6709 has merged, and the redeem response now carries an approver object (grant_id, agent_id, address, granted_by). This PR names those fields, but it does not yet let an approver count.

What I found in cloud#6709:

  • Any workspace member can create an approver grant for an agent bound to them. The grant route checks ownership of the agent, not code-owner standing.
  • Cloud attests and redeems an approver grant only with own_owner standing, meaning the granter's own OK.
  • The redeem response carries no standing for granted_by, and an agent cannot map a user id to CODEOWNERS.

So "counts when the redeem reports an approver" would let any member's approver stand in for a code owner.

The new text says:

  • An approver counts only when the redeem response reports the approver object, pinned to the sending identity, together with code-owner standing for granted_by, checked by Cloud.
  • Today Cloud reports approvers only with own_owner standing, and approver grants are on hold until the fix-forward is live. Until Cloud reports code-owner standing for the granter and that fix is live, no approver counts.
  • Agents never match granted_by to a code owner themselves.
  • The hard-limit exception applies only to such a redeem. The redeem succeeding for the action is the class check, and the exception stays unusable until the same two conditions hold.

What does not change

The hard-limit bullet and its approver wording, the (code owner) line rule, the own_owner exclusion, and the fresh-redeem, receipt, fallback and PR-hold rules all stay as they are. Docs-only.

What still has to happen for approvers to count

  • Cloud: report code-owner standing for an approver's granter in the redeem response. That means checking granted_by against .github/CODEOWNERS on the base branch, and only then reporting standing other than own_owner. Alternatively, restrict approver-grant creation to code owners and say so in the response.
  • The fix-forward must be live.
  • Then a follow-up to this text: replace "Today Cloud reports…" with the shipped field.

🤖 Generated with Claude Code


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.