Skip to content

review-dispatch: host-fallback runs are dispatchable but unfinalizable (host-source model provenance never resolved) #901

Closed

Description

@jflowers

review-dispatch: host-fallback runs are dispatchable but unfinalizable (host-source model provenance never resolved)

Summary

consolidate_dispatch with provenance (the finalization step) deterministically fails validation whenever a dispatch panel includes a host-fallback run — an agent planned with source: "host" because it appears in neither runs[<mode>] nor advisor[<mode>] in .uf/review-matrix.yaml. The dispatcher records advisor-shaped model provenance for host runs, while the finalizer enforces host-specific provenance invariants, so every such run is rejected with four validation defects. The dispatch itself succeeds — only finalization fails — forcing fail-closed INCONCLUSIVE outcomes despite successful native verdicts.

Real-world impact

During a bulk /uf.triage-issue run over 12 issues in unbound-force/gaze (2026-11-01), 9 of 12 dispatches could not be finalized for exactly this reason. The gaze repo had registered divisor-gaze-testing in advisor.code/spec/feedback but not advisor.triage, so triage-mode planning classified it as source: host. All 9 failed finalization 3x (bounded retries per the command contract) and fail-closed INCONCLUSIVE; every native verdict was VALID. The 3 dispatches whose planners scope-skipped that agent finalized cleanly.

Failing correlation IDs (run files available on request):

  • issue-244: 136b19a4-d6d5-4150-86d4-dbc85e20f0bc
  • issue-249: 13ae6e33-a361-42eb-9f29-f9ff9aa1d190
  • issue-263: 7934ca41-5362-4196-a7be-a8e6aa8be6eb
  • issue-266: a318a984-f91d-487a-b548-3429adcb2923
  • issue-267: ac1aa2c4-ff20-4d0d-bae9-ba4916b87260
  • issue-271: 8eb62940-591e-44e9-813a-0fb44decbecf
  • issue-282: 32d6519b-7be7-4b21-abbc-401d0d724770
  • issue-283: 640fd3fd-30f8-438f-95d6-699c67051b4e
  • issue-297: ae1f97bb-ffaa-4ebe-9ac9-19ddaa40757c

Root cause

Line numbers below are from the plugin copy scaffolded into unbound-force/gaze (.opencode/plugins/review-dispatch/index.ts):

  1. sourceFor() (~L1326): an agent in neither matrix.runs[mode] nor matrix.advisor[mode] classifies as source: "host". The planner emits host entries with tier: null, model: null (reasonCode: "host-fallback").
  2. resolvePlanEntryRuntime() (~L2948): a null-model plan entry resolves to tier/model undefined.
  3. Dispatch core (~L3059-3120): when options.model is undefined it silently defaults tier = "standard"; profilePair(matrix, tier) then resolves a profile model (our per-developer .uf/review-matrix.override.yaml sets one). When the resolved model is null, only source === "advisor" calls resolveHostModel(), recording requested_model: null plus resolved_parent_model/variant from the parent session (added in fix: inherit parent model for advisor runs with empty profiles #693). No branch exists for source === "host": with a profile model configured, the host run executes on it and is persisted with requested_model populated and resolved_parent_model: null (run persistence ~L3175-3191); with no profile model it instead fails early with tier_model_unavailable.
  4. Finalizer validateRunModel() (~L2216-2252) then rejects the persisted host run with four defects:
    • "host run must retain null requested model provenance" (requested_model is set)
    • "model provenance does not match its plan entry" (plan model: null vs run requested_model set)
    • model_mismatch (expected model is derived from resolved_parent_model, which is null)
    • "successful host run requires resolved parent model and variant"

Net effect: any host-fallback run is dispatchable but unfinalizable. uf-shipped divisor personas avoid it only because they are listed in every mode's advisor lists.

Two aggravating observations:

  • The planner includes capability-relevant discovered agents even when they are not advisor-listed, so swapping an agent out of an advisor list merely relocates the exposure to the swapped-out agent. Empirically confirmed in gaze via plan_review_dispatch: after moving divisor-gaze-testing into advisor.triage (replacing divisor-testing), divisor-testing immediately planned as include + host-fallback on a test-scope issue.
  • A review-council session on another gaze change worked around this by manually patching the persisted run files in the dispatch store — evidence of impact, not a sanctioned fix.

Why existing recovery doesn't apply

redispatch_failed_runs (DR-FR-002) only re-runs failed runs; host-fallback runs succeed. The rejection happens only at finalization, so there is no sanctioned recovery path — commands fail closed (INCONCLUSIVE) after bounded retries.

Suggested fix directions

  • In the dispatch core, handle source === "host" symmetrically with advisor (fix: inherit parent model for advisor runs with empty profiles #693): when the resolved profile model is null, resolve and record the parent/host model; when a profile model is used, record the provenance shape the finalizer expects for host runs — or align validateRunModel's host invariants with what the dispatcher actually records.
  • Reconsider the silent tier = "standard" default for host entries planned with tier: null.

Workaround

List every capability-relevant persona in the mode's advisor list (done in gaze for divisor-gaze-testing/triage). Full local immunity requires every review persona to be advisor-listed in every mode, which is fragile — another reason the plugin-level fix matters.

Activity

  1. jflowers commented on Nov 2, 2026

    @jflowers
    ContributorAuthor

    Additional repro and downstream workaround from gaze.

    • Workaround PR: fix(scaffold): swap divisor-gaze-testing into triage advisor list gaze#312 lists divisor-gaze-testing in advisor.triage (replacing divisor-testing), so the gaze persona is advisor-sourced in all four modes, and gaze init syncs the same end-state to consumer matrices.
    • Trade-off: the generic divisor-testing is now non-advisor in every mode of the gaze matrix. The planner still includes it as a host-fallback run whenever its scope matches, so the defect moves to that agent rather than going away.
    • Another repro, this time in code mode: review-council dispatch 817969a8-85e0-475b-b630-69a672f747dd, host run 82b49dc0-e7e1-4d94-a6b7-3cb582ad1e69 (divisor-testing). The run succeeded and the native verdict was APPROVE WITH ADVISORIES 7/7. All 3 finalization attempts were rejected with the same 4 host-run provenance defects described above.

    Once host-source model resolution lands here, gaze can revisit whether both personas should stay listed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions