Skip to content

fix(cli): fail doctor when required checks are missing - #126

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/122-doctor-exit-status
Sep 7, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
fix/122-doctor-exit-status

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Closes #122

pickforge-lab doctor now exits 1 whenever its report has ok: false, in text and JSON modes. Warnings alone exit 0; failed --fix execution still exits 1 even when required checks pass. Reports describe the pre-repair state. Help, README, INSTALL, and draft release notes document this contract.

Tests pin ok, missing-required, warn-only, and fix-failure exit codes in both modes. Existing repair tests now expect 1 when required checks remain missing in the report.

Validated: bun install --frozen-lockfile, bun run typecheck, bun run lint, bun run test (1475 passed, 4 skipped), bun run build, complexity-gate check --changed, and git diff --check. Independent final review approved; its release-note request is addressed.

Inspected candidate-smoke.sh and CI callers: they invoke the unchanged Rust pickforge doctor, not pickforge-lab doctor, so no tolerance changes are needed. Full candidate artifact smoke was not run. No Rust changes.

@ElbertePlinio
ElbertePlinio merged commit 637ff4d into main Sep 7, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/122-doctor-exit-status branch September 7, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(lab): clarify pickforge-lab doctor exit status when required checks are missing

1 participant