hbcc

MAVO · 5 of 6

What was hard

A parser figure measured on the wrong path

Ukraine’s public alert channel writes in prose, but almost every message also carries a hashtag for the area it concerns. Measured over the design window, over 99% of messages had one, while matching place names in the text found an area in about 6%. The lookup from hashtag to register code is a table of 127 rows.

For two sprints the project’s own figure for that parser was wrong. A sample of 20 real messages was reported as resolving 0 of 20 areas. The tool behind the number had been built without the area table, so it fell back to a superseded lookup. The two tests written to prove the fix called the same broken path. On the path the product actually runs, all 20 resolve to a unique register code. The defect log keeps both figures and the mechanism as F90.

One source’s silence hidden by another

When the channel fell silent on 29 August, the collector went on reading it twice a minute without an error, because the channel was reachable and simply published nothing. On 7 September it published nothing for almost thirty-four hours, and the published files reported every source as fine throughout. Freshness was computed as a single maximum over all sources together, and the API, by then the primary source, kept that maximum current. The fix gave every source its own liveness, decided from the record of its own fetch attempts. The published files now name each source and whether it is still alive.

The same blindness returned later in other dimensions: a latency tool pooled the channel’s weeks and the API’s into one median. The defect log tracks the pattern as a family.

Rare events

A border crossing is rare enough that any statistic about it rests on a handful of events. The gate that survives from the first week evaluates a candidate rule per night. It requires a recall of at least 0.9, a lower Wilson bound on lift of at least 1.5, and a one-sided Fisher test at 0.05. Splitting the results by attack type exposed what an average had hidden. On the generated test history, a rule that caught 7 of 7 missile crossings caught none of 8 drone crossings, and the two together read as 0.47. The gate now guards a warning layer that does not exist, and all its figures come from a generated history.

The Polish feed

RCB often ends an air alert with a separate cancellation, and in lubelskie by editing the original record, so the record’s own expiry field cannot be trusted to say when it ended. Read by that field, an alert of 16 September from 07:05 and its cancellation from 07:36 both ran to 23:59. The map painted the voivodeships under alert for about sixteen hours after the all-clear. The fix went into the reader, which now pairs each cancellation with the alert it ends.

Speed needed measuring too. Over ten RCB alerts at the end of September, the RSO feed published a median of about a minute after an alert took effect. The project’s own reading trailed that by a median of seven and a half minutes, because it polled every fifteen. The poll now runs every minute. In late October RCB began filing its air alerts under a category the reader did not fetch, and for two days the page said RCB had raised none. The sixth category is now read, and before each pass the reader checks that every item on RSO’s combined list came back from a category it knows.