Repository navigation
Fix confirmation. The in-the-loop integrations now close the loop: when a developer resolves a risk that ai-surface flagged, ai-surface confirms it, by name, in the same session.
Added
- Fix confirmation: the hook and MCP diff report cleared risks. When an edit puts a human approval gate in front of a flagged financial or destructive action, the Claude Code hook posts "a flagged risk was cleared by this edit" and the
check_new_ai_surfacediff reportsrisks_removedand arisks_clearedcount, instead of staying silent. Previously the rolling baseline only ever reported additions, so a fix produced no feedback.
Changed
- The
no-human-oversightaudit flag is mirrored as a severity-free risk indicator (no human approval gate on a high-risk action) so the gate's absence and its later presence both survive the baseline diff. - Once an approval gate is detected on the path, the
financial-actionanddestructive-actionremediation reads "Approval gate detected on this path. Keep it in front of the action and least-privilege the agent." rather than telling the user to add a gate that is already there. Severity is unchanged.
Fixed
- Upgrading from 1.1.0 no longer produces a one-time "risk added: no human approval gate" message for agents that were already ungated: a baseline written by an older version is reconciled on its first diff, so only changes the developer makes are reported.
Install or upgrade: pip install -U apisec-ai-surface (pip install -U "apisec-ai-surface[mcp]" for the MCP server)