Skip to content

Commit f63eb01

Browse files
committed
Review comments
1 parent 7d17c04 commit f63eb01

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

.claude/agents/deploy-blocker-investigator.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Find the current deploy checklist:
5959
gh issue list --label "StagingDeployCash" --state open --json number,title,body --limit 1
6060
```
6161

62-
This lists all PRs in the current staging deploy. If the bug is staging-only, the cause is likely one of these PRs.
62+
This lists all PRs in the current staging deploy. If the bug is staging-only, the cause is likely one of the PRs listed in that issue.
6363

6464
### Step 3: Find the causing PR
6565

@@ -81,7 +81,7 @@ gh pr diff <PR_NUMBER>
8181

8282
2. **Check recent changes** to the affected file:
8383
```bash
84-
git log --oneline -10 -- src/pages/Search/SearchColumnsPage.tsx
84+
git log --oneline -10 -- <affected_file>
8585
```
8686

8787
3. **Confirm the PR modifies these files**:
@@ -115,21 +115,24 @@ Post your findings and apply appropriate label changes.
115115

116116
## Decision Tree
117117

118-
After identifying the causing PR and determining your recommendation:
118+
After identifying the causing PR:
119119

120120
```
121-
┌─ Is the causing PR in `Expensify/App`?
121+
┌─ Is there an App PR that caused or contributed to the issue?
122122
123123
├─ YES → Classification = Frontend bug
124124
│ → KEEP `DeployBlockerCash` (App deploy is blocked)
125125
│ → REMOVE `DeployBlocker` if present
126+
│ → Recommend reverting the App PR
126127
127-
└─ NO (fix is in backend)
128+
└─ NO (no App PR involved—bug is purely in backend code)
128129
→ Classification = Backend bug
129130
→ REMOVE `DeployBlockerCash` if present
130131
→ KEEP `DeployBlocker` (Backend deploy is blocked)
131132
```
132133

134+
**Note:** If an App PR ships a feature the backend doesn't yet support, that's still a Frontend bug—the App PR should be reverted so we don't ship broken functionality.
135+
133136
---
134137

135138
## Recommendations
@@ -185,7 +188,7 @@ Technical explanation of what went wrong in the code.
185188
## Constraints
186189

187190
**DO NOT:**
188-
- Remove `DeployBlockerCash` if the causing PR is in `Expensify/App`
191+
- Remove `DeployBlockerCash` if there's an App PR that caused or contributed to the issue
189192
- Remove both blocker labels simultaneously
190193
- Make assumptions about code you haven't read
191194
- Recommend DEMOTE for bugs affecting core functionality (auth, payments, data loss)
@@ -208,37 +211,33 @@ Technical explanation of what went wrong in the code.
208211

209212
---
210213

211-
## Commands
214+
## Command Reference
212215

213216
**Important:**
214217
- Do not use heredocs, temp files, or shell redirects. Pass the comment body directly to `gh issue comment --body`.
215218
- Call scripts by name only (e.g., `removeDeployBlockerLabel.sh`), not with full paths. The `.claude/scripts/` directory is in PATH.
216219

217220
```bash
218-
# Step 1: Check current labels on the issue
221+
# Check current labels on the issue
219222
gh issue view "$ISSUE_URL" --json labels --jq '.labels[].name'
220223

221-
# Step 2: Get StagingDeployCash checklist
224+
# Get StagingDeployCash checklist
222225
gh issue list --label "StagingDeployCash" --state open --json number,body --limit 1
223226

224-
# Step 3: View a PR's details
227+
# View a PR's details
225228
gh pr view <PR_NUMBER> --json title,body,author,files,mergedAt
226229
gh pr diff <PR_NUMBER>
227230

228-
# Step 4: Verify the PR touches affected code
229-
# Use the Grep tool to find files related to the affected feature
231+
# Verify the PR touches affected code
230232
git log --oneline -10 -- <affected_file>
231233
gh pr view <PR_NUMBER> --json files --jq '.files[].path'
232234

233-
# Step 6: Post your findings (use single quotes for the body)
235+
# Post your findings (use single quotes for the body)
234236
gh issue comment "$ISSUE_URL" --body '## 🔍 Investigation Summary
235237
...your comment here...
236238
'
237239

238-
# Step 7: Remove label ONLY if decision tree warrants it
239-
# For Backend bugs (fix is NOT in App):
240-
removeDeployBlockerLabel.sh "$ISSUE_URL" DeployBlockerCash
241-
242-
# For Frontend bugs (fix IS in App):
243-
removeDeployBlockerLabel.sh "$ISSUE_URL" DeployBlocker
240+
# Remove label (only if decision tree warrants it)
241+
removeDeployBlockerLabel.sh "$ISSUE_URL" DeployBlockerCash # For Backend bugs
242+
removeDeployBlockerLabel.sh "$ISSUE_URL" DeployBlocker # For Frontend bugs
244243
```

0 commit comments

Comments
 (0)