Two E2E Feedback Loops: Coverage Gaps vs Failure Fixes
Imagine you have an automated robot helper that checks your software team’s end-to-end (E2E) testing work. To be effective, this robot needs two completely separate job descriptions, rather than trying to do everything at once in one messy mega-job.
When we try to point a single daily process at “making testing smarter,” things slip through the cracks. We can’t tell if our automation missed a brand new feature or if it simply failed to fix an old test.
Loop A turns new product changes into a safety net. Loop B turns observed failures into fixes. Keep them completely separate until a human developer steps in to review the work!
Key takeaways
- Searching for missing tests and reviewing broken tests happen on different schedules and require different clues.
- Just because the robot says “I didn’t find any missing tests today” doesn’t mean your app is 100% covered.
- Quick automated guesses aren’t a replacement for a solid daily review process.
Two paths share a human gate. Conflating them creates blind spots.
Job 1: The “New Stuff” Checker (Loop A)
Whenever a developer finishes building a brand new feature, the robot’s job is to scan that new code and ask: “Did we write a test for this new piece?”
Here is how that looks in practice:
- Scheduled tests run as usual.
- The automation scans the recent code the team just wrote. (It ignores the testing folder itself so it doesn’t get confused).
- It figures out if the changes are real “user-visible” updates (like a new button or application programming interface (API)) or just background chores (like updating a read-me file).
- If it spots a missing test for a real feature, it flags it and drafts a plan to cover it.
- A human reviewer steps in, validates the plan, and approves the new test.
- The new test runs for real!
This “last mile” of checking for missing tests is a hot topic right now. Research like Change And Cover (ChaCo), presented at the International Conference on Software Engineering (ICSE) 2026, and Uber’s AutoCover show how automation can suggest tests for brand new code while a human is still thinking about it. The automation proposes, but the human always approves.
Job 2: The “Broken Stuff” Fixer (Loop B)
Every night, your team automatically runs all existing tests to make sure the app still works. If a test fails, the robot puts on its detective hat. It looks at the failure and asks: “Why did this break, and how do we fix it?”
A reliable daily review path should:
- Look at a specific window of time (like yesterday).
- Gather up every single failure, timeout, or cancellation in that window.
- Connect the dots between the failed test, the exact code version running, and the error logs.
- Figure out what broke: Was it a bug in the app? A broken test? A server glitch?
- Propose a draft to fix it.
- Keep track of the issue so it doesn’t get lost.
- Require a human to review the fix, deploy it, and confirm the test passes again.
Just like Anthropic’s testing guidance suggests, we need to separate making sure old stuff still works from checking if new stuff is covered.
The Big Takeaway: Don’t Mix the Jobs!
If you tell your automation to look for missing tests and fix broken ones at the exact same time, things get chaotic. Here is what happens when teams mix them up:
| What Goes Wrong | Why It Happened |
|---|---|
| The robot says “all good,” but bugs still surprise you | Loop A ran, but you never finished looking at Loop B’s failures. |
| You see the same broken test every week | The robot’s fix was never actually approved and deployed. |
| The robot asks you to test a spelling correction | It forgot to filter out background chores. |
Try This Split Instead
- Set up two separate automated jobs: a “coverage scan” and a “failure review.” They don’t even need to run at the same time.
- Be very clear about what code the robot is allowed to look at.
- Timestamp everything so you know exactly when an error happened.
- Always require a human to adopt and approve a suggested fix.
- When you fix a bug in the app, make sure a test is attached so it doesn’t break again.
The testing pyramid still decides how we test. These two loops just help us manage when we add new tests and how we fix the old ones without getting overwhelmed!
Further reading
- ChaCo - How automation can suggest tests for specific code updates.
- AutoCover at industry scale - How big companies manage robot-generated test suggestions.
- State of Digital Quality 2026: functional testing - Balancing artificial intelligence (AI) helpers with human ownership.
Previous: Supervised E2E Learning Loop. Next: When Is an E2E Finding Actually Closed?.
FAQ
What are the two E2E feedback loops?
Loop A checks for missing tests on brand new code. Loop B investigates and fixes tests that just broke.
Why keep coverage scanning separate from failure fixing?
Mixing them up creates chaos. You might not realize if you forgot to test a new feature, or if you just temporarily ignored a broken test from yesterday.
What does 'no gap found' mean?
It just means the robot didn't spot any obvious missing tests in the specific new code it checked. It doesn't mean your whole app is perfectly tested!
Is a quick automated check the same as a daily review?
No. A quick check just proves the automation can suggest fixes. A daily review is a thorough, organized look at everything that failed recently.
Stay in the loop — production notes on AI agents, workflows, and SRE.
Low volume — new posts and curated reading lists. Unsubscribe anytime.