• 1.0.14-beta.1 2ab15254f5

    Release 1.0.14-beta.1
    Some checks failed
    Lint / lint (push) Successful in 35s
    Sync Release to GitHub / sync-to-github (release) Failing after 2s
    Test / test (push) Successful in 1m3s
    Pre-release

    aluminum-ice released this 2026-11-05 06:00:50 +00:00 | 46 commits to main since this release

    Kestrel 1.0.14-beta.1

    The learning agent stops getting stuck. A learning agent that had settled on one way of scanning kept using it forever, and every new model it trained made exactly the same choices, so none could ever replace the old one. This beta teaches it to try other scans now and then, to start a model over from scratch from time to time, and not to bet on scans it has never tried. It also stops tagging captures with an out-of-date GPS location.

    This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). An on-device checklist issue will follow.

    From 1.0.13 (or any 1.0.13 beta), this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

    The learning agent keeps learning

    What was going wrong. Every 30 seconds the agent picks how to scan: which channels, how long to stay on each, and whether to send or only listen. With a trained model in charge, it always picks what it currently thinks is best. Once a model had settled on one scan, the device only ever found out how that scan did, so it had nothing to learn from. Training then started from the current model and came back with the same choices. Every contest between the new model and the old one was a tie, the Agent page said "not better than the active model (mean diff +0.0000)", and nothing improved, while training still used the processor every half hour.

    Three changes fix that:

    • It tries other scans now and then. About 1 window in 20, the agent runs a different scan instead of its favourite and keeps it for two windows (a minute) to get a fair reading. It picks the scans it has tried least first. That's a few windows an hour.
      • The Agent page shows a new Exploring row: how often it explores, how many of the possible scans it has tried so far (for example 21 of 32), and how many windows it explored in the last hour. While one is running, the note says trying ….
      • Exploring windows are counted on their own exploring line, so the learned model's handshakes-per-hour stay its own.
      • It only explores while the trained model is in charge, never when you've chosen the scripted sweep (baseline).
    • It starts over from scratch now and then. Most training runs still fine-tune the current model. Every 4th run, or straight after 3 contests in a row where the new model changed nothing, the agent trains a brand-new model from a random start, with three times the usual training. A model built fresh can land somewhere the old one never would. It still has to win the same fair contest before it takes over.
      • The Model contests row adds how the from-scratch models have done (from scratch 1 of 3 won), and Last contest says how often the new model made the same choice as the current one.
      • To ask for one yourself: kestrel agent train-now --fresh.
    • No betting on scans nobody has tried. Until a scan has been tried for at least 8 windows, training and the contest assume it does no better than the weakest well-tried scan. A model can't win just by choosing scans the device knows nothing about; the exploring above is how those scans get tried.

    What you'll notice. A few windows an hour running a different scan, the new rows on the Agent page, and, over the following days, contests that can actually be won. Exploring windows may catch a little less than the model's own choices; the separate exploring line shows exactly how much.

    If your agent is on the scripted sweep. Exploring only happens while a trained model is in charge. To switch: sudo kestrel agent policy learned (it needs a trained or imported model).

    Your scan limits now apply to every agent scan

    The [agent.action] lists in /etc/kestrel/config.toml (postures, dwell_buckets and transmit_modes) now limit every scan the agent runs: the trained model's, the scripted sweep's and the new exploring ones. For example, transmit_modes = ["passive"] keeps every agent window listen-only. If a model asks for a scan outside your lists, the agent runs the closest one that's allowed. The shipped lists allow everything, so nothing changes unless you've narrowed them.

    GPS

    • Captures are only tagged with a current location. When the GPS loses its fix, or the receiver stops sending (unplugged, powered off, a stalled USB link) for about half a minute, new handshakes are no longer tagged with the last known position, and wigle doesn't record them either. Tagging resumes with the next fix. Before, a capture made after the fix was lost could be filed at the place the device used to be.

    Settings, for those who like to tune

    All in the [agent] table of config.toml; they take effect the next time the agent starts (sudo systemctl restart kestrel-agent). The defaults suit most devices.

    Setting Default What it does
    explore_rate 0.05 Share of the trained model's windows that try another scan. 0 turns exploring off.
    explore_windows 2 How many windows in a row an exploring scan runs.
    fresh_every 4 Every Nth training run starts from scratch. 0 = only when stuck.
    stuck_contests 3 Contests in a row with no changed choice before a from-scratch run. 0 = off.
    fresh_timesteps 0 Training length for a from-scratch run. 0 = three times train_timesteps.

    Testing this beta

    • The learning agent is the main thing to watch. Leave a device with policy = learned capturing for a day or two, then check the Agent page: the Exploring row should show the tried count climbing, and the journal (journalctl -u kestrel-agent) should show explore: trying … lines, a training from scratch run every few runs, and contest lines ending in same choice as the active model on N% of rows.

    Install: app-layer — apply in place via the updates plugin.


    Built from 2ab1525.

    Downloads