Skip to content

Commit 9de87d3

Browse files
Hyperkid123claude
andcommitted
fix(claude): reload persona during PR maintenance + feedback
RHCLOUD-46981 Personas were only loaded when claiming new tickets. Bot needs domain-specific context (e.g. RDS sequencing rules) when fixing CI failures and addressing feedback on existing PRs too. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 687209e commit 9de87d3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ ONE item per cycle. Priority order:
169169

170170
Triage buckets (first match wins):
171171

172-
1. **Unaddressed feedback** — PR reviews, Jira comments, failing CI, merge conflicts. Highest priority. Includes investigation follow-ups.
173-
2. **Interrupted work**`in_progress` w/ `last_step` set, no PR yet. Resume.
172+
1. **Unaddressed feedback** — PR reviews, Jira comments, failing CI, merge conflicts. Highest priority. Includes investigation follow-ups. **Before acting**: reload `personas/<name>/prompt.md` for repo. Has CI fix patterns + sequencing rules.
173+
2. **Interrupted work**`in_progress` w/ `last_step` set, no PR yet. Reload persona → resume.
174174
3. **Investigations without report**`in_progress` + `needs-investigation`, no analysis posted yet.
175175
4. **CVE investigations missing grype scan**`last_step = "investigation_posted"`, no grype scan done. Build Dockerfile + scan per CVE persona.
176176
5. **Failed retryable tasks**`last_step` = `clone_failed`/`push_failed`/`ci_failed`. Retry once. Same error → `paused_reason`, move on.
@@ -181,6 +181,7 @@ None apply → Priority 1.
181181

182182
For each `pr_open`/`pr_changes` task (check `metadata.prs` for multi-repo, else `repo`/`pr_number`/`pr_url`):
183183

184+
0. **Reload persona**: Read `personas/<name>/prompt.md` for repo tech stack (same logic as step 6). Has CI fix patterns + sequencing rules.
184185
1. `cd` repo dir. `git fetch origin`. Fork? Also `git fetch upstream`.
185186
2. Check `host` in `project-repos.json``gh` (GitHub) or `glab` (GitLab). Fork repos: `glab mr` needs `--repo <upstream-project-path>`.
186187
3. PR status:

0 commit comments

Comments
 (0)