Skip to content

plan_review_dispatch emits ready runs for matrix profiles with no configured model; run-rejection causes still don't reach the caller on the all-failed summary #1009

Closed

Description

@yvonnedevlinrh

Summary

Two closely-related gaps remain after #946/#949:

  1. Planner does not validate tier resolvability. In plan_review_dispatch, when the advisor/always-selected profile has no model configured (e.g. the shipped v3 matrix scaffold's empty profiles), baseRuns → profilePair resolves model: null and the plan emits an advisor-run include-entry anyway, with status: ready and no warning or advisory. The execution contract is that such runs silently inherit the host session model (fix: inherit parent model for advisor runs with empty profiles #693) — but the plan itself gives the caller no signal that this is happening, and the dispatch-advisor skill contract ("malformed matrix... returns INCONCLUSIVE") is not honoured for the unresolvable-profile case. We observed this live: plan ready → aggregate dispatch collapsed to a bare error with every child run rejected, and nothing in the plan explained the implicit host-model dependency.

  2. All-runs-failed summary still hides causes. dispatchSummaryLine (PR fix(review-dispatch): durable lessons, artifact-sourced consumers, error summary #949, good fix) appends result.message — but on the runsFailed > 0 && runsCompleted === 0 path the aggregate sets no message, so the visible line ends with — error: no failure message reported while the actual causes (run rejected: <reason>, e.g. tier_model_unavailable: profile "heavy" has no model configured in the review matrix, host_model_unavailable) remain in metadata-only warnings. (Mitigant: run files do exist on this path, so run-level causes are recoverable via dispatch_status/consolidate_dispatch with the correlation id — unlike the pre-validation path dispatch_review_runs: error summary omits the failure message, so agents can't see why a dispatch failed #946 fixed. The visible summary is still the only channel a retry loop sees, so a blind identical-input retry is still what happens in practice.)

Repro for (1)

  • Repo with uf v0.21.0-scaffolded .uf/review-matrix.yaml (version: 3, profiles: {lightweight|standard|heavy: {}} — no models) and no per-developer override.
  • plan_review_dispatch (code mode, no issue) → entries like {agent: divisor-adversary, decision: include, source: advisor, tier: heavy, model: null}, status: ready, errors: [] — no file in the plan connotes silent host-inheritance.
  • Verify (2) by dispatching with a source: explicit entry on an unconfigured tier: dispatch_agent_run alone surfaces tier_model_unavailable: profile "heavy" has no model configured in the review matrix; through the aggregate, that cause appears only in warnings, and the summary reads — error: no failure message reported.

Expected behaviour

  • plan_review_dispatch: when an include-entry resolves to a profile with no configured model, either fail closed (INCONCLUSIVE) per the dispatch-advisor contract, or emit a non-truncating plan warning/advisory naming the tier and the host-model inheritance fallback.
  • dispatch_summaryLine (or the result construction): when runs_failed > 0 and runs_completed === 0, fold the warnings entries (at least the first, bounded) into the visible summary instead of the no failure message reported fallback.

Related

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions