Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Outcome
Hero repos scaffolded or refreshed by uf init receive the model-matrix configuration surface built in #887: the tracked .uf/model-matrix.yaml, the .uf/schemas/model-matrix/ registry, and the meta-prompt pack from #888 — with tool-owned asset handling, drift tests, and scaffold parity tests covering them, so every hero repo gets the same content-agent model-selection capability this meta repo has.
This is slice 2 of the model-matrix work. Slice 1 (#887) deliberately kept repo-local scope but could not avoid a few forced scaffold touches (mirror sync of uf-workflow/index.ts, the new lib module mirror, one tool-owned-asset enum line, one gitignoreBlock line). Everything else was deferred here to keep that change reviewable.
Background — scaffold mechanics that govern this work
internal/scaffold/assets/mirrors.opencode/plugin/lib files and.uf/config.TestEmbeddedAssets_MatchSource(internal/scaffold/scaffold_test.go~lines 90–158) enforces byte-identity between every non-skipped embedded asset and its canonical source at the repo root (it skipsdevcontainer/,specify/,uf/sibling-repos.yaml, andopencode/uf/packs/*-custom.md; custom packs are user-owned by design).internal/scaffold/scaffold.go(~lines 730–758) holds an explicit tool-owned asset allowlist enum — currently each lib file by exact name anduf/{review-matrix.yaml, reviewer-capabilities.yaml, sibling-repos.yaml}plusuf/schemas/<name>/prefixes. New tracked assets need entries there for correct re-init behavior (user edits to tool-owned files are refreshed; custom files are preserved).alwaysDeployedPacks(~line 769+) lists packs every hero repo gets regardless of language detection (default,default-custom,severity,content,content-custom, ...). Themeta-promptpack needs an entry here; ameta-prompt-custom.mdinitial-deployment template should follow the existing*-custom.mdpattern.- The gitignoreBlock (
internal/scaffold/scaffold.go~line 1390s, marker# Unbound Force — managed by uf init) already gained the.uf/model-matrix.override.yamlline in slice 1. - Useful precedent for init-survival behavior: issues Added review agents survive
uf initin review-matrix.yaml but not reviewer-capabilities.yaml #884/docs: reviewer-capabilities.yaml survives plain uf init re-runs (reviewer-capabilities-init-survival) #886 (reviewer-capabilities vs review-matrix re-run behavior).
Acceptance criteria
uf initon a fresh hero repo deploys.uf/model-matrix.yaml,.uf/schemas/model-matrix/,meta-prompt.md, and ameta-prompt-custom.mdtemplate.- Re-running
uf initpreserves user edits to custom files and correctly refreshes tool-owned matrix files (enum entries in place). - Drift tests and scaffold tests are updated and green;
make checkpasses end to end. - Scaffold/deployment behavior documented in the appropriate docs (configuration / scaffold docs) with a CHANGELOG entry.
Constraints
- Deployment only — do not change selection behavior or matrix semantics here; Content-agent model selection via .uf/model-matrix.yaml (model-matrix-delegation) #887 owns the semantics.
- Gatekeeping rules apply: no weakening of gates;
*-custom.mdfiles remain exempt from drift tests by design. - Likely warrants its own OpenSpec change (this issue can be its originating issue) rather than reopening Content-agent model selection via .uf/model-matrix.yaml (model-matrix-delegation) #887's change.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsNo status
Activity
test(scaffold): defer model-matrix-classifier agent to slice 2 in dri…
test(scaffold): defer model-matrix-classifier agent to slice 2 in dri…
test(scaffold): defer model-matrix-classifier agent to slice 2 in dri…
chore(dewey): store stray learnings from the PR #894 workflow
jflowers commentedon Nov 1, 2026
Divisor Triage: VALID — enhancement (objective)
Classification. The Divisor review panel assesses this issue as a valid, actionable enhancement. All six review personas (adversary, architect, curator, guard, sre, testing) independently reach VALID.
Evidence.
.uf/model-matrix.yaml,.uf/schemas/model-matrix/,meta-prompt.md,meta-prompt-custom.md), re-run preserve/refresh behavior for user-owned vs tool-owned files, green drift/scaffold tests withmake checkpassing end to end, and docs plus a CHANGELOG entry.model-matrix-delegationSC-FR-007 defers the meta-prompt pack and classifier deployment to slice 2 (this issue), so this is the anticipated follow-up rather than scope creep.internal/scaffold/scaffold.go, thealwaysDeployedPackslist, the managed gitignore line landed in slice 1, and theTestEmbeddedAssets_MatchSourcecustom-pack exemption.*-custom.mdexemption preserved).Similar issues. #899 tracks the documentation for this same deployment work, filed per this repo's documentation gate for user-facing changes. It is a companion, not a duplicate.
Design items for the OpenSpec change (non-blocking).
meta-prompt.mdcurrently self-describes as a repo-local governance pack that "ships no-custom.mdcompanion" (thedeterminism.mdprecedent). Acceptance criterion 1'salwaysDeployedPacksentry plusmeta-prompt-custom.mdtemplate reverses both stances; the change should revise the pack's self-description in the same increment so deployed copies do not carry stale posture statements..uf/model-matrix.yamlbecomes team-owned config that diverges from the template by design, while acceptance criterion 2 specifies tool-owned refresh semantics. The change needs an explicit re-init clobber-vs-preserve decision for team-edited matrices, following the Added review agents surviveuf initin review-matrix.yaml but not reviewer-capabilities.yaml #884/docs: reviewer-capabilities.yaml survives plain uf init re-runs (reviewer-capabilities-init-survival) #886 precedent.model-matrix-classifier.mdsubagent file and the meta-prompt pack to this slice, but the acceptance criteria cover only the pack. Include the classifier deployment in scope or record an explicit re-deferral with new tracking.uf/model-matrix.yamlas tool-owned (isToolOwned,scaffold.go~line 685) anduf/schemas/is tool-owned via prefix (~line 644); the ~730–758 block isisDivisorAsset, a different filter. The remaining registration work is thealwaysDeployedPacksentry plus the pack mirrors and custom template.Next steps. Route this through its own OpenSpec change with this issue as the originating issue, and address the four design items above in the proposal.
This triage was performed by the Divisor review panel.
docs(model-matrix): propose model-matrix-scaffold-deployment change (…
docs(model-matrix): revise meta-prompt pack self-description for depl…
docs(model-matrix): capture review-council retrospective learnings