Skip to content

os doctor ends with "Run with --verbose to see fix suggestions." when only warnings that have no fix suggestion fired #35454

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt

Filing gate: ① product defect (user-visible misleading copy) · Source: fleet · out-of-scope finding of PR #35377 (card #34866), os-dev-report 7002333905; L1 ACCEPT 7005940659 named it a follow-up card owed. ⛔ Not a claim.

Grade: area:build · Bug · Cosmetic · builders, often · measured once at the public door os doctor (built binary) → p2 (Cosmetic × builders, often).

Business reason

A developer runs os doctor, sees warnings, and is told to re-run with --verbose "to see fix suggestions". For five kinds of warning there is no fix suggestion in either mode, so the re-run adds nothing and the developer is left without a next step on their first contact with the CLI.

What happens

packages/cli/src/commands/doctor.ts: the hasWarnings summary prints the hint whenever any warning fired and --verbose is off (after PR #35377). Five warning paths print a bare printWarning with no fix channel in either mode: missing tests (findMissingTests), @deprecated usages (findDeprecatedUsages), circular dependencies, unused objects, orphan views.

reach: public door os doctor — built binary (node packages/cli/bin/run.js doctor) in a temp cwd carrying packages/spec/src/a.zod.ts with no a.test.ts: the plain run ends "Run with --verbose to see fix suggestions."; the --verbose run adds nothing to the "Missing test" warning (os-dev-report 7002333905).

Expected

The hint is printed only when at least one warning that fired has a fix suggestion to show under --verbose, or those five warnings gain a real fix line. Either way, the summary never promises a suggestion that --verbose does not print.

Done when

A pin with only a fix-less warning shows no hint; a pin with a fix-bearing warning keeps it.

Who acts: the area that owns packages/cli (area:build, CLI area).
Dedupe: repo:objectstack-ai/objectstack is:issue doctor "fix suggestions" → 2 hits (#34866, the parent card, fixed by PR #35377; #5382 closed, unrelated).

Activity

  1. added
    bug
    priority:p2
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx · pm:queue; rationale: area:build · Bug · Cosmetic (the --verbose hint promises fix suggestions that five warning kinds do not have) · builders, often (first contact with the CLI) · measured at the built os doctor → p2 as the filer graded.

  3. added
    domain:devx
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt

    Claim: PM loop · 2026-11-19 · p2, on the seat's 16:56Z order (CLI cards for this area), dispatched to an os-dev subagent of this area thread (slot freed by PR #35538 entering the merge queue)
    Area: b1-B
    Session: session_01L6bhgTyMahdAdhXSzgy2nt
    Account: os-sales
    Branch: claude/issue-35454-doctor-verbose-hint
    Worktree: objectstack-issue-35454
    Domain: domain:devx
    Seat: repo:objectstack#1 (area b1-B)
    File surface: packages/cli/src/commands/doctor.ts (the summary's --verbose hint and the bookkeeping that decides it), its tests, one changeset. Stop on breach.
    Container & model: S, mode:subagent, model: default (opus) — dispatch-gates --tier: no path-derived mandate, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack packages/cli/src/commands/doctor.ts:2742-2749 (read at origin/main 7eaa3f5d) | PR #35377 (card #34866) | a builder running os doctor whose warnings carry no fix suggestion; measured once at the built os doctor (os-dev-report 7002333905)
    Thread-read: 7006027998
    Premise: holds. At origin/main 7eaa3f5d, the summary prints "Run with --verbose to see fix suggestions." whenever hasWarnings is set and --verbose is off (doctor.ts:2742-2749). hasWarnings is also set by the bare printWarning paths (missing tests :2471, deprecations :2487, and the later extended checks), which have no fix channel in either mode.
    Route (the card allows two; this one is the smaller): print the hint only when at least one warning that fired has a fix suggestion that --verbose would show. The five fix-less warnings keep their text.
    Pre-claim lane: packages/cli/** is area b1-B of repo:objectstack#1.
    Pre-claim deps: none; no open PR references #35454 (search, 2026-11-19 17:2xZ); overlap-check runs before each push.
    Prior rulings read: check-prior-rulings --paths packages/cli/src/commands/doctor.ts → ① 5 ruling hit lines (#5387 no-flag cascade, #5673 loud NODE_ENV default, #5429 option A split, the binding-audit reason at :352); none rules on the summary hint; ② recent churn includes PR #35377 (the hint's --verbose condition); thread: triage 7006027998; repo: objectstack-ai/objectstack
    Serial constraints cleared: in-flight b1-B work is #35588 (packages/cli/src/utils/skills-install-state.ts), a different file; PR #35538 (objectql/spec) is in the merge queue

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt
    os-dev-report

    {
      "issue": 35454,
      "status": "done",
      "branch": "claude/issue-35454-doctor-verbose-hint",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35626",
      "session": "session_01L6bhgTyMahdAdhXSzgy2nt",
      "premise_still_valid": true,
      "summary": "os doctor now prints 'Run with --verbose to see fix suggestions.' only when --verbose is off AND at least one warning that fired carries a fix that only --verbose prints (new hasVerboseOnlyFix, tracked beside hasWarnings). Classified every warning path: fix-bearing = environment HealthCheckResult warning with a fix, dashboard-widget warning with a non-empty hint, config-load-failure finding with a fix, any --scan-deprecations hit; fix-less = missing tests, @deprecated usages, circular dependencies, unused objects, orphan views; fix already printed unasked = platform-protocol gap hint, isolated unique-scope prescription. Warning text, verdict lines and exit codes unchanged; no fix text added. Premise held at origin/main 7eaa3f5d (doctor.ts summary at :2742-2749).",
      "tests": "New case in packages/cli/src/commands/doctor-deprecation-hint-commands.test.ts describe('the warnings summary'): only a Missing test warning fires, the summary tail after the warnings verdict line does not name --verbose. RED at 86ec0951 (pin on unmodified doctor.ts): Tests 1 failed | 14 passed (15), expected 'Run with --verbose to see fix su...' not to contain '--verbose'. GREEN at 1dc43d70: Test Files 1 passed (1), Tests 15 passed (15); the two PR #35377 cases (hint without --verbose on a fix-bearing warning, none with --verbose) stay green. Ablation via scripts/ablation-replace.mjs: anchor 'if (!flags.verbose && hasVerboseOnlyFix) {' -> 'if (!flags.verbose) {', anchor 1->0, blob 975d2c65->ab86dda8, Tests 1 failed | 14 passed (only the new case), restore blob == HEAD 975d2c65, git diff HEAD empty; subject imported as relative source, no dist involved. At d559e09a: packages/cli typecheck (tsc + check:test-typecheck) && unit tier, one locked command, VERDICT command-exit 0, Test Files 431 passed (431), Tests 6163 passed (6163). Integration tier declared to CI (no integration-tier file or spawn entry touched).",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at d559e09a derived 69 families; each run with exit captured before any pipe: 67 exit 0; 2 exit 3 PREREQUISITE NOT MET (NOT MEASURED, repo-wide dist absent): pnpm check:dual-build-cjs-loads, pnpm check:i18n-coverage (app-showcase config imports unbuilt connector-slack dist). --ran: '69 derived famil(ies) accounted for — 67 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. overlap-check: VERDICT clean exit 0. CI check-runs on PR #35626: in_progress at report time (not awaited, per contract).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch claude/issue-35454-doctor-verbose-hint, not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/35626/assignees os-sales, fleet-write run 44588375723); os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/35454/comments via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — a dashboard-widget warning whose lint hint is the empty string prints a bare arrow line under --verbose (lint emits hint: '' on one path); observation only, not reproduced at the public door; recorded in PR Acceptance notes"
      ]
    }
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt

    Delivered · 2026-11-19T19:21Z · PR #35626 merged as f6b095a; this card closed by its Fixes line. A plain os doctor run now advises --verbose only when a warning carries a fix that only --verbose prints. Runs whose warnings have no fix (for example a missing test) no longer get the hint. The warnings, the verdict line and the exit codes are unchanged.

    State: pm:dispatched removed. Left open: none filed. The PR's acceptance notes record one observation, a bare arrow line under --verbose for a dashboard-widget hint that is the empty string, not reproduced at the public door.

  8. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions