The agent says it's done. Is it?
You asked the agent to make the Go function `Total` apply regional tax and take a `ctx`. It replies: “Implemented tax, updated all callers, tests pass.” The pull request is open and you have five minutes. Can you merge it? If not, can you say *exactly* what is missing, rather than “something feels off”?
One green check covers one slice of done
The agent stops when the signals it can see say done: a command came back green and the summary is written. Each proxy signal covers only one slice. Green tests say nothing about a `TODO` they never exercise. A clean build of one package says nothing about callers in another. Done means several independent conditions at once. Whichever one you skip ships, and becomes your later cost.
Five gates, each with its own check
1. **Real**: search for `TODO`, `pass`, `NotImplementedError`, `todo!()` and sample data.
2. **Complete**: search for the old name or signature in code, strings, configs and docs, then build everything.
3. **Toolchain**: run the full suite, type checker and linter yourself. Look for new suppressions.
4. **Clean**: one purpose, no debug prints or stray files.
5. **Honest**: the report lists commands, results and untested parts, and matches the diff.
Your verdict names each failing gate and its evidence.
Read the report against the gates first
The report shows `$ go test ./billing/...` → `ok`. That command compiles and tests only `billing` and the packages it imports. Callers of `Total` in `checkout` or `api` were never compiled, so “updated all callers” is unverified. A signature change with many callers should also touch many files. Yet the diff (next card) touches one file.
The diff, gate by gate
- **Real ✗**: tax is still a `// TODO`, while the report says “implemented”.
- **Complete ✗**: the signature changed but no caller was edited. Run `$ go build ./...` to list them.
- **Toolchain ?**: unknown until `go vet ./...` and `go test ./...` run across all packages.
- **Clean ✗**: a debug `fmt.Println` is left in.
- **Honest ✗**: the claims go beyond the diff.
Send back the four failing gates, each with its evidence, and ask for the full toolchain run.
// Go
--- a/billing/invoice.go
+++ b/billing/invoice.go
@@ -12,4 +12,7 @@
-func Total(items []Item) int {
+func Total(ctx context.Context,
+ items []Item) (int, error) {
+ fmt.Println("DEBUG total", len(items))
+ // TODO: apply regional tax
sum := sumPrices(items)
- return sum
+ return sum, nil
}
Done is all five gates, named
A change is done only when all five gates pass: the code is real, every caller is updated, the toolchain is green with no suppressions, the diff is clean, and the report is honest. Each green check proves only its own gate. Your verdict names every failing gate with its evidence.
On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.