verify
Verify generated code passes quality gates: checks for tests, interfaces, and code issues. Returns PASS or FAIL to ensure code readiness for handoff.
Instructions
Verify generated code before handoff.
WHEN TO USE:
After generating code
Before review, handoff, or final response
As a final quality gate in agent workflows
WHAT IT CHECKS:
Tests are provided (TDD compliance)
Interfaces exist (DI compliance)
No critical code issues
Quality score >= 50
RETURNS:
PASS: No blocking issues detected by configured checks
FAIL: Issues to fix, iterate and verify again
WORKFLOW:
Generate code following get_context guidelines
Call verify({ code, tests, interfaces })
If FAIL: fix issues and call verify again
If PASS: proceed to the next workflow step
EXAMPLE: verify({ code: "class UserServiceImpl...", tests: "describe('UserService')...", interfaces: "interface UserService..." })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | All implementation code | |
| tests | No | All test code (REQUIRED for TDD compliance) | |
| task_type | No | Type of task for context-aware verification | |
| interfaces | No | All interfaces and type definitions |