aiworkhub_agent_accept_review
COORDINATOR/WRITE-GATED: accept one review_ready request, phase 2.
Instructions
COORDINATOR/WRITE-GATED: accept one review_ready request, phase 2.
Re-runs scope, required-output, and validation gates against the
retained isolated worktree, compares every changed path's hash against
the ones recorded when the request first reached review, and only then
promotes into the canonical repo and finalizes the task as done. Any
precondition or revalidation failure leaves the canonical repo untouched
and the task in review. Idempotent: accepting the same already-finished
request again returns already_accepted instead of re-promoting.
Medium-and-higher risk profiles also validate a fresh canonical+candidate
combined tree and require strict reviewer findings; high/critical review
requires an explicit confirm_high_risk decision.
manager_correction -- unset by default, and every other behaviour is
then exactly as before -- accepts the sealed candidate PLUS a manager patch
instead of rejecting it:
{"patch": <unified diff>, "finding_ids": ["reviewer:<lens>:<id>", ...], "reason": str}. It lifts the refinement_required blocker of each
named finding that a selected reviewer reported and
aiworkhub_agent_dispose_review_finding already recorded as
confirmed, provided its severity is not blocking. The patch is
validated before any promotion or state change and refuses with
manager_correction_invalid:<reason> when the manager is unverified, the
patch does not apply to the sealed candidate bytes, a touched path is
outside the card's allowed_writes or not part of the candidate, no
finding is named, or a named finding is unconfirmed or blocking. The
declared validations and the mechanical gate then run on the CORRECTED
bytes, those are the bytes promoted, and the accepted-outcome receipt binds
the patch digest with the candidate and corrected hashes.
A successful reply is the receipt (aiworkhub.accept_review_receipt.v1):
promoted_paths, reviewer_finalization, acceptance_evidence_record,
accepted_outcome_receipt, needfix_closure, learning_commit_owed, plus the
finalized card's status and card_sha256/card_bytes. include_card =
none (default) | summary | full adds the card view. Errors are unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| request_id | Yes | ||
| include_card | No | none | |
| risk_signals | No | ||
| reviewer_reports | No | ||
| confirm_high_risk | No | ||
| manager_correction | No | ||
| requested_risk_tier | No | ||
| reviewer_request_ids | No | ||
| confirm_destructive_change | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||