Don't count AP-less handshakes in the agent's coverage figure #169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent-coverage-apless"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
Stops the learning agent's coverage figure from counting an AP-less capture's rogue address as an access point.
Each decision window, the agent logs
new_networks: the distinct AP BSSIDs among that window's new handshakes.kestrel agent metricsand the agent's status turn it into "new networks / hour". An AP-less handshake (a phone answering the capture tool for a network it remembers) is filed under the capture tool's rogue address, one per capture run, so a window with AP-less handshakes counted that address as one more network.agent/env.py:_distinct_bssids()skips AP-less handshakes (HandshakeEvent.apless, from #161). They still count as handshakes in the reward, unchanged.docs/developer/agent-interface.md: the episode-log row fornew_networkssays AP-less handshakes aren't counted, and that it's a reporting figure only.No change to training or contests.
new_networksfeeds only the metrics summary (coverage_per_hour). The reward uses the count of new handshakes, and the trainer and the model contests never readnew_networks. So the observation, the action space andSPEC_VERSIONare unchanged, and existing models and logs stay valid. Windows logged before this update keep their old counts, so the figure drops a little once it applies.This follows the AP-less work in #161 and #162, which came from a community member's patch.
Checklist
make lint(ansible--syntax-check,yamllint,shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.make test: 1674 passed locally (the two off-device-only failures deselected). The new test is intest_agent_env.py, which is skipped withoutgymnasium. CI doesn't install it, so I ran that file with the image's pinnedgymnasium==1.4.0: 12 passed.scan-override.json.Release impact
kestrel_pipackage only.Notes for review
test_apless_handshakes_count_as_handshakes_but_not_networks: three AP-less handshakes under one rogue address plus one real AP's count as 4 handshakes and 1 network. It fails on main (2 networks).test.ymlinstallspytest flask requests numpy pillow cryptographybut notgymnasium, so all oftest_agent_env.pyis skipped in CI. Addinggymnasium==1.4.0to that install line would make it run. That's a workflow-only change and doesn't affect the image; left for a separate decision.🤖 Generated with Claude Code