Repository navigation
fix(doctor): separate platform-incompatible skills from missing requirements - #89260
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 15, 2026, 6:20 AM ET / 10:20 UTC. Summary PR surface: Source +26, Tests +82. Total +108 across 8 files. Reproducibility: yes. Source inspection shows unsupported OS requirements populate Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this doctor-side classification fix after normal maintainer and CI review; broader Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows unsupported OS requirements populate Is this the best way to solve the issue? Yes. Deriving AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0314819f918a. Label changesLabel justifications:
Evidence reviewedPR surface: Source +26, Tests +82. Total +108 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Nice cleanup. One small thing I'd still like to lock down: could we add a focused Right now the data-path test covers |
ab5b84a to
27920b3
Compare
|
@clawsweeper re-review Addressed both rank-up moves:
Verified by driving the production functions on Linux: a macOS-only skill resolves to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
27920b3 to
5f4c3c7
Compare
5f4c3c7 to
b984f1e
Compare
455ff07 to
477f18a
Compare
477f18a to
455ff07
Compare
|
@byungskers thanks for the careful review — agreed the user-facing summary formatting is the most regression-prone part. I added a focused test suite (
So the rollup-string surface is now covered directly. CI is green on the current head. |
|
Hi @sallyom — I see you're in the skills area (just merged #92894 on managed skill paths). This fix is on the skills surface too: |
vincentkoc
left a comment
There was a problem hiding this comment.
Reviewed live state, diff, and checks. Platform-incompatible skills are separated from genuinely missing requirements with focused doctor/status coverage; checks are clean.
|
Thanks so much for the review and merge here, @vincentkoc 🙏 And thanks @byungskers for the earlier nudge on the rollup count coverage — glad the platform-incompatible vs missing-requirement distinction is in. 🦞 |
Fixes #89232
Summary
openclaw doctorreported skills with a declared OS requirement that doesn't match the current platform (e.g. macOS-onlyapple-notes,imsg,homebrewon Linux/Windows) under the same "Missing requirements" count as genuinely-broken installs, anddoctor --fixwould prompt to disable them. Those skills aren't broken — they're inapplicable by design on this OS — and the noise hides real issues.This derives a
platformIncompatibleflag from the shared requirement evaluator'smissing.os(which already accounts for remote macOS node eligibility, not just localprocess.platform) and updates doctor so platform-mismatched skills are:excluded from the "Missing requirements" count and surfaced as a single
Incompatible (platform mismatch, auto-skipped): Nline;excluded from
doctor --fix's disable target, so it no longer prompts to disable inapplicable-but-not-broken skills.src/skills/discovery/status.ts— exposeplatformIncompatiblefrom the shared evaluator'smissing.os(incl. remote macOS eligibility)src/commands/doctor-workspace-status.ts— drop platform-incompatible from "Missing requirements", add single rollup linesrc/commands/doctor-skills-core.ts— exclude platform-incompatible fromcollectUnavailableAgentSkills(thedoctor --fixdisable target)Real behavior proof
Behavior addressed: A skill whose declared OS requirement excludes this host (and that no remote node can satisfy) is no longer counted as a "missing requirement" nor offered for disable by
doctor --fix; it is reported once under an "Incompatible (platform mismatch)" rollup, so genuinely-broken installs stay visible. Skills satisfiable via a remote macOS node are not flagged, because the flag follows the shared evaluator'smissing.os.Real environment tested: Linux x86_64, Node.js v22, HEAD
455ff07c7bde7b4512055682ba468a03048f2535based onorigin/main489efc8f5eb15066f007f820ea71398357ad08e8. Production functionsbuildWorkspaceSkillStatusandcollectUnavailableAgentSkillsdriven directly vianode --import tsx, plus the Vitest suites.Exact steps or command run after this patch:
Evidence after fix:
Observed result after fix: The macOS-only skill on Linux resolves to
platformIncompatible=true(via the shared evaluator'smissing.os), drops out of both the doctor "Missing requirements" count (1 → 0) and thedoctor --fixdisable target (collectUnavailableAgentSkills→[]), and appears once under the "Incompatible (platform mismatch)" rollup. A portable skill staysfalse.tsgo:corepasses.What was not tested: A live full
openclaw doctor/doctor --fixrun on Windows with the real ClawHub bundle (the reporter's environment), and an actual reachable remote macOS node; the platform-mismatch + remote-eligibility branch is exercised on Linux against macOS-only skills via the production status builder, the doctor disable collector, and the unit suites — the same code path.