Skip to content

qa run refusals do not identify the failing stage and the route note misreports the resolved route #374

Closed

Description

@barbatdev

Split from #368 (item 2 of 3, per the fleet review recommending a per-subsystem split).

Problem

cortex qa run refusals do not identify the failing stage, and the same invocation flips between error codes depending on an unrelated flag. With the route profile correctly configured (qa setup --provider openai-codex --model gpt-6-astra writes all 6 roles) and assets freshly installed, from the same directory with the same request file:

invocation result
qa run --role test-runner --request req.txt --catalog <abs>/catalog --backend pi actor_unavailable
same + --evidence evidence.json invalid_request
same + --profile qa-fleet (the profile id qa setup just wrote) invalid_request
qa run --role requirements-analyst ... actor_unavailable

All four exit in <1 s (no model call). The generic note — the default route provider is the policy placeholder "nan" — is printed in every case even though the profile routes to openai-codex/gpt-6-astra, so the note describes a state the profile already replaced. doctor independently reports qa_availability=model_unavailable for pi, with no stage, no probe output, and no differentiation from the actor_unavailable case.

Expected outcome

  • qa run refusals name the failing stage and the stage input: route resolution vs actor binding vs model probe vs evidence admission.
  • The note should not claim the default route provider when a profile route was resolved (or should name which route was used).
  • --profile qa-fleet should either be accepted (it is the id qa setup wrote) or refused with the valid profile ids and the reason.
  • doctor probe reporting distinguishes route resolution from actor binding from model probe.

Affected scope

cortex qa run stage diagnostics and cortex doctor probe reporting. Evidence schema documentation is tracked separately (see #368).

Refs #368, #324, #325, #336.

Activity

  1. added
    status:approved
    type:bug
    on Oct 23, 2026
  2. barbatdev commented on Oct 31, 2026

    @barbatdev
    ContributorAuthor

    Resolved on main at e19f02179f3484bfd9378677d791653dbfbbfd0e through #402, #403, #406, #407, #408 and #410. The profile argument and combined optional flags work together; refusals identify route/admission/probe/evidence scope, the generic note no longer falsely claims a placeholder route, profile refusals list safe valid ids, and doctor discloses its actual embedded/default-route scope and probe result.

    Acceptance evidence: TestQARunAcceptsTheDocumentedOptionalFlagsTogether, TestQARunNamesThePreflightRefusalStage, TestQARunProfileRefusalNamesTheSelectedProfile, TestQAReportNoteClaimsNoRoute, TestQARunModelProbeEscapesTheRoutedPair, TestDoctorNamesTheProbedRouteAndItsScope and TestQAAssetAvailabilityFromError pass. Independent final verification ran 19 named tests plus four package suites/vet without severe blockers; full Go/vet/race and 15 policy tests passed, followed by passing CI on every merged slice.

    Closing this diagnostic/profile-selection issue. Doctor does not discover a caller catalog or accept a profile selector; it explicitly reports that limitation instead of implying those routes were probed. Transient/persistent causal inference remains open in #329; provider transport and evidence-schema work remain separate. Umbrella: #401.

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

    status:approvedtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions