Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Added review agents survive uf init in review-matrix.yaml but not reviewer-capabilities.yaml
Summary
The two Divisor review-config scaffold assets have opposite ownership semantics, which makes adding a custom review agent to a generated repository only half-persistent:
.uf/review-matrix.yamlis project-owned (isToolOwnedreturns false,internal/scaffold/scaffold.go:675-679). A plainuf initre-run skips the file when it exists, so locally added agents (inadvisor,always:,runs:) survive..uf/reviewer-capabilities.yamlis tool-owned (isToolOwnedreturns true,internal/scaffold/scaffold.go:672-674). A plainuf initre-run performs overwrite-on-diff, so locally addedreviewers:entries are reverted to the embedded canonical whenever content differs.
The net effect: a generated repo can add a custom Divisor agent to its matrix and keep it across re-inits, but cannot durably register that agent's capability/scopes — the registration is silently dropped on the next uf init. The only durable path today is editing the embedded asset in unbound-force itself, syncing the deployed .uf/ copy (drift-detection tests), and adding the agent .md under .opencode/agents/.
Additional constraints
uf init --forceclobbers both files — onlyspecify/memory/constitution.mdis never-overwrite (scaffold.go:700-702).- No merge logic exists for either file; disposition is strictly create/skip/replace.
.uf/review-matrix.override.yaml(gitignored) supports per-developerprofiles.*.model/profiles.*.variantoverrides only — it cannot carry agent-list additions.- Matrix limits still cap added agents (
max_personas: 16,max_total_runs: 24).
Evidence
Verified at commit e98da33:
| Location | Fact |
|---|---|
internal/scaffold/scaffold.go:672-674 |
uf/reviewer-capabilities.yaml → tool-owned |
internal/scaffold/scaffold.go:675-679 |
uf/review-matrix.yaml → project-owned ("project-owned extension point") |
internal/scaffold/scaffold_test.go:2800,2802 |
Tests pin the ownership split |
internal/scaffold/scaffold_test.go:1933-1974 |
Drift detection pairs embedded assets with deployed .uf/ copies |
internal/scaffold/scaffold_test.go:3457-3458 |
Both files deploy in DivisorOnly mode |
Possible directions
- Symmetrize: make
reviewer-capabilities.yamlproject-owned like the matrix (drift detection in the unbound-force repo itself would still keep the canonical in sync). - Merge support: keep it tool-owned but preserve unknown
reviewers:entries on overwrite (append-only merge for locally added agents). - Document the workflow: keep the behavior as-is and document that adding agents to generated repos requires updating the embedded asset in unbound-force.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsNo status
Activity
fix(scaffold): preserve custom reviewer capabilities across uf init
fix(scaffold): preserve custom reviewer capabilities across uf init