Find Code Missing a Protection
hokmah_risky_codeLists current code of an imported repository that lacks a protection the project's own
fixes keep adding, learned from the diffs of its past fixes: unguarded access to structures
fixes had to guard, including an entry checked to exist but read at [0] without checking it
has an element, or passed to a function that dereferences it (R1); results of functions that
fixes had to null-check, called the way the fixes checked them and declared nullable, used
unchecked (R7); plain objects used as dictionaries keyed by request input and written through
the looked-up value, obj[k].x = v (R2, prototype pollution; a one-level write is only a
hardening note); template variables inserted unescaped where another
file sanitizes them (R3). Optional zone (path prefix or words) and kind (R1, R2, R3, R7).
kind="UI" lists the interface instead: translation keys missing from the base locale or
called without the values their text needs (U1), screens that await a request on opening
without handling its failure (U4), and, not validated on history, accessibility notes (U5).
Each site says why it was flagged; measured_on_history gives, per kind, how often such
sites turned out to need a fix when the detectors were run on the code of a year earlier.
Candidates are not confirmed bugs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_url": "<repo_url>"
},
"name": "hokmah_risky_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| zone | No | ||
| repo_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||