Repository navigation
feat: implement The Divisor PR Reviewer Council (Spec 005) - #42
Merged
Merged
Conversation
Implement the full Divisor architecture: 5 canonical divisor-*.md persona agents (Guard, Architect, Adversary, SRE, Testing) with dynamic discovery, 6 convention pack files loaded at review time, scaffold engine extensions for --divisor subset deployment and --lang language override, and updated /review-council command. Key changes: - 5 new divisor-*.md agents in .opencode/agents/ (project-agnostic) - 6 convention packs in .opencode/divisor/packs/ (Go, TS, default + custom stubs) - review-council.md updated: divisor-*.md discovery pattern - scaffold.go: isDivisorAsset(), detectLang(), shouldDeployPack(), isConventionPack(), DivisorOnly/Lang options, language detection - main.go: --divisor and --lang CLI flags on unbound init - 8 new test functions covering all scaffold behaviors - 12 new embedded assets (45 total, was 33) - Spec artifacts: spec.md, plan.md, tasks.md, data-model.md, research.md, quickstart.md, contracts/scaffold-cli.md All 44 tasks complete. All tests pass. Coverage: 85.1%.
This was referenced Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
divisor-*.mdpersona agents with dynamic discovery and convention pack loading--divisorsubset deployment and--langlanguage overrideWhat Changed
New Files (27)
Divisor Persona Agents (5):
.opencode/agents/divisor-{guard,architect,adversary,sre,testing}.md— project-agnostic agents that load convention packs dynamically at review timeConvention Packs (6):
.opencode/divisor/packs/{go,default,typescript}.md— canonical rule sets (tool-owned, auto-updated).opencode/divisor/packs/{go,default,typescript}-custom.md— project-specific extensions (user-owned)Embedded Asset Copies (12):
internal/scaffold/assets/opencode/mirrors of all new canonical filesSpec Artifacts (6):
specs/005-the-divisor-architecture/{plan,tasks,data-model,research,quickstart,contracts/scaffold-cli}.mdModified Files (12)
Scaffold Engine (
internal/scaffold/scaffold.go):Optionsstruct: addedDivisorOnly,LangfieldsisDivisorAsset(),detectLang(),shouldDeployPack(),isConventionPack()isToolOwned()for convention pack ownership (canonical = tool-owned, custom = user-owned)printSummary()for divisor mode label and language-detection warningRun(): DivisorOnly filtering, language resolution, pack selectionCLI (
cmd/unbound/main.go):--divisorflag: deploy only Divisor agents and packs--langflag: override language auto-detectionTests (
internal/scaffold/scaffold_test.go):TestIsDivisorAsset,TestDetectLang,TestShouldDeployPack,TestRun_DivisorSubset,TestRun_DivisorSubset_WithLangFlag,TestRun_DivisorSubset_DefaultFallback, plus 2printSummarydivisor mode subtestsexpectedAssetPaths(33 → 45),knownNonEmbeddedFiles,canonicalDirsCommands:
review-council.md: discovery pattern changed fromreviewer-*.mdtodivisor-*.mdspeckit.testreview.md: referencesdivisor-testinginstead ofreviewer-testingDocumentation:
AGENTS.md: hero table, project structure, recent changesREADME.md: file count, Divisor status,--divisor/--langdocsunbound-force.md: five personas, embedded distributionReview Council Results
All 5 Divisor personas reviewed this implementation. Initial findings addressed in iteration 1:
printSummarydivisor mode test coverage (fixed)Pre-existing findings (not from this change) deferred:
os.Chdirin test,SyncProjectstub,insertMarkerAfterFrontmatterallocation pattern.Success Criteria
unbound init --divisorproduces correct output--lang typescriptselects TS packCloses #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19