GeezerVison is showing github.com — id(world-doctor): PR #801 — a Warn finding exits nonzero claiming '6 problem(s)', and the ceiling/profile checks are dead from the CLI (inputs hardcoded None) · Issue #816 · developing-today/code
id(world-doctor): PR #801 — a Warn finding exits nonzero claiming '6 problem(s)', and the ceiling/profile checks are dead from the CLI (inputs hardcoded None) #816Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label) DescriptionProblem
PR #801's new id world doctor (F12.16, tracking issue #559) does not behave the way its own severity model and PR description promise, in two independent ways:
1. A Warn finding exits nonzero, and the error counts every check as a problem
pkgs/id/src/world_doctor.rs:24 — Severity::Warn is documented as "Something is off but does not stop a world from running."
pkgs/id/src/world_doctor.rs:53-57 — DoctorReport::healthy() is all(|f| f.severity == Severity::Ok), so a single Warn makes the whole report "unhealthy".
pkgs/id/src/commands/world.rs:426-430 (branch id/phase-12) — the CLI bails whenever !report.healthy(), with bail!("world doctor found {} problem(s)", report.findings.len()). findings.len() is the total number of checks (always 6), not the number of non-Ok findings.
So the one Warn path that exists today (toolchain: a configured Roc binary that exists but differs from / is not the pinned nightly, world_doctor.rs check_toolchain) makes id world doctor exit nonzero while claiming "found 6 problem(s)" — even when the other five checks are Ok and nothing blocks a world. The PR body says the command "exits nonzero on failure"; Warn is not Fail.
2. The ceiling and profile checks can never fire from the CLI
pkgs/id/src/commands/world.rs:413-422 — the Doctor handler constructs DoctorInputs { caps_ceiling: None, profile: None, .. } unconditionally. There is no flag, env var, or config source that supplies either value.
check_ceiling with None always returns Ok ("no capability ceiling (whole catalog)") and check_profile with None always returns Ok ("no world execution profile (server defaults)").
Both checks are unit-tested in isolation, but through the only user-facing entry point they are dead: a world whose actual ceiling contains * or an unknown name, or whose profile has a zero bound, still gets ok ceiling / ok profile from id world doctor. The PR body advertises doctor as checking "the capability ceiling, the execution profile" — from the CLI it checks neither.
Evidence
Acceptance
- A report whose worst severity is Warn exits 0 (or the severity model / PR description is changed so Warn is explicitly a failure — pick one and make code, docs, and tests agree).
- The failure message counts only non-Ok findings (e.g. "found 1 problem(s)"), not
findings.len().
- A test drives the CLI-level report path (not just
check_* in isolation) with a Warn-only report and asserts the exit behaviour.
id world doctor has a real source for the ceiling and profile it claims to check (flags, env, a live-world query, or local config), OR the two checks are removed from the CLI report and the docs stop claiming them.
- A test shows a bad ceiling / zero-bound profile actually producing a Fail finding through the wired path.
Activitydeveloping-today-fleet commented on Nov 24, 2026
AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):
The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence. added kind/bugSomething isn't working (prefixed form of the classic bug label) app/idPackage/app: id (pkgs/ or apps/ in this repo) on Nov 25, 2026
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label) DevelopmentNo branches or pull requestsIssue actions
|