Skip to content

feat: AI bug catching (aiReview and aiFuzz)#10

Merged
tugkanboz merged 1 commit into
mainfrom
feature/ai-review
Jun 2, 2026
Merged

feat: AI bug catching (aiReview and aiFuzz)#10
tugkanboz merged 1 commit into
mainfrom
feature/ai-review

Conversation

@tugkanboz

Copy link
Copy Markdown
Member

Closes #9.

Use the AI layer to find bugs, not just author tests.

  • aiReview(response, options) returns { severity, field, message }[]: bad or inconsistent types, missing fields, suspicious values, leaked secrets or PII, status/body mismatches, pagination issues. Tolerant JSON parsing, returns [] when nothing is wrong or the reply is unparseable.
  • aiFuzz(options) generates adversarial request payloads (boundary values, wrong types, missing fields, injection-like strings) to send with the normal client.
  • Reuses the two-go/ai provider, exported from two-go/ai and the main entry, with types.

616 unit tests green (5 new, provider stubbed so no network), tsc clean, no em dashes. Next: MCP server.

aiReview(response) returns a list of likely problems (bad or inconsistent
types, missing fields, leaked secrets or PII, status/body mismatches). aiFuzz
generates adversarial request payloads to probe an endpoint. Both reuse the
two-go/ai provider, parse JSON out of the reply tolerantly, and are advisory.
Types, README, CHANGELOG, and stubbed unit tests.
@tugkanboz tugkanboz merged commit f9ab325 into main Jun 2, 2026
3 checks passed
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.

AI bug catching: response review and fuzz payloads

1 participant