| name | soleri-fix-and-learn |
| tier | default |
| description | Triggers: "fix it", "apply the fix", "patch this and remember", "fix and capture". Executes fix after root cause identified, captures learning to vault. Use systematic-debugging first. |
Fix & Learn โ Debug, Repair, Capture
Fix bugs through a structured recovery workflow, then capture the root cause as a reusable anti-pattern. The learning step makes fixes compound across sessions.
The Search Order โ MANDATORY
Never jump to writing code. Always follow this lookup order:
- Vault first โ has this been solved before?
- Web search โ is there a known solution?
- Plan the fix โ design approach before touching code
- Implement โ only after steps 1-3
Orchestration Sequence
Step 1: Classify and Route
YOUR_AGENT_core op:route_intent
params: { prompt: "<bug description>" }
Step 2: Check Vault First
YOUR_AGENT_core op:search_intelligent
params: { query: "<error message or bug description>" }
YOUR_AGENT_core op:memory_search
params: { query: "<bug description>" }
If vault returns a high-confidence match โ use it. Don't re-investigate solved problems.
Step 3: Search the Web
If vault has no answer, search for known issues, Stack Overflow answers, GitHub issues, official docs.
Step 4: Start Fix Loop
YOUR_AGENT_core op:loop_start
params: { prompt: "Fix: <bug description>", mode: "custom" }
Step 5: Diagnose and Fix
If Steps 2-3 didn't produce a solution, use systematic-debugging skill:
- Reproduce the issue
- Isolate root cause
- Plan the fix before writing code
- Implement the fix
- Verify โ no regressions
Step 6: Validate
Run test suite. Use verification-before-completion skill. Complete loop: YOUR_AGENT_core op:loop_complete.
Step 7: Capture the Learning
YOUR_AGENT_core op:capture_knowledge
params: {
title: "<bug title>",
description: "<root cause, solution, what made it hard to find>",
type: "anti-pattern",
domain: "<domain>",
tags: ["<error-type>", "<component>"]
}
Run YOUR_AGENT_core op:curator_detect_duplicates to avoid redundant entries.
Exit Criteria
Bug resolved, tests pass, root cause captured in vault. A fix without a capture is incomplete.
Common Mistakes
- Jumping to code before searching vault/web
- Skipping the capture step after fixing
- Not running the full test suite to check regressions
Rationalization Prevention
Do NOT rationalize away failures. A fix is not done until it is proven done.
- HARD-GATE: The original symptom must be verified as resolved (test passes, error gone) before claiming the bug is fixed.
- HARD-GATE: Full test suite must pass (no regressions) before completing the fix loop.
- Do not say "the fix should work" -- reproduce the original issue and confirm it is gone.
- Do not say "this is unrelated" to dismiss a new test failure without investigation.
- Do not skip the capture step -- a fix without a vault entry is incomplete.
- If the fix introduces a new failure, the fix is not done. Do not rationalize it away.
- If you cannot verify the fix, say so. Never claim success without evidence.
Quick Reference
| Op | When to Use |
|---|
route_intent | Classify as FIX intent |
search_intelligent | Check vault for known bugs |
memory_search | Search session memories |
loop_start / loop_iterate / loop_complete | Iterative fix cycle |
capture_knowledge / capture_quick | Persist anti-pattern |
curator_detect_duplicates | Prevent redundant entries |