Skip to content

test(tools): add unit tests for Pydantic schema self-correction retry loop (#4522)#4556

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4522
Apr 14, 2026
Merged

test(tools): add unit tests for Pydantic schema self-correction retry loop (#4522)#4556
mrveiss merged 1 commit intoDev_new_guifrom
issue-4522

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 14, 2026

Closes #4522

Summary

  • 21 tests in autobot-backend/tests/test_tool_schema_correction.py
  • Covers: argument validation, schema error formatting, retry loop (decrement, max retries, self_correction_hint), unknown tool, no-schema skip

Test Status

✅ 21/21 passing

… loop (#4522)

Creates autobot-backend/tests/test_tool_schema_correction.py with 21 tests
covering validate_tool_arguments(), _format_schema_validation_errors(), and
the _try_mcp_dispatch() retry loop (retries_left arithmetic, schema-error
WorkflowMessage structure, graceful bad-schema handling).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit f971125 into Dev_new_gui Apr 14, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the issue-4522 branch April 14, 2026 16:37
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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.

1 participant