Skip to content

fix(skills): resolve GitHub identity from authenticated account - #125481

Merged
jalehman merged 1 commit into
mainfrom
fix/pr-maintainer-auth-identity
Aug 18, 2026
Merged

jalehman merged 1 commit into
mainfrom
fix/pr-maintainer-auth-identity

Conversation

@jalehman

@jalehman jalehman commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

AI-assisted: Codex

What Problem This Solves

Fixes an issue where maintainer agents could infer a chat user's GitHub identity from an environment-specific hardcoded mapping and assign an issue or PR to the wrong account.

Why This Change Was Made

The maintainer skill now resolves assignment identity from the GitHub account authenticated for the mutation, matching the canonical scripts/pr claim flow. When the requester differs from that account or the relationship is uncertain, the skill leaves the target unassigned or requires an explicit bare login.

User Impact

Maintainer agents no longer guess GitHub assignment identity from chat identity.

Evidence

  • python3 skills/skill-creator/scripts/quick_validate.py .agents/skills/openclaw-pr-maintainer — passed.
  • git diff --check origin/main...HEAD — passed.
  • Focused contract check confirmed origin/main contains default Peter to steipete, while this branch removes it and documents gh api user --jq .login / gh_plain api user --jq .login.
  • .agents/skills/autoreview/scripts/autoreview --mode local — clean; no accepted/actionable findings.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@jalehman
jalehman marked this pull request as ready for review August 18, 2026 00:41
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 8:52 PM ET / August 18, 2026, 00:52 UTC.

ClawSweeper review

What this changes

This PR changes the PR-maintainer skill so GitHub assignment mutations derive their assignee from the GitHub account authenticated for the mutation rather than a chat-name mapping.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal human review. The patch replaces a source-proven unsafe identity guess with the authenticated-account flow already used by the canonical PR claim path; the protected maintainer label prevents automated cleanup.

Priority: P2
Reviewed head: 505dd78f77f8014f422a732b1fcf2f72af67d239

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned instruction correction with no correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state marks the author as a MEMBER, so the external-contributor real-behavior-proof gate does not apply; the reported static validation remains supplemental.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state marks the author as a MEMBER, so the external-contributor real-behavior-proof gate does not apply; the reported static validation remains supplemental.
Evidence reviewed 5 items Current-main defect: Current main instructs agents to default a chat requester named Peter to steipete, rather than deriving the identity from the credential used for the mutation.
Canonical owner flow: The PR claim implementation resolves gh_plain api user --jq .login and uses that same gh_plain client to assign the PR, matching the proposed instruction.
Existing contract tests: Existing tests assert that the claim flow resolves the login through gh_plain api user before assignment, and that gh_plain preserves the authenticated client path.
Findings None None.
Security None None.

How this fits together

The PR-maintainer skill directs agents that triage and mutate GitHub issues and pull requests. It resolves an assignee before an authorized GitHub mutation is made.

flowchart LR
A[Maintainer request] --> B[PR-maintainer skill]
B --> C[Resolve authenticated GitHub login]
C --> D{Identity relationship known?}
D -->|Yes| E[Authorized assignment]
D -->|No| F[Leave unassigned or request login]
Loading

Before merge

  • Complete next step (P2) - The protected maintainer label keeps this active PR in human merge handling; source review found no mechanical repair to dispatch.
Agent review details

Security

None.

PR surface

Docs 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Review metrics

Metric Value Why it matters
Instruction versus test delta agent instructions +1/-1; tests +0/-0 The PR replaces one operational identity rule and relies on existing claim-flow contract coverage.

Technical review

Best possible solution:

Keep one canonical rule: resolve the assignee from the GitHub account used for the mutation, with no chat-identity fallback.

Do we have a high-confidence way to reproduce the issue?

Yes—source-reproducible: current main hardcodes a chat-derived login while the canonical claim path resolves the authenticated account first; no live mutation was run in this read-only offline review environment.

Is this the best way to solve the issue?

Yes. The patch aligns the skill with the existing mutation-boundary claim flow and removes the competing chat identity inference.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3dd95d7bf790.

Labels

Label justifications:

  • P2: The PR corrects a bounded maintainer GitHub-assignment workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository state marks the author as a MEMBER, so the external-contributor real-behavior-proof gate does not apply; the reported static validation remains supplemental.

Evidence

What I checked:

Likely related people:

  • ClawSweeper: Current-line blame attributes both the existing skill instruction and canonical PR-claim implementation snapshot to the same commit. (role: historical source contributor; confidence: medium; commits: 248966d30081; files: .agents/skills/openclaw-pr-maintainer/SKILL.md, scripts/pr-lib/review.sh)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-18T00:47:46.845Z sha 505dd78 :: needs maintainer review before merge. :: none

@jalehman
jalehman merged commit c5c8a1e into main Aug 18, 2026
107 of 109 checks passed
@jalehman
jalehman deleted the fix/pr-maintainer-auth-identity branch August 18, 2026 05:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant