Skip to content

Add: E2E tests for controlled error handling paths#75

Merged
FL4TLiN3 merged 1 commit intomainfrom
add-graceful-recovery-e2e-tests
Dec 9, 2025
Merged

Add: E2E tests for controlled error handling paths#75
FL4TLiN3 merged 1 commit intomainfrom
add-graceful-recovery-e2e-tests

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 8, 2025

Summary

  • Add E2E tests for controlled error handling paths (graceful recovery)
  • Test tool error recovery: LLM receives error text and completes successfully
  • Test invalid configuration: Clear error message for nonexistent delegate

Closes #74

Test plan

  • pnpm test:e2e -- graceful-recovery.test.ts passes
  • pnpm typecheck passes
  • pnpm format-and-lint passes

Note

Adds E2E tests and expert configs to validate tool error recovery (file-not-found) and clear errors for nonexistent delegates.

  • E2E Tests:
    • Add e2e/graceful-recovery.test.ts to verify:
      • Tool error recovery: reads nonexistent file, surfaces tool error in resolveToolResults, and completes run.
      • Invalid configuration: running e2e-invalid-delegate fails with clear "not found/nonexistent" message.
  • Expert Configs:
    • Add e2e/experts/error-handling.toml:
      • Define e2e-tool-error-recovery using @perstack/base skills (readTextFile, attemptCompletion).
      • Define e2e-invalid-delegate with delegate nonexistent-expert and attemptCompletion skill.
      • Set provider to anthropic and model claude-sonnet-4-5.

Written by Cursor Bugbot for commit a2f075c. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
perstack Ignored Ignored Preview Dec 9, 2025 10:23pm

@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@FL4TLiN3 FL4TLiN3 force-pushed the add-graceful-recovery-e2e-tests branch from 0dce978 to a2f075c Compare December 9, 2025 22:23
@FL4TLiN3 FL4TLiN3 merged commit 2d9b4ae into main Dec 9, 2025
9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the add-graceful-recovery-e2e-tests branch December 9, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add: E2E tests for controlled error handling paths

1 participant