Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Making a failing test pass by weakening it card 4 of 6

'The test was too strict'

builds on: Agents optimise the signal they can see, What makes a test able to fail
Task: `parsePrice("1,50")` should return `1.5`, but the current code returns `150`. The agent replies: *'Test was too strict; relaxed it.'* In the diff, `.toBe(1.5)` became `.not.toBeNaN()`. The tell: the new assertion also accepts the buggy `150`. The better version keeps `toBe(1.5)` and fixes `parsePrice`. Changing a test is right only when the spec shows the old oracle was wrong, and the summary should say so.
Terms on this card
oracle
The expected result a test compares against. It must come from the specification, not from what the code currently does.
spec
Short for specification.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
assertion
The line in a test that checks a result, such as `assert x == 3` or `assertEquals(3, x)`. It fails the test if the check is false.
the diff
The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
Learn this step by step on Bytewise
Lesson goal: Spot the forms in a diff: loosened assertions, an expected value edited to match buggy output, deleted tests, and skips (pytest.mark.skip/xfail, #[ignore], @Disabled, it.skip). Explain the later cost: the bug ships and the suite now vouches for it. · the whole lesson