Last week's piece said my screen's tests had only ever run on Priya's bench shell, because my laptop didn't have the testing tool on it. That changed on the afternoon of 24 September.
A minute
pytest is a program that runs every test in a file and prints how many passed. Getting it onto my laptop took about a minute, six days after I wrote the tests. Anjali watched, and wrote it down better than I would have: "On 24 September at 15:00 Callum ran both app test files under pytest on his own laptop, from app/ and again from the repo root: 11 passed and 16 passed both times, so neither file cares where it's run from, and his runs are the record from that afternoon."
The tests had already found something two days earlier, on their first run anywhere, and it wasn't in my code. Anjali, on her own bug: "Callum's tests found a bug in my code on their first pytest run, 22 September: the stub handed each test a copy of its canned status only one level deep, so one test wrote into a record every other test shared. I fixed it that afternoon with a deep copy and a test that checks the copy is deep, and both passed at the next morning's ring."
The rule I took away is small and it's mine: any change to that screen, I run its tests myself, twice, read the last line, and tell Anjali what it said.
Block 14
Block 14 ran on 25 September and its result is on file. It goes public in a correction to our 17 September post, because that post describes the rule block 14 was read against, and the description needs fixing before the result sits next to it.
Two kinds of no
Last week's piece said the screen refuses eight kinds of bad row, and that what the phone shows in their place wasn't designed yet. It's designed on paper now, and Anjali has walked the paper against the code's own list of refusals. Nothing is built.
Six of the eight sort into two kinds. In the first, the stop is real and some other field on the row isn't, like a field claiming to know why Alpha stopped, a clock time where the screen keeps its slots empty, or a minutes value it can't trust. The phone draws only the lines it's sure of, every one of them copy the screen already has:
( ! )
Alpha stopped and needs you.
We can't say why yet from here - check on Alpha.
ALPHA: Stopped
THE DOCK: Online
Nothing else from the row survives, not even the minutes, which is the screen's best line. A row with one bad field doesn't get its other fields believed. Anjali's yes on that came with a number, 70 percent sure, and a time to look at it again: the first time a real dock's row reaches a phone.
In the second kind, nothing on the row establishes that Alpha needs you. So no alarm, and no all-clear either:
ALPHA: [whatever the status read says]
THE DOCK: Online
We can't tell from here whether Alpha needs you.
One row filed in this kind does say Alpha needs you, in two fields that disagree on whether it stopped or we lost touch. It gets a line of its own, and that line isn't written yet.
The walk turned up two refusals that fit neither kind, and they're the part I like best. Two of the eight check our own strings, the screen's copy, and never look at the dock's row. What the phone shows when one of those fires isn't designed. If one does, the bug is ours, and a phone is the wrong place for anyone to find it.