Skip to content

review-dispatch: failed child run with accepted submissions bricks consolidate_dispatch finalization #751

Closed

Description

@jflowers

Summary

On 2026-10-19 a /uf.review-council spec-review dispatch (correlation 4ae8aa2b-9b6e-4427-88e1-367198eb6a86, mode specs, 5 runs, 4 parallel, 20-minute per-run timeout) could not be finalized. consolidate_dispatch rejected the payload three times (initial call plus the two permitted identical mechanical retries) with:

  • consolidated finding has incorrect contributing run ids
  • consolidated finding references a non-successful or unknown run
  • non-success run f2abbc23-8a33-42c4-8c63-42427ee07f32 must not vote or emit findings

Run table:

Run Status Findings Proposals
divisor-adversary (claude-opus-4-6) success 1 0
divisor-architect (glm-5-3) failed 0 0
divisor-curator (glm-5-3) success 3 2
divisor-guard (glm-5-3) failed 6 1
divisor-sre (glm-5-3) success 5 2

Root cause (investigated from child session transcripts)

divisor-guard (session ses_eae228d15ffeLAWsEckuvIKQDA): completed its review normally. submit_review_findings was accepted at 02:12:47 ("6 finding(s) submitted"), submit_lesson_proposal was accepted at 02:13:27, and it began emitting its final review text at 02:13:38 — then the session aborted (~363k input tokens, consistent with hitting the model context ceiling during final-response generation). The run is recorded failed, but its already-accepted submissions remain in the dispatch store attributed to the failed run.

divisor-architect (session ses_eae228c99ffe8sQ6EjsYN7YaHQ): stopped mid-review at ~02:11 (~369k input tokens) without submitting anything; run failed.

Both children ran 15-17 minutes — under the 20-minute per-run timeout — so timeout is not the trigger; context exhaustion is.

The failure chain:

  1. submit_review_findings / submit_lesson_proposal accept submissions from a child run regardless of the run's eventual terminal status.
  2. When the child session later aborts (context ceiling), the run is marked failed while its accepted findings/proposals remain in the store.
  3. The finalizer — correctly, per its integrity rules — refuses any payload in which a non-success run contributes findings.
  4. There is no sanctioned recovery: no way to discard the orphaned submissions, no partial re-dispatch of just the failed reviewers, and retrying consolidate_dispatch is pointless because the store state never changes.
  5. Net effect: three successful reviews (9 findings, 5 proposals) are unfinalizable; the caller must fail closed INCONCLUSIVE, block automation, and request human review.

Recurrence

This is a recurring failure class, not a one-off:

  • The identical finalizer rejection (non-success run ... must not vote or emit findings) appears in at least five additional sessions in the local opencode database between 2026-10-14 and 2026-10-17 (occurrence counts 1, 1, 3, 7, and 9 — the 9-occurrence session exhausted repeated retries), including the code-review finalization failure documented in the fix-tool-args-schema-mismatch change retrospective.
  • Earlier the same day (2026-10-19 01:42), a second /uf.unleash spec-review dispatch attempt on the same change launched five children that produced zero output (guard child: 0 tokens, 1 part — launched but never ran), which forced a full re-dispatch.

Suggested fix directions

  1. Bind submissions to run liveness — reject or quarantine submit_review_findings / submit_lesson_proposal once a run is marked failed; and/or derive run status so that a run which completed its structured submissions and final text is not marked failed because the session aborted afterward (the guard case).
  2. Finalizer-side recovery — allow consolidation to exclude non-success-run findings with an explicit warning when successful runs exist, or expose an explicit "discard orphaned submissions" action for the parent command.
  3. Partial re-dispatch — allow re-running only the failed reviewers within the same dispatch session (reusing sibling evidence) so a single context blowout does not brick the whole dispatch.
  4. Child context budget — the spec-review prompt plus evidence drove both failed children to ~365k input tokens (each re-read the 895-line command file and large plugin excerpts). Consider trimming embedded evidence, capping per-child reads, or checkpoint/resume for long reviews.

Environment

  • Branch opsx/fix-triage-issue-dispatch-docs, base upstream/main @ 7fb1e39f1b9f9eed45cda37167bb778a4055faa2, uncommitted working-tree diff (7 files, 643 lines)
  • Command: /uf.unleash Step 6 (spec review) → review-council, specs mode, dispatched via dispatch_review_runs (4 parallel, $25 budget, 20-minute per-run timeout)
  • Models: guard/architect/curator/sre on enmaas/rits/zai-org/glm-5-3; adversary on google-vertex-anthropic/claude-opus-4-6@default

Impact

Any review-council dispatch in which a child fails after (or before) submitting becomes permanently unfinalizable with no automated recovery. The fail-closed finalizer behavior is correct; the missing piece is a recovery path.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions