Repository navigation
Commit 310177e
committed
fix(category): name a heuristic category only at blocking confidence
e19299e made the resolver's heuristic mappings reachable by reading the
raw signals. A refuting review showed the cost: aggressive mode blocks a
lone 50-point neighbor-spoof match, which also fires on local banks and
schools, and with Scam set to Allow that block became
category_policy:scam:allow and the call rang. The resolver's own trust
rule reserves a category for strong evidence, so the heuristic branch
now requires the score the default setting blocks at (60). Confident
blocks keep their category; the weak one stays a plain heuristic block.
Tests: CallCategoryResolverTest adds the aggressive-mode case (50 is
Unknown, 60 is Scam). Existing heuristic cases use 65 and 70 and are
unchanged.1 parent b5c266b commit 310177e
3 files changed
Lines changed: 25 additions & 3 deletions
File tree
- app/src
- main/java/com/sysadmindoc/callshield/data
- test/java/com/sysadmindoc/callshield/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | | - | |
121 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
| |||
0 commit comments