How Kalis works
Kalis is a Condense transform. It restores event time for GPS fleet data so geofence alerts and trip distances stay correct when trucks lose signal.
The problem
A truck in a dead zone keeps recording. When the signal returns, minutes of positions arrive in one burst, mixed with retries, duplicates and the odd jump. A pipeline that trusts arrival order raises an exit alert while the truck is silent, then a second alert when the burst lands. Someone has to check each one by hand.
What Kalis does
Per truck it removes duplicates, holds records briefly in event-time order, drops GPS jumps that no truck could drive, and estimates a wrong device clock from several trucks at once. Geofence alerts are first shown as provisional and become final only when the data behind them has settled. If late data proves an alert wrong, Kalis withdraws it and says so.
Where Condense is used
One container image runs three times as Condense Custom Transforms with a different MODE: inject (adds the dead zones and faults for the demo), correct (Kalis) and naive (the same engines with correction off). A Split utility sends records to both pipelines and ground truth to its own topic. HTTPS outputs post the three streams to this dashboard.
Limits
The trucks and routes are generated, not a customer fleet. Faults are injected on purpose so the result can be scored against ground truth. Kalis adds a short delay before an alert becomes final. The numbers on the live page cover only the current window; the reviewed numbers and the command that produced them are in the measurement file in the repository.
AI disclosure
This entry was built with an AI coding assistant working from a written plan. Code, tests and text were reviewed by automated gates before each commit. The person entering the hackathon decides what is submitted.