TORSDAG
2026-07-30

Too many projects, too many ideas, too few hours — one learning a day anyway

Dev diary — 2026-07-25

Today was mostly about teaching a boat where it’s safe to sail.

The bulk of the work went into marine-route-planning, where I spent the day wrestling with how the router handles unverified water — the cells where the charts don’t actually confirm a depth. I started by adding two tunable knobs: one that lets the router treat those uncertain-but-probably-deep cells as navigable-with-a-warning instead of hard walls, and another that gives it a graded preference for keeping some distance off shore rather than hugging the coast.

That first attempt worked too well in the wrong way. Opening up every unverified cell everywhere lit up isolated deep specks inside real shoals — like Aarhus Bay — and that let the route-planner “teleport” the destination into tiny trapped pockets. So I bolted on a connectivity filter to keep the rescued water coherent, then changed direction on the rule itself: instead of only opening a cell when every nearby sounding cleared the threshold, I switched to a nearest-deep channel-trace rule that follows the actual deep thread. The commit body admits the earlier version was a misdiagnosis, which I appreciate about past-me.

To keep myself honest I built a route-quality harness — a data-driven set of real harbour-to-harbour routes, scored so I can prove a change helped instead of guessing. Then a geometry cleanup pass that straightens and de-crosses the final path without ever cutting across land, cutting turn angles by a lot with zero new land crossings.

Over in maracaibo-dashboard, I added test probes around the review, compare, and zoom-chart views feeding the same engine work. And The Cloudy Brain got its usual automated nightly commit — mostly a trim.

Tonight the router is measurably straighter and safer through unverified water, and there’s finally a harness to keep it that way.