Repository navigation
fix: show OS-incompatible always-on skills as unavailable - #123731
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 14, 2026, 12:38 PM ET / 16:38 UTC. ClawSweeper reviewWhat this changesThe PR changes skills and hooks status reporting so Merge readinessKeep open: the prior P2 OS-alias parity finding remains. The branch preserves OS incompatibility in status, but a skill or hook declaring Priority: P2 Review scores
Verification
How this fits togetherSkill and hook metadata is evaluated both when OpenClaw loads entries and when it reports availability in commands and diagnostics. Status results should describe the same platform eligibility that the skills and hooks loaders enforce. flowchart LR
A[Skill or hook metadata] --> B[Platform compatibility]
A --> C[Runtime requirements]
B --> D[Eligibility decision]
C --> D
D --> E[Status and diagnostics]
D --> F[Skill and hook loading]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +61, Docs +4. Total +63 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use one canonical OS compatibility matcher for status and runtime loading, then add skill and hook coverage for local and remote Do we have a high-confidence way to reproduce the issue? Yes, from source: evaluate an always-on Is this the best way to solve the issue? No. Preserving OS as a hard boundary is the right direction, but the fix is incomplete until status and both runtime loader callers use the same platform matcher. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ffd42dd8a390. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
7d4ca5c to
3a8a2d7
Compare
|
Fixed: Skill and hook status now preserve OS incompatibility when With thanks to @shakkernerd. |
Skill and hook status now preserve OS incompatibility when `always` bypasses runtime requirements, matching existing loader behavior and clarified documentation. Refs openclaw#122271 and openclaw#122331.
Related: #122271
Follow-up to the rejected approach in #122331
What Problem This Solves
Skill and hook status evaluation disagreed with actual runtime loading when metadata combined
always: truewith an incompatibleosrestriction.The runtime loader correctly treats
osas a hard compatibility boundary and excludes the entry. However, status evaluation cleared the missing OS requirement and reported the same entry as eligible. The documentation also incorrectly describedalwaysas bypassing every gate.This could make
openclaw skillsoutput, onboarding, doctor checks, and hook status claim that an entry was available when the runtime would not load it.Why This Change Was Made
Keep the established runtime behavior unchanged:
osdetermines whether the local host or a connected remote runtime can support the entry.alwaysbypassesrequires.bins,requires.anyBins,requires.env, andrequires.config.alwaysdoes not bypass an incompatibleosrestriction.osrestriction continue working exactly as before.The shared status evaluator now preserves OS incompatibility while clearing only the runtime requirements that
alwaysis intended to bypass. The skills and hooks documentation now states the same contract.User Impact
This does not change skill discovery, loading, prompt injection, or execution behavior.
Status and diagnostic surfaces now accurately report OS-incompatible always-on skills and hooks as unavailable instead of claiming they are eligible.
Evidence
Focused regression coverage verifies:
Validation: