--- 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
Caught by mh-m01_test.md · agent attempt 1
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.
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.
mh-m04-heal_test.md · Kane: Todo footer counts completed item as remaining - The footer count does not exclude the completed Buy milk task after the delete action.--- 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
Caught by mh-m01_test.md · agent attempt 1
--- 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
Caught by mh-m02_test.md · agent attempt 2
--- 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
Caught by mh-m01_test.md
--- 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.
Kane caught it with a replay that stopped matching (not a check) · healing on hides it
Caught by mh-m02_test.md · agent attempt 1
--- 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.
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.
--- 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
Caught by add_todos_test.md
--- 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
Caught by mh-m07_test.md · agent attempt 2
--- 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
Caught by mh-m08_test.md · agent attempt 1
--- 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
Caught by mh-m02_test.md
--- 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
Caught by mh-m10_test.md · agent attempt 1
mh-m01_test.md written for M01 (1 attempt)mh-m02_test.md written for M02 (2 attempts)mh-m07_test.md written for M07 (2 attempts)mh-m08_test.md written for M08 (1 attempt)mh-m10_test.md written for M10 (1 attempt)