Skip to content

Added review agents survive uf init in review-matrix.yaml but not reviewer-capabilities.yaml #884

Closed

Description

@jflowers

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.yaml is project-owned (isToolOwned returns false, internal/scaffold/scaffold.go:675-679). A plain uf init re-run skips the file when it exists, so locally added agents (in advisor, always:, runs:) survive.
  • .uf/reviewer-capabilities.yaml is tool-owned (isToolOwned returns true, internal/scaffold/scaffold.go:672-674). A plain uf init re-run performs overwrite-on-diff, so locally added reviewers: 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 --force clobbers both files — only specify/memory/constitution.md is 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-developer profiles.*.model / profiles.*.variant overrides 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

  1. Symmetrize: make reviewer-capabilities.yaml project-owned like the matrix (drift detection in the unbound-force repo itself would still keep the canonical in sync).
  2. Merge support: keep it tool-owned but preserve unknown reviewers: entries on overwrite (append-only merge for locally added agents).
  3. Document the workflow: keep the behavior as-is and document that adding agents to generated repos requires updating the embedded asset in unbound-force.

Activity

  1. added
    enhancement
    on Oct 31, 2026
  2. self-assigned this
    on Oct 31, 2026
  3. added a commit that references this issue on Oct 31, 2026
    05d2540
  4. added a commit that references this issue on Oct 31, 2026
    1459ce4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions