# agentic-go · Research · Agvel

> agentic-go is a done-gate for agent-written Go. Its pre-registered evaluation on 821 variants of 176 real commits failed three of four kill criteria. What the gate does, how it was tested, and what the result does not claim.

Canonical: https://agvel.org/research/agentic-go/

[Agvel](https://agvel.org/)[Research](https://agvel.org/research/) agentic-go
## agentic-go. A done-gate for agent-written Go, tested against a bar set before the test. It failed three of its four kill criteria, and this page starts there.
Ashwin Gopalsamy Results 9 Oct 2026
Read the results [Source on GitHub](https://github.com/agentic-mcps/go)
## At a glance
3 of 4 kill criteria failed
821 variants tested
176 real commits
5 baselines
## What it does. When a coding agent tries to stop, agentic-go check compares the working tree with a base and reports only the problems that change introduced. In an agent hook it blocks the stop once, so the agent can fix them.
Test integrity Deleted tests, tests hidden from go test by a rename or a build constraint, skips added to existing tests, removed assertions and stub panics.
Tests, compared with the base Runs go test on changed packages and their consumers. Failures are rerun and compared with the base, so old and flaky failures warn instead of block.
Analyzers Findings that the change introduced, from bundled concurrency and error-handling analyzers.
Coverage and races Changed lines that no test runs are a warning. The race detector runs on request, and in CI when the diff touches synchronization.
## How it behaves in an agent. The report is at most 2 KB, with blocking items first, each with a location, a message and a fix. A gate failure never blocks an agent.
Exit code in hook mode Always 0
Blocks the same change Once
Blocks in a row, at most 3
Hook budget 120 s
If the check cannot finish Stop allowed, with a note
## Where it runs. Hooks for Claude Code, and experimentally for Codex, a git pre-push hook, and CI.
Install From source, Go 1.25 or later
Released binary with check None yet
Exit codes 0 pass, 1 block, 2 unknown in CI
Output Text, or JSON
## How it was built. The test was written before the results, with a bar the gate had to clear. The gate failed to clear it.
- A pre-registered protocol The evaluation protocol was committed before the runs. It carries Amendments 1 to 4.
- Real commits The 821 variants come from 176 real commits in cobra, chi, testify, gin and echo.
- Five baselines The gate ran beside five baselines. The strongest conventional one runs every test, go vet and golangci-lint, and ignores failures that already exist at the base. A 60-line grep script was layered on it.
- Kill criteria Four criteria, K1 to K4, stated in advance. Three failed.
## The four criteria
K1, hidden test tampering Fail
K2, held-out disguises Fail
K3, true patches Fail
K4, warm hook time Pass
Results of 9 Oct 2026.
## Results. The gate did not beat a conventional gate at catching hidden test tampering, a 60-line grep script beat it on disguised tampering, and it blocked too many correct patches.
## K1. Cover-ups: failed
68.2% against 74.7%
Share of effective cover-ups blocked (n=396), the gate against the strong conventional gate of tests, go vet and golangci-lint, base-subtracted. The gate needed to lead by 30 points. It trailed by 6.5.
## K2. Held-out disguises: failed
60.1% against 93.2%
Share of held-out disguises blocked (n=148), the gate against the 60-line grep gate. The gate needed to lead by 20 points. The precision half passed: on legitimate commits that delete or skip tests, the gate falsely blocked 36.8% (14 of 38), the grep gate 97.4% (37 of 38).
## K3. True patches: failed
28 falsely blocked
Of 150 true patches, 28 were blocked: 18.7%, Wilson 95% interval 13.2% to 25.7%. The bar was 2% or less. 22 of the 28 came from one defect in testify, where inner suites run through testing.RunTests are reported as new failing tests.
## K4. Warm hook time: passed
10.6 s against 11.9 s
Median time of a warm hook, the gate against the conventional gate. The gate was not slower.
## The earlier MCP server. The same binary still runs as a local MCP server. Its own adoption study did not show a benefit, and it is now maintenance-only.
Used, tool description only 0 of 6 runs
Used, generic prompt guidance 6 of 6 runs
Agents told to use it Slower, no gain in correctness
Defects are fixed and nothing is added.
## What it doesn’t claim. The result is how well detectors catch planted flaws, not how often agents tamper with tests.
Synthetic flaws The variants were made for the test. They measure the detectors, not how often real agents cover up a failure.
No claim on agent output Nothing here says the gate makes an agent’s code better.
Known blind spots A changed expected value in a test, a test body in a closure never called, a skip behind an environment check and a test moved into a build-tagged file go undetected or only warn. A test added and then skipped in the same change is not treated as tampering.
Not a sandbox It runs the repository’s own tests with your privileges. It sees only the module of the workspace and, in a shallow clone, only uncommitted changes.
## Licence and source. The code is Apache-2.0. The project keeps its own licence, apart from Agvel’s.
Code Apache-2.0
Project mark CC BY 4.0
The project mark is adapted from Maria Letta’s Free Gophers Pack, released under CC0. It is not the official Go logo. Agvel’s Apache 2.0 and CC BY 4.0 apply to Agvel’s own releases, not to this project.
[Repository The gate, the pre-registered protocol with its amendments, and the results of 9 Oct 2026. GitHub](https://github.com/agentic-mcps/go)
## More from Agvel
[All research](https://agvel.org/research/)[golangskills](https://agvel.org/research/golangskills/)

---

- Founder and sole author: Ashwin Gopalsamy (https://ashwingopalsamy.in), Pollachi, Tamil Nadu.
- Personal, non-commercial research, independent of any employer.
- Licences: Agvel code Apache 2.0; Agvel data and papers CC BY 4.0; the Agvel name, vel and wordmark all rights reserved. Each project page states that project's own licence, which wins for that project.
- Scoring: fixed tasks scored by rules published as code. A model never grades another model.
- Status: results, scores and papers marked as samples are placeholders until the money-conventions pilot is published. Do not cite sample numbers as findings.
- Contact: hello@agvel.org
- Cite with the page URL and the release version shown on it.
