DigitAIField Journal
← All articles
Systems in use

The case of the two missing zeroes

Samira needs case 00417. The new CSV export passes its tests. Yet opening the file can cost her the two leading zeroes she needs to find the complaint.

Samira’s case number
In the CSV export
00417The two leading zeroes are part of the identifier.
In the spreadsheet
417Opened as a number. This ID no longer finds the case.

The note on Samira's monitor carries a case number with two leading zeroes. 00417. Leave off the first zero and the second one too, and the complaints system won't find the case. Working in customer service, she has grown used to reading numbers out precisely as they appear. When engineering announces a new CSV export, what she looks forward to is getting through Monday morning without copying the number off that note again.

This is a fictional assignment. For the Monday meeting, customer service needs a list of open complaints with their case numbers and the teams that own them. The shift lead uses it to assign callbacks. On Thursday evening an automated test passes. Nearly everything about that message is welcome. What Samira would still like to know is whether she can work through the cases at nine o'clock on Monday. In between those two questions sits a perfectly ordinary spreadsheet application.

Thursday, in the working directory

The developer sets up three records. Two complaints are open and one is closed. One team in the fixture is called “Service, North”, a useful name because a comma can take on a life of its own in a comma-separated file. A reader that blindly splits on every comma turns one team into two columns. A CSV writer puts quotes around that field. A corresponding reader should be able to recover the original team name intact.

The test asks the function to create a file and reads it back. The developer checks the two expected case numbers, their teams and the absence of the closed complaint. On reading the file as text, the case identifier is 00417. She attaches the recorded test run, the software revision and a sample file with invented values to the work item. Someone investigating a fault tomorrow will have something better than a screenshot of a green tick. They can repeat the case and compare the output with what was expected.

She could close the job now if the brief had been to write an export function and test it locally. But the original request mentioned Monday's meeting and the callbacks. She records the local result and leaves the handover open. A second run against the same three cases might reassure her that the test is repeatable. It wouldn't tell her which version Samira will see on Monday.

A sample handover record for a CSV export
StageEvidence to attachQuestion still open
ImplementedChange to the export function and a sample outputWhich cases were checked?
Tested locallyRecorded run with two open cases, a closed case and a comma in a fieldWhich version is live?
ReleasedDeployed version and a download using an approved test accountCan customer service use the output?
Accepted in the workflowThe team opens the file in its usual software and can assign the callbacksHow does it hold up over subsequent weeks?

Friday, beyond the sign-in screen

An approved version goes out. The developer opens the released application using a service account set aside for testing. An administrator account would be convenient, but it might show her an export hidden from Samira's role. In the intended environment, she checks the deployed version, opens the test records and downloads the file using the visible button. Now she has evidence that this account can reach this version, and that the download contains the expected columns.

Even a successful HTTP request could have left some of that in doubt. A link can land on a sign-in page which the server returns with a cheery success status. A download can have the right name and last year's columns. She opens the delivered file. There are two case numbers, including 00417. On the board she records that the version is live and the test download has been checked. She leaves Samira short instructions for Monday, including the observation that somebody on the service desk still needs to make.

Monday, at the desks where the calls are made

Samira double-clicks the sample file. “Service, North” lands neatly in one field. Beside it is the number 417. Her spreadsheet application recognised a string of digits on opening the file and discarded the leading zeroes. A quick lookup in the complaints system finds nothing. The two people involved may both have done their jobs correctly. All five characters are still in the delivered file. The number changed where Samira began working with it. This is the first observation from the actual workflow in our example.

They open the same download in a text editor and the spreadsheet application side by side. The difference is now small enough to act on. During import, Samira can designate the case number column as text. The zeroes survive, the test record opens and she can assign it to a callback team. Customer service can decide whether the shift wants to import files that way or would prefer a spreadsheet format with an explicit text field. Changing the query that selects open complaints would have done very little for this problem.

Samira records the application, import setting and account role with which she made it from download to assignment. If someone on the next shift uses a different application, there is a sensible place to start checking. Nobody needs a list of real customers on the project board. An approved test record and a short observation about its case number convey what the next person needs to know.

DigitAI OS presents work packages, responsibilities and results from an AI team. A business using it to oversee a job like this can agree at the outset what evidence permits each next step. A reviewed draft may be plenty for a concept paper. Here the team needed a function, a local test, a released file and a trial by somebody whose work depended on it. Whether the new routine reduces missed callbacks over several weeks is a further question for the business to measure.

At the end of the meeting Samira picks up the note one last time. It has done its duty as a test case. The work item now records how her team can open and use the case numbers. Nobody needs to withdraw the message that the test passed. Everyone can finally say which test they mean.

Sources and further reading