Repository navigation
feat(cli): report doctor probe route and scope - #410
Conversation
Fleet review (qwen38)Lens: evidence. Slice 8/8 for #374: doctor's qaBackendLine now keeps the probe's full AvailabilityVerdict instead of discarding it, names the routed pair only when the verdict carried one (qaRouteIdentity, reusing the slice-7 sanitizeRouteIdentity so caller-owned tokens still cannot inject escapes), the scope note discloses qa_route_scope=embedded_default_route, and five inconclusive admission stages map to a new assets_unverifiable token instead of implying an observed digest mismatch. Evidence that is real and reproducible from the PR: TestDoctorNamesTheProbedRouteAndItsScope pins the pair for model_unavailable, pins its absence for a ready verdict, and pins the note text; qaAssetAvailabilityFromError gains five hand-built unit cases plus the preserved fail-closed and expected/found cases; the profile-refusal tests pin exact stderr envelopes including for a hostile profile id and no-launch on refusal. Remaining gaps are evidence gaps, not demonstrated defects: (a) nothing in the diff shows that installobserve's production checks actually emit the five new stage strings, so the mapping's real-world activation is unproven; (b) the operating.md rewrite claims relative qa setup roots are accepted with no code or test for that in this slice; (c) unknown stages still default to assets_mismatch, the same misreporting class this slice fixes for the five named stages. The delivery-head source-equivalence claim (identical tree vs reviewed commit ddd20d9) is asserted without a reproducible check, same as the prior slice. No blocking finding: every concern lacks a concrete failing input/path. Suggestion (1)
Question (2)
Verdict: ready to merge |
Post-merge QA (glm)Slice 8/8 of the #374 chain: doctor now names the routed pair its verdict answered about and discloses embedded-default-route scope; inconclusive admission checks map to assets_unverifiable instead of implying an unobserved digest mismatch. The diff matches the linked issue's doctor-related expectations (route naming, scope note, stage differentiation), the production probe now carries the whole AvailabilityVerdict, and the new tests pin both the naming and the no-invented-pair case. Consistent with #408's sanitizer. Nothing found that breaks what landed. Suggestion (1)
Verdict: clean |
Post-merge QA (deepseek)Lens: evidence + test design. This doctor slice does what #374 S7 asks: the probe seam now carries the whole qapi.AvailabilityVerdict, qaRouteIdentity names the routed pair only when the verdict actually carried one, and the inconclusive admission stages get their own assets_unverifiable token instead of the assets_mismatch claim that was never observed. The paths I traced (ready verdict, empty provider/model, foreign catalog with expected+found, untyped failure) all behave as documented. The weakest evidence is the mapping table itself: install_root_invalid is added to the new switch but no test pins it, and the comment above the function still describes the old two-token vocabulary. Suggestion (2)
Verdict: clean |
Linked Issue
Refs #374
Umbrella: #401
PR Type
type:featureFeaturetype:bugBug fixtype:docsDocumentationtype:refactorRefactoringtype:choreMaintenancetype:breaking-changeBreaking changeSummary
Report the actual doctor-probed route and explicitly disclose embedded/default-route scope. Map inconclusive admission checks to non-ready assets_unverifiable and preserve observed fingerprint expected/found evidence.
Changes
This is slice 8/8, 219 authored changed lines. Code, focused tests and applicable operating documentation stay together. Exact reviewed source commit:
ddd20d9e6569866b3ff0fd0d32d537cbb00df8b4. Delivery headd8acc6aace11a8b254a45246afb463cf2d0405echas the identical complete source tree.Focused Tests
Each cumulative prepared slice passed
go test ./internal/cli ./internal/qapi ./internal/qaroute ./internal/installobserve -count=1,go vet ./...and whitespace checks. Final candidate additionally passedgo test ./... -count=1,go vet ./...,go test -race ./...and all 15 repository Python policy tests on a byte-verified canonical clean snapshot. Independent source-agreement, typed-admission and final security verification passed with no severe blockers; final verification observed 19 named tests plus four package suites/vet.Native assessment of this exact slice: medium native tier, reviewDue=false (under_budget); no new native review started. Security-affecting slices retained explicit high-risk escalation and independent verification rather than treating assessment as proof. Parser's separately requested native review completed approved and acknowledged.
Runtime Harness
Disposable public CLI fixtures, no real provider calls. Rejections pin no launch/write effects, route identity and safe profile tokens. macOS /tmp is a symlink and intentionally refused: canonical snapshot cwd passed unchanged guards. No credentials changed.
Rollback
Revert this slice. Revert any dependent later slice first; no stored-data migration.
Chain Dependencies / Out of Scope
Sequential verified-main strategy: merged #408 -> [current slice 8/8] -> remaining slices. This PR targets main only after its predecessor lands, so its diff contains only this work unit. Do not close the umbrella from this intermediate slice.
Known acceptance limit: #329's literal transient/persistent causal distinction is NOT established by stage reporting and remains open. Defensive untyped branches, a currently unreachable non_nan_route mapping and a brittle wording assertion were disclosed as nonblocking verifier advisories, not silently fixed. Provider transport #345 and lifecycle #373 are out of scope.
Checklist
status:approved.type:*label is applied.