Repository navigation
feat(commands): dispatch review councils directly in /uf.unleash Steps 4 and 6 - #729
Conversation
Replace cobalt-crush-dev delegation in Steps 4 (Spec Review) and 6 (Code Review) with direct review-dispatch tool calls (resolve_base_ref, plan_review_dispatch, dispatch_review_runs, consolidate_dispatch), removing a redundant child driver session per review step and the 1,145-line council payload from the dispatch path. Increment 1 of the deterministic-instruction migration ordered by issue unbound-force#716. - Add parent-side spec auto-fix consent gate: the question tool MUST be presented (Apply auto-fixes / Review findings first / Skip auto-fixes) before applying LOW/MEDIUM spec fixes; consented fixes re-run every included reviewer (max 3 iterations); HIGH/CRITICAL stay report-only — resolves the defect 2 policy contradiction with the council command - Run the Step 6 pre-flight soft gate in the parent; branch-caused failures stop fail-closed, pre-existing failures recorded non-blocking - Map Step 6 verdicts: approving verdicts proceed, REQUEST CHANGES enters the ≤3-iteration fix loop (cobalt-crush-dev applies code fixes), INCONCLUSIVE/UNAVAILABLE exits with reasons - Amend the "NEVER pause between steps" guardrail to name the consent gate as the single legitimate mid-pipeline interaction - Update scaffold mirror byte-identically (791 → 1006 lines); add OpenSpec change artifacts, CHANGELOG entry, and Dewey learnings Assisted-by: glm-5-3 Generated with AI assistance (glm-5-3)
35ce6a7 to
58da221
Compare
jflowers
left a comment
There was a problem hiding this comment.
Review Verdict: APPROVE WITH ADVISORIES
The council dispatched 4 reviewers. One completed (divisor-curator, glm-5-3) and returned advisory-only findings — 1 MEDIUM, 1 LOW — with no blocking issues. Three runs failed (two 600s timeouts on glm-5-3 runs, one server error on the adversary run); failed runs do not vote.
Summary
This PR rewrites /uf.unleash Steps 4 and 6 to drive Divisor review councils directly through the review-dispatch tools (resolve_base_ref → immutable diff → reviewer discovery → plan_review_dispatch → dispatch_review_runs → consolidate_dispatch) instead of the cobalt-crush-dev driver session, and adds a spec auto-fix consent gate, a Step 6 pre-flight soft gate, and verdict mapping. The OpenSpec artifacts are thorough, the scaffold mirror is byte-identical, and CI is green. The findings below are advisory.
Findings
- MEDIUM —
.opencode/commands/uf.unleash.md:422(also scaffold mirror,design.mdD2): the consent-gate option misattributes the enumerated fix-scope list toseverity.md; the list lives inuf.review-council.md:1166-1178. One-line citation edit in files this PR already touches. - LOW —
openspec/changes/unleash-direct-review-dispatch/tasks.md:28: task 5.4 records "~44% growth" but words compute to +33.8% (1227/3625); the 44% figure mixes token delta with word baseline.
Non-voting observation
The guard run timed out but submitted findings before termination. Per policy these do not affect the verdict; the notable one is a HIGH intent-drift observation that Step 4 result processing lacks an INCONCLUSIVE/UNAVAILABLE branch while the spec delta's verdict-mapping requirement (specs/unleash/spec.md:140-145) covers both Steps 4 and 6 — reachable in practice given the reviewer-run failures this dispatch itself experienced. Worth a follow-up.
This review was generated by /uf.review-pr (AI-assisted).
| labeled below: | ||
| - **"Apply auto-fixes"** (consent): the parent | ||
| command itself applies the LOW/MEDIUM fixes per | ||
| `.opencode/uf/packs/severity.md` -- formatting, |
There was a problem hiding this comment.
[MEDIUM] Misattributed fix-scope citation. This consent-gate option credits severity.md with the enumerated fix-scope list (formatting, status fields, terminology, cross-references, obvious gaps, stale metadata). severity.md defines only the LOW/MEDIUM vs HIGH/CRITICAL boundary; the list lives in the council command's hybrid fix policy (uf.review-council.md:1166-1178). The PR's own learning (unleash-direct-review-dispatch-20261014T220410) documents the same gap. A one-line citation edit here, in the scaffold mirror, and in design.md D2 resolves it.
| - [x] 5.2 Run `make plugin-test` — TypeScript plugin suite must pass | ||
| - [x] 5.3 Run `make lint` — vet + golangci-lint must pass | ||
| - [x] 5.4 Record after-deltas in this artifact: new line counts for Steps 4, 6, guardrails, total command, and approximate token delta (Principle VI measurable outcome) | ||
| - After (2026-10-14): Step 4 section: 147 lines; Step 6 section: 196 lines; guardrails section: 42 lines; total command: 1006 lines. Delta vs baseline: +215 lines, +1,227 words (~+1,600 tokens, ~44% growth; 3625 → 4852 words) |
There was a problem hiding this comment.
[LOW] Units mismatch in growth figure. Task 5.4 records "~44% growth", but word counts compute to +33.8% (1227/3625). The 44% figure divides a token delta (~1600) by the word baseline (3625), mixing units and inflating the Principle VI evidence. Recording the word-basis percentage — or labeling the token basis — keeps the evidence consistent.
Four learnings stored during the /uf.review-pr 729 dispatch
(lesson proposals submitted by Divisor reviewers, persisted via
dewey_store_learning):
- review-process: a retrospective learning that documents a known
defect confirms it, it does not discharge it — check the
remedy's scope before accepting a self-documented deferral
- principle-vi-evidence: compute growth percentages from the same
units as the reported counts (token delta over a word baseline
inflated the Principle VI claim to 44% vs the actual 33.8%)
- command-authoring: every enumerated verdict value needs an
explicit branch in every consuming step, not only the step the
task text names (Step 4 lacked INCONCLUSIVE/UNAVAILABLE)
- command-authoring: scope per-invocation count qualifiers to the
attempt when the surrounding procedure has iteration semantics
("exactly once" vs fix-iteration re-runs)
Review-session knowledge-capture artifacts on a separate chore
branch per the commit-scope rule; the feature change's own
workflow learnings shipped with PR #729.
Assisted-by: glm-5-3
Generated with AI assistance (glm-5-3)
Summary
Rewrites
/uf.unleashSteps 4 (Spec Review) and 6 (Code Review) to invokethe review-dispatch tools directly (
resolve_base_ref→ immutable diffcapture → reviewer discovery →
plan_review_dispatch→dispatch_review_runs→consolidate_dispatch) instead of delegating toa
cobalt-crush-devdriver session that re-loaded the 1,145-line councilcommand and re-derived input context. One child agent session is removed
per review step; the actual reviewers remain the manifest-gated
divisor-*agents.CHANGES with only LOW/MEDIUM findings, the parent presents the
council's three options (Apply auto-fixes / Review findings first /
Skip auto-fixes) via the question tool. Only on explicit consent are
LOW/MEDIUM fixes applied (per severity.md), then input is re-resolved,
the plan re-validated, and every included reviewer re-run (max 3
iterations). HIGH/CRITICAL findings exit unchanged. Resolves the
policy contradiction between unleash and the council command.
dispatch: branch-caused failures stop the step with CRITICAL findings
and fail-closed finalization; pre-existing failures are recorded
non-blocking.
the ≤3-iteration fix loop (
cobalt-crush-devretained for code-fixapplication); INCONCLUSIVE/UNAVAILABLE exits with reasons.
consent gate as the single legitimate mid-pipeline human interaction.
byte-identical mirrors updated; command grew 791 → 1006 lines
(+~1,600 tokens, ~44%), deltas recorded per Principle VI.
Documentation gate: filed #728 (repo docs
issue) and unbound-force/website#307 (cross-repo).
Refs #716 (Increment 1 of the deterministic-instruction migration)
How to Test
Command-markdown change verified by existing gates (all green during
implementation, per tasks.md §5):
make test— scaffold drift tests confirm the twouf.unleash.mdmirrors are byte-identical; full Go suite passes
make plugin-test— TypeScript plugin suite passes (577 tests)make lint— vet + golangci-lint passTo exercise behavior: run
/uf.unleashon an opsx branch and observeStep 4 dispatch divisor reviewers directly (no driver session) and
present the consent question on a LOW/MEDIUM REQUEST CHANGES verdict.
How to Demo
/uf.unleashon a branch with spec artifactsdirectly (plan → dispatch → consolidate) — no intermediate
cobalt-crush-devsessionpipeline pauses for the auto-fix consent question, then re-runs
reviewers after consented fixes
Key Files Changed
.opencode/commands/uf.unleash.md— Steps 4/6 rewritten, consentgate, guardrail amendment (+303 lines)
internal/scaffold/assets/opencode/commands/uf.unleash.md—byte-identical scaffold mirror
openspec/changes/unleash-direct-review-dispatch/— proposal,design, tasks, spec delta
CHANGELOG.md— unleash-direct-review-dispatch entry.uf/dewey/learnings/— 6 new learnings from this changeThis PR was generated by /uf.finale (AI-assisted).