Skip to content

ci: author implement-loop PRs as bestaxbot machine account - #231

Merged
allxsmith merged 1 commit into
mainfrom
claude/bestaxbot-implement-identity
Jul 7, 2026
Merged

allxsmith merged 1 commit into
mainfrom
claude/bestaxbot-implement-identity

Conversation

@allxsmith

@allxsmith allxsmith commented Jul 7, 2026 •

Copy link
Copy Markdown
Owner

Description

Stage 1 of 2 — give the loop a Bun/robobun-style machine identity.

Wires the bestaxbot PAT (secrets.AI_LOOP_PAT) into the implement action's github_token, so implement-loop PRs/commits are authored by bestaxbot instead of the shared claude[bot]. The model still runs on the subscription via claude_code_oauth_token.

Reviewer separation preserved (matches Bun): the deep review (claude-review.yml) keeps posting as claude[bot], so the loop's ^claude thread/state-machine filters in claude-pr-loop.yml stay intact — and it mirrors Bun's actual setup, where robobun authors and a distinct claude[bot] reviews.

Affected package(s):

  • Other: CI / GitHub Actions (.github/workflows/claude-implement.yml)

Related Issue(s)

Refs #188

Type of Change

  • Build tooling

⚠️ Validation needed after merge

Passing a user PAT to github_token is slightly off claude-code-action's documented path (that input is intended for a custom GitHub App). This is Stage 1 precisely so we can confirm on a live run that a bestaxbot-authored PR is produced (and CI still triggers) before wiring the fix job (Stage 2). If the action rejects the PAT, revert this one file.

Requires: bestaxbot is a Write collaborator (✅ done earlier) and AI_LOOP_PAT is set (✅).

Checklist

  • Self-reviewed; YAML validated; github_token confirmed on the Run Claude step
  • Deep-review identity unchanged (claude[bot]) → state machine intact

🤖 Generated with Claude Code

https://claude.ai/code/session_01NVR5yWevceZEFbTJmpviiM


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the automated issue-implementation flow to use a dedicated GitHub identity for repository actions.
    • PRs created by the automation will now be attributed to the correct machine account instead of the shared bot identity.

Wire the bestaxbot PAT (secret AI_LOOP_PAT) into the implement action's
github_token so PRs/commits are authored by the bestaxbot machine user
instead of the shared claude[bot] — mirroring Bun's robobun. The model
still runs on the subscription (claude_code_oauth_token). Reviewer
separation is preserved: the deep review (claude-review.yml) keeps
posting as claude[bot], so the loop's ^claude thread/state filters stay
intact.

Stage 1 of 2 (implement identity); the fix job follows once this is
validated on a live run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVR5yWevceZEFbTJmpviiM
@allxsmith
allxsmith merged commit 76bbe82 into main Jul 7, 2026
8 of 9 checks passed
@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c5d56ed8-106e-4c0f-993b-0995450319a7

📥 Commits

Reviewing files that changed from the base of the PR and between def26a4 and ceffb78.

📒 Files selected for processing (1)
  • .github/workflows/claude-implement.yml

Walkthrough

The Claude "implement issue" GitHub Actions workflow step is updated to explicitly set github_token to secrets.AI_LOOP_PAT, with explanatory comments added, changing the authentication identity used for GitHub operations in this workflow step.

Changes

Workflow Token Configuration

Layer / File(s) Summary
Update github_token to AI_LOOP_PAT
.github/workflows/claude-implement.yml
Sets github_token to secrets.AI_LOOP_PAT in the Claude implement issue workflow step, with added explanatory comments.

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

Possibly related PRs

  • allxsmith/bestax#219: Modifies the same workflow file to use secrets.AI_LOOP_PAT for GitHub authentication in the same workflow step.
  • allxsmith/bestax#221: Modifies the same workflow step's GitHub token/auth configuration for PR creation.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/bestaxbot-implement-identity

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment

Preview URL: https://35ea5850.bestax.pages.dev

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bestax-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants