aicek
Deterministic CI quality gate that catches AI-written code copying the project's business rules while every test stays green.
Backend Engineer
Architected and built a reproducible CI gate for AI-written code, from the analysis engine to the GitHub integration.
Collaborators: Dávid Kepič, Robert Hudák
aicek was built at TelIT Hackathon 2026 for the Green CI Lies challenge, which asked for a deterministic quality gate for AI-generated code. We picked one risk: an AI assistant adds a second way to do what the project already does. It copies a business rule into a new handler instead of calling it, the tests pass and CI stays green, but the next change to that rule now has to find every copy, and nothing fails when one is missed.
aicek verify main..HEAD checks a diff against the project’s own rules in aicek.yml. It prints PASS or FAIL, one change-risk score and every finding with its rule, file and line, the reason, the cost and the fix. In the demo, two patches add the same API and batch handlers and both pass all tests. Patch A calls the shared canDispatch policy and passes with score 4. Patch B copies the condition and fails with score 36. To make the cost concrete, a probe injects the next requirement into the policy in a throw-away copy and reruns the tests per entry point: the portal passes, the API and batch handlers don’t. A restyled patch B with four times the code gives the same findings and the same decision hash.
The verdict uses no LLM, network or clock, so the same code, config and tool versions give a byte-identical report. ts-morph extracts facts from the AST, truth tables decide whether two conditions mean the same thing, dependency-cruiser and ast-grep check layers and conventions, and the score multiplies the CRAP metric by the edit sites the analysis proves. Beyond copies, it flags weakened tests, untested changed lines and any pull request that edits the gate itself, which waits for a human label. aicek patch fixes findings with deterministic edits first and a coding agent only for the rest, then verifies again. It ships as a Docker image and an npm tarball, comments on pull requests through a GitHub App with SARIF annotations, and offers an interactive terminal view and an MCP server for coding agents. aicek also gated its own repository during the hackathon and blocked our own coding agents twice, once for loosening test assertions and once for deleting tests.
Contribution
Co-architected the solution, from the declared risk and the rules to the probe, the score and the determinism guarantees, and built it by directing coding agents and reviewing every change.










