Validate structured agentic review decisions

This commit is contained in:
2026-05-15 16:09:03 +02:00
parent 9a320a95ee
commit 92eaf52bb6
6 changed files with 331 additions and 10 deletions

View File

@@ -143,7 +143,7 @@ legacy auto-approval guard.
```task
id: RREG-WP-0014-T04
status: in_progress
status: done
priority: high
state_hub_task_id: "b0d29756-7460-4ffa-8d56-d94cfb34e94f"
```
@@ -161,14 +161,15 @@ Acceptance criteria:
- Each agentic approval includes a rationale tied to evidence and criteria.
- If no agentic reviewer is configured, candidates remain pending review.
Implementation note 2026-05-15: started the migration by adding an
Implementation note 2026-05-15: completed the first migration by adding an
`AgenticReviewRequest`/`AgenticReviewer` boundary, routing normal API/CLI/UI
review requests to `request_agentic_review`, and leaving candidates pending with
an `agentic_review_unconfigured` review decision when no reviewer is configured.
Legacy `trusted_auto_approve` requests are treated as deprecated compatibility
input and routed to the same pending agentic-review path. Remaining work:
structured agentic decisions with approve/reject/downgrade/request-human-review
actions and rationale enforcement.
input and routed to the same pending agentic-review path. Agentic reviewers now
return structured decisions with approve, approve-with-edits, reject, downgrade,
request-human-review, relink, and propose-edit actions. Approval decisions are
validated for rationale, criteria IDs, and evidence refs before being applied.
## T05: Add Review Decision Audit Trail