Problem
Generated tests need validation and accountable review before they can become trusted checks.
Featured project | AI & LLM
All Java: a demo app in the repository, the Anthropic Java SDK with typed structured outputs, repair rounds fed by the gate, an approve step that marks AI-written tests, and AI failure triage into product bug, test bug, environment or flaky. Answers are recorded, so CI replays them without an API key; until the first live run, CI runs the pipeline on hand-written sample answers that every report labels as samples.
CI passed on labelled, hand-written sample answers; no live model result is claimed.
Evidence checked 16 Nov 2026 | CI run #39 (hand-written sample answers)
Shows how to use a large language model in test automation without letting it lower the bar. Generating a plausible test is fast; the expensive failure is a test that passes and checks the wrong thing. So the project is mostly guardrails: automatic gates before review, a review file built for a five-minute check, an explicit approval recorded in the code, and evidence-based failure triage.
test-cases/TC-*.md ──► Claude draft ──► gate: rules ─► javac ─► 3 runs ──► review.md ──► approve ──► src/test (@AiDrafted)
▲ │
└──── findings, up to 2 repair rounds ◄┘
failed UI run ──► evidence per failure ──► Claude triage ──► triage.md (verdict, quoted evidence, draft ticket)| Area | Tools |
|---|---|
| Language | Java 21, Maven wrapper |
| AI | Anthropic Java SDK 2.73, Claude Opus 5.5: structured outputs into Java records, prompt caching, effort per task, refusal fallback |
| Tests | Playwright for Java 1.63 + TestNG 7.12, page objects, failure evidence (DOM, screenshot, console, trace) |
| System under test | LeaveDesk: a leave-request app in the repository (JDK HttpServer + plain JavaScript UI) with a switchable planted bug |
| CI | GitHub Actions: unit and tooling tests, UI tests on Chromium, Firefox and WebKit, AI replay and triage jobs without an API key |
Generated tests need validation and accountable review before they can become trusted checks.
Gate drafts through rules, compilation and repeated execution, then require a named human reviewer. Label hand-written samples separately from live model outputs.
CI passed on labelled, hand-written sample answers; no live model result is claimed.
Evidence checked 2026-11-16 | CI run #39 (hand-written sample answers)
Scope: Sample and replay evidence does not establish live Claude generation quality or triage accuracy.
Project-specific checks and execution details documented in the repository:
Recorded CI replay
CI run #39 (hand-written sample answers)
CI passed on labelled, hand-written sample answers; no live model result is claimed.
Evidence checked: | Open dated evidence
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
Static material from the public repository. The linked verification record was checked 2026-11-16; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-16. Open CI run #39 (hand-written sample answers)
CI replay cases include planted rule violations, data leaks and incorrect facts to exercise failure detection.
mvnw.cmd test :: app + tooling tests, no key needed
mvnw.cmd test -Dsuite=ui :: UI tests
ai generate TC-103 :: Claude drafts, the gate checks (needs ANTHROPIC_API_KEY)
ai approve TC-103 Your Name :: move a passed draft into src/test