Skip to content

fix(review): verify redacted maintainers before proof gating - #1035

Merged
steipete merged 1 commit into
mainfrom
codex/clawsweeper-maintainer-proof-owner-20260805
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/clawsweeper-maintainer-proof-owner-20260805

Conversation

@steipete

@steipete steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Production failure

A fresh production review of openclaw/openclaw#113345 identified @steipete as CONTRIBUTOR even though owner-authenticated GitHub REST and GraphQL report MEMBER. GitHub App installation tokens can redact organization membership, causing maintainer PRs to receive contributor-only proof blockers.

Fix

  • Recover maintainer identity before review, prompt generation, report rendering, and label decisions only when an exact protected maintainer label and an independently verified author admin/maintain repository permission both agree.
  • Reuse the existing cached author-permission verifier; failed lookups, missing labels, ordinary contributors, issues, and lower permissions remain fail-closed.
  • Invalidate cached reports created with a stale contributor association while preserving raw GitHub context and snapshot integrity.

Verification

  • 119 proof-policy, review-cache, contributor, permission, and security tests passed.
  • The actual production report artifact reproduces the failure before the fix and clears the false proof blocker, proof status label, and capped rating afterward.
  • Main and repair TypeScript builds, formatting, lint, and independent security review passed.

@steipete
steipete merged commit 14bd27b into main Aug 5, 2026
9 checks passed
@steipete
steipete deleted the codex/clawsweeper-maintainer-proof-owner-20260805 branch August 5, 2026 14:52
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