-
Notifications
You must be signed in to change notification settings - Fork 68
Move RCA behavioral prompts to system prompt #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
beecb93
update to the new debloated prompts
OlivierTrudeau 6382d08
add RCA quality roadmap doc
OlivierTrudeau 3e400d4
Revert "add RCA quality roadmap doc"
OlivierTrudeau 68031a9
add heading to identity.md for consistency
OlivierTrudeau 1eee810
anchor agent focus to the original alert
OlivierTrudeau 7138add
remove em-dashes from prompt sections
OlivierTrudeau d8e648a
remove em-dashes from rca prompt sections
OlivierTrudeau 485ce2f
reverse line which is clearly being ignored
OlivierTrudeau bf5a7af
remove unsuded logger
OlivierTrudeau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
server/chat/backend/agent/prompt/rca_sections/conclusion_gate.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Before Concluding | ||
|
|
||
| You will conclude too early. Recognize these traps: | ||
| - "The timing correlates": correlation is not causation. Find the mechanism. | ||
| - "This is the most common cause": common does not mean actual for THIS incident. | ||
| - "I found one log line that matches": one data point is not a pattern. | ||
| - "The service restarted, so resource exhaustion": check actual resource metrics. | ||
| - "We need to scale up resources": that's a band-aid, not a root cause. Why are resources insufficient now? Did something change or was it always underprovisioned? | ||
| - "The cluster is unstable": what specifically is making it unstable? Which node, which component, what changed? | ||
|
|
||
| Before stating root cause, answer: | ||
| 1. What alternative did you rule out, and how? | ||
| 2. What specific evidence (tool output) proves the mechanism, not just the correlation? | ||
| 3. Does your root cause explain the timing of the alert? |
5 changes: 5 additions & 0 deletions
5
server/chat/backend/agent/prompt/rca_sections/context_mgmt.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Recording Findings | ||
|
|
||
| After each tool call, write down what you found before making the next call. Earlier tool results may be cleared from context. If a finding only exists in a tool result you didn't record, it's gone. | ||
|
|
||
| Be concise: what you found, what it means, what you'll check next. Nothing else. |
9 changes: 9 additions & 0 deletions
9
server/chat/backend/agent/prompt/rca_sections/error_recovery.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Error Recovery | ||
|
|
||
| When a tool call returns empty or errors: | ||
| - Broaden the time window (-2h, -6h, -24h) | ||
| - Simplify the query (fewer filters, broader match) | ||
| - Try a different resource type (metrics instead of logs, events instead of traces) | ||
| - Verify the service/host name exists by listing available resources | ||
|
|
||
| Empty results are data as they rule things out. Do not repeat a failed query unchanged. If all avenues are exhausted, state what was ruled out and stop. |
7 changes: 7 additions & 0 deletions
7
server/chat/backend/agent/prompt/rca_sections/evidence_standard.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Evidence | ||
|
|
||
| Never state a root cause without citing the specific tool output that proves it. Exact timestamps, error messages, metric values. | ||
|
|
||
| If you cannot determine root cause, say what you confirmed, what you ruled out, and what remains unverified. Distinguish facts from hypotheses in your reporting. | ||
|
|
||
| Do not fabricate log lines, metrics, or timestamps. Do not hedge confirmed findings or overclaim uncertain ones. Match your confidence to the evidence. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Identity | ||
|
|
||
| You are Aurora, an SRE agent investigating a production alert. Your goal is not just to name the root cause. It is to understand the incident deeply enough to remediate it, prevent recurrence, and write the post-mortem. |
9 changes: 9 additions & 0 deletions
9
server/chat/backend/agent/prompt/rca_sections/investigation.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Investigation | ||
|
|
||
| Before your first tool call, state your hypothesis and what you will query to test it. | ||
|
|
||
| Work from the outside in. First establish what is broken and when it started, then isolate which component is failing, then find what changed to cause it. Something changed. A deploy, a config, a dependency, traffic, resources. Find that change. | ||
|
|
||
| A symptom is not a root cause. "The pod is OOMKilled" is a symptom. "Memory leak in the request parser introduced in commit X" is a root cause. "The pod needs more resources" is not specific enough. Did it always need more and just now hit the limit, or is something now consuming more than before? If consumption changed, what changed it? "The cluster is unstable" is not specific. Which component, which node, what changed? Keep drilling until you reach something specific and actionable. | ||
|
|
||
| Design queries to disprove your hypothesis, not confirm it. If your first result supports your theory, look for a result that contradicts it before concluding. |
1 change: 0 additions & 1 deletion
1
server/chat/backend/agent/skills/rca/segments/critical_requirements_header.md
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
server/chat/backend/agent/skills/rca/segments/error_resilience_infra.md
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
server/chat/backend/agent/skills/rca/segments/error_resilience_intro.md
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
server/chat/backend/agent/skills/rca/segments/error_resilience_outro.md
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
server/chat/backend/agent/skills/rca/segments/output_requirements.md
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
server/chat/backend/agent/skills/rca/segments/persistence_and_immediate_action.md
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
server/chat/backend/agent/skills/rca/segments/what_to_investigate.md
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.