Skip to content

finalize_review_dispatch rejects successful host-inherited advisor runs when the resolved parent model has no variant #1010

Closed

Description

@yvonnedevlinrh

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

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.

Activity

  1. added this to the release v0.22.0 milestone on Nov 13, 2026
  2. self-assigned this
    on Nov 15, 2026
  3. added a commit that references this issue on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions