rank_hypotheses
Orders candidate vulnerability hypotheses by P(KEEP) to guide verification budget and decide which items to check first; returns advisory rankings without deleting anything.
Instructions
Rank vulnerability hypotheses by P(KEEP) — a local decision model (Laya) picks the verify order.
Use when the agent (or user) holds a list of candidate vulnerability hypotheses and
must decide which ones deserve a verification budget FIRST — the same role Laya
plays as the Scout→Verify gate in the arcanum-spark pipeline. Input is a JSON
array of items: {"id", "title", "vuln_type", "file_path", "attack_path"} (id and
attack_path optional). Optionally pass baseline — a JSON array of deterministic
findings ({"file", "rule", "title"}) so echo-hypotheses that just restate a rule
hit can be down-ranked. Output is an advisory ranking with P(KEEP) and confidence
per item; NOTHING is deleted or pruned (order-only contract).
Requires the Laya checkpoint: download the laya-checkpoints release assets from
github.com/a9320/arcanum-spark, then set ARCA_LAYA_PATH to the model directory
(needs pip install arcanum-mcp[laya] for torch). Runs offline on CPU (~0.4s/item).
Not for: scanning text or code — use pitax_scan/code_audit/docs_scan; this tool
RANKS hypotheses, it does not detect anything.
Triggers: which hypothesis should I verify first, 排序假设, 验证预算, rank these
candidates, 先验证哪条, 假设排序.
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": {
"hypotheses": "<hypotheses>"
},
"name": "rank_hypotheses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline | No | ||
| hypotheses | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |