BlogKaltec Voices
Why in-house tools built with coding agents break after six months
- Type
- Kaltec Voices
- Published
- 24 November 2026
- Prepared by
- Byunghoon So
- Role
- ML / AI Engineer
An in-house tool built over a weekend with a coding agent starts, six months on, to return wrong values without an error once a column name or a unit in its data changes. The tools that last settle the input format, the person who owns it and a check that stops when it changes before any code is written, and those inputs include supplier documents from outside the plant.
Background
An equipment engineer at one customer spent a weekend building an inventory dashboard with a coding agent. Every morning a script read the Excel stock ledger the materials clerk posted to a shared folder and put current stock for each consumable, from process chemicals to protective gear, on one screen. Items that fell below their reorder point set off a messenger alert. He said he never typed a line of code himself. The screen went up in production meetings, and counting stock by hand went away.
About six months later, the disposable nitrile gloves used by workers who handle chemicals ran out. That same morning the dashboard still showed the item above its reorder point. When this happens, people usually put it down to trusting AI-written code and take the tool down. I don't look for the cause in the code first. I start with the format of the data the tool reads and the person who owns that format. An in-house tool lasts as long as the format of the data it reads, and that format's owner, are settled.
Wrong values from code built never to stop
Narrowing down the cause did not take long. When the materials job changed hands, the new clerk renamed the ledger column "Issued" to "Used". Not everything the floor takes is a formal issue, so as far as the work goes it was the right fix. The script was written to look for the "Issued" column and fill in zero if it was missing. From that day the issues the script read were zero for every item, and stock rose only with receipts. For weeks the numbers on screen looked plausible; they just never went down. Not one reorder alert came in that whole time.
The engineer did not write the line that filled in zero. In the first few days the script kept stopping on blank rows and merged cells, so he told the agent, "Don't stop on errors, keep it running to the end." The agent did exactly that. If a column was missing or a value was blank, it put in a default; if an exception came up, it skipped the row. Anyone who has worked with coding agents knows this scene. Tell an agent not to stop and it usually answers with broad handling that catches and passes over every exception, plus defaults like zero or blank. Ask for code that runs and you get code that runs. But code that never stops does not stop when its input is wrong, either. A script that stops on day one takes ten minutes to fix; one that gives plausible numbers six months later is caught only when someone opens an empty glove box.
Developer surveys show the same complaint. In Stack Overflow's 2025 survey, 84% of respondents said they use or plan to use AI tools in development, and the most common frustration, chosen by 66%, was results that are "almost right, but not quite" (Stack Overflow, 2025). In a tool that reads data, almost-right code is usually code that is right only while the input format holds. Silent failure predates AI. In 2020 Public Health England moved test results into an old Excel format that holds only 65,536 rows. The overflow rows dropped without an error, and 15,841 positive cases from September 25 to October 2 went missing from the daily counts (Karabus, 2020). The program ran to the end, and the numbers looked plausible.
Over six months, the input is what moves
Code does not change unless someone touches it, but an Excel ledger changes with the rhythm of the work. The clerk changes, a new file with the year in its name starts after the half-year stock count, items once counted in drums start being entered in kilograms, and a new item code scheme arrives. Each is the right change for the person keeping the ledger. The trouble is that whoever edits the ledger does not know a script reads it. In a plant that tracks consumable chemicals item by item in its ERP the risk is small; this happens where an Excel stock ledger is the only record.
A unit change is quieter than a column rename. When kilograms land in a stock cell that used to hold a drum count, the column name stays the same and the script notices nothing. For an item at around two hundred kilograms a drum, stock seems to jump two hundredfold overnight, and the item drops out of reorder alerts for a while. When a column disappears, the code can at least know it did not find it; when only a column's meaning changes, the code has no way to know.
A paper by Google researchers on technical debt in machine learning systems flagged this early. Compilers and linkers find code dependencies, but data dependencies have no such tools and tend to stay hidden. So, the paper said, data dependencies cost more than code dependencies. As one way inputs become unstable, it named the case where the input is owned by a different team from the one that uses it, and noted that even a fix that corrects an input can harm whoever uses it (Sculley et al., 2015). The weekend dashboard has exactly that shape. The ledger belongs to the materials clerk, the dashboard to the equipment engineer, and there is no agreement between them.
Writing got cheaper, noticing did not
Coding agents have sharply cut the cost of writing a tool and of fixing one. What has not changed is the cost of noticing that it broke. Nor does the agent set up an agreement to give notice before an input changes. Who looks when the morning alert does not come, and whether anyone has read the code line by line, are not things the agent decides. Code accepted unread gets its first reading when it needs a fix, and by then its maker is usually busy with other work. In the same survey, 45% of respondents said debugging AI-generated code takes more time (Stack Overflow, 2025). Having the agent write tests too does not cut this cost. Tests written by the same agent on the same assumptions cannot catch those assumptions. Tests for code that assumes an "Issued" column always exists run only on files that have one, and they all pass.
Describing its system for validating training data, Google said to treat the schema, the written record of a data format, as a production asset on par with source code. The schema is generated automatically at first, but from then on engineers review it, version it and change it (Breck et al., 2019). For an in-house tool, that means one sheet listing the ledger's column names, units and allowed ranges must exist before the code, and that sheet must have an owner.
Putting it to work
That dashboard ran again after a few lines of code changed. What was added was a check that stops when a column is missing, and a column list and the clerk's name on the ledger's first sheet. Half the fix was outside the code. When you hand a new tool to an agent, write down that share outside the code first, and the code gets written on top of it.
Data format. For each column the tool reads, write the name, the unit and the range of allowed values on one sheet, and hand it over with the coding request. Put rules like "Never fill a missing column with a default; if the format differs, stop and say what differs" in the project instruction file, not the chat window. That way a different session fixing the code six months later reads the same rules.
Owner. Write down by name who owns the ledger and who owns the tool, and tell the ledger's owner that a tool reads it. A single habit, asking once before renaming a column, prevents most of the accident above.
Validation. Have the agent write tests that must fail before it writes the code. Give it the old ledger and one with a renamed column as test files, and test that it always stops on the renamed one. When a change comes back, ask for a list of every line that fills in a default and every line that swallows an exception, and read those lines yourself first. Once it is running, have the tool report the state of its input every day: rows read, column names not found, blank cells and items that have not gone down at all for days. Make a missing morning report alert the owner too, and once a month check a few high-use items on the shelf against the screen.
Changing inputs. List ahead of time the moments when inputs change, such as half-year stock counts, a clerk handover or a unit change, and each time realign the format sheet and the test files. The receipts column in a stock ledger is usually copied from supplier delivery notes, so much of the input comes from outside the plant in the end. Delivery notes, lot certificates of analysis and revised SDSs feed stock and quality tools, and when a supplier changes its template, the order of test items on a certificate changes and item names on a delivery note change. A tool that reads items by position goes wrong when the order changes, one that reads by name when the names change, and templates from outside the plant usually change without anyone noticing.
So test inputs from outside the plant with the documents you actually receive. Gather a few months of a supplier's delivery notes and certificates, check that the items and units match every time, and put the different templates into the test files together. When we built tools that read SDSs and maintenance logs, most of our failures also started in the input before the code or the model. Since then we keep the notes from every site visit, equipment operating conditions and measured values in one place under fixed fields, and we name an owner for the fields and units of what we send customers.
Conclusion
As writing tools gets cheaper, plants fill up with small tools that read certificates, delivery notes and revised SDSs. A ledger inside the plant can be pinned down with a column list and a name on its first sheet, but only the sender can pin down the format of documents from outside. Plants where such tools last past six months will have suppliers that always send the same fields in the same units, and can name the person who owns that format.
Who owns the format of the supplier documents your tools read today?
Sources
- Breck, E., Polyzotis, N., Roy, S., Whang, S. E., Zinkevich, M. (2019). Data validation for machine learning. Proceedings of SysML 2019. https://mlsys.org/Conferences/2019/doc/2019/167.pdf
- Karabus, J. (2020). What a Hancock-up: Excel spreadsheet blunder blamed after England under-reports 16,000 COVID-19 cases. The Register, October 5, 2020. https://www.theregister.com/2020/10/05/excel_england_coronavirus_contact_error/
- Sculley, D., Holt, G., Golovin, D., Davydov, E., Phillips, T., Ebner, D., Chaudhary, V., Young, M., Crespo, J.-F., Dennison, D. (2015). Hidden technical debt in machine learning systems. Advances in Neural Information Processing Systems 28. https://papers.nips.cc/paper_files/paper/2015/hash/86df7dcfd896fcaf2674f757a2463eba-Abstract.html
- Stack Overflow. (2025). 2025 Developer Survey: AI. https://survey.stackoverflow.co/2025/ai