Anthony KanBuild around People繁體中文
← All Build Notes

Draft protection blocked a successful next step

Two sensible behaviours interfered, and a test caught the interaction before acceptance.

About 2 min read

A recent bug was almost funny.

We were improving draft protection in one of my apps. If someone was halfway through writing and accidentally closed a form or moved away, the application should protect their unfinished work.

The agent added the safeguard.

Then an integration test found that after someone successfully created a new question, the application couldn't navigate to that new record properly.

The safeguard thought it was preventing someone from abandoning an unfinished draft.

Except the person had just completed the operation.

The repair wasn't to remove the protection. It was to make the successful creation and the draft state agree about what had actually happened, so the normal next step could proceed.

I found this a particularly good example of why my AI development experience doesn't contain many accepted versions where one small fix has broken unrelated features.

The agent still made a mistake. Two individually sensible behaviours interfered with each other.

But that interaction was discovered and corrected before I accepted the result.