

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
12345# Error Handling and Recovery Procedures67## General Error Handling Principles89### When Errors Occur101. **Identify the error**: Clearly state what went wrong112. **Assess impact**: Determine if the error is blocking or can be worked around123. **Communicate**: Inform the user about the error and options134. **Offer solutions**: Provide clear steps to resolve or work around the error145. **Document**: Log the error and resolution in `audit.md`1516### Error Severity Levels1718**Critical**: Workflow cannot continue19- Missing required files or artifacts20- Invalid user input that cannot be processed21- System errors preventing file operations2223**High**: Stage cannot complete as planned24- Incomplete answers to required questions25- Contradictory user responses26- Missing dependencies from prior stages2728**Medium**: Stage can continue with workarounds29- Optional artifacts missing30- Non-critical validation failures31- Partial completion possible3233**Low**: Minor issues that don't block progress34- Formatting inconsistencies35- Optional information missing36- Non-blocking warnings3738## Stage-Specific Error Handling3940### Workspace Detection Errors4142**Error**: Cannot read workspace files43- **Cause**: Permission issues, missing directories44- **Solution**: Ask user to verify workspace path and permissions45- **Workaround**: Proceed with user-provided information only4647**Error**: Existing `aidlc-state.md` is corrupted48- **Cause**: Manual editing, incomplete previous run49- **Solution**: Ask user if they want to start fresh or attempt recovery50- **Recovery**: Create backup, start new state file5152**Error**: Cannot determine required stages53- **Cause**: Insufficient information from user54- **Solution**: Ask clarifying questions about intent and scope55- **Workaround**: Default to comprehensive execution plan5657### Requirements Analysis Errors5859**Error**: User provides contradictory requirements60- **Cause**: Unclear understanding, changing needs61- **Solution**: Create follow-up questions to resolve contradictions62- **Do Not Proceed**: Until contradictions are resolved6364**Error**: Requirements document cannot be converted65- **Cause**: Unsupported format, corrupted file66- **Solution**: Ask user to provide requirements in supported format67- **Workaround**: Work with user's verbal description6869**Error**: Incomplete answers to verification questions70- **Cause**: User skipped questions, unclear what to answer71- **Solution**: Highlight unanswered questions, provide examples72- **Do Not Proceed**: Until all required questions are answered7374### User Stories Errors7576**Error**: Cannot map requirements to stories77- **Cause**: Requirements too vague, missing functional details78- **Solution**: Return to Requirements Analysis for clarification79- **Workaround**: Create stories based on available information, mark as incomplete8081**Error**: User provides ambiguous story planning answers82- **Cause**: Unclear options, complex decision83- **Solution**: Add follow-up questions with specific examples84- **Do Not Proceed**: Until ambiguities are resolved8586**Error**: Story generation plan has uncompleted steps87- **Cause**: Execution interrupted, steps skipped88- **Solution**: Resume from first uncompleted step89- **Recovery**: Review completed steps, continue from checkpoint9091### Application Design Errors9293**Error**: Architectural decision is unclear or contradictory94- **Cause**: Ambiguous answers, conflicting requirements95- **Solution**: Add follow-up questions to clarify decision96- **Do Not Proceed**: Until decision is clear and documented9798**Error**: Cannot determine number of services/units99- **Cause**: Insufficient information about boundaries100- **Solution**: Ask specific questions about deployment, team structure, scaling101- **Workaround**: Default to monolith, allow change later102103### Design Errors104105**Error**: Unit dependencies are circular106- **Cause**: Poor boundary definition, tight coupling107- **Solution**: Identify circular dependencies, suggest refactoring108- **Recovery**: Revise unit boundaries to break cycles109110**Error**: Unit design plan has missing steps111- **Cause**: Plan generation incomplete, template error112- **Solution**: Regenerate plan with all required steps113- **Recovery**: Add missing steps to existing plan114115**Error**: Cannot generate design artifacts116- **Cause**: Missing unit information, unclear requirements117- **Solution**: Return to Units Planning to clarify unit definition118- **Workaround**: Generate partial design, mark gaps119120### NFR Implementation Errors121122**Error**: Technology stack choices are incompatible123- **Cause**: Conflicting requirements, platform limitations124- **Solution**: Highlight incompatibilities, ask user to choose125- **Do Not Proceed**: Until compatible choices are made126127**Error**: Organizational constraints cannot be met128- **Cause**: Network restrictions, security policies129- **Solution**: Document constraints, ask user for workarounds130- **Escalation**: May require human intervention for setup131132**Error**: NFR implementation step requires human action133- **Cause**: AI cannot perform certain tasks (network config, credentials)134- **Solution**: Clearly mark as **HUMAN TASK**, provide instructions135- **Wait**: For user confirmation before proceeding136137### Code Generation Planning Errors138139**Error**: Code generation plan is incomplete140- **Cause**: Missing design artifacts, unclear requirements141- **Solution**: Return to Design stage to complete artifacts142- **Recovery**: Generate plan with available information, mark gaps143144**Error**: Unit dependencies not satisfied145- **Cause**: Dependent units not yet generated146- **Solution**: Reorder generation sequence to respect dependencies147- **Workaround**: Generate with stub dependencies, integrate later148149### Code Generation Errors (Part 2: Code Generation)150151**Error**: Cannot generate code for a step152- **Cause**: Insufficient design information, unclear requirements153- **Solution**: Skip step, document as incomplete, continue154- **Recovery**: Return to step after gathering more information155156**Error**: Generated code has syntax errors157- **Cause**: Template issues, language-specific problems158- **Solution**: Fix syntax errors, regenerate if needed159- **Validation**: Verify code compiles before proceeding160161**Error**: Test generation fails162- **Cause**: Complex logic, missing test framework setup163- **Solution**: Generate basic test structure, mark for manual completion164- **Workaround**: Proceed without tests, add in Operations phase165166### Operations Errors167168**Error**: Cannot determine build tool169- **Cause**: Unusual project structure, multiple build systems170- **Solution**: Ask user to specify build tool and commands171- **Workaround**: Provide generic instructions, user adapts172173**Error**: Deployment target is unclear174- **Cause**: Multiple environments, complex infrastructure175- **Solution**: Ask user to specify deployment targets and methods176- **Workaround**: Provide instructions for common platforms177178## Recovery Procedures179180### Partial Stage Completion181182**Scenario**: Stage was interrupted mid-execution183184**Recovery Steps**:1851. Load the stage plan file1862. Identify last completed step (last [x] checkbox)1873. Resume from next uncompleted step1884. Verify all prior steps are actually complete1895. Continue execution normally190191### Corrupted State File192193**Scenario**: `aidlc-state.md` is corrupted or inconsistent194195**Recovery Steps**:1961. Create backup: `aidlc-state.md.backup`1972. Ask user which stage they're actually on1983. Regenerate state file from scratch1994. Mark completed stages based on existing artifacts2005. Resume from current stage201202### Missing Artifacts203204**Scenario**: Required artifacts from prior stage are missing205206**Recovery Steps**:2071. Identify which artifacts are missing2082. Determine if they can be regenerated2093. If yes: Return to that stage, regenerate artifacts2104. If no: Ask user to provide information manually2115. Document the gap in `audit.md`212213### User Wants to Restart Stage214215**Scenario**: User is unhappy with stage results and wants to redo216217**Recovery Steps**:2181. Confirm user wants to restart (data will be lost)2192. Archive existing artifacts: `{artifact}.backup`2203. Reset stage status in `aidlc-state.md`2214. Clear stage checkboxes in plan files2225. Re-execute stage from beginning223224### User Wants to Skip Stage225226**Scenario**: User wants to skip a stage that was planned227228**Recovery Steps**:2291. Confirm user understands implications2302. Document skip reason in `audit.md`2313. Mark stage as "SKIPPED" in `aidlc-state.md`2324. Proceed to next stage2335. Note: May cause issues in later stages if dependencies missing234235## Escalation Guidelines236237### When to Ask for User Help238239**Immediately**:240- Contradictory or ambiguous user input241- Missing required information242- Technical constraints AI cannot resolve243- Decisions requiring business judgment244245**After Attempting Resolution**:246- Repeated errors in same step247- Complex technical issues248- Unusual project structures249- Integration with external systems250251### When to Suggest Starting Over252253**Consider Fresh Start If**:254- Multiple stages have errors255- State file is severely corrupted256- User requirements have changed significantly257- Architectural decision needs to be reversed258- User cannot provide missing information259- Artifacts are inconsistent across phases260261**Before Starting Over**:2621. Archive all existing work2632. Document lessons learned2643. Identify what to preserve2654. Get user confirmation2665. Create new execution plan267268## Session Resumption Errors269270### Missing Artifacts During Resumption271272**Error**: Required artifacts from previous stages are missing273- **Cause**: Files deleted, moved, or never created274- **Solution**:275 1. Identify which stage created the missing artifacts276 2. Check if stage was marked complete in aidlc-state.md277 3. If marked complete but artifacts missing: Regenerate that stage278 4. If not marked complete: Resume from that stage279- **Recovery**: Return to the stage that creates missing artifacts and re-execute280281**Error**: Artifact file exists but is empty or corrupted282- **Cause**: Interrupted write, manual editing, file system issues283- **Solution**:284 1. Create backup of corrupted file285 2. Attempt to regenerate from stage that creates it286 3. If cannot regenerate: Ask user for information to recreate287- **Recovery**: Re-execute the stage that creates the artifact288289### Inconsistent State During Resumption290291**Error**: aidlc-state.md shows stage complete but artifacts don't exist292- **Cause**: State file updated but artifact generation failed293- **Solution**:294 1. Mark stage as incomplete in aidlc-state.md295 2. Re-execute the stage to generate artifacts296 3. Verify artifacts exist before marking complete297- **Recovery**: Reset stage status and re-execute298299**Error**: Artifacts exist but aidlc-state.md shows stage incomplete300- **Cause**: Artifact generation succeeded but state update failed301- **Solution**:302 1. Verify artifacts are complete and valid303 2. Update aidlc-state.md to mark stage complete304 3. Proceed to next stage305- **Recovery**: Update state file to reflect actual completion306307**Error**: Multiple stages marked as "current" in aidlc-state.md308- **Cause**: State file corruption, manual editing309- **Solution**:310 1. Review artifacts to determine actual progress311 2. Ask user which stage they're actually on312 3. Correct aidlc-state.md to show single current stage313- **Recovery**: Rebuild state file based on existing artifacts314315### Context Loading Errors316317**Error**: Cannot load required context from previous stages318- **Cause**: Missing files, corrupted content, wrong file paths319- **Solution**:320 1. List which artifacts are needed for current stage321 2. Check which ones are missing or corrupted322 3. Regenerate missing artifacts or ask user for information323- **Recovery**: Complete prerequisite stages before resuming current stage324325**Error**: Loaded artifacts contain contradictory information326- **Cause**: Manual editing, multiple people working, incomplete updates327- **Solution**:328 1. Identify contradictions and present to user329 2. Ask user which information is correct330 3. Update artifacts to resolve contradictions331- **Recovery**: Reconcile contradictions before proceeding332333### Resumption Best Practices3343351. **Always validate state**: Check aidlc-state.md matches actual artifacts3362. **Load incrementally**: Load artifacts stage-by-stage, validate each3373. **Fail fast**: Stop immediately if critical artifacts are missing3384. **Communicate clearly**: Tell user exactly what's missing and why it's needed3395. **Offer options**: Regenerate, provide manually, or start fresh3406. **Document recovery**: Log all recovery actions in audit.md341342## Logging Requirements343344### Error Logging Format345346```markdown347## Error - [Stage Name]348**Timestamp**: [ISO timestamp]349**Error Type**: [Critical/High/Medium/Low]350**Description**: [What went wrong]351**Cause**: [Why it happened]352**Resolution**: [How it was resolved]353**Impact**: [Effect on workflow]354355---356```357358### Recovery Logging Format359360```markdown361## Recovery - [Stage Name]362**Timestamp**: [ISO timestamp]363**Issue**: [What needed recovery]364**Recovery Steps**: [What was done]365**Outcome**: [Result of recovery]366**Artifacts Affected**: [List of files]367368---369```370371## Prevention Best Practices3723731. **Validate Early**: Check inputs and dependencies before starting work3742. **Checkpoint Often**: Update checkboxes immediately after completing steps3753. **Communicate Clearly**: Explain what you're doing and why3764. **Ask Questions**: Don't assume - clarify ambiguities immediately3775. **Document Everything**: Log all decisions and changes in `audit.md`378
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-build.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-code-simplify.mdc · 51 | Cursor rules | testing-strategy | 30/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-plan.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-review.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-ship.mdc · 51 | Cursor rules | testing-strategygitdeploymentdo-not | 61/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-spec.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-test.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-forgecat/AGENTS.md · 51 | AGENTS.md | lint-formatstylearchdo-not | 73/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-forgecat/CLAUDE.md · 51 | CLAUDE.md | teststylearchagent-behaviour | 70/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-code/anthropics_claude-code_ralph-wiggum/for-cursor/.cursor/rules/cmd-cancel-ralph.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-code/anthropics_claude-code_ralph-wiggum/for-cursor/.cursor/rules/cmd-help.mdc · 51 | Cursor rules | no sections | 54/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-code/anthropics_claude-code_ralph-wiggum/for-cursor/.cursor/rules/cmd-ralph-loop.mdc · 51 | Cursor rules | no sections | 22/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_agent-sdk-dev/for-cursor/.cursor/rules/cmd-new-sdk-app.mdc · 51 | Cursor rules | setupstylearchdocs | 76/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_claude-md-management/for-cursor/.cursor/rules/cmd-revise-claude-md.mdc · 51 | Cursor rules | agent-behaviour | 50/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_code-review/for-cursor/.cursor/rules/cmd-code-review.mdc · 51 | Cursor rules | testing-strategygit | 35/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_commit-commands/for-cursor/.cursor/rules/cmd-clean_gone.mdc · 51 | Cursor rules | no sections | 60/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_commit-commands/for-cursor/.cursor/rules/cmd-commit-push-pr.mdc · 51 | Cursor rules | stylegit | 44/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_commit-commands/for-cursor/.cursor/rules/cmd-commit.mdc · 51 | Cursor rules | style | 44/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_example-plugin/for-cursor/.cursor/rules/cmd-example-command.mdc · 51 | Cursor rules | lint-formatstyleagent-behaviour | 58/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_feature-dev/for-cursor/.cursor/rules/cmd-feature-dev.mdc · 51 | Cursor rules | stylearchgit | 56/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 14 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 46 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 14 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 14 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 14 days ago | |
| bybren-llc/safe-agentic-workflow.cursor/rules/10-backend-python.mdc · 399 | Cursor rules | testlint-formatstylegit+4 | 97/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/nota-america-forgecat-agent-profiles-profiles-awslabs-aidlc-workflows-for-cursor-cursor-rules-rule-error-handling)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.