Skip to content

feat: add multi-model review council fan-out - #642

Merged
jflowers merged 14 commits into
unbound-force:mainfrom
jflowers:opsx/review-council-multi-model-fanout
Oct 3, 2026
Merged

jflowers merged 14 commits into
unbound-force:mainfrom
jflowers:opsx/review-council-multi-model-fanout

Conversation

@jflowers

@jflowers jflowers commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Port the Divisor review council to explicit-first hybrid multi-model dispatch. Adds a closed reviewer manifest and review matrix for deterministic fan-out across models and personas, bounded sibling evidence acquisition, grounded lesson proposals, a review-verdict v2 artifact with lossless projection, and staged reproducible plugin activation (invoke-agent + review-dispatch OpenCode plugins). Also adds a scope-based Go coverage gate wired into make check and Local CI.
closes #635

How to Test

  • make check (lint + test + build + coverage-gate + plugin-test)
  • make plugin-test (npm ci + vitest; 244 tests; ≥90% statements / ≥85% branches)
  • make coverage-gate
  • go test -race -count=1 ./...
  • bash council-review-action/test/test-pipeline.sh (91 assertions)
  • openspec validate review-council-multi-model-fanout

How to Demo

  • Configure .uf/review-matrix.yaml (profiles / runs / limits) and .uf/reviewer-capabilities.yaml.
  • Run /uf.review-council on an opsx/* or NNN-* branch to observe deterministic multi-model fan-out with per-persona votes and a review-verdict v2 artifact under .uf/artifacts/dispatch/.

Key Files Changed

  • .opencode/plugins/{invoke-agent,review-dispatch}/ and .opencode/lib/ — new TS plugins + shared libs
  • .uf/{review-matrix,reviewer-capabilities,sibling-repos}.yaml — closed config contracts
  • internal/scaffold/plugin_activation.go and internal/scaffold/assets/ — staged reproducible plugin activation + scaffold mirrors
  • internal/coveragegate/, cmd/coverage-gate/, coverage-gate.json — scope-based Go coverage gate
  • internal/artifacts/review_verdict.go and internal/schemas/ — review-verdict v2 migration
  • internal/doctor/ — review-plugin health checks
  • schemas/ — JSON schemas (matrix, manifest, dispatch, verdict v2, sibling, lesson)
  • .github/workflows/ci_local.yml, Makefile — plugin-test + coverage-gate wiring
  • openspec/changes/review-council-multi-model-fanout/ — proposal, design, specs, tasks

This PR was generated by /uf.finale (AI-assisted).

@jflowers
jflowers requested a review from a team as a code owner October 2, 2026 17:41
Port the Divisor review council to explicit-first hybrid multi-model
dispatch with a closed reviewer manifest, bounded sibling evidence,
grounded lesson proposals, and staged reproducible plugin activation.

- Add invoke-agent and review-dispatch OpenCode plugins and shared libs
- Add .uf/review-matrix.yaml, reviewer-capabilities.yaml, sibling-repos.yaml
- Add review-verdict v2 artifact schema and lossless projection
- Add scope-based Go coverage gate (coverage-gate.json + internal/coveragegate)
- Add staged plugin activation with npm install and uf doctor checks
- Wire plugin-test and coverage-gate targets into make check and Local CI
- Make review-council immutable-diff requirement contextual (working-tree fallback)

Assisted-by: deepseek-v4-pro
Generated with AI assistance (deepseek-v4-pro)
@jflowers
jflowers force-pushed the opsx/review-council-multi-model-fanout branch from 6481dee to fedb019 Compare October 2, 2026 17:53
@jflowers jflowers changed the title Add multi-model review council fan-out feat: add multi-model review council fan-out Oct 2, 2026
Fetch full history and pass an explicit base so the scope coverage
gate can compute changed packages when the `main` ref is absent
from the pull_request checkout.

Assisted-by: deepseek-v4-pro
Generated with AI assistance (deepseek-v4-pro)
Replace plugin auto-discovery with explicit opencode.json plugin-array
registration: convert both review plugins to the PluginModule object
shape, register them in scaffolded opencode.json, and switch uf doctor
from auto-discovery to registration validation.
…ernance amendment, plugin timeout wiring, terminology drift)
os.Rename of directories fails with ENOENT on the GitHub Actions CI
runner when moving staged plugin sources to .opencode/plugins/.
Replace both os.Rename calls in atomicallyActivateReviewPlugins with
a reliable ReadFile/WriteFile/RemoveAll pattern. Also add the missing
continue in the refresh branch that would cause a double-move attempt.

Fix the test mock in TestRun_InstallsProbesAndAtomicallyActivatesReviewPlugins
to track activation via WriteFile instead of Rename, and add WriteFile
to the Options in the Branches sub-tests.
Staticcheck QF1003: could use tagged switch on path.
@jflowers
jflowers merged commit c1933bf into unbound-force:main Oct 3, 2026
16 checks passed
@jflowers
jflowers deleted the opsx/review-council-multi-model-fanout branch November 15, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Fan out review council agents across multiple models with verdict consolidation

1 participant