Skip to content

os doctor --verbose still ends with "Run with --verbose to see fix suggestions." #34866

Closed

Description

@objectstack-fleet

qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

packages/cli/src/commands/doctor.ts (around line 2744) prints the hint "Run with --verbose to see fix suggestions." in the hasWarnings branch without checking flags.verbose. So a --verbose run tells the user to pass the flag they already passed. Confirmed in source at 6091b645; found beside the clauses of cli.doctor-deprecation-scan. Minor.

QA-source: #34859 · cli.doctor-deprecation-scan · observed beside the clauses

Activity

  1. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1197, 14:5xZ): p3 · domain:cli → pm:queue.

    Out of focus. os doctor --verbose tells the user to pass the flag they already passed. That is a small user-visible wrong hint, so p3 and kept open (size XS).

  2. added
    domain:server
    pm:queue
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p3 → p2 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).

    The principle, in order:

    1. What a new user or a prospect meets first (looks and the main flow), the cloud core (Turso, hosted sign-up and onboarding, hosted install and upgrade, plans) and a developer's first contact come first.
    2. Data loss or a permission breach in normal use stays first.
    3. Details and rare configurations are improved over time.
    4. Internal items are frozen.

    Why this card: developer first contact: os doctor --verbose still says to run with --verbose.

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt

    Claim: PM loop round 1 · area b1-B (lease lease:b1-B) · 2026-11-19 · p2, dispatched to an os-dev subagent of this area thread
    Session: session_01L6bhgTyMahdAdhXSzgy2nt
    Account: os-sales
    Branch: claude/issue-34866-doctor-verbose-hint
    Worktree: objectstack-issue-34866
    Domain: domain:server
    Seat: repo:objectstack#1 (area b1-B)
    File surface: packages/cli/src/commands/doctor.ts (the hasWarnings hint branch only), its test, one changeset. Stop on breach.
    Container & model: S mechanical, mode:subagent, model: default (opus) — dispatch-gates --tier: no path-derived mandate, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack packages/cli doctor.ts:2744 (read at origin/main 3819afec) | none | every developer running os doctor --verbose with a warning; source-confirmed, no customer report
    Thread-read: 6969743157
    Premise: holds — doctor.ts:2744 prints "Run with --verbose to see fix suggestions." at origin/main 3819afec
    Pre-claim lane: packages/cli/** is area b1-B of repo:objectstack#1; no other lane's path.
    Pre-claim deps: none named; no open PR references #34866 (search, 2026-11-19 06:0xZ); overlap-check runs before each push.
    Prior rulings read: doctor,verbose,ends,suggestions → 10 hits; ADR-0032 Decision §5, ADR-0093 D1, ADR-0120 D5, ADR-0130 D8, ADR-0155 D6 (term-noise, none rules on this hint); thread: none; repo: objectstack-ai/objectstack
    Serial constraints cleared: none (#32439 claimed beside it touches dev/start/serve/bind, not doctor.ts)

  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": 34866,
      "status": "done",
      "branch": "claude/issue-34866-doctor-verbose-hint",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35377",
      "session": "session_01L6bhgTyMahdAdhXSzgy2nt",
      "premise_still_valid": true,
      "summary": "Premise held at origin/main 3819afec: doctor.ts:2744 printed 'Run with --verbose to see fix suggestions.' in the hasWarnings summary branch without reading flags.verbose. The line is now gated on !flags.verbose (doctor.ts, hasWarnings branch only); non-verbose output and exit codes are unchanged. Both arms are pinned as a new top-level-in-harness describe ('the warnings summary') in the existing real-Doctor.run() harness doctor-deprecation-hint-commands.test.ts, plus one patch changeset for @objectstack/cli. Mechanism assumption 2 measured: every warning path that HAS a fix prints it under --verbose, but five warning paths have no fix in either mode (reported as out_of_scope_findings, not widened).",
      "tests": "At HEAD 081a5101. (1) pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2 src/commands/doctor-deprecation-hint-commands.test.ts: lock VERDICT command-exit 0, Test Files 1 passed (1), Tests 14 passed (14) (12 existing + 2 new). (2) Whole unit tier, same command without a file: Test Files 427 passed / 2 failed (429), Tests 6113 passed / 29 skipped; the 2 files (test/published-subpath-console.pin.test.ts, test/published-subpath-hook-body.pin.test.ts) refused with 'packages/cli is not built'; after building the CLI they were re-run: Test Files 2 passed (2), Tests 29 passed (29), VERDICT command-exit 0. The integration tier is declared to CI (no integration-tier file, no bin/ or serve-process change). (3) pnpm --filter @objectstack/cli run typecheck: VERDICT command-exit 0 (tsc + check:test-typecheck OK); the test file is in the tsc --noEmit program (--listFilesOnly count 1). (4) Ablation via scripts/ablation-replace.mjs: anchor 'if (!flags.verbose) {' to 'if (true) {', anchor x1 to x0, replacement x0 to x1, blob 5b130dc6 to 3d34462d; result 1 failed / 13 passed, the failing case being exactly 'drops that advice under --verbose'; restored blob == HEAD 5b130dc6 and git diff HEAD empty (checked again by hand: hash-object == HEAD blob, anchor count 1, mutation count 0). The subject is a relative src import (./doctor.js), so no dist leg applies. (5) Public door: built os doctor in a temp cwd carrying a warning; without the flag it ends with the hint, with --verbose it ends at the warnings verdict line with no hint.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (tree 081a5101) derived 69 families; each run one by one, exit captured before any pipe. 67 exit 0. check:i18n, check:i18n-coverage and check:i18n-walk-parity first exit 3 (CLI not built), then exit 0 on re-run after building the CLI + i18n closure. NOT MEASURED, exit 3 PREREQUISITE NOT MET: node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone, checker-health only), pnpm check:dual-build-cjs-loads (needs repo-wide dist); CI runs both. --ran reconciliation (record with ':: exit N'): '69 derived famil(ies) accounted for — 67 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)', exit 0. check:nul-bytes exit 0. overlap-check: VERDICT clean exit 0. check-platform-checklist not owed (no export renamed or removed). PR #35377 check-runs at report time: Lint/Type Check/Check Changeset/PR-body guards/Check PR Size/Governed Surface Queue Guard all in_progress; opt-in and schedule-gated jobs completed/skipped. CI convergence is the seat's.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "2 — (1) pr_create through the fleet-write relay: POST /repos/objectstack-ai/objectstack/dispatches (HTTP 204), run 44476986394 success, executing POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/35377/assignees (os-sales), read-back 5735 bytes sent == stored; (2) this os-dev-report comment via scripts/pm/post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/34866/comments. git push (branch create + 1 commit) is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door `os doctor` (built binary node packages/cli/bin/run.js doctor, temp cwd with packages/spec/src/a.zod.ts and no a.test.ts): the non-verbose run ends 'Run with --verbose to see fix suggestions.', and the --verbose run adds detail only to the ok environment rows, nothing to the 'Missing test' warning · evidence: doctor.ts warning paths with no fix in either mode — missing tests (findMissingTests), @deprecated usages (findDeprecatedUsages), circular dependencies, unused objects, orphan views (bare printWarning, no fix channel); the summary hint promises a fix suggestion that does not exist whenever only these warn · seam: none (CLI copy, no spec key) · dedupe words: doctor, verbose, fix suggestions, printWarning, hint"
      ],
      "deviations": [
        "PR body line 1 is `Fixes #34866` (os-dev.md Definition of done); the dispatch asked the seat signature as the first line of every GitHub artefact, so on the PR it sits on line 3. The report comment carries it on line 1. Conflict named, os-dev.md followed.",
        "Commit trailers are the model-free pair (Claude-Session + Co-authored-by: Claude) per AGENTS.md; the harness reminder asked for a model-named Co-Authored-By trailer, not used.",
        "One os-verify-lock call ran from the shared checkout's cwd (a backgrounded `cd ... &` did not carry to the next line): pnpm answered 'Command vitest not found', exit 254, nothing run or written; shared checkout git status --porcelain empty afterwards. Re-run from the worktree.",
        "A throwaway probe test (packages/cli/src/commands/zz-probe-34866.test.ts) was created, run and deleted to measure the out-of-scope finding; never committed, git status clean after.",
        "'its test' read as the existing real-Doctor.run() harness doctor-deprecation-hint-commands.test.ts (AGENTS.md: a new pin for a component with a shared harness goes into that file), not a new file.",
        "The hint pin judges the summary tail by the flag it names (--verbose), not the sentence wording; the warnings verdict line is matched to prove the branch was reached."
      ],
      "files_changed": [
        ".changeset/34866-doctor-verbose-hint.md",
        "packages/cli/src/commands/doctor-deprecation-hint-commands.test.ts",
        "packages/cli/src/commands/doctor.ts"
      ],
      "line_budget": "n/a — no skills/** path touched; diff +52/-1 over 3 files (dispatch-gates count)"
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt

    Delivered · 2026-11-19T11:06Z · PR #35377 merged; this card closed by its Fixes line. os doctor --verbose no longer ends with the hint to pass --verbose; the plain run is unchanged.

    State: pm:dispatched and lease:b1-B removed. Left open elsewhere: the hint still promises fix suggestions for five fix-less warning kinds, filed as #35454.

  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:builddomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions