Repository navigation
Description
Summary
When the review matrix has no models configured for a profile (the shipped v3 scaffold's empty profiles), advisor-selected runs resolve model: null and silently inherit the host session model (#693). dispatch_agent_run records resolved_parent_model but resolved_parent_variant: null when the inherited
parent model exposes no variant. The finalizer's validateRunModel then rejects every such successful run, so consolidate_dispatch cannot persist the review-dispatch artifact and the operation fails closed as INCONCLUSIVE — even though the review itself completed cleanly.
Evidence
Repo: unbound-force/replicator (/uf.triage-issue 156).
Matrix (.uf/review-matrix.yaml):
version: 3
profiles:
lightweight: {}
standard: {}
heavy: {}plan_review_dispatch returned status: ready, errors: [], with included entries at model: null (e.g. divisor-adversary tier heavy, divisor-sre tier lightweight). dispatch_review_runs then returned ok — 5 completed, 0
failed, 4 skipped. All five runs succeeded with:
- source: "advisor", requested_model: null, provider: null, model_id: null, variant: null
- resolved_parent_variant: null
consolidate_dispatch with provenance then failed all three permitted attempts identically:
successful host-resolved advisor run 093d9ba2-8fe1-428c-8e37-94ea122aaa33 requires resolved parent model and variant
successful host-resolved advisor run 62f1f39b-aed1-4360-9ec4-efc90ea7c873 requires resolved parent model and variant
successful host-resolved advisor run 6fd0d8fb-ae93-4eb7-adf3-f937d82c215b requires resolved parent model and variant
successful host-resolved advisor run 81d85cc5-a465-4d39-8a8b-724ebc55ce98 requires resolved parent model and variant
successful host-resolved advisor run ea395bc6-dbc3-4ea8-a0ad-744854721a74 requires resolved parent model and variant
Response: status: failed, artifact_path: null, review_verdict: null, calculated_assessment: null. No review-dispatch artifact or canonical review-verdict v2 decision is written.
Root cause
.opencode/plugins/review-dispatch/index.ts:2226-2233:
} else if (run.source === "advisor" && run.requested_model === null) {
// Host-resolved advisor: profile had no model, so the parent session model was inherited.
if (run.provider !== null || run.model_id !== null || run.variant !== null) {
errors.push(`host-resolved advisor run ${run.run_id} must retain null requested model provenance`)
}
if (run.status === "success" && (run.resolved_parent_model === null || run.resolved_parent_variant === null)) {
errors.push(`successful host-resolved advisor run ${run.run_id} requires resolved parent model and variant`)
}
expectedModel = run.resolved_parent_model
}
The || run.resolved_parent_variant === null branch fires whenever the inherited parent model has no variant. For models without variants this is the normal case, not an inconsistent record, so a valid successful run cannot pass
validation. Because the same stored run records are re-validated each time, the bounded mechanical retry can never succeed.
Expected behaviour
A successful host-inherited advisor run whose parent model has no variant should finalise. Either:
- record a concrete resolved_parent_variant at dispatch time (e.g. synthesise a default/absent-variant sentinel when the parent model exposes none), or
- treat resolved_parent_variant as optional provenance in validateRunModel and require only resolved_parent_model for a host-resolved success.
The chosen fix must not weaken the other provenance checks (null requested-model
retention, expectedModel equality, mismatch detection).
Related
plan_review_dispatchemitsreadyruns for matrix profiles with no configured model; run-rejection causes still don't reach the caller on the all-failed summary #1009 (open) — same underlying configuration gap: empty matrix profiles cause silent host-model inheritance.plan_review_dispatchemitsreadyruns for matrix profiles with no configured model; run-rejection causes still don't reach the caller on the all-failed summary #1009 covers the planner not signalling this and the all-failed summary; this issue covers the finaliser rejecting the resulting successful host-inherited runs.- dispatch_review_runs: error summary omits the failure message, so agents can't see why a dispatch failed #946 (closed) — different path; concerns the dispatch_review_runs pre-validation summary, not finalisation.
Acceptance criteria
- With an empty v3 profiles matrix and a parent model that has no variant, a completed dispatch finalises and writes the review-dispatch artifact.
- Runs with a real requested model still pass the existing provenance checks.
- A regression test covers a successful host-resolved advisor run whose resolved_parent_variant is null.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
docs(changelog): record unbound-force#1010 verification and closure