Repository navigation
fix(doctor): reject conflicting lint check selection - #117495
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 12:21 PM ET / 16:21 UTC. ClawSweeper reviewWhat this changesThe PR makes Merge readinessThis focused bug fix is still necessary: current main can silently report success when the same valid Doctor health-check ID is supplied through both Priority: P2 Review scores
Verification
How this fits togetherDoctor lint accepts repeatable CLI selectors, loads registered core and plugin health checks, filters the runnable checks, and returns findings that drive console/JSON output and process exit status. This patch validates contradictory selector input before the empty filtered result can be mistaken for a healthy run. flowchart TD
A[Doctor lint CLI options] --> B[Only and skip selectors]
C[Registered health checks] --> D[Select runnable checks]
B --> D
B --> E[Validate selector conflicts]
E --> F[Doctor findings]
D --> G[Run selected checks]
G --> F
F --> H[JSON output and exit code]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +6, Tests +86. Total +92 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Merge the canonical selector validation and focused regression coverage while retaining forward-compatible no-op behavior for unknown Do we have a high-confidence way to reproduce the issue? Yes. Current main deterministically filters a valid Is this the best way to solve the issue? Yes. Validation in AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4cbbccd0a0d2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (27 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
What Problem This Solves
openclaw doctor --lint --only <registered-check> --skip <registered-check>silently reported success despite running zero requested checks. The same valid health-check ID was selected and excluded, producing an empty finding set,ok: true, and exit status 0.Why This Change Was Made
The canonical Doctor lint selection owner already detects unknown
--onlyIDs but previously did not diagnose contradictory valid selectors. Reuse that samecore/doctor/lint-selectionstructured error and the already-established exit status 1; preserve forward-compatible unknown--skipIDs, plugin-owned checks, array/Set selectors, and all existing public contracts.User Impact
Contradictory lint selectors now fail visibly and actionably instead of falsely claiming a clean Doctor report. No database, repair, configuration, plugin SDK, credential, network, or public CLI surface changes.
Evidence
Authentic regression-first execution against the actual registered health-check owner failed 2 new cases while 10 existing cases passed before the production change. Frozen owner tests pass 12/12; untouched existing Doctor CLI consumer tests pass 13/13, including registered plugin checks and existing unknown-selector exit behavior.
Real production
runDoctorLintCli, 56 actual registered core checks, selecting and skipping actualcore/doctor/final-config-validation:Before:
After:
Configured type-aware lint, targeted formatter, and whitespace checks pass. The configured lint used documented
OPENCLAW_OXLINT_SKIP_PREPARE=1because unrelated baseline SDK declaration preparation fails atpackages/terminal-core/src/ansi.ts:194; configured type-aware lint itself passed. More than seven independent hostile source reviews were clean. A fresh genuinegpt-5.6-solhigh-reasoning autoreview through P3 returned zero findings and 0.99 confidence; actual TruffleHog 3.96.0 secret scanning passed. Frozen commit88dc40eb2672848a8a849a7a3799343c9370b0f2, treefd81fb1ea8e0a3e02160b29f14eef1ffb3e927e9, sole parent7bcbe743bd421064010d6abba1a1859962e19ec2, one root cause, exactly two existing files, production net +6 lines.