[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69917PJ1P2VE5XQ8Q7N0X67":3,"skill-same:01M69917PJ1P2VE5XQ8Q7N0X67":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M69917PJ1P2VE5XQ8Q7N0X67","mantis-calibrate",null,"Calculates the final risk score based on empirical evidence and architectural impact. Use when findings have been fully processed by previous stages and you need to append final risk scores to the finding files. Don't use for discovering new vulnerabilities or writing patches.","google\u002Fmantis","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M6990SDGGFEAP21TJNS7HEG9",2778,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-calibrate\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"mantis calibrate","calibrate","writing","vulnerabilities","risk score","risk","append","use","evidence","files","impact","you","for","when","2026-11-10 10:12:30",false,"---\nname: mantis-calibrate\ndescription: >-\n  Calculates the final risk score based on empirical evidence and architectural impact.\n  Use when findings have been fully processed by previous stages and you need to append final risk scores to the finding files.\n  Don't use for discovering new vulnerabilities or writing patches.\n---\n\n# Risk Calibrator (\u002Fmantis-calibrate)\n\n## System Goal\n\nRisk Analysis Expert. Evaluates confirmed findings against a rigorous risk\nmatrix, taking into account successful reproduction and production viability to\nproduce a final risk score (1-10).\n\n## Command Definition\n\n- **Command:** `\u002Fmantis-calibrate`\n- **Description:** Calibrates the risk level of findings based on evidence and\n  impact.\n\n## Input\u002FOutput Contract\n\n- **Reads**:\n  - `workspace\u002Ffindings\u002F*.json` (all finding files to load full pipeline state).\n  - `workspace\u002Fkb\u002FTHREAT_MODEL.md` (if exists, to check threat boundary\n    overrides and asset criticality).\n  - `workspace\u002F.mantis_state.json` (to track the current loop pass, and to read\n    `active_snapshot` — `{snapshot_id, snapshot_pinned, root}` — for finding\n    provenance and history stamping; absent ⇒ degraded\u002Ftoday's behavior).\n- **Writes**:\n  - Updates finding files in-place with scoring\u002Fcalibration fields\n    (`impact_score`, `likelihood_score`, `availability_tier`,\n    `inferred_exposure`, `attacker_position`, `mantis_risk_score`, `priority`,\n    `sanity_triage_applied` (may begin with `STALE_EVIDENCE` when the\n    STALE-EVIDENCE guard suppresses heuristics), `calibration_checklist`\n    (entries may carry `STALE_EVIDENCE:` reasons), `outrage_commentary`,\n    `executive_summary`). Appends a `history` entry with `snapshot` provenance\n    (see history JSON template in the body).\n  - Reusable helper script `workspace\u002Fhelpers\u002Fappend_calibrate.py`.\n- **Preconditions**:\n  - Confirmed or raw findings must exist in `workspace\u002Ffindings\u002F`.\n- **Idempotency Guarantee**:\n  - Updates findings in place by overwriting existing keys with the calculated\n    score. Running multiple times on the same inputs yields identical outputs,\n    with no duplicated entries.\n\n## Instructions\n\nConvert the raw security findings and their empirical results (repro\u002Fpatch) into\na prioritized, actionable risk report.\n\nExecute the calibration as follows:\n\n**Locator resolution (findings-only).** Calibrate never needs to read target\nsource to compute a score, but some heuristics below may re-inspect code;\nresolve the code root the same way every stage does. **Block A** is inlined\nbelow:\n\n```\nLOCATOR RESOLUTION (before reading ANY target code or artifact):\n0. ROLE: If this skill NEVER reads target source (report, calibrate, reflect),\n   you are a FINDINGS-ONLY stage: skip steps 2-6; still read active_snapshot from\n   state for provenance\u002Fannotation; NEVER stop merely because a code root is unset.\n1. Determine CODE_ROOT, in this priority order:\n   a. If --target_root is passed on THIS invocation, CODE_ROOT = --target_root.\n      It is AUTHORITATIVE and OVERRIDES SNAPSHOT_ROOT and the state fallback\n      (used when a caller hands you a prepared tree, e.g. a patched shadow).\n   b. Else if --snapshot_root (or SNAPSHOT_ROOT) is passed, use it.\n   c. Else read state_root\u002Fworkspace\u002F.mantis_state.json (state_root from\n      --state_root if passed, else .\u002Fworkspace\u002F... relative to the current dir)\n      -> active_snapshot.root \u002F .snapshot_id \u002F .snapshot_pinned.\n   d. Else (no arg AND no readable active_snapshot): CODE_ROOT = current directory,\n      treat snapshot_pinned = false (MODE-OFF). Do NOT stop.\n2. SENTINEL CHECK (only if snapshot_pinned is true AND you did NOT take path 1a):\n   verify CODE_ROOT\u002F.mantis_snapshot_id exists and equals SNAPSHOT_ID. If missing\n   or different -> STOP \"snapshot sentinel mismatch\". (A --target_root tree (1a) is\n   deliberately mutated and is sentinel-EXEMPT.)\n3. PATH FIELDS:\n   - SNAPSHOT-RELATIVE (read under CODE_ROOT): code_paths entries; plan target_files\n     that are file paths. Strip ONLY a trailing \":\u003Cdigits>\". A code_paths entry\n     containing \":\u002F\u002F\" is a URL\u002Fendpoint, NOT a file read. A code_paths entry that is\n     NOT of the form \u003Cexisting-path>:\u003Cinteger> is a non-source LOCATOR\n     (symbol\u002Foffset\u002Fendpoint): only check that the artifact\u002Fsymbol exists; skip ALL\n     line-range and line-existence logic.\n   - STATE-RELATIVE (read\u002Fwrite under state_root\u002Fworkspace, NEVER prefix CODE_ROOT):\n     kb_references, repro_file_path, reattack_file_path, helper scripts, report\n     files, and all state\u002Ffindings JSON.\n4. Never WRITE under CODE_ROOT when snapshot_pinned is true. Any command that\n   compiles, generates, or writes artifacts MUST run in a PRIVATE SHADOW copy\n   (mktemp -d from CODE_ROOT), never with cwd=CODE_ROOT. Read-only inspection may\n   cd into CODE_ROOT.\n5. VCS-METADATA CARVE-OUT: history-log extraction and any VCS diff\u002Fblame command\n   run in the LIVE repository root (which still has .git\u002F.hg\u002F.repo), NOT CODE_ROOT\n   (the snapshot copy strips VCS metadata). Do NOT stop merely because CODE_ROOT\n   lacks .git\u002F.hg\u002F.repo.\n6. Every shell command uses ABSOLUTE paths and sets its own working directory on\n   that call. Do NOT assume the working directory persists between calls.\n```\n\n> [!NOTE] **CURRENT-PASS CHECK (defensive; the binding guarantee is on the\n> harness per `mantis-pipeline-adapter` Scenario 2):** if `active_snapshot` is\n> present AND `active_snapshot.pass != state.pass_number`, treat the snapshot as\n> STALE for this pass — STOP \"stale active_snapshot: pass mismatch\" or degrade\n> as HALT (`snapshot_pinned` effectively false: no authoritative verdicts, Block\n> B NOT_MATCHED, reproduce `not_attempted`). This catches a custom harness that\n> preserved `active_snapshot` across the Stage 15 pass increment without\n> re-pinning. The reference meta-agent re-pins every pass, so this check never\n> fires there. Block B itself cannot detect this (it is `snapshot_id`-only, not\n> `pass`-aware).\n\n**Snapshot provenance & STALE-EVIDENCE guard (mechanical; do this before\nscoring):**\n\nP0. Read `active_snapshot` (`{snapshot_id, snapshot_pinned, root}`) from\n`state_root\u002Fworkspace\u002F.mantis_state.json` (Block A step 0\u002F1c). NEVER stop if it\nis absent — calibrate is a FINDINGS-ONLY stage (Block A step 0).\n\nP1. MODE (single decision for the whole run — branches on `active_snapshot`\npresence, 3-state model): - `active_snapshot` is ABSENT in state (no `--sync`\nwas requested — MODE-OFF = today's default) -> MODE = MODE-OFF. Score **exactly\nas today**: run every heuristic as written, do NOT compute PROVENANCE, do NOT\nemit `STALE_EVIDENCE`, and do NOT emit any HALT\u002FPINNED banners.\n(Backward-compatible default path — byte-for-byte today's behavior.) -\n`active_snapshot` IS present AND `snapshot_pinned` is not exactly `true` (HALT\nmode — the tree raced or could not be pinned) -> MODE = HALT. `SNAPSHOT_ID` =\n`active_snapshot.snapshot_id` (a `live:` id). Compute PROVENANCE per P2 below\nand fire the STALE-EVIDENCE guard conservatively (same as PINNED for guard\npurposes), because findings' locators may be stale. Authoritative verdicts\n(VERIFIED_SECURE, failed_to_reproduce, DUPLICATE, FALSE_POSITIVE, NON_VIABLE)\nare forbidden this pass. - `snapshot_pinned` == `true` -> MODE = PINNED.\n`SNAPSHOT_ID` = `active_snapshot.snapshot_id`. Full provenance + STALE-EVIDENCE\nguard as below.\n\nP2. In MODE = PINNED or HALT, compute PROVENANCE per finding F using Block B's\ncompare rule: - `F.discovery_commit` missing OR empty OR the literal `\"MIXED\"`\n-> NOT_MATCHED. - `F.discovery_commit` != `SNAPSHOT_ID` (exact string compare,\nno fuzzy) -> NOT_MATCHED. - `F.discovery_commit` == `SNAPSHOT_ID` -> MATCHED.\n\nP3. A per-finding heuristic is **STALE** for F when MODE is PINNED OR HALT AND\neither: - PROVENANCE(F) == NOT_MATCHED, OR - the finding's `code_paths` target\nfile does NOT exist under CODE_ROOT. (Resolve CODE_ROOT via Block A steps 1 & 3;\nstrip a trailing `:\u003Cdigits>`; read ONLY the pinned root, NEVER the live tree. If\nyou cannot resolve CODE_ROOT at all, treat the file as absent -> STALE.)\n\nP4. When a heuristic is STALE for F, do NOT apply it; keep the **conservative**\n(pre-adjustment) score; and ensure the literal token `STALE_EVIDENCE` is the\nFIRST token of `sanity_triage_applied` (add it once, before any UNKNOWN warnings\nand any fired-rule list). The four guarded heuristics and their exact STALE\nhandling are: - **Dead-code 0.2 multiplier** (Section 2, \"Asset Criticality &\nReachability\"): do NOT apply the 0.2 reduction; use the multiplier you would\notherwise have. - **`repro_failure`** (Section 3 rule): do NOT force-LOW; set\n`calibration_checklist.repro_failure.outcome = \"UNKNOWN\"`, `reason` beginning\n`\"STALE_EVIDENCE: \"`. - **`vague_code_paths`** (Section 3 rule): do NOT\nforce-LOW; set `calibration_checklist.vague_code_paths.outcome = \"UNKNOWN\"`,\n`reason` beginning `\"STALE_EVIDENCE: \"`. - **`static_confirmation` trace-lift**\n(Section 3 rule, its \"valid external stack trace\u002Fsanitizer…\" exception): do NOT\napply the trace-lift; KEEP the static HIGH cap in force (`likelihood_score` \\\u003C=\n3, 0.8 Hazard multiplier, NOT CRITICAL). Set\n`calibration_checklist.static_confirmation.outcome = \"APPLIES\"`, `reason`\nbeginning\n`\"STALE_EVIDENCE: trace-lift suppressed; trace\u002Fcrash-log may predate the active snapshot; \"`.\n\nP5. NON-SOURCE finding: if the finding's `code_paths` entry is a non-source\nLOCATOR (contains `\":\u002F\u002F\"`, or is not of the form `\u003Cpath>:\u003Cinteger>` — per Block\nA step 3: a symbol \u002F offset \u002F endpoint), SKIP all source-only heuristics for it\n— dead-code, file-path\u002Fimports\u002Fcaller-hierarchy exposure inference,\n`vague_code_paths`, and static trace re-inspection — and score from the\nfinding's DECLARED metadata (`attacker_position`, `privileges_required`,\n`production_viability`, `repro_status`, threat model). A non-source skip is NOT\nflagged `STALE_EVIDENCE` (it is normal, not drift). Non-source findings default\n`inferred_exposure` to `\"INTERNAL\"` (0.8) unless the finding\u002Fthreat-model\ndeclares otherwise.\n\n1. **Load Full Pipeline State:**\n\n   - Read all JSON files from the `workspace\u002Ffindings\u002F` directory. Because the\n     pipeline appends data to each finding file at each stage, these files\n     provide the complete picture of each finding's journey (including its `id`,\n     reproduction status, and production viability).\n   - **Missing Fields Fallbacks:** If any finding is missing viability, or\n     reproduction fields (such as chained findings), apply the following\n     fallback defaults before scoring:\n     - If `production_viability` is missing, treat it as `\"CONDITIONAL_VIABLE\"`.\n     - If `repro_status` is missing, treat it as `\"not_attempted\"`.\n   - **Snapshot provenance (only when MODE is PINNED or HALT):** for each\n     finding, compute PROVENANCE (MATCHED \u002F NOT_MATCHED) per preamble step P2\n     and record it in scratch. This value gates the STALE-EVIDENCE handling in\n     Sections 2 and 3 (preamble steps P3–P4). In MODE == MODE-OFF, skip this —\n     score as today.\n   - Read `workspace\u002Fkb\u002FTHREAT_MODEL.md` from the Knowledge Base (if it exists)\n     to evaluate component exposure, trust boundaries, asset criticality, and\n     any custom **Calibration Overrides** (e.g., specific threat positions or\n     caps that should be lifted or customized for the project).\n   - **Batch Processing:** If there are more than a few findings to calibrate,\n     split the task into batches (a few findings at a time). If you have the\n     ability to invoke subagents, delegate each batch to a subagent to process\n     in parallel, then aggregate the results. **Each batch\u002Fsubagent inspects\n     ONLY the pinned snapshot:** pass `--snapshot_root=\u003Cactive_snapshot.root>`,\n     `--snapshot_id=\u003Cactive_snapshot.snapshot_id>`, and\n     `--state_root=\u003Cworkspace parent>` so every subagent resolves the same\n     CODE_ROOT via Block A. Any code inspection a batch performs (exposure\n     inference, dead-code, static-trace verification) MUST read through that\n     CODE_ROOT (the pinned copy), NEVER the live tree, and MUST honor the\n     STALE-EVIDENCE guard (preamble P3–P4). Findings-only fields (score,\n     priority, history stamp) are computed from the finding JSON regardless.\n\n2. **Calculate Risk Score (1-10):** For each unique finding file, calculate the\n   actual technical risk score in a matrix form based on the following formula\n   components, where **Hazard = Impact + Likelihood**:\n\n   - **Impact (1-5):** Evaluate impact using the CIA triad (Confidentiality,\n     Integrity, Availability) while strictly considering **Blast Radius**.\n     - 5: Complete, systemic loss of Confidentiality (full data breach, leak of\n       root cryptographic\u002FHSM master keys) or Integrity (system compromise,\n       e.g., clear Remote Code Execution (RCE) by an unprivileged attacker who\n       isn't already in an effective position to execute code). MUST NOT be used\n       for attackers who already have execution privileges.\n     - 4: Substantial loss in one or more areas. This includes systemic\n       Availability loss (total outage of a major service) or major data\n       exposure.\n     - 3: Moderate loss (e.g., partial data exposure, temporary or partial\n       system disruption).\n     - 2: Minor loss (e.g., minor information leak, localized disruption). A\n       vulnerability whose blast radius is limited to affecting *only a single\n       user's own data* MUST NOT be scored higher than 2. *Exception:* If the\n       action lacks non-repudiation (allowing the user to plausibly deny the\n       action to commit fraud or blame others), or triggers side-effects\n       affecting other users\u002Fsystem stability, it should not be downgraded.\n     - 1: Negligible impact on CIA, mostly a cosmetic issue. Findings of the\n       type \"the code is fragile\", \"lack of defense-in-depth\", or purely\n       theoretical hygiene issues MUST have an Impact score of 1, ensuring they\n       are rated LOW at most.\n     - **Security Control Bypass (Upgrading):** If the vulnerability directly\n       bypasses a core security control (e.g., authentication, authorization,\n       cryptographic signature verification) or defeats the primary security\n       purpose of a library (e.g., a library meant to secure keysets allows\n       attacker control), elevate the Impact score to at least **4** (or **5**\n       if it leads to systemic compromise), even if the immediate technical\n       impact seems localized.\n     - *Note on Privileges Required & Lateral Movement:*\n       - If the finding requires **HIGH** privileges (e.g., administrative\n         privileges, admin-to-super-admin escalation) or only allows lateral\n         movement\u002Fpivoting between internal components from an already\n         compromised state, cap its individual Impact score at **2**, unless the\n         exploit results in escaping the container boundary (to the host node)\n         or cross-tenant escalation.\n       - If the finding requires **LOW** privileges (e.g., standard\n         authenticated user), cap its individual Impact score at **3** (unless\n         it leads to systemic compromise of other tenants\u002Fusers, OR it directly\n         bypasses a core security control\u002Flibrary purpose, in which case it can\n         be higher).\n       - These caps apply to *individual* findings. If successfully chained into\n         an Exploit Chain (Super Finding) by the chainer, the chain itself\n         should be evaluated based on the privilege level required for the\n         *entry point* (initial step) of the chain.\n   - **Likelihood (1-5):** Evaluate the probability of occurrence based on\n     proven exploitability rather than theoretical difficulty.\n     - 5: Actively exploited in the wild, OR the agent successfully generated a\n       functional, weaponized exploit (not just a unit test).\n     - 4: Public Proof of Concept (PoC) exists, OR the agent generated a highly\n       plausible but partially weaponized exploit.\n     - 3: No functional exploit, but the attack vector is trivial to automate.\n     - 2: Theoretical and highly complex (requires local access, strict timing).\n     - 1: Strictly theoretical risk with no known exploit path.\n     - **Reachability-in-Practice Modifier:** After determining the base\n       likelihood, reduce the `likelihood_score` by **1 or 2** (but not below\n       1.0) if the exploit path relies on uncommon or non-default usage\n       patterns. This applies if:\n       - The specific tainted parameter is populated from attacker input only\n         during rare API calls, uncommon configuration fields, or in data\n         formats rarely processed in the wild.\n       - The vulnerability requires non-standard or administrative-only\n         configurations that are rarely enabled in practice.\n   - **Context Multiplier (0.1 - 1.0):**\n     - If `status` is **FALSE_POSITIVE** or **NEEDS_RESEARCH**, or if\n       `production_viability` is **NON_VIABLE**: Drop this finding completely.\n       Do not score it or update its file with calibration data.\n     - If `production_viability` is **VIABLE**, **CONDITIONAL_VIABLE**, or\n       **SAMPLE_OR_TEST**:\n       - **Network\u002FTrust Exposure:**\n         - If the finding resides inside an **Exposed Interface \u002F Trust\n           Boundary** (directly accessible to untrusted inputs): 1.0.\n         - If it resides in an **Internal Component** accepting semi-trusted\n           parsed data: 0.8.\n         - If deeply nested inside a **Privileged\u002FTrusted Zone**: 0.5.\n         - **Inference when Threat Model is Missing\u002FIncomplete:** If\n           `workspace\u002Fkb\u002FTHREAT_MODEL.md` does not exist or does not mention the\n           component:\n           - Analyze the file path, imports, and caller hierarchy to infer\n             exposure (e.g., public APIs vs internal helpers). **Read only the\n             pinned CODE_ROOT (Block A), never the live tree. NON-SOURCE\n             (preamble P5): skip this file-path\u002Fimports\u002Fcaller analysis for\n             non-source LOCATOR findings — default `inferred_exposure` to\n             `\"INTERNAL\"` (0.8) unless the finding or threat model declares\n             otherwise.** When MODE is PINNED or HALT and the finding is\n             NOT_MATCHED or its `code_paths` file is absent under CODE_ROOT, do\n             NOT lower the exposure multiplier below the declared\u002Fdefault value\n             on the basis of live re-inspection (keep the conservative, higher\n             multiplier).\n           - Default the Exposure Multiplier to **0.8** (Internal) and\n             `inferred_exposure` to `\"INTERNAL\"` unless there is clear evidence\n             of direct external exposure (EXPOSED) or deep nested isolation\n             (PRIVILEGED). Local SUID\u002FLPE binaries should default to\n             `\"INTERNAL\"` exposure.\n           - If the finding description, history, or critic reasoning suggests\n             the component is \"rarely exposed\", \"internal only\", or \"unlikely to\n             be attacker-reachable\", reduce the Exposure Multiplier to **0.5**\n             or lower.\n       - **Map Exposure and Attacker Position Metadata:**\n         - Resolve **`inferred_exposure`** based on the Network\u002FTrust Exposure\n           multiplier:\n           - Multiplier 1.0 (Exposed Interface) -> `\"EXPOSED\"`\n           - Multiplier 0.8 (Internal Component) -> `\"INTERNAL\"`\n           - Multiplier 0.5 (Privileged\u002FTrusted Zone) -> `\"PRIVILEGED\"`\n         - **Evaluate Attacker Position (declared in finding):**\n           - Read `attacker_position` from the finding JSON.\n           - **Determine by Barrier, Not Transport:** The `attacker_position`\n             must represent the outermost boundary that the **first untrusted\n             principal** (the ultimate human attacker or external threat actor)\n             must cross to reach the interface. Do not key on the transport\n             protocol (e.g., HTTP, gRPC, IPC) or the immediate protocol peer.\n             - **Trace Back to Untrusted Actor:** If the immediate peer\n               interacting with the interface is a trusted-by-design component\n               (e.g., an internal proxy, gateway, message queue, or master\n               controller), you must trace back the data flow to find the\n               outermost boundary where the untrusted actor first enters the\n               system.\n             - If the interface is bound to `localhost` or uses local IPC (unix\n               sockets, pipes, shared memory), the position is `\"LOCAL\"`, even\n               if it uses HTTP\u002FTCP under the hood.\n             - If the interface is only reachable within a private network (VPC,\n               corporate network, home LAN, local network, internal cluster\n               control plane), the position is `\"INTERNAL_NETWORK\"` (or\n               `\"IN_CLUSTER\"` if restricted to pod-to-pod), even if it is a web\n               service.\n             - The position is only `\"EXTERNAL\"` if the interface is directly\n               reachable from the public internet.\n             - If the interface requires physical contact, hardware interaction\n               (e.g., JTAG, debug probes, chip decapping), or local wireless\n               proximity (e.g., NFC, Bluetooth), the position must be\n               `\"PHYSICAL_TEMPORARY\"` or `\"PHYSICAL_LONG_TERM\"`, regardless of\n               the protocol used.\n           - **Normalize Free-text:** If the value is present but is a free-text\n             string that does not exactly match one of the valid enum values\n             (e.g. legacy phrasings), you **MUST** normalize it to the closest\n             valid enum using these mappings:\n             - Phrases matching `\"authenticated \u003Crole>\"`, `\"customer with\"`,\n               `\"tenant \u003Crole>\"`, `\"Fitbit user\"` on a public product ->\n               `\"EXTERNAL\"` (with `privileges_required: \"LOW\"`).\n             - Phrases matching `\"local user\"`, `\"local shell\"`,\n               `\"local access\"` -> `\"LOCAL\"`.\n             - Phrases matching `\"peer \u003Crole> in same job\u002Fcluster\u002Fpod\"`,\n               `\"co-tenant\"`,\n               `\"in-cluster (Kubernetes\u002Fcontainer-orchestrator) workload\"`,\n               `\"NCCL peer rank\"` -> `\"IN_CLUSTER\"`.\n             - Phrases matching `\"malicious dependency\"`, `\"upstream package\"`,\n               `\"build-time\"`, `\"CI pipeline\"` -> `\"SUPPLY_CHAIN\"`.\n             - Phrases matching `\"host hypervisor\"`, `\"host OS\"`,\n               `\"hypervisor access\"` -> `\"HOST_SYSTEM\"`.\n             - Phrases matching `\"physical access\"`, `\"fault injection\"` ->\n               `\"PHYSICAL_LONG_TERM\"` or `\"PHYSICAL_TEMPORARY\"` based on\n               barrier.\n           - If missing altogether, infer it using the following fallback\n             guidelines (and log a warning to suggest declaring it earlier):\n             - `\"EXTERNAL\"`: If the component is `\"EXPOSED\"`, or it's an auth\n               bypass on a public portal.\n             - `\"LOCAL\"`: If it's a local privilege escalation (LPE) or SUID\n               exploit.\n             - `\"IN_CLUSTER\"`: If it targets in-cluster infrastructure (CSI\u002FCNI)\n               from a pod.\n             - `\"HOST_SYSTEM\"`: If the attacker is the hypervisor, host OS, or\n               an emulated\u002Fphysical device attacking software it hosts (guest\n               driver, enclave runtime, firmware target). This enum is strictly\n               for the outer-to-inner direction. The reverse direction —\n               guest-to-host (VM escape), sandbox-to-outside, enclave-to-host,\n               or contained-process-to-container — must be classified as\n               `\"LOCAL\"` (or `\"IN_CLUSTER\"` for Kubernetes pod-to-node; a\n               KVM\u002Fhypervisor guest attacking its host is \"LOCAL\"), never\n               `\"HOST_SYSTEM\"`.\n             - `\"PHYSICAL_LONG_TERM\"` \u002F `\"PHYSICAL_TEMPORARY\"`: If the bug\n               description, title, or code path indicates hardware fault\n               injection, side-channel, evil maid, or USB physical access.\n             - `\"SUPPLY_CHAIN\"`: For build-time or dependency modification\n               prerequisites.\n             - `\"INTERNAL_NETWORK\"`: Default fallback for other internal\n               components.\n           - **Align Exposure with Position:**\n             - If the `attacker_position` is `\"LOCAL\"` or `\"IN_CLUSTER\"`, you\n               **MUST** resolve `inferred_exposure` to `\"INTERNAL\"` (using 0.8\n               multiplier) even if the vulnerable code path resides in a folder\n               mapped to `\"EXPOSED\"` in the Threat Model, unless the exploit\n               explicitly escapes the container boundary to the host node.\n             - If the `attacker_position` is `\"INTERNAL_NETWORK\"`, you **MUST**\n               resolve `inferred_exposure` to at most `\"INTERNAL\"` (using 0.8\n               multiplier or lower) even if the component is mapped to\n               `\"EXPOSED\"` in the Threat Model, as the interface is not directly\n               reachable from the public internet.\n             - If the `attacker_position` is `\"EXTERNAL\"`, you **MUST** resolve\n               `inferred_exposure` to `\"EXPOSED\"` (using 1.0 multiplier) even if\n               the component is mapped to `\"INTERNAL\"` or `\"PRIVILEGED\"` in the\n               Threat Model (reflecting that untrusted external inputs reach the\n               component).\n       - **Asset Criticality & Reachability:**\n         - If the Threat Model indicates the component handles high-value data\n           (e.g., PII, core secrets), keep the multiplier high.\n         - If it affects a low-value target (e.g., internal analytics, sandboxed\n           test data), reduce the multiplier (e.g., 0.5).\n         - **Availability-Specific Context:** If the finding is\n           availability-only (DoS), check the component's `availability_tier` in\n           the Threat Model (if missing, default to STANDARD):\n           - `LOW_CRITICALITY`: Reduce multiplier to **0.5**.\n           - `STANDARD`: Reduce multiplier to **0.8**.\n           - `CRITICAL`: Keep multiplier at **1.0**.\n         - If static\u002Fdynamic analysis proves the vulnerable code is effectively\n           \"dead code\" (never called in runtime execution paths), drastically\n           reduce the multiplier to 0.2. **STALE-EVIDENCE GUARD (preamble\n           P3–P4): do NOT apply this 0.2 reduction if the finding is STALE (MODE\n           is PINNED or HALT AND the finding is NOT_MATCHED to the active\n           snapshot, `code_paths` file is absent under the pinned CODE_ROOT) —\n           drifted code can look \"uncalled\" spuriously; keep the higher\n           multiplier and set `STALE_EVIDENCE` as the first token of\n           `sanity_triage_applied`.** Any dead-code analysis you do run MUST\n           inspect the pinned CODE_ROOT, never the live tree. **NON-SOURCE\n           (preamble P5):** skip this heuristic entirely for non-source LOCATOR\n           findings.\n       - **User Interaction:**\n         - If `user_interaction` is **REQUIRED** (e.g., CSRF, Clickjacking, or\n           convincing a user to open a malicious file), apply a **0.7**\n           multiplier to the Context Multiplier (e.g., if exposure is Internal\n           (0.8) and user interaction is required, the combined multiplier is\n           0.8 * 0.7 = 0.56). This ensures these findings are capped below the\n           CRITICAL threshold.\n     - If `production_viability` is **SAMPLE_OR_TEST**:\n       - Apply a **0.4** scaling factor to the Context Multiplier (i.e.,\n         multiply the current Context Multiplier by **0.4**) so that severe bugs\n         in sample code typically land in the MEDIUM bucket rather than HIGH or\n         CRITICAL. This scaling factor must be applied cumulatively alongside\n         other modifiers. Do not override the Context Multiplier directly to\n         `0.4`, as this would incorrectly increase it if the component's\n         exposure or dead-code status was already calculated to be lower than\n         `0.4` (e.g. `0.2`).\n       - In the `executive_summary`, explicitly state that this is not a\n         production bug. The recommendation MUST focus on fixing the\n         example\u002Ftest so that developers do not copy insecure patterns into\n         production code.\n     - If `production_viability` is **CONDITIONAL_VIABLE**:\n       - Apply a **0.7** scaling factor to the Context Multiplier (i.e.,\n         multiply the current Context Multiplier by **0.7**) to reflect that it\n         requires specific non-default configurations, compiler flags, or\n         assertions enabled to be exploitable. This scaling factor must be\n         applied cumulatively alongside other modifiers (such as User\n         Interaction). Do not override the Context Multiplier directly to `0.7`,\n         as this would incorrectly increase it if the component's exposure was\n         already deep\u002Fisolated (`0.5`).\n       - In the `executive_summary`, document the specific conditions required\n         for viability.\n\n   **Final Score (Hazard) = (Impact + Likelihood) * Multiplier** (Capped at\n   10.0).\n\n   *Note on Outrage:* In your reasoning, comment on the broader equation **Risk\n   = Hazard + Outrage**, where the \"outrage risk\" (e.g., reputational damage,\n   user sentiment fallout) is taken into account. Do *not* include the outrage\n   factor in the final numerical score.\n\n3. **Critical Sanity Triage (Downgrading & Capping Findings):** Before\n   determining the final priority, perform a second-level sanity check on the\n   quality of the finding, its context, and accumulated evidence.\n\n   **Core Principle - Marginal Capability:** The final severity and priority of\n   a finding are strictly bounded by the *marginal capability* gained by the\n   attacker over their prerequisite position. If the exploit does not grant the\n   attacker significant new control, access, or capabilities beyond what is\n   already inherent to their starting position (or already possessed via\n   legitimate means), the finding must be capped or downgraded.\n\n   The complete, detailed definitions of the 27 calibration sanity rules are\n   stored in the reference catalogue at\n   [Calibration Rules](references\u002Fcalibration_rules.md). You MUST evaluate each\n   finding against the 27 rules listed there.\n\n   Check if the `THREAT_MODEL.md` defines any `Calibration Overrides` (e.g.,\n   `LIFT_CAP: PHYSICAL_LONG_TERM`). If an override exists for a finding's\n   position or component, it takes precedence and lifts the corresponding cap.\n   Otherwise, the caps and downgrades specified in the reference catalogue (and\n   general applications of the Marginal Capability principle) override any\n   upgrades calculated in Section 2 (including the Security Control Bypass\n   upgrade). You should also apply the general principle to cap or downgrade\n   other findings that offer low marginal capability. **Important: A cap (HIGH\n   or MEDIUM) only limits the maximum allowed score\u002Fpriority. It must NOT\n   upgrade a lower score\u002Fpriority (e.g., a finding with a score of 5.0 is\n   naturally MEDIUM and must remain MEDIUM, even if it is subject to a cap at\n   HIGH).**\n\n   **Precedence & UNKNOWN Rules Policy:**\n\n   - **STALE-EVIDENCE precedence (preamble P3–P4):** when MODE is PINNED or HALT\n     and a finding is STALE (NOT_MATCHED to the active snapshot, OR its\n     `code_paths` file is absent under the pinned CODE_ROOT), the following\n     rules MUST NOT be used to lower or inflate the score from live\n     re-inspection: `repro_failure` (do not force-LOW), `vague_code_paths` (do\n     not force-LOW), and the `static_confirmation` **trace-lift exception** (do\n     not treat a stale trace\u002Fsanitizer\u002Fcrash-log as live reproduction — KEEP the\n     static HIGH cap). Also do not apply the Section 2 dead-code 0.2 multiplier\n     (see Section 2). Keep the conservative score and **prepend the literal\n     token `STALE_EVIDENCE` as the FIRST token of `sanity_triage_applied`**\n     (before any `Incomplete Calibration (UNKNOWN: …)` warnings and before the\n     fired-rule list). Record the guarded rules in `calibration_checklist` as\n     specified in preamble P4 (`repro_failure`\u002F`vague_code_paths` -> `UNKNOWN`\n     with a `STALE_EVIDENCE:` reason; `static_confirmation` -> `APPLIES` with a\n     `STALE_EVIDENCE:` reason noting the trace-lift was suppressed). In MODE ==\n     MODE-OFF, this bullet does nothing (score as today).\n   - Evaluate ALL rules. If multiple caps apply, the **most restrictive** wins\n     (Force-LOW > cap-MEDIUM > cap-HIGH).\n   - **Policy for UNKNOWN outcomes:** If a rule is evaluated as `UNKNOWN`, do\n     **not** apply the cap or downgrade (be score-conservative; keep the\n     score\u002Fpriority at their higher calculated values). However, mark the\n     overall calibration as incomplete\u002Fprovisional by prepending a warning to\n     the `\"sanity_triage_applied\"` string:\n     `\"Incomplete Calibration (UNKNOWN: \u003Crule_name>)\"` (or a semicolon-separated\n     list of warnings if there are multiple UNKNOWNs). This signals that manual\n     review is required to resolve the rule status.\n   - Record every rule that successfully fired\u002Fapplied in\n     `sanity_triage_applied` as a semicolon-separated list, most restrictive\n     first (e.g., `\"Local Attack Vector; Internal\u002FNested\"`), appended after any\n     UNKNOWN warnings if present, so the effective cap remains fully auditable.\n\n4. **Determine Priority:**\n\n   - **CRITICAL (8.0 - 10.0):** Immediate action required. Very high hazard\n     (e.g. high impact and likelihood). **Must NOT be used unless it represents\n     a clear RCE (or equivalent total loss) by an unprivileged attacker (where\n     `privileges_required` is **NONE**) who is not already in an effective\n     position to compromise the system, AND `user_interaction` is **NONE**\n     (zero-click). This rule is absolute: even if a finding (like a CSI host\n     escape) has its Section 3 caps lifted, if it requires HIGH privileges at\n     entry, it MUST NOT be rated CRITICAL and must be capped at HIGH (7.9).\n     Availability-only findings (DoS) MUST NOT be rated CRITICAL unless the\n     `availability_tier` is explicitly documented as `CRITICAL` in the Threat\n     Model AND no automatic recovery mechanism (e.g. auto-restart, load balancer\n     failover) mitigates the impact.**\n   - **HIGH (6.0 - 7.9):** High priority. Significant hazard, needs prompt\n     resolution.\n   - **MEDIUM (3.0 - 5.9):** Standard priority. Moderate hazard, can be\n     scheduled.\n   - **LOW (0.1 - 2.9):** Low priority. Minimal hazard. **Any finding of the\n     type \"the code is fragile\", purely hygiene\u002Fdefense-in-depth, or one that\n     exclusively affects a single user's own data MUST be capped at LOW priority\n     regardless of the calculated score (unless the exception for lack of\n     non-repudiation or broader side-effects applies).**\n\n5. **Token-Optimized File Updates:** To minimize LLM output tokens, **do not\n   re-emit or manually rewrite the entire JSON object in your output.** Instead,\n   write a reusable helper script (e.g.,\n   `workspace\u002Fhelpers\u002Fappend_calibrate.py`) during your first finding update.\n   For all subsequent findings, do not regenerate the script; simply execute the\n   existing helper script with the new parameters to append the required fields\n   to `workspace\u002Ffindings\u002F\u003Cid>.json`.\n\n   - **Helper version marker (mandatory).** The very first line of\n     `append_calibrate.py` MUST be the exact comment\n     `# MANTIS_HELPER_VERSION = 2`. Before reusing an existing helper, read its\n     first line: if the file is absent, OR the first line is not exactly\n     `# MANTIS_HELPER_VERSION = 2` (marker missing or a different integer),\n     **regenerate the helper from scratch** (an older helper silently drops the\n     new `snapshot` history field and the `STALE_EVIDENCE` handling). The\n     regenerated helper MUST be able to write the `snapshot` key into the\n     appended `history` entry and to prepend `STALE_EVIDENCE` to\n     `sanity_triage_applied`. The helper is STATE-RELATIVE\n     (`workspace\u002Fhelpers\u002F…`, Block A step 3) — never write it under CODE_ROOT.\n\n   Alongside the existing core finding data, explicitly append the following\n   fields to show the matrix breakdown:\n\n   - `\"impact_score\"` (1-5)\n\n   - `\"likelihood_score\"` (1-5)\n\n   - `\"availability_tier\"` (CRITICAL, STANDARD, LOW_CRITICALITY or null)\n\n   - `\"inferred_exposure\"` (EXPOSED, INTERNAL, or PRIVILEGED)\n\n   - `\"attacker_position\"` (preserved from input, or populated from fallback\n     inference if missing)\n\n   - `\"mantis_risk_score\"` (the final Hazard score)\n\n   - `\"priority\"` (CRITICAL, HIGH, MEDIUM, LOW)\n\n   - `\"sanity_triage_applied\"` (semicolon-separated list, or null). Ordering:\n     `STALE_EVIDENCE` first if the finding was STALE (preamble P4); then any\n     `Incomplete Calibration (UNKNOWN: \u003Crule>)` warnings; then the Section 3\n     rules that fired, most-restrictive first. Example:\n     `\"STALE_EVIDENCE; Incomplete Calibration (UNKNOWN: physical_long_term); Local Attack Vector\"`.\n\n   - `\"calibration_checklist\"` object containing evaluations for all 27 sanity\n     caps. Each key in the object maps to the sanity cap rule of the matching\n     name:\n\n     ```json\n     {\n       \"repro_failure\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"unreachable_inputs\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"third_party_reachability\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"minor_config_hygiene\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"non_security_critical\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"vague_code_paths\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"unreliable_triggers\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"prerequisite_shell\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"physical_long_term\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"trusted_controller_zero_delta\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"standard_host_attacks\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"static_confirmation\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"strict_xss\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"internal_nested\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"probabilistic_llm\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"supply_chain_prerequisites\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"non_default_config\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"confidential_computing_host\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"trusted_controller_critical_bypass\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"local_attack_vector\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"self_contained_blast\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"rarely_exposed\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"equivalent_primitives\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"documented_insecure_config\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"physical_temporary\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"high_privilege_external\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"trusted_controller_standard_bypass\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" }\n     }\n     ```\n\n     For each rule, `outcome` must be set to:\n\n     - `\"APPLIES\"`: if the sanity cap rule applies (fires) to this finding,\n       capping or downgrading its score\u002Fpriority. A detailed `reason` string is\n       **required**.\n     - `\"DOES_NOT_APPLY\"`: if the sanity cap rule does not apply. The `reason`\n       field is **optional** and may be omitted to optimize tokens.\n     - `\"UNKNOWN\"`: if it is unresolved. A detailed `reason` string is\n       **required**.\n\n     For backward compatibility, the schema also permits `\"fires\": \u003Cbool>` (with\n     `reason` required only if `fires` is `true`), but the new `\"outcome\"`\n     format is preferred.\n\n   - `\"outrage_commentary\"` (your reasoning about the outrage factor)\n\n   - `\"executive_summary\"`\n\n   - An entry to the `\"history\"` array:\n\n     ```json\n     {\n       \"stage\": \"calibrate\",\n       \"action\": \"calibrated\",\n       \"details\": \"Calculated risk score as [score] and priority as [priority].[ STALE_EVIDENCE: scored without trusting live-code re-inspection.]\",\n       \"pass_number\": \u003Ccurrent_pass_number>,\n       \"snapshot\": \"\u003Cactive_snapshot.snapshot_id, or omit in MODE-OFF>\",\n       \"timestamp\": \"\u003Ccurrent_iso8601_timestamp>\"\n     }\n     ```\n\nSave your updates to the individual finding files. When complete, notify the\nuser.\n","# Risk Calibrator (\u002Fmantis-calibrate)\n\n## System Goal\n\nRisk Analysis Expert. Evaluates confirmed findings against a rigorous risk\nmatrix, taking into account successful reproduction and production viability to\nproduce a final risk score (1-10).\n\n## Command Definition\n\n- **Command:** `\u002Fmantis-calibrate`\n- **Description:** Calibrates the risk level of findings based on evidence and\n  impact.\n\n## Input\u002FOutput Contract\n\n- **Reads**:\n  - `workspace\u002Ffindings\u002F*.json` (all finding files to load full pipeline state).\n  - `workspace\u002Fkb\u002FTHREAT_MODEL.md` (if exists, to check threat boundary\n    overrides and asset criticality).\n  - `workspace\u002F.mantis_state.json` (to track the current loop pass, and to read\n    `active_snapshot` — `{snapshot_id, snapshot_pinned, root}` — for finding\n    provenance and history stamping; absent ⇒ degraded\u002Ftoday's behavior).\n- **Writes**:\n  - Updates finding files in-place with scoring\u002Fcalibration fields\n    (`impact_score`, `likelihood_score`, `availability_tier`,\n    `inferred_exposure`, `attacker_position`, `mantis_risk_score`, `priority`,\n    `sanity_triage_applied` (may begin with `STALE_EVIDENCE` when the\n    STALE-EVIDENCE guard suppresses heuristics), `calibration_checklist`\n    (entries may carry `STALE_EVIDENCE:` reasons), `outrage_commentary`,\n    `executive_summary`). Appends a `history` entry with `snapshot` provenance\n    (see history JSON template in the body).\n  - Reusable helper script `workspace\u002Fhelpers\u002Fappend_calibrate.py`.\n- **Preconditions**:\n  - Confirmed or raw findings must exist in `workspace\u002Ffindings\u002F`.\n- **Idempotency Guarantee**:\n  - Updates findings in place by overwriting existing keys with the calculated\n    score. Running multiple times on the same inputs yields identical outputs,\n    with no duplicated entries.\n\n## Instructions\n\nConvert the raw security findings and their empirical results (repro\u002Fpatch) into\na prioritized, actionable risk report.\n\nExecute the calibration as follows:\n\n**Locator resolution (findings-only).** Calibrate never needs to read target\nsource to compute a score, but some heuristics below may re-inspect code;\nresolve the code root the same way every stage does. **Block A** is inlined\nbelow:\n\n```\nLOCATOR RESOLUTION (before reading ANY target code or artifact):\n0. ROLE: If this skill NEVER reads target source (report, calibrate, reflect),\n   you are a FINDINGS-ONLY stage: skip steps 2-6; still read active_snapshot from\n   state for provenance\u002Fannotation; NEVER stop merely because a code root is unset.\n1. Determine CODE_ROOT, in this priority order:\n   a. If --target_root is passed on THIS invocation, CODE_ROOT = --target_root.\n      It is AUTHORITATIVE and OVERRIDES SNAPSHOT_ROOT and the state fallback\n      (used when a caller hands you a prepared tree, e.g. a patched shadow).\n   b. Else if --snapshot_root (or SNAPSHOT_ROOT) is passed, use it.\n   c. Else read state_root\u002Fworkspace\u002F.mantis_state.json (state_root from\n      --state_root if passed, else .\u002Fworkspace\u002F... relative to the current dir)\n      -> active_snapshot.root \u002F .snapshot_id \u002F .snapshot_pinned.\n   d. Else (no arg AND no readable active_snapshot): CODE_ROOT = current directory,\n      treat snapshot_pinned = false (MODE-OFF). Do NOT stop.\n2. SENTINEL CHECK (only if snapshot_pinned is true AND you did NOT take path 1a):\n   verify CODE_ROOT\u002F.mantis_snapshot_id exists and equals SNAPSHOT_ID. If missing\n   or different -> STOP \"snapshot sentinel mismatch\". (A --target_root tree (1a) is\n   deliberately mutated and is sentinel-EXEMPT.)\n3. PATH FIELDS:\n   - SNAPSHOT-RELATIVE (read under CODE_ROOT): code_paths entries; plan target_files\n     that are file paths. Strip ONLY a trailing \":\u003Cdigits>\". A code_paths entry\n     containing \":\u002F\u002F\" is a URL\u002Fendpoint, NOT a file read. A code_paths entry that is\n     NOT of the form \u003Cexisting-path>:\u003Cinteger> is a non-source LOCATOR\n     (symbol\u002Foffset\u002Fendpoint): only check that the artifact\u002Fsymbol exists; skip ALL\n     line-range and line-existence logic.\n   - STATE-RELATIVE (read\u002Fwrite under state_root\u002Fworkspace, NEVER prefix CODE_ROOT):\n     kb_references, repro_file_path, reattack_file_path, helper scripts, report\n     files, and all state\u002Ffindings JSON.\n4. Never WRITE under CODE_ROOT when snapshot_pinned is true. Any command that\n   compiles, generates, or writes artifacts MUST run in a PRIVATE SHADOW copy\n   (mktemp -d from CODE_ROOT), never with cwd=CODE_ROOT. Read-only inspection may\n   cd into CODE_ROOT.\n5. VCS-METADATA CARVE-OUT: history-log extraction and any VCS diff\u002Fblame command\n   run in the LIVE repository root (which still has .git\u002F.hg\u002F.repo), NOT CODE_ROOT\n   (the snapshot copy strips VCS metadata). Do NOT stop merely because CODE_ROOT\n   lacks .git\u002F.hg\u002F.repo.\n6. Every shell command uses ABSOLUTE paths and sets its own working directory on\n   that call. Do NOT assume the working directory persists between calls.\n```\n\n> [!NOTE] **CURRENT-PASS CHECK (defensive; the binding guarantee is on the\n> harness per `mantis-pipeline-adapter` Scenario 2):** if `active_snapshot` is\n> present AND `active_snapshot.pass != state.pass_number`, treat the snapshot as\n> STALE for this pass — STOP \"stale active_snapshot: pass mismatch\" or degrade\n> as HALT (`snapshot_pinned` effectively false: no authoritative verdicts, Block\n> B NOT_MATCHED, reproduce `not_attempted`). This catches a custom harness that\n> preserved `active_snapshot` across the Stage 15 pass increment without\n> re-pinning. The reference meta-agent re-pins every pass, so this check never\n> fires there. Block B itself cannot detect this (it is `snapshot_id`-only, not\n> `pass`-aware).\n\n**Snapshot provenance & STALE-EVIDENCE guard (mechanical; do this before\nscoring):**\n\nP0. Read `active_snapshot` (`{snapshot_id, snapshot_pinned, root}`) from\n`state_root\u002Fworkspace\u002F.mantis_state.json` (Block A step 0\u002F1c). NEVER stop if it\nis absent — calibrate is a FINDINGS-ONLY stage (Block A step 0).\n\nP1. MODE (single decision for the whole run — branches on `active_snapshot`\npresence, 3-state model): - `active_snapshot` is ABSENT in state (no `--sync`\nwas requested — MODE-OFF = today's default) -> MODE = MODE-OFF. Score **exactly\nas today**: run every heuristic as written, do NOT compute PROVENANCE, do NOT\nemit `STALE_EVIDENCE`, and do NOT emit any HALT\u002FPINNED banners.\n(Backward-compatible default path — byte-for-byte today's behavior.) -\n`active_snapshot` IS present AND `snapshot_pinned` is not exactly `true` (HALT\nmode — the tree raced or could not be pinned) -> MODE = HALT. `SNAPSHOT_ID` =\n`active_snapshot.snapshot_id` (a `live:` id). Compute PROVENANCE per P2 below\nand fire the STALE-EVIDENCE guard conservatively (same as PINNED for guard\npurposes), because findings' locators may be stale. Authoritative verdicts\n(VERIFIED_SECURE, failed_to_reproduce, DUPLICATE, FALSE_POSITIVE, NON_VIABLE)\nare forbidden this pass. - `snapshot_pinned` == `true` -> MODE = PINNED.\n`SNAPSHOT_ID` = `active_snapshot.snapshot_id`. Full provenance + STALE-EVIDENCE\nguard as below.\n\nP2. In MODE = PINNED or HALT, compute PROVENANCE per finding F using Block B's\ncompare rule: - `F.discovery_commit` missing OR empty OR the literal `\"MIXED\"`\n-> NOT_MATCHED. - `F.discovery_commit` != `SNAPSHOT_ID` (exact string compare,\nno fuzzy) -> NOT_MATCHED. - `F.discovery_commit` == `SNAPSHOT_ID` -> MATCHED.\n\nP3. A per-finding heuristic is **STALE** for F when MODE is PINNED OR HALT AND\neither: - PROVENANCE(F) == NOT_MATCHED, OR - the finding's `code_paths` target\nfile does NOT exist under CODE_ROOT. (Resolve CODE_ROOT via Block A steps 1 & 3;\nstrip a trailing `:\u003Cdigits>`; read ONLY the pinned root, NEVER the live tree. If\nyou cannot resolve CODE_ROOT at all, treat the file as absent -> STALE.)\n\nP4. When a heuristic is STALE for F, do NOT apply it; keep the **conservative**\n(pre-adjustment) score; and ensure the literal token `STALE_EVIDENCE` is the\nFIRST token of `sanity_triage_applied` (add it once, before any UNKNOWN warnings\nand any fired-rule list). The four guarded heuristics and their exact STALE\nhandling are: - **Dead-code 0.2 multiplier** (Section 2, \"Asset Criticality &\nReachability\"): do NOT apply the 0.2 reduction; use the multiplier you would\notherwise have. - **`repro_failure`** (Section 3 rule): do NOT force-LOW; set\n`calibration_checklist.repro_failure.outcome = \"UNKNOWN\"`, `reason` beginning\n`\"STALE_EVIDENCE: \"`. - **`vague_code_paths`** (Section 3 rule): do NOT\nforce-LOW; set `calibration_checklist.vague_code_paths.outcome = \"UNKNOWN\"`,\n`reason` beginning `\"STALE_EVIDENCE: \"`. - **`static_confirmation` trace-lift**\n(Section 3 rule, its \"valid external stack trace\u002Fsanitizer…\" exception): do NOT\napply the trace-lift; KEEP the static HIGH cap in force (`likelihood_score` \\\u003C=\n3, 0.8 Hazard multiplier, NOT CRITICAL). Set\n`calibration_checklist.static_confirmation.outcome = \"APPLIES\"`, `reason`\nbeginning\n`\"STALE_EVIDENCE: trace-lift suppressed; trace\u002Fcrash-log may predate the active snapshot; \"`.\n\nP5. NON-SOURCE finding: if the finding's `code_paths` entry is a non-source\nLOCATOR (contains `\":\u002F\u002F\"`, or is not of the form `\u003Cpath>:\u003Cinteger>` — per Block\nA step 3: a symbol \u002F offset \u002F endpoint), SKIP all source-only heuristics for it\n— dead-code, file-path\u002Fimports\u002Fcaller-hierarchy exposure inference,\n`vague_code_paths`, and static trace re-inspection — and score from the\nfinding's DECLARED metadata (`attacker_position`, `privileges_required`,\n`production_viability`, `repro_status`, threat model). A non-source skip is NOT\nflagged `STALE_EVIDENCE` (it is normal, not drift). Non-source findings default\n`inferred_exposure` to `\"INTERNAL\"` (0.8) unless the finding\u002Fthreat-model\ndeclares otherwise.\n\n1. **Load Full Pipeline State:**\n\n   - Read all JSON files from the `workspace\u002Ffindings\u002F` directory. Because the\n     pipeline appends data to each finding file at each stage, these files\n     provide the complete picture of each finding's journey (including its `id`,\n     reproduction status, and production viability).\n   - **Missing Fields Fallbacks:** If any finding is missing viability, or\n     reproduction fields (such as chained findings), apply the following\n     fallback defaults before scoring:\n     - If `production_viability` is missing, treat it as `\"CONDITIONAL_VIABLE\"`.\n     - If `repro_status` is missing, treat it as `\"not_attempted\"`.\n   - **Snapshot provenance (only when MODE is PINNED or HALT):** for each\n     finding, compute PROVENANCE (MATCHED \u002F NOT_MATCHED) per preamble step P2\n     and record it in scratch. This value gates the STALE-EVIDENCE handling in\n     Sections 2 and 3 (preamble steps P3–P4). In MODE == MODE-OFF, skip this —\n     score as today.\n   - Read `workspace\u002Fkb\u002FTHREAT_MODEL.md` from the Knowledge Base (if it exists)\n     to evaluate component exposure, trust boundaries, asset criticality, and\n     any custom **Calibration Overrides** (e.g., specific threat positions or\n     caps that should be lifted or customized for the project).\n   - **Batch Processing:** If there are more than a few findings to calibrate,\n     split the task into batches (a few findings at a time). If you have the\n     ability to invoke subagents, delegate each batch to a subagent to process\n     in parallel, then aggregate the results. **Each batch\u002Fsubagent inspects\n     ONLY the pinned snapshot:** pass `--snapshot_root=\u003Cactive_snapshot.root>`,\n     `--snapshot_id=\u003Cactive_snapshot.snapshot_id>`, and\n     `--state_root=\u003Cworkspace parent>` so every subagent resolves the same\n     CODE_ROOT via Block A. Any code inspection a batch performs (exposure\n     inference, dead-code, static-trace verification) MUST read through that\n     CODE_ROOT (the pinned copy), NEVER the live tree, and MUST honor the\n     STALE-EVIDENCE guard (preamble P3–P4). Findings-only fields (score,\n     priority, history stamp) are computed from the finding JSON regardless.\n\n2. **Calculate Risk Score (1-10):** For each unique finding file, calculate the\n   actual technical risk score in a matrix form based on the following formula\n   components, where **Hazard = Impact + Likelihood**:\n\n   - **Impact (1-5):** Evaluate impact using the CIA triad (Confidentiality,\n     Integrity, Availability) while strictly considering **Blast Radius**.\n     - 5: Complete, systemic loss of Confidentiality (full data breach, leak of\n       root cryptographic\u002FHSM master keys) or Integrity (system compromise,\n       e.g., clear Remote Code Execution (RCE) by an unprivileged attacker who\n       isn't already in an effective position to execute code). MUST NOT be used\n       for attackers who already have execution privileges.\n     - 4: Substantial loss in one or more areas. This includes systemic\n       Availability loss (total outage of a major service) or major data\n       exposure.\n     - 3: Moderate loss (e.g., partial data exposure, temporary or partial\n       system disruption).\n     - 2: Minor loss (e.g., minor information leak, localized disruption). A\n       vulnerability whose blast radius is limited to affecting *only a single\n       user's own data* MUST NOT be scored higher than 2. *Exception:* If the\n       action lacks non-repudiation (allowing the user to plausibly deny the\n       action to commit fraud or blame others), or triggers side-effects\n       affecting other users\u002Fsystem stability, it should not be downgraded.\n     - 1: Negligible impact on CIA, mostly a cosmetic issue. Findings of the\n       type \"the code is fragile\", \"lack of defense-in-depth\", or purely\n       theoretical hygiene issues MUST have an Impact score of 1, ensuring they\n       are rated LOW at most.\n     - **Security Control Bypass (Upgrading):** If the vulnerability directly\n       bypasses a core security control (e.g., authentication, authorization,\n       cryptographic signature verification) or defeats the primary security\n       purpose of a library (e.g., a library meant to secure keysets allows\n       attacker control), elevate the Impact score to at least **4** (or **5**\n       if it leads to systemic compromise), even if the immediate technical\n       impact seems localized.\n     - *Note on Privileges Required & Lateral Movement:*\n       - If the finding requires **HIGH** privileges (e.g., administrative\n         privileges, admin-to-super-admin escalation) or only allows lateral\n         movement\u002Fpivoting between internal components from an already\n         compromised state, cap its individual Impact score at **2**, unless the\n         exploit results in escaping the container boundary (to the host node)\n         or cross-tenant escalation.\n       - If the finding requires **LOW** privileges (e.g., standard\n         authenticated user), cap its individual Impact score at **3** (unless\n         it leads to systemic compromise of other tenants\u002Fusers, OR it directly\n         bypasses a core security control\u002Flibrary purpose, in which case it can\n         be higher).\n       - These caps apply to *individual* findings. If successfully chained into\n         an Exploit Chain (Super Finding) by the chainer, the chain itself\n         should be evaluated based on the privilege level required for the\n         *entry point* (initial step) of the chain.\n   - **Likelihood (1-5):** Evaluate the probability of occurrence based on\n     proven exploitability rather than theoretical difficulty.\n     - 5: Actively exploited in the wild, OR the agent successfully generated a\n       functional, weaponized exploit (not just a unit test).\n     - 4: Public Proof of Concept (PoC) exists, OR the agent generated a highly\n       plausible but partially weaponized exploit.\n     - 3: No functional exploit, but the attack vector is trivial to automate.\n     - 2: Theoretical and highly complex (requires local access, strict timing).\n     - 1: Strictly theoretical risk with no known exploit path.\n     - **Reachability-in-Practice Modifier:** After determining the base\n       likelihood, reduce the `likelihood_score` by **1 or 2** (but not below\n       1.0) if the exploit path relies on uncommon or non-default usage\n       patterns. This applies if:\n       - The specific tainted parameter is populated from attacker input only\n         during rare API calls, uncommon configuration fields, or in data\n         formats rarely processed in the wild.\n       - The vulnerability requires non-standard or administrative-only\n         configurations that are rarely enabled in practice.\n   - **Context Multiplier (0.1 - 1.0):**\n     - If `status` is **FALSE_POSITIVE** or **NEEDS_RESEARCH**, or if\n       `production_viability` is **NON_VIABLE**: Drop this finding completely.\n       Do not score it or update its file with calibration data.\n     - If `production_viability` is **VIABLE**, **CONDITIONAL_VIABLE**, or\n       **SAMPLE_OR_TEST**:\n       - **Network\u002FTrust Exposure:**\n         - If the finding resides inside an **Exposed Interface \u002F Trust\n           Boundary** (directly accessible to untrusted inputs): 1.0.\n         - If it resides in an **Internal Component** accepting semi-trusted\n           parsed data: 0.8.\n         - If deeply nested inside a **Privileged\u002FTrusted Zone**: 0.5.\n         - **Inference when Threat Model is Missing\u002FIncomplete:** If\n           `workspace\u002Fkb\u002FTHREAT_MODEL.md` does not exist or does not mention the\n           component:\n           - Analyze the file path, imports, and caller hierarchy to infer\n             exposure (e.g., public APIs vs internal helpers). **Read only the\n             pinned CODE_ROOT (Block A), never the live tree. NON-SOURCE\n             (preamble P5): skip this file-path\u002Fimports\u002Fcaller analysis for\n             non-source LOCATOR findings — default `inferred_exposure` to\n             `\"INTERNAL\"` (0.8) unless the finding or threat model declares\n             otherwise.** When MODE is PINNED or HALT and the finding is\n             NOT_MATCHED or its `code_paths` file is absent under CODE_ROOT, do\n             NOT lower the exposure multiplier below the declared\u002Fdefault value\n             on the basis of live re-inspection (keep the conservative, higher\n             multiplier).\n           - Default the Exposure Multiplier to **0.8** (Internal) and\n             `inferred_exposure` to `\"INTERNAL\"` unless there is clear evidence\n             of direct external exposure (EXPOSED) or deep nested isolation\n             (PRIVILEGED). Local SUID\u002FLPE binaries should default to\n             `\"INTERNAL\"` exposure.\n           - If the finding description, history, or critic reasoning suggests\n             the component is \"rarely exposed\", \"internal only\", or \"unlikely to\n             be attacker-reachable\", reduce the Exposure Multiplier to **0.5**\n             or lower.\n       - **Map Exposure and Attacker Position Metadata:**\n         - Resolve **`inferred_exposure`** based on the Network\u002FTrust Exposure\n           multiplier:\n           - Multiplier 1.0 (Exposed Interface) -> `\"EXPOSED\"`\n           - Multiplier 0.8 (Internal Component) -> `\"INTERNAL\"`\n           - Multiplier 0.5 (Privileged\u002FTrusted Zone) -> `\"PRIVILEGED\"`\n         - **Evaluate Attacker Position (declared in finding):**\n           - Read `attacker_position` from the finding JSON.\n           - **Determine by Barrier, Not Transport:** The `attacker_position`\n             must represent the outermost boundary that the **first untrusted\n             principal** (the ultimate human attacker or external threat actor)\n             must cross to reach the interface. Do not key on the transport\n             protocol (e.g., HTTP, gRPC, IPC) or the immediate protocol peer.\n             - **Trace Back to Untrusted Actor:** If the immediate peer\n               interacting with the interface is a trusted-by-design component\n               (e.g., an internal proxy, gateway, message queue, or master\n               controller), you must trace back the data flow to find the\n               outermost boundary where the untrusted actor first enters the\n               system.\n             - If the interface is bound to `localhost` or uses local IPC (unix\n               sockets, pipes, shared memory), the position is `\"LOCAL\"`, even\n               if it uses HTTP\u002FTCP under the hood.\n             - If the interface is only reachable within a private network (VPC,\n               corporate network, home LAN, local network, internal cluster\n               control plane), the position is `\"INTERNAL_NETWORK\"` (or\n               `\"IN_CLUSTER\"` if restricted to pod-to-pod), even if it is a web\n               service.\n             - The position is only `\"EXTERNAL\"` if the interface is directly\n               reachable from the public internet.\n             - If the interface requires physical contact, hardware interaction\n               (e.g., JTAG, debug probes, chip decapping), or local wireless\n               proximity (e.g., NFC, Bluetooth), the position must be\n               `\"PHYSICAL_TEMPORARY\"` or `\"PHYSICAL_LONG_TERM\"`, regardless of\n               the protocol used.\n           - **Normalize Free-text:** If the value is present but is a free-text\n             string that does not exactly match one of the valid enum values\n             (e.g. legacy phrasings), you **MUST** normalize it to the closest\n             valid enum using these mappings:\n             - Phrases matching `\"authenticated \u003Crole>\"`, `\"customer with\"`,\n               `\"tenant \u003Crole>\"`, `\"Fitbit user\"` on a public product ->\n               `\"EXTERNAL\"` (with `privileges_required: \"LOW\"`).\n             - Phrases matching `\"local user\"`, `\"local shell\"`,\n               `\"local access\"` -> `\"LOCAL\"`.\n             - Phrases matching `\"peer \u003Crole> in same job\u002Fcluster\u002Fpod\"`,\n               `\"co-tenant\"`,\n               `\"in-cluster (Kubernetes\u002Fcontainer-orchestrator) workload\"`,\n               `\"NCCL peer rank\"` -> `\"IN_CLUSTER\"`.\n             - Phrases matching `\"malicious dependency\"`, `\"upstream package\"`,\n               `\"build-time\"`, `\"CI pipeline\"` -> `\"SUPPLY_CHAIN\"`.\n             - Phrases matching `\"host hypervisor\"`, `\"host OS\"`,\n               `\"hypervisor access\"` -> `\"HOST_SYSTEM\"`.\n             - Phrases matching `\"physical access\"`, `\"fault injection\"` ->\n               `\"PHYSICAL_LONG_TERM\"` or `\"PHYSICAL_TEMPORARY\"` based on\n               barrier.\n           - If missing altogether, infer it using the following fallback\n             guidelines (and log a warning to suggest declaring it earlier):\n             - `\"EXTERNAL\"`: If the component is `\"EXPOSED\"`, or it's an auth\n               bypass on a public portal.\n             - `\"LOCAL\"`: If it's a local privilege escalation (LPE) or SUID\n               exploit.\n             - `\"IN_CLUSTER\"`: If it targets in-cluster infrastructure (CSI\u002FCNI)\n               from a pod.\n             - `\"HOST_SYSTEM\"`: If the attacker is the hypervisor, host OS, or\n               an emulated\u002Fphysical device attacking software it hosts (guest\n               driver, enclave runtime, firmware target). This enum is strictly\n               for the outer-to-inner direction. The reverse direction —\n               guest-to-host (VM escape), sandbox-to-outside, enclave-to-host,\n               or contained-process-to-container — must be classified as\n               `\"LOCAL\"` (or `\"IN_CLUSTER\"` for Kubernetes pod-to-node; a\n               KVM\u002Fhypervisor guest attacking its host is \"LOCAL\"), never\n               `\"HOST_SYSTEM\"`.\n             - `\"PHYSICAL_LONG_TERM\"` \u002F `\"PHYSICAL_TEMPORARY\"`: If the bug\n               description, title, or code path indicates hardware fault\n               injection, side-channel, evil maid, or USB physical access.\n             - `\"SUPPLY_CHAIN\"`: For build-time or dependency modification\n               prerequisites.\n             - `\"INTERNAL_NETWORK\"`: Default fallback for other internal\n               components.\n           - **Align Exposure with Position:**\n             - If the `attacker_position` is `\"LOCAL\"` or `\"IN_CLUSTER\"`, you\n               **MUST** resolve `inferred_exposure` to `\"INTERNAL\"` (using 0.8\n               multiplier) even if the vulnerable code path resides in a folder\n               mapped to `\"EXPOSED\"` in the Threat Model, unless the exploit\n               explicitly escapes the container boundary to the host node.\n             - If the `attacker_position` is `\"INTERNAL_NETWORK\"`, you **MUST**\n               resolve `inferred_exposure` to at most `\"INTERNAL\"` (using 0.8\n               multiplier or lower) even if the component is mapped to\n               `\"EXPOSED\"` in the Threat Model, as the interface is not directly\n               reachable from the public internet.\n             - If the `attacker_position` is `\"EXTERNAL\"`, you **MUST** resolve\n               `inferred_exposure` to `\"EXPOSED\"` (using 1.0 multiplier) even if\n               the component is mapped to `\"INTERNAL\"` or `\"PRIVILEGED\"` in the\n               Threat Model (reflecting that untrusted external inputs reach the\n               component).\n       - **Asset Criticality & Reachability:**\n         - If the Threat Model indicates the component handles high-value data\n           (e.g., PII, core secrets), keep the multiplier high.\n         - If it affects a low-value target (e.g., internal analytics, sandboxed\n           test data), reduce the multiplier (e.g., 0.5).\n         - **Availability-Specific Context:** If the finding is\n           availability-only (DoS), check the component's `availability_tier` in\n           the Threat Model (if missing, default to STANDARD):\n           - `LOW_CRITICALITY`: Reduce multiplier to **0.5**.\n           - `STANDARD`: Reduce multiplier to **0.8**.\n           - `CRITICAL`: Keep multiplier at **1.0**.\n         - If static\u002Fdynamic analysis proves the vulnerable code is effectively\n           \"dead code\" (never called in runtime execution paths), drastically\n           reduce the multiplier to 0.2. **STALE-EVIDENCE GUARD (preamble\n           P3–P4): do NOT apply this 0.2 reduction if the finding is STALE (MODE\n           is PINNED or HALT AND the finding is NOT_MATCHED to the active\n           snapshot, `code_paths` file is absent under the pinned CODE_ROOT) —\n           drifted code can look \"uncalled\" spuriously; keep the higher\n           multiplier and set `STALE_EVIDENCE` as the first token of\n           `sanity_triage_applied`.** Any dead-code analysis you do run MUST\n           inspect the pinned CODE_ROOT, never the live tree. **NON-SOURCE\n           (preamble P5):** skip this heuristic entirely for non-source LOCATOR\n           findings.\n       - **User Interaction:**\n         - If `user_interaction` is **REQUIRED** (e.g., CSRF, Clickjacking, or\n           convincing a user to open a malicious file), apply a **0.7**\n           multiplier to the Context Multiplier (e.g., if exposure is Internal\n           (0.8) and user interaction is required, the combined multiplier is\n           0.8 * 0.7 = 0.56). This ensures these findings are capped below the\n           CRITICAL threshold.\n     - If `production_viability` is **SAMPLE_OR_TEST**:\n       - Apply a **0.4** scaling factor to the Context Multiplier (i.e.,\n         multiply the current Context Multiplier by **0.4**) so that severe bugs\n         in sample code typically land in the MEDIUM bucket rather than HIGH or\n         CRITICAL. This scaling factor must be applied cumulatively alongside\n         other modifiers. Do not override the Context Multiplier directly to\n         `0.4`, as this would incorrectly increase it if the component's\n         exposure or dead-code status was already calculated to be lower than\n         `0.4` (e.g. `0.2`).\n       - In the `executive_summary`, explicitly state that this is not a\n         production bug. The recommendation MUST focus on fixing the\n         example\u002Ftest so that developers do not copy insecure patterns into\n         production code.\n     - If `production_viability` is **CONDITIONAL_VIABLE**:\n       - Apply a **0.7** scaling factor to the Context Multiplier (i.e.,\n         multiply the current Context Multiplier by **0.7**) to reflect that it\n         requires specific non-default configurations, compiler flags, or\n         assertions enabled to be exploitable. This scaling factor must be\n         applied cumulatively alongside other modifiers (such as User\n         Interaction). Do not override the Context Multiplier directly to `0.7`,\n         as this would incorrectly increase it if the component's exposure was\n         already deep\u002Fisolated (`0.5`).\n       - In the `executive_summary`, document the specific conditions required\n         for viability.\n\n   **Final Score (Hazard) = (Impact + Likelihood) * Multiplier** (Capped at\n   10.0).\n\n   *Note on Outrage:* In your reasoning, comment on the broader equation **Risk\n   = Hazard + Outrage**, where the \"outrage risk\" (e.g., reputational damage,\n   user sentiment fallout) is taken into account. Do *not* include the outrage\n   factor in the final numerical score.\n\n3. **Critical Sanity Triage (Downgrading & Capping Findings):** Before\n   determining the final priority, perform a second-level sanity check on the\n   quality of the finding, its context, and accumulated evidence.\n\n   **Core Principle - Marginal Capability:** The final severity and priority of\n   a finding are strictly bounded by the *marginal capability* gained by the\n   attacker over their prerequisite position. If the exploit does not grant the\n   attacker significant new control, access, or capabilities beyond what is\n   already inherent to their starting position (or already possessed via\n   legitimate means), the finding must be capped or downgraded.\n\n   The complete, detailed definitions of the 27 calibration sanity rules are\n   stored in the reference catalogue at\n   [Calibration Rules](references\u002Fcalibration_rules.md). You MUST evaluate each\n   finding against the 27 rules listed there.\n\n   Check if the `THREAT_MODEL.md` defines any `Calibration Overrides` (e.g.,\n   `LIFT_CAP: PHYSICAL_LONG_TERM`). If an override exists for a finding's\n   position or component, it takes precedence and lifts the corresponding cap.\n   Otherwise, the caps and downgrades specified in the reference catalogue (and\n   general applications of the Marginal Capability principle) override any\n   upgrades calculated in Section 2 (including the Security Control Bypass\n   upgrade). You should also apply the general principle to cap or downgrade\n   other findings that offer low marginal capability. **Important: A cap (HIGH\n   or MEDIUM) only limits the maximum allowed score\u002Fpriority. It must NOT\n   upgrade a lower score\u002Fpriority (e.g., a finding with a score of 5.0 is\n   naturally MEDIUM and must remain MEDIUM, even if it is subject to a cap at\n   HIGH).**\n\n   **Precedence & UNKNOWN Rules Policy:**\n\n   - **STALE-EVIDENCE precedence (preamble P3–P4):** when MODE is PINNED or HALT\n     and a finding is STALE (NOT_MATCHED to the active snapshot, OR its\n     `code_paths` file is absent under the pinned CODE_ROOT), the following\n     rules MUST NOT be used to lower or inflate the score from live\n     re-inspection: `repro_failure` (do not force-LOW), `vague_code_paths` (do\n     not force-LOW), and the `static_confirmation` **trace-lift exception** (do\n     not treat a stale trace\u002Fsanitizer\u002Fcrash-log as live reproduction — KEEP the\n     static HIGH cap). Also do not apply the Section 2 dead-code 0.2 multiplier\n     (see Section 2). Keep the conservative score and **prepend the literal\n     token `STALE_EVIDENCE` as the FIRST token of `sanity_triage_applied`**\n     (before any `Incomplete Calibration (UNKNOWN: …)` warnings and before the\n     fired-rule list). Record the guarded rules in `calibration_checklist` as\n     specified in preamble P4 (`repro_failure`\u002F`vague_code_paths` -> `UNKNOWN`\n     with a `STALE_EVIDENCE:` reason; `static_confirmation` -> `APPLIES` with a\n     `STALE_EVIDENCE:` reason noting the trace-lift was suppressed). In MODE ==\n     MODE-OFF, this bullet does nothing (score as today).\n   - Evaluate ALL rules. If multiple caps apply, the **most restrictive** wins\n     (Force-LOW > cap-MEDIUM > cap-HIGH).\n   - **Policy for UNKNOWN outcomes:** If a rule is evaluated as `UNKNOWN`, do\n     **not** apply the cap or downgrade (be score-conservative; keep the\n     score\u002Fpriority at their higher calculated values). However, mark the\n     overall calibration as incomplete\u002Fprovisional by prepending a warning to\n     the `\"sanity_triage_applied\"` string:\n     `\"Incomplete Calibration (UNKNOWN: \u003Crule_name>)\"` (or a semicolon-separated\n     list of warnings if there are multiple UNKNOWNs). This signals that manual\n     review is required to resolve the rule status.\n   - Record every rule that successfully fired\u002Fapplied in\n     `sanity_triage_applied` as a semicolon-separated list, most restrictive\n     first (e.g., `\"Local Attack Vector; Internal\u002FNested\"`), appended after any\n     UNKNOWN warnings if present, so the effective cap remains fully auditable.\n\n4. **Determine Priority:**\n\n   - **CRITICAL (8.0 - 10.0):** Immediate action required. Very high hazard\n     (e.g. high impact and likelihood). **Must NOT be used unless it represents\n     a clear RCE (or equivalent total loss) by an unprivileged attacker (where\n     `privileges_required` is **NONE**) who is not already in an effective\n     position to compromise the system, AND `user_interaction` is **NONE**\n     (zero-click). This rule is absolute: even if a finding (like a CSI host\n     escape) has its Section 3 caps lifted, if it requires HIGH privileges at\n     entry, it MUST NOT be rated CRITICAL and must be capped at HIGH (7.9).\n     Availability-only findings (DoS) MUST NOT be rated CRITICAL unless the\n     `availability_tier` is explicitly documented as `CRITICAL` in the Threat\n     Model AND no automatic recovery mechanism (e.g. auto-restart, load balancer\n     failover) mitigates the impact.**\n   - **HIGH (6.0 - 7.9):** High priority. Significant hazard, needs prompt\n     resolution.\n   - **MEDIUM (3.0 - 5.9):** Standard priority. Moderate hazard, can be\n     scheduled.\n   - **LOW (0.1 - 2.9):** Low priority. Minimal hazard. **Any finding of the\n     type \"the code is fragile\", purely hygiene\u002Fdefense-in-depth, or one that\n     exclusively affects a single user's own data MUST be capped at LOW priority\n     regardless of the calculated score (unless the exception for lack of\n     non-repudiation or broader side-effects applies).**\n\n5. **Token-Optimized File Updates:** To minimize LLM output tokens, **do not\n   re-emit or manually rewrite the entire JSON object in your output.** Instead,\n   write a reusable helper script (e.g.,\n   `workspace\u002Fhelpers\u002Fappend_calibrate.py`) during your first finding update.\n   For all subsequent findings, do not regenerate the script; simply execute the\n   existing helper script with the new parameters to append the required fields\n   to `workspace\u002Ffindings\u002F\u003Cid>.json`.\n\n   - **Helper version marker (mandatory).** The very first line of\n     `append_calibrate.py` MUST be the exact comment\n     `# MANTIS_HELPER_VERSION = 2`. Before reusing an existing helper, read its\n     first line: if the file is absent, OR the first line is not exactly\n     `# MANTIS_HELPER_VERSION = 2` (marker missing or a different integer),\n     **regenerate the helper from scratch** (an older helper silently drops the\n     new `snapshot` history field and the `STALE_EVIDENCE` handling). The\n     regenerated helper MUST be able to write the `snapshot` key into the\n     appended `history` entry and to prepend `STALE_EVIDENCE` to\n     `sanity_triage_applied`. The helper is STATE-RELATIVE\n     (`workspace\u002Fhelpers\u002F…`, Block A step 3) — never write it under CODE_ROOT.\n\n   Alongside the existing core finding data, explicitly append the following\n   fields to show the matrix breakdown:\n\n   - `\"impact_score\"` (1-5)\n\n   - `\"likelihood_score\"` (1-5)\n\n   - `\"availability_tier\"` (CRITICAL, STANDARD, LOW_CRITICALITY or null)\n\n   - `\"inferred_exposure\"` (EXPOSED, INTERNAL, or PRIVILEGED)\n\n   - `\"attacker_position\"` (preserved from input, or populated from fallback\n     inference if missing)\n\n   - `\"mantis_risk_score\"` (the final Hazard score)\n\n   - `\"priority\"` (CRITICAL, HIGH, MEDIUM, LOW)\n\n   - `\"sanity_triage_applied\"` (semicolon-separated list, or null). Ordering:\n     `STALE_EVIDENCE` first if the finding was STALE (preamble P4); then any\n     `Incomplete Calibration (UNKNOWN: \u003Crule>)` warnings; then the Section 3\n     rules that fired, most-restrictive first. Example:\n     `\"STALE_EVIDENCE; Incomplete Calibration (UNKNOWN: physical_long_term); Local Attack Vector\"`.\n\n   - `\"calibration_checklist\"` object containing evaluations for all 27 sanity\n     caps. Each key in the object maps to the sanity cap rule of the matching\n     name:\n\n     ```json\n     {\n       \"repro_failure\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"unreachable_inputs\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"third_party_reachability\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"minor_config_hygiene\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"non_security_critical\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"vague_code_paths\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"unreliable_triggers\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"prerequisite_shell\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"physical_long_term\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"trusted_controller_zero_delta\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"standard_host_attacks\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"static_confirmation\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"strict_xss\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"internal_nested\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"probabilistic_llm\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"supply_chain_prerequisites\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"non_default_config\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"confidential_computing_host\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"trusted_controller_critical_bypass\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"local_attack_vector\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"self_contained_blast\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"rarely_exposed\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"equivalent_primitives\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"documented_insecure_config\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"physical_temporary\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"high_privilege_external\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" },\n       \"trusted_controller_standard_bypass\": { \"outcome\": \"APPLIES\" | \"DOES_NOT_APPLY\" | \"UNKNOWN\", \"reason\": \"\u003Cstring>\" }\n     }\n     ```\n\n     For each rule, `outcome` must be set to:\n\n     - `\"APPLIES\"`: if the sanity cap rule applies (fires) to this finding,\n       capping or downgrading its score\u002Fpriority. A detailed `reason` string is\n       **required**.\n     - `\"DOES_NOT_APPLY\"`: if the sanity cap rule does not apply. The `reason`\n       field is **optional** and may be omitted to optimize tokens.\n     - `\"UNKNOWN\"`: if it is unresolved. A detailed `reason` string is\n       **required**.\n\n     For backward compatibility, the schema also permits `\"fires\": \u003Cbool>` (with\n     `reason` required only if `fires` is `true`), but the new `\"outcome\"`\n     format is preferred.\n\n   - `\"outrage_commentary\"` (your reasoning about the outrage factor)\n\n   - `\"executive_summary\"`\n\n   - An entry to the `\"history\"` array:\n\n     ```json\n     {\n       \"stage\": \"calibrate\",\n       \"action\": \"calibrated\",\n       \"details\": \"Calculated risk score as [score] and priority as [priority].[ STALE_EVIDENCE: scored without trusting live-code re-inspection.]\",\n       \"pass_number\": \u003Ccurrent_pass_number>,\n       \"snapshot\": \"\u003Cactive_snapshot.snapshot_id, or omit in MODE-OFF>\",\n       \"timestamp\": \"\u003Ccurrent_iso8601_timestamp>\"\n     }\n     ```\n\nSave your updates to the individual finding files. When complete, notify the\nuser.\n",{"name":5,"description":7},"main","f3162c039ecd9c9d5d8bc404dd1373c7ca3152f7","skills\u002Fmantis-calibrate",237,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis","https:\u002F\u002Fcloud.google.com\u002F","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-15 00:33:31",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add google\u002Fmantis --skill mantis-calibrate",{"tool":54,"command":55},"bunx","bunx skills add google\u002Fmantis --skill mantis-calibrate",{"tool":57,"command":58},"pnpm","pnpm dlx skills add google\u002Fmantis --skill mantis-calibrate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-calibrate\u002FSKILL.md",true,[62],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fcalibration_rules.md","REFERENCE","参考文档",14560,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-calibrate\u002Freferences\u002Fcalibration_rules.md",[69,95,122,149,160,174],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":33},"01M6992XJHHV0R5N8E392EHRW3","mantis-threat-model","Synthesizes trust boundaries, attack surfaces, and attacker profiles into a living threat model. Use as Stage B of the Knowledge Base generation process, reading architecture and entity definitions from the KB. Don't use for analyzing source code or extracting raw learnings from JSONL files.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-threat-model\u002FSKILL.md",[],[76,77,78,79,80,81,82,83,84,28,85,86,87,88,89,90,91,92,93,94],"mantis threat model","threat model","model","threat","architecture","code","analyzing","knowledge","kb","surfaces","trust","learnings","knowledge base","as","extracting","reading","jsonl","source","source code",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":106,"publishedAt":33},"01M6992TR1BPA5HVF13QRM7EP0","mantis-summarize","Pre-processes the repository by generating security-focused summaries (mantis-summary.md) for each directory to make planning and research more efficient. Use when starting a review campaign to map the codebase before threat modeling and planning. Don't use for executing code reviews, writing test scripts, or patching code.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-summarize\u002FSKILL.md",[101],{"categoryNo":102,"categoryName":103,"taxonomyType":104,"taxonomyTypeDesc":105},"01JBSEEDCAT000000000000021","资料检索与研究","SCENARIO","使用场景",[107,108,21,109,110,111,112,81,113,114,115,79,116,117,118,119,120,121,31,32],"summarize","mantis summarize","directory","review","security","threat modeling","planning","repository","patching","campaign","map","modeling","scripts","make","reviews",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":133,"publishedAt":33},"01M6992QB4DVMDR2AGT6BPSE3N","mantis-structural-index","Builds a content-addressed semantic-unit index from source code for structural context. Use when a pinned or live codebase is available and structural cross-reference data would improve research quality. Don't use for findings analysis, patching, or reporting.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-structural-index\u002FSKILL.md",[128],{"categoryNo":129,"categoryName":130,"taxonomyType":131,"taxonomyTypeDesc":132},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[134,135,136,137,81,138,139,140,141,115,142,143,144,26,145,146,147,148,31,32],"mantis structural index","index","structural","research","content","reporting","data","analysis","improve","quality","context","research quality","reference","live","unit",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":33},"01M6992KRP2XYWEMV12P5M4GPE","mantis-review","Independently reviews findings and filters out false positives. Use when consolidated findings need validation against the actual source code. Don't use for reproducing crashes or patching code.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-review\u002FSKILL.md",[],[110,156,81,157,115,26,158,159,121,31,93,94,32],"mantis review","validation","filters","false",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":33},"01M6992GKVGJ2NXEJWYFVCN01Q","mantis-researcher","Audits production source code files based on the strategy in workspace\u002Fplan.json. Use when a review plan exists and you need to perform static analysis and deep-dive reviews of targeted files. Don't use for planning, deduplicating, or writing patches.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-researcher\u002FSKILL.md",[],[167,168,21,110,169,81,113,141,170,171,26,28,172,30,121,31,93,173,94,32],"mantis researcher","researcher","static analysis","plan","strategy","deep","static",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":33},"01M6992D5WXENF3TW68GM5WPHC","mantis-reproduce","Generates and runs crash reproducers to verify security flaws. Use when viable findings exist and you need to write and execute a script or payload to verify the crash. Don't use for code auditing or patching.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmantis\u002Fblob\u002Fmain\u002Fskills\u002Fmantis-reproduce\u002FSKILL.md",[],[181,182,111,81,115,183,184,185,26,186,187,188,30,31,32],"mantis reproduce","reproduce","verify","write","execute","crash","payload","script"]