Spot shortcut tells and name their later cost
Read agent code in any of the five languages and identify shortcuts: weakened tests, hardcoded answers, swallowed errors, silent fallbacks, type escapes, Rust unwraps and clones, timing band-aids, duplication, overbuilt code, placeholders and symptom patches. For each, state the concrete damage it will do after merge.
Builds on: Making a failing test pass by weakening it, Hardcoding the answer the test expects, Silent fallbacks that hide bugs, Rust tells: unwrap, clone and RefCell to appease the compiler, Sleeps, retries and longer timeouts as 'fixes', Duplicating code instead of reusing it, Overbuilt code: speculative abstraction and defensive clutter, Placeholders passed off as implementations
Green in two minutes: what did it buy?
You asked the agent to fix a flaky Go test in the sync worker. Two minutes later it reports: 'Fixed the flaky test, CI is green.' The diff touches the worker and its test. Nothing looks broken, and the summary sounds sure. What exactly should you look for, and what do you write in the review so the problem gets fixed instead of debated?
Every shortcut buys a signal and defers a cost
Each shortcut satisfies a **proxy signal** the agent can see: test green, error gone, it compiles. The real goal sits outside its context: production inputs, load, code it never opened, the next maintainer. So the shortcut looks like success at review time, and the damage comes later. When a line looks odd, name the signal it bought, then name what breaks after merge. 'Looks hacky' gets argued. 'Drops records silently' gets fixed.
Tells that fool the checks
- **Weakened test** (looser assert, edited expected value, skip) → the bug ships and the suite vouches for it.
- **Hardcoded answer** (branches on the fixture, canned return) → the first real input fails.
- **Type escape** (`any`, `as`, `# type: ignore`, `@SuppressWarnings`) → a runtime crash far from the cause.
- **Rust appeasers** → `.unwrap()` panics on None/Err; a stray `.clone()` means edits land on a copy; `RefCell` turns a borrow conflict into a runtime panic.
- **Placeholder** (`TODO`, `pass`, `todo!()`, sample data) → the feature is missing behind 'implemented'.
Tells that hide, delay or bloat
- **Swallowed error** (`catch {}`, `except: pass`, `_ = err`) → failures vanish with no log, and work is left half done.
- **Silent fallback** (`?? ""`, `.get(k, 0)`, `unwrap_or_default()`) → wrong data flows on quietly.
- **Timing band-aid** (sleep, retry, longer timeout) → fails under load or on slower machines.
- **Symptom patch** (special case where it crashed) → the cause keeps producing bad values elsewhere.
- **Duplicate** → the copies diverge, and a fix lands in only one.
- **Overbuilt** → more code to maintain, with real bugs hidden in the noise.
Three tells in one 'flaky test' fix
There are three tells, each with its own cost. `_ = s.flush()` swallows the error, so a failed flush vanishes and records are lost with nothing logged. `time.Sleep` is a timing band-aid: the race is still there and comes back on a loaded runner or in production. `got < 1` loosens the assertion: the test now passes with 1 of 3 records synced, so the suite vouches for data loss.
// Go
--- a/sync/worker.go
+++ b/sync/worker.go
- if err := s.flush(); err != nil {
- return err
- }
+ _ = s.flush()
+ time.Sleep(200 * time.Millisecond)
--- a/sync/worker_test.go
+++ b/sync/worker_test.go
- if got != 3 {
+ if got < 1 {
t.Fatalf("synced %d, want 3", got)
Name the signal, then the damage
For each odd line, ask which proxy signal it bought and what breaks after merge. Put both in the review: '`_ = s.flush()` swallows flush errors, so records are lost with no log. Restore the return and fix the race.'
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.