error-recovery
Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.
- License 许可
- MIT
- 最近更新
- 2026-10-27
- Stars
- ★ 0
- Forks
- 3
01 前言 Front Matter
- name
- error-recovery
- domain
- reliability, agent-coordination
- license
- MIT
- confidence
- high
- description
- Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.
02 资源文件 110
- 参考文档copilot-studio/agent.sync.yaml174 B
- 参考文档copilot-studio/behaviors/aibast_architecture-vision.mcs.yml1.2 KB
- 参考文档copilot-studio/behaviors/aibast_current-state.mcs.yml1.1 KB
- 参考文档copilot-studio/behaviors/aibast_design-intake.mcs.yml1.1 KB
- 参考文档copilot-studio/behaviors/aibast_readiness-check.mcs.yml1.1 KB
- 参考文档copilot-studio/behaviors/aibast_requirements-matrix.mcs.yml1.2 KB
- 参考文档copilot-studio/behaviors/aibast_target-design.mcs.yml1.1 KB
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_solution-design-review-rules-and-guardrails.md2.8 KB
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_solution-design-review-rules-and-guardrails.md.mcs.yml210 B
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_solution-design-review-synthetic-records.md15.1 KB
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_solution-design-review-synthetic-records.md.mcs.yml204 B
- 参考文档copilot-studio/settings.mcs.yml4.5 KB
- 参考文档deployment.json4.1 KB
- 参考文档EASY-MODE-COPILOT-CHAT.md235 B
- 参考文档EASY-MODE-PERSONLESS.md235 B
- 参考文档EASY-MODE.md2.7 KB
- 参考文档evals/copilot-studio-preview-evidence.json2.2 KB
- 参考文档evals/dataverse-draft-evidence.json1.7 KB
- 参考文档evals/manual-build-evidence.json3.8 KB
- 参考文档evals/onepager-map.json2.5 KB
- 参考文档evals/source-audit.json1.5 KB
- 参考文档evals/transcripts.json16.8 KB
- 参考文档evals/visual-checkpoints.json30.5 KB
- 参考文档evidence-report.html31.3 KB
- 参考文档export-manifest.json56.0 KB
- 参考文档exports/README.md1.6 KB
- 资产文件exports/solution-design-review-copilot-studio-solution.zip44.6 KB
- 参考文档exports/solution-design-review-deployment-settings.json216 B
- 参考文档exports/solution-design-review-solution-export.json1.1 KB
- 参考文档field-guide.html38.0 KB
- 参考文档FIELD-GUIDE.md13.8 KB
- 参考文档manual-tutorial.html93.4 KB
- 参考文档manual/GLOBAL-INSTRUCTIONS.md3.6 KB
- 参考文档manual/knowledge/aibast_solution-design-review-rules-and-guardrails.md2.8 KB
- 参考文档manual/knowledge/aibast_solution-design-review-synthetic-records.md15.1 KB
- 参考文档quest.html147.1 KB
- 参考文档README.md4.0 KB
- 资产文件screenshots/assisted/01-review-build.jpg123.8 KB
- 资产文件screenshots/assisted/02-sdr-01.jpg123.2 KB
- 资产文件screenshots/assisted/03-sdr-02.jpg139.6 KB
- 资产文件screenshots/assisted/04-sdr-03.jpg144.3 KB
- 资产文件screenshots/assisted/05-sdr-04.jpg141.6 KB
- 资产文件screenshots/assisted/06-sdr-05.jpg160.0 KB
- 资产文件screenshots/assisted/07-sdr-06.jpg109.5 KB
- 资产文件screenshots/assisted/08-confirm-draft.jpg28.7 KB
- 资产文件screenshots/assisted/annotated/01-review-build.png123.2 KB
- 资产文件screenshots/assisted/annotated/02-sdr-01.png126.8 KB
- 资产文件screenshots/assisted/annotated/03-sdr-02.png135.6 KB
- 资产文件screenshots/assisted/annotated/04-sdr-03.png145.2 KB
- 资产文件screenshots/assisted/annotated/05-sdr-04.png141.6 KB
- 资产文件screenshots/assisted/annotated/06-sdr-05.png157.7 KB
- 资产文件screenshots/assisted/annotated/07-sdr-06.png114.0 KB
- 资产文件screenshots/assisted/annotated/08-confirm-draft.png29.5 KB
- 参考文档screenshots/assisted/browserfilm.json1.6 KB
- 资产文件screenshots/assisted/copilot-assisted-contact-sheet.jpg222.9 KB
- 资产文件screenshots/assisted/copilot-assisted-walkthrough.gif1.2 MB
- 参考文档screenshots/assisted/README.md467 B
- 资产文件screenshots/manual/01-create-blank-agent.jpg57.7 KB
- 资产文件screenshots/manual/02-name-agent.jpg58.3 KB
- 资产文件screenshots/manual/03-enter-instructions.jpg134.8 KB
- 资产文件screenshots/manual/04-save-instructions.jpg134.8 KB
- 资产文件screenshots/manual/05-remove-web-search.jpg134.5 KB
- 资产文件screenshots/manual/06-add-aibast-solution-design-review-rules-and-guardrails.jpg136.8 KB
- 资产文件screenshots/manual/07-add-aibast-solution-design-review-synthetic-records.jpg139.7 KB
- 资产文件screenshots/manual/08-add-aibast-architecture-vision-02.jpg142.6 KB
- 资产文件screenshots/manual/09-add-aibast-current-state-03.jpg143.7 KB
- 资产文件screenshots/manual/10-add-aibast-design-intake-01.jpg145.1 KB
- 资产文件screenshots/manual/11-add-aibast-readiness-check-06.jpg146.4 KB
- 资产文件screenshots/manual/12-add-aibast-requirements-matrix-04.jpg148.0 KB
- 资产文件screenshots/manual/13-add-aibast-target-design-05.jpg148.1 KB
- 资产文件screenshots/manual/14-review-inventory.jpg148.1 KB
- 资产文件screenshots/manual/15-review-skills.jpg139.1 KB
- 资产文件screenshots/manual/16-review-skills-more.jpg141.7 KB
- 资产文件screenshots/manual/17-open-preview.jpg33.1 KB
- 资产文件screenshots/manual/18-sdr-01.jpg130.6 KB
- 资产文件screenshots/manual/19-sdr-02.jpg127.7 KB
- 资产文件screenshots/manual/20-sdr-03.jpg132.8 KB
- 资产文件screenshots/manual/21-sdr-04.jpg140.3 KB
- 资产文件screenshots/manual/22-sdr-05.jpg138.6 KB
- 资产文件screenshots/manual/23-sdr-06.jpg104.2 KB
- 资产文件screenshots/manual/24-confirm-draft.jpg29.1 KB
- 资产文件screenshots/manual/annotated/01-create-blank-agent.png62.7 KB
- 资产文件screenshots/manual/annotated/02-name-agent.png64.4 KB
- 资产文件screenshots/manual/annotated/03-enter-instructions.png133.8 KB
- 资产文件screenshots/manual/annotated/04-save-instructions.png130.9 KB
- 资产文件screenshots/manual/annotated/05-remove-web-search.png133.2 KB
- 资产文件screenshots/manual/annotated/06-add-aibast-solution-design-review-rules-and-guardrails.png136.9 KB
- 资产文件screenshots/manual/annotated/07-add-aibast-solution-design-review-synthetic-records.png139.2 KB
- 资产文件screenshots/manual/annotated/08-add-aibast-architecture-vision-02.png139.5 KB
- 资产文件screenshots/manual/annotated/09-add-aibast-current-state-03.png140.3 KB
- 资产文件screenshots/manual/annotated/10-add-aibast-design-intake-01.png141.5 KB
- 资产文件screenshots/manual/annotated/11-add-aibast-readiness-check-06.png142.7 KB
- 资产文件screenshots/manual/annotated/12-add-aibast-requirements-matrix-04.png144.5 KB
- 资产文件screenshots/manual/annotated/13-add-aibast-target-design-05.png144.3 KB
- 资产文件screenshots/manual/annotated/14-review-inventory.png147.9 KB
- 资产文件screenshots/manual/annotated/15-review-skills.png151.1 KB
- 资产文件screenshots/manual/annotated/16-review-skills-more.png156.0 KB
- 资产文件screenshots/manual/annotated/17-open-preview.png32.6 KB
- 资产文件screenshots/manual/annotated/18-sdr-01.png135.9 KB
- 资产文件screenshots/manual/annotated/19-sdr-02.png132.5 KB
- 资产文件screenshots/manual/annotated/20-sdr-03.png133.0 KB
- 资产文件screenshots/manual/annotated/21-sdr-04.png140.5 KB
- 资产文件screenshots/manual/annotated/22-sdr-05.png138.4 KB
- 资产文件screenshots/manual/annotated/23-sdr-06.png107.7 KB
- 资产文件screenshots/manual/annotated/24-confirm-draft.png30.0 KB
- 参考文档screenshots/manual/browserfilm.json4.2 KB
- 资产文件screenshots/manual/manual-build-contact-sheet.jpg883.7 KB
- 资产文件screenshots/manual/manual-build-walkthrough.gif5.6 MB
- 参考文档screenshots/manual/README.md461 B
- 参考文档screenshots/README.md521 B
03 SKILL.md 正文
Error Recovery Patterns
Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.
1. Retry with Backoff
When: Transient failures — API timeouts, rate limits, network errors, temporary service unavailability.
Pattern:
- Wait briefly, then retry (start at 2s, double each attempt)
- Maximum 3 retries before escalating
- Log each attempt with the error received
Example: API call returns 429 Too Many Requests → wait 2s → retry → wait 4s → retry → wait 8s → retry → escalate if still failing.
2. Fallback Alternatives
When: Primary tool or approach fails and an alternative exists.
Pattern:
- Attempt primary approach
- On failure, identify alternative tool/method
- Try the alternative with the same intent
- Document which alternative was used and why
Example: Primary CLI tool fails → fall back to direct API call for the same operation.
3. Diagnose-and-Fix
When: Build failures, test failures, linting errors — structured errors with actionable output.
Pattern:
- Read the full error output carefully
- Identify the root cause from error messages
- Attempt a targeted fix
- Re-run to verify the fix
- Maximum 3 fix-retry cycles before escalating
Example: Build fails with a type error → check for missing import → add it → rebuild.
4. Escalate with Context
When: Recovery attempts have been exhausted, or the failure requires human judgment.
Pattern:
- Summarize what was attempted and what failed
- Include the exact error messages
- State what you believe the root cause is
- Suggest next steps or who might be able to help
- Hand off to the coordinator or the appropriate specialist
Example: After 3 failed build attempts → "Build fails on line 42 with null reference. Tried X, Y, Z. Likely a design issue in the Foo module. Recommend the code owner review."
5. Graceful Degradation
When: A non-critical step fails but the overall task can still deliver value.
Pattern:
- Determine if the failed step is critical to the task outcome
- If non-critical, log the failure and continue
- Deliver partial results with a clear note of what was skipped
- Offer to retry the skipped step separately
Example: Generating a report with 5 sections — section 3 data source is unavailable → produce the report with 4 sections, note that section 3 was skipped and why.
Applying These Patterns
Each agent should reference these patterns in their charter's ## Error Recovery section, tailored to their domain. The charter should list the agent's most common failure modes and map each to the appropriate pattern above.
Selection guide:
| Failure Type | Primary Pattern | Fallback Pattern |
|---|---|---|
| Network/API transient | Retry with Backoff | Escalate with Context |
| Tool/dependency missing | Fallback Alternatives | Escalate with Context |
| Build/test error | Diagnose-and-Fix | Escalate with Context |
| Auth/permissions | Retry with Backoff | Escalate with Context |
| Non-critical data missing | Graceful Degradation | — |
| Unknown/novel error | Escalate with Context | — |
04 同仓库更多 Skills
{skill-name}
{what this skill teaches agents}
azd-seed-hook
暂无简介
{skill-name}
{what this skill teaches agents}
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
test-discipline
Update tests when changing APIs — no exceptions
squad
Squad's command catalog and interactive menu. Invoke via /squad (slash command) or natural language ("squad commands", "what can squad do", "show me squad options"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.