<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Implementing Risk Treatment Planning

## Commands

| Command | Description |
|---|---|
| `Risk-Register-Query` | Retrieve risks by severity |
| `Control-Catalog-Search` | Search controls by risk type |
| `Treatment-Plan-Create` | Create treatment plan entry |
| `Residual-Risk-Calculator` | Calculate residual risk |
| `Plan-Status-Tracker` | Track plan implementation progress |
| `Risk-Appetite-Check` | Validate against appetite |
| `Exception-Request` | Submit risk acceptance exception |

## Agent Script

```bash
# node agent.js plan --risk-id <value> --treatment <value>
# node agent.js residual --risk-id <value> --control-effectiveness <value>
# node agent.js status
```
