- New status `accepted_risk`. Setting it requires a reason (422 without).
- Every status change a person makes is pushed onto the finding's
`status_history` with the user, the time and the reason; the detail
page lists it, and accepting a risk asks for the reason first.
- The status is typed in the API: an unknown value such as `dismissed` is
refused with 422. It used to be stored as free text and then broke
every later read of the finding. A status change on a finding that
does not exist is a 404.
- OSCAL observations carry the finding's status: an accepted risk stays a
finding against its control, marked as decided on. The MCP findings
summary counts accepted risks.
- The bulk bar leaves out "accepted risk", which needs a reason per
finding; format_time moves into the i18n module and is shared.
Tests: the reason rule, the recorded change, refusal of an unknown
status, the OSCAL status prop, and an integration test (MongoDB) of
422 / 422 / 200 / 200 / 404 and the stored history.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p