Mutant Hunt · verified with Kane CLI

10% → 100%

We planted 10 realistic bugs in TodoMVC. Kane CLI hunted them in a real browser. The ones it missed went back to the agent (claude), which wrote new Kane tests until Kane caught them.

9bugs caught
0still uncaught
5tests the agent added
51Kane runs
361.5Kane credits

Does Kane's self-healing hide bugs?

Every caught bug replayed again with adaptive healing on (Kane's default). With healing on, Kane still caught 8 of 9; healing hid 1 (M04). 176.9 credits.

The pattern: Kane caught 8 bugs with a failed check (M01, M02, M03, M06, M07, M08, M09, M10) and 1 because a recorded step stopped matching (M04). Every check-catch survived healing; the replay-catch is the one healing hid.

Closed loop for healing: the hidden bug went back to the agent for a test whose failing check is a final verify, proven by Kane with healing on.

Every planted bug clean app

M01model.js:66caught by new test
--- model.js:66
- this.storage.save(data, callback, id);
+ this.storage.save(data, callback, undefined);

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m01_test.md · agent attempt 1

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 99% confidentTodo footer count ignores completed item

After Buy milk was completed, the app still counted it as unfinished in the footer.

M02model.js:76caught by new test
--- model.js:76
- this.storage.remove(id, callback);
+ this.storage.remove(id, () => {});

Planted because the item is removed from storage but the real callback never runs. The view doesn't refresh, so the deleted todo stays on screen and the item counter stays the same until the page is reloaded.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m02_test.md · agent attempt 2

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 94% confidentTodo fixture contains unexpected Buy milk row

The test expected a prepared list containing only “Walk the dog” and “Pay rent,” but the live page also contained “Buy milk.” No setup action ran to restore the expected starting data.

M03store.js:25caught by new test
--- store.js:25
- memoryStorage[name] = JSON.stringify(data);
+ memoryStorage[name] = JSON.stringify({ todos: [{ id: 0, title: "", completed: false }] });

Planted because the store starts with one empty todo instead of an empty list. The user would see a blank item in the list and the counter would read "1 item left" before they add anything.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m01_test.md

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 98% confidentReplay started with an extra blank todo

The app was not in the clean two-todo state assumed by the recording. An extra blank todo was already present, making the expected counter incorrect.

M04store.js:121caught by new test
--- store.js:121
- const data = JSON.parse(memoryStorage[this._dbName]);
+ const data = JSON.parse(memoryStorage[this._dbName].replace('"completed":true', '"completed":false'));

Planted because removing a todo also un-completes the first completed todo still in storage. After a delete, that todo would show as active again, its checkbox would be unticked and the "items left" count would go up by one.

  1. attempt 1: passes on the real app? yes
  2. attempt 1: fails on the bug? yes

Kane caught it with a replay that stopped matching (not a check) · healing on hides it

Try this broken build →

Caught by mh-m02_test.md · agent attempt 1

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 74% confidentTodo delete control does not appear on row hover

The row's delete control is not available after the required hover action, preventing a user from removing the todo and updating the item count.

M05store.js:134equivalent
--- store.js:134
- callback(JSON.parse(memoryStorage[this._dbName]).todos);
+ callback(JSON.parse(JSON.stringify({ todos: [] })).todos);

Planted because the callback always gets an empty list after a delete, even though the other todos are still in storage. Any view rendered from this callback shows no todos and a count of 0 until the page reloads.

Try this broken build →

Kane: the only caller of remove (controller.js:106) passes a callback that ignores the list it gets and removes the row by id, so the empty list never reaches the screen.

M06template.js:52caught
--- template.js:52
- title: escape(item.title),
+ title: escape(item.id),

Planted because each todo's label would show its numeric ID (for example "1700000000000") and not the text the user typed.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by add_todos_test.md

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 92% confidentRecorded todo text does not match displayed items

The replay did not leave the requested todo text in the app. The visible list shows two items and "2 items left", so adding items worked, but the recorded input/actions produced the wrong values.

M07template.js:53caught by new test
--- template.js:53
- completed: item.completed ? "completed" : "",
+ completed: !item.completed ? "completed" : "",

Planted because the "completed" class would go on every active todo and be missing from every completed one. Active items would show strike-through styling and completed items would look active. The checkbox state would still be correct, so the checkbox and the styling would disagree.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m07_test.md · agent attempt 2

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 98% confidentTodo completion styling is reversed

The page is applying the completed-text styling to Pay rent and Walk the dog instead of Buy milk. The visible item count and checkmarks show the opposite completion state.

M08template.js:80caught by new test
--- template.js:80
- return completedTodos > 0 ? "Clear completed" : "";
+ return completedTodos > 1 ? "Clear completed" : "";

Planted because when exactly one todo is completed, the "Clear completed" button text is empty, so the user can't see the button to clear that one item.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m08_test.md · agent attempt 1

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 97% confidentClear completed control missing after todo completion

The footer is not showing the completed-item cleanup control even though a completed todo is present.

M09view.js:156caught by new test
--- view.js:156
- $delegate(this.$todoList, ".destroy", "click", (e) => handler({ id: _itemId(e.target) }));
+ $delegate(this.$todoList, ".destroy", "click", (e) => handler({ id: _itemId(e.target) + 1 }));

Planted because clicking the destroy button sends the id plus one. The app then deletes a different todo, or nothing at all if no todo has that id, while the clicked one stays in the list.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m02_test.md

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 96% confidentTodo fixture no longer matches recorded expectation

The replay began with different saved todo data than the recording expected. The visible list has two rows, but one is “Buy milk” and “Walk the dog” is absent.

M10view.js:163caught by new test
--- view.js:163
- if (!e.target.dataset.iscanceled) {
+ if (e.target.dataset.iscanceled) {

Planted because the condition is reversed. Pressing Enter or clicking away no longer saves the edit, so the label keeps its old text and the item stays in edit mode. Pressing Escape, which should cancel, now saves whatever was typed.

Kane caught it with a failed check · still caught with healing on

Try this broken build →

Caught by mh-m10_test.md · agent attempt 1

Kane's screenshot of the broken app at the failing step
Kane's diagnosis · 96% confidentTodo edit field remains visible after saving

After Enter saves the changed todo, the page does not leave editing mode.

Tests the agent added