Repository navigation
Description
AI-06 · Provider integration
Difficulty: beginner · Status: ready
This is a focused contribution against current main. No unmerged feature PR is required.
Why this is useful
The suite tests invalid schema recovery but not JSON parsing recovery
Start here
Source audit: 9d8ac3e01df1. Read these files on current main too, because paths may change after the audit:
Scope and intended output
Add the focused test file tests/roadmap/provider/test_retry_success.py. Change runtime code only if the acceptance criteria explicitly request a behavior fix; otherwise report newly discovered behavior separately.
Acceptance criteria
- Return malformed content then a complete valid assessment
- Assert exactly two calls and valid final result
- Use fake client output
Verification
uv run pytest tests/roadmap/provider/test_retry_success.py -q
uv run pylint app testsCreate the named focused test file before running its command. Tests must be deterministic, mock external services, and avoid paid calls. Run bash scripts/check.sh before submitting a Python change.
Dependencies
None. Keep the PR based on current upstream main.
Out of scope
- Unrelated refactors, broad formatting, endpoint renames, or extra dependencies without agreement.
- Live cloud provisioning, paid model calls, real private messages, or credentials in fixtures/logs.
- Implementing neighboring roadmap issues in the same PR.
Getting help and submitting
Comment with your intended approach and ask when expected behavior is unclear. Check for an existing PR before starting; there is no deadline for a volunteer contribution. A useful reproduction or partial finding is welcome.
Use the issue's criteria as the review checklist. Include the commands actually run and any limitations. Link the issue; use Fixes only when its entire agreed scope is complete. If CONTRIBUTING.md is not yet on main, the contributor-roadmap PR provides the onboarding guide.
Activity
AryahCodes commentedon Nov 11, 2026
Hey! I started working on this issue and opened PR #377 before posting a claim comment here, so apologies for getting that order mixed up.
The PR adds a focused regression test for recovering from malformed JSON on the first provider response and successfully returning a valid assessment on the second attempt. The local test results reported by my development tools are passing.
I've linked the PR here for review: #377