Clarify code review recovery order

This commit is contained in:
Wayner Barrios
2026-07-27 15:27:14 -04:00
parent 8d80e72bde
commit ac297607ff
2 changed files with 9 additions and 3 deletions
+3 -3
View File
@@ -97,9 +97,9 @@ Validate every child envelope against the frozen `SCOPE_ID`, assigned role, expe
1. Preserve valid partial output and identify only the missing work.
2. When a successful child response is incomplete or malformed, resume the same child exactly once with the missing fields and scope named.
3. For transient timeout, rate-limit, or transport dispatch failure, retry the task exactly once as a fresh dispatch.
4. For permission denial, unavailable tools, invalid requests, or deterministic failures, do not retry.
5. If parallel dispatch is unavailable, continue unfinished work with serial children.
6. If task dispatch is unavailable or denied, or bounded recovery is exhausted, complete the missing role checklist in the parent.
4. For permission denial, unavailable tools, invalid requests, or deterministic failures, do not retry; a permission denial does not consume the transient-retry budget.
5. If parallel dispatch is unavailable or denied, continue unfinished work with serial children.
6. If individual task dispatch is unavailable or denied, or bounded recovery is exhausted, complete the missing role checklist in the parent.
Never interpret failed, blank, malformed, or partial output as no findings. Preserve valid sibling results and cover only missing work locally.
+6
View File
@@ -30,6 +30,12 @@ test("code-review validates child output and bounds recovery", () => {
assert.match(review, /never .*failed.*blank.*partial.*no findings/is);
});
test("code-review distinguishes parallel denial from individual task denial", () => {
assert.match(review, /parallel dispatch is unavailable or denied[^.]*serial/i);
assert.match(review, /individual task dispatch is unavailable or denied[^.]*parent/i);
assert.match(review, /permission denial[^.]*does not consume[^.]*transient-retry budget/i);
});
test("code-review gates clean output on complete ledgers", () => {
assert.match(review, /detection coverage ledger/i);
assert.match(review, /candidate ledger/i);