- approveRemediationActions validates each requested action against the campaign's latest classification.recommended_actions and materializes only recommended action types as status='approved' rows plus one atomic audit row (REMED-01, REMED-02, REMED-06) - remediateApprovedActions transitions approved rows to 'completed' (D-01 simulated internal effect, no external provider call), is idempotent via the status='approved' FOR UPDATE filter (REMED-04), and fails explicitly on zero remediation_actions rows (REMED-03) - RemediationValidationError / RemediationConflictError typed error classes Note: markCampaignFalsePositive (referenced by the already-committed test file) lands in the next commit (Task 3) — tsc will be clean again once that lands. |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| auth-client.ts | ||
| auth-utils.ts | ||
| auth.ts | ||
| bootstrap.ts | ||
| permissions.test.ts | ||
| permissions.ts | ||
| status-registry.ts | ||
| utils.ts | ||