Repository navigation
Description
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):
sourceFor()(~L1326): an agent in neithermatrix.runs[mode]normatrix.advisor[mode]classifies assource: "host". The planner emits host entries withtier: null, model: null(reasonCode: "host-fallback").resolvePlanEntryRuntime()(~L2948): a null-model plan entry resolves totier/modelundefined.- Dispatch core (~L3059-3120): when
options.modelis undefined it silently defaultstier = "standard";profilePair(matrix, tier)then resolves a profile model (our per-developer.uf/review-matrix.override.yamlsets one). When the resolved model isnull, onlysource === "advisor"callsresolveHostModel(), recordingrequested_model: nullplusresolved_parent_model/variantfrom the parent session (added in fix: inherit parent model for advisor runs with empty profiles #693). No branch exists forsource === "host": with a profile model configured, the host run executes on it and is persisted withrequested_modelpopulated andresolved_parent_model: null(run persistence ~L3175-3191); with no profile model it instead fails early withtier_model_unavailable. - Finalizer
validateRunModel()(~L2216-2252) then rejects the persisted host run with four defects:- "host run must retain null requested model provenance" (
requested_modelis set) - "model provenance does not match its plan entry" (plan
model: nullvs runrequested_modelset) model_mismatch(expected model is derived fromresolved_parent_model, which is null)- "successful host run requires resolved parent model and variant"
- "host run must retain null requested model provenance" (
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 movingdivisor-gaze-testingintoadvisor.triage(replacingdivisor-testing),divisor-testingimmediately planned asinclude+host-fallbackon 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 alignvalidateRunModel's host invariants with what the dispatcher actually records. - Reconsider the silent
tier = "standard"default for host entries planned withtier: 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
jflowers commentedon Nov 2, 2026
Additional repro and downstream workaround from gaze.
divisor-gaze-testinginadvisor.triage(replacingdivisor-testing), so the gaze persona is advisor-sourced in all four modes, andgaze initsyncs the same end-state to consumer matrices.divisor-testingis 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.817969a8-85e0-475b-b630-69a672f747dd, host run82b49dc0-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.
fix(scaffold): swap divisor-gaze-testing into triage advisor list
docs(openspec): apply spec-review fixes for host-fallback-provenance (u…
chore(dewey): append pipeline learnings accumulated during the unboun…
fix(review-dispatch): resolve host model for host-source runs (unboun…
chore(dewey): append pipeline learnings accumulated during the #901 run
docs(openspec): propose host-fallback-provenance change (#901)
docs(dewey): capture issue-triage and proposal learnings for #901
docs(openspec): apply spec-review fixes for host-fallback-provenance (#…
fix(review-dispatch): resolve host model for host-source runs (unboun…
fix(scaffold): swap divisor-gaze-testing into triage advisor list
fix(scaffold): swap divisor-gaze-testing into triage advisor list
chore(opencode): refresh uf plugins to unbound-force 0.22.0