Skip to content

Commit fa1af35

Browse files
committed
Rewrite fallback strategy in plain English instead of pseudocode
Address PR feedback: Replace confusing Python-like pseudocode with clear plain English description of the fallback logic.
1 parent 5f96b81 commit fa1af35

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

  • workflows/acs-triage/.claude/commands

workflows/acs-triage/.claude/commands/triage.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,10 @@ After Stage 1, spawn specialized RCA agents for each CI_FAILURE issue:
235235

236236
**Fallback Strategy:**
237237

238-
If multi-agent approach fails (TeamCreate unavailable or agents error):
239-
```python
240-
try:
241-
# Multi-agent approach (above)
242-
except:
243-
# Fall back to single sequential analysis
244-
if exists("/tmp/triage/stackrox/.claude/agents/stackrox-ci-failure-investigator.md"):
245-
runSingleAgentAnalysis() # Old 5-minute sequential approach
246-
else:
247-
descriptionOnlyAnalysis() # Minimal analysis from JIRA description only
248-
```
238+
If the multi-agent approach fails (TeamCreate unavailable or agents error), fall back to a simpler analysis method:
239+
240+
- If the CI failure investigator agent file exists at `/tmp/triage/stackrox/.claude/agents/stackrox-ci-failure-investigator.md`, use the old single-agent sequential analysis approach (takes approximately 5 minutes per issue)
241+
- If the CI failure investigator agent file does not exist, perform minimal analysis using only the JIRA issue description
249242

250243
**Sanitization rules:** NEVER include API tokens, passwords, secrets, internal URLs with credentials, IP addresses, or employee emails in `deep_analysis` output. Use `[REDACTED]` for any sensitive values found.
251244

0 commit comments

Comments
 (0)