---
title: "Verify Fix"
method: POST
path: "/remediation/verify-fix"
---

# Verify Fix

`POST /remediation/verify-fix`

## Request

- Base URL: `https://emfirge.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://emfirge.cloud/remediation/verify-fix`
- Auth: none declared

Simulate applying a fix for a specific finding and return the impact.

1. Look up FIX_MUTATIONS[rule_id]
2. If not found → return {can_simulate: false}
3. Load infrastructure from DB
4. Deep-copy, apply mutation
5. Rebuild graph, run rules, diff findings, calculate score delta
6. Return VerifyFixResponse

Pure computation — no LLM calls, no side effects. Should be <1s.

## Request body

- VerifyFixRequest
  - `analysis_id` string, required
  - `rule_id` string, required
  - `resource_id` string, required

## Response `200`

Successful Response

- VerifyFixResponse
  - `can_simulate` boolean, required
  - `findings_removed` object[]
  - `findings_added` object[]
  - `toxic_combos_resolved` string[]
  - `toxic_combos_created` string[]
  - `score_before` integer
  - `score_after` integer
  - `score_delta` integer
  - `safe_to_apply` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/emfirge/apis/aws-risk-analysis-agent.md) · [All operations](https://skmtc.dev/emfirge/apis/aws-risk-analysis-agent/llms.txt) · [OpenAPI document](https://skmtc.dev/emfirge/apis/aws-risk-analysis-agent/revisions/149a9263d07a?raw)
