Repository navigation
Add "False Positive" marker for radio - #65
curtiszimmerman wants to merge 2 commits into
Conversation
|
Thanks. That neighbor access point is a real case. Mine is the wrong label for it, and the radio would still match Porkchop. This looks promising, and we will look at integrating it. A few things will change on the way in. The three new lines need a version stamp, so an older language file knows they are new. The mark lives on the named-radio row. The first switch creates that row, with Alert off, and deleting the named radio removes the mark. Log lines and sits that are already saved keep the old signature name. New log lines and the live list drop it. We may also use a plainer name than False positive. One more we will look at: if a cluster signature only reached its count because this radio was in the group, the mark drops that signature from the other radios too. The count is right. We want to be sure that is what should happen. Thanks for the tests, and for writing the translations. |
|
Thanks again. The PorkChopSoup access point was a real case, and it was the right thing to send in. I said we would look at bringing the mark in. After sitting with it, we are not going to merge this as it stands. The access point did match Porkchop. The rule was too wide. A switch that throws that match away fixes the beep on one phone and leaves the wide rule in place for every other radio, and every other person. The durable fix is the rule. Porkchop now matches the name PORKCHOP exactly, a name that starts with M5PORKCHOP, and the vendor mark 50:52:4B. PorkChopSoup does not match. A longer name that only contains those letters does not match either. That fix reaches every phone. A per-radio exception would have to be set again on each one. For a radio that really does match, and that you do not want to hear, there is a Mute switch. It stops the beep, the voice, the notification, and the vibrate for that one radio. The radio stays on the list with the same signature name. The sit and the debrief stay the same. It is not Mine, so Hide Mine does not apply. The switch is on the radio detail page and on the named-radio row, so you can turn it off after the radio has left. That will be in the next update. That last part is the other problem here. The neighbor's signal comes and goes, and the pull request says the only place to undo a mark is that radio's detail page. That page is there only while the radio is on the air. A choice about one radio has to be reachable when the radio is gone. The mark also does more than quiet the radio. It takes the signature off the live name, the new log lines, the sit, and the debrief, and it stops the radio from counting toward a cluster. If that radio was the one that made the count, the other radios lose the signature too. Turning Sidewalk off a radio can bring the Amazon name back, because Amazon stays hidden only while Sidewalk matches. A saved sit and the live radio would then disagree. That is a lot of bookkeeping for one annoying access point, and it grows every time a rule is a little wide. When a stock rule is too wide, the fix is a tighter rule. If a later case cannot be written that way, we can look at it then. Thank you for the tests, the translations, and for writing this up. It is what got the Porkchop rule fixed and the mute option added. |
|
Mute is good, thank you. One consideration about adding both Mute and False Positive flags: A human applying a False Positive flag to a particular radio is a very strong signal that's useful for later analysis. Just thinking about this tactically, I'd want to know if one of my guys in the field had a reason to differentiate between a noisy neighbor and some source that was a known false positive, e.g. OPFOR (or buddies) with decoy radio sources. That decision (and the reasoning for that decision) might not always make it through a parallel INTSUM pipeline, but would still be useful information to have in the data itself. I'm thinking about this architecturally, as I've been working on a backend for this app to ingest the data from multiple sources for analysis. |
|
Thanks. I see what you are after. Someone in the field deciding "noisy neighbor" and deciding "this match is wrong, it may be a decoy" are different facts. The second one is worth keeping with the radio. If it only lives in a separate write-up, it can get lost before anyone is looking at the phones together. You want that judgment in the data your backend is already pulling in. Two ways to hold it. Today, Mute stops the alerts and leaves the signature on the radio. The notes on that named radio are the place for the reason. Those notes go out with the sit, the debrief, and the map export, next to the signature the phone matched. Later, if a note is not enough for the analysis, a mark could say a person judged this match wrong and still leave the signature in the record. That would be new work. Leaving it closed for now. I am also interested in the backend project. I can definitely see a lot of opportunities in taking the output of Fieldwatch phones scattered over a region. — Pete |
Aloha! First just wanted to say this is a very awesome tool, so thank you.
Mark a radio as a false positive for one signature
Name rules sometimes catch an innocent radio. My neighbor's AP, "PorkChopSoup", matches Porkchop's
NAME_CONTAINS PORKCHOPrule. He's just far enough that his wifi signal comes and goes, so I'm getting alerted every sixty seconds or so. Until now the only fixes were turning off the signature's name rules for everyone, or marking the AP as Mine, which is the wrong label and still leaves it matched.This adds a False positive card to radio detail, just below Mine. It has one switch per signature on that radio. Switching one on means that signature never matches that radio again: it's gone from Live, alerts, logs, sit/Debrief, and signature candidates, and the radio no longer counts as a peer for cluster signatures. Marked signatures stay listed on the card so they can be switched back off.
How
WatchTarget.notSignatures: Set<String>holds the mark on the radio's existing named-radio row, so it's included in settings export. Missing JSON means empty.SignatureEngine.match()takes the marks and skips those signatures for that device key, including in cluster peer counts.DeviceStorereads the marks on each relabel and clears its match cache when they change, so a toggle takes effect right away.SignatureCandidates.analyze()gets the same marks.Tests
7 new unit tests: engine and store behavior, relabel when marks change, cluster peers, the bookmark helpers, and candidates.
testDebugUnitTestandassembleDebugpass.Notes