Repository navigation
refactor(doctor): compose system diagnostics from one host platform - #11096
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Low impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (1) · Last reviewed commit: "refactor(doctor): compose system diagnos..." · Reviewed by Greptile |
Summary
HostPlatform migration (W8),
src/doctorRuntime.ts.createSystemDoctorHostcomposes doctor from one host (HOST_PLATFORMby default) and passes its platform to the selected-registration read, provider-setting fold, unresolved-provider checks, Kuna inspection andsystemDoctorHost, instead of nine separateprocess.platformreads.Problem and expected behavior
Each step of system doctor composition read
process.platformon its own, andselectedProviderSettingsdefaulted to it, so the client layout, the environment-name fold and the provider checks had no single platform source. Expected: composition names the host once and threads it.Change and scope
createSystemDoctorHost(environment, signal?, host = HOST_PLATFORM); it passesplatformandarchitecturetosystemDoctorHost.selectedRegistrationEnvironmentandselectedProviderSettingstake a required platform.src/doctorRuntime.tsentry (9 reads) removed.Contract and boundary impact
src/platform/HostPlatform; consumer is system doctor composition.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
process.platform, and the type checker enforces the required parameters.Validation performed
npx tsc --noEmit -p .— passed.node scripts/verify/architecture-guards.mjs --shrink-baselines— passed; baseline lowered.npm run test:focused -- src/doctorRuntime.test.ts src/setupEnvironment.test.ts tests/boundary/providers/kuna/kunaDoctor.test.ts tests/boundary/cli/cliStartupImports.test.ts— 4 files passed (77 passed, 1 skipped).npm run check:fast— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.