Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:37 PM ET / 22:37 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR makes the bundled sag speech skill require only its executable, preserves optional API-key injection, documents credential alternatives and recovery, and adds readiness regression coverage. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, supported fix for a defect still present on main and in v2026.9.4. The reporter confirms the approach, and the supplied before/after CLI evidence resolves the earlier proof request. No blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw reads skill metadata to determine availability and model visibility. Doctor consumes that availability report when offering to disable unusable skills; sag itself resolves credentials when invoked. flowchart TD
A[Bundled sag metadata] --> C[Skill readiness]
B[Executable and user settings] --> C
C --> D[Skill status and model visibility]
C --> E[Doctor repair candidates]
D --> F[sag resolves credentials when invoked]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +50, Docs +6. Total +56 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep readiness tied to sag’s executable, leave credential validation with sag, and preserve explicit user disablement and optional API-key injection. Do we have a high-confidence way to reproduce the issue? Yes: current main rejects sag when its executable exists but ELEVENLABS_API_KEY is absent, regardless of credentials supplied through sag’s other supported paths. Source tracing and contributor CLI output support this; the reviewer did not execute it. Is this the best way to solve the issue? Yes: correcting the bundled metadata follows the existing binary-only pattern for credential-owning CLIs and handles file-based credentials without extending the generic readiness API. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c92ce0278f4a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Note: |
51b6ecd to
8dc189d
Compare
|
Update on CI: the remaining failures are timing-sensitive tests in files this PR does not touch (this PR changes only the bundled
Happy to rebase again if a maintainer wants a re-run. |
The bundled sag metadata declared ELEVENLABS_API_KEY as a mandatory env requirement, so the skill was reported unavailable — and doctor --fix offered to disable it — whenever the key came from another source sag itself supports (SAG_API_KEY, key files, --api-key-file). Readiness now gates on the sag binary only and delegates credential validation to the CLI, matching the bundled himalaya pattern. Fixes openclaw#147346
8dc189d to
870577c
Compare
|
Supplementing the real-setup proof requested in the review ("after-fix skill status and Doctor behavior in a real installed setup"). All commands below were run against the real built CLI ( After fix (this patch): Before fix (same CLI binary, Honesty notes: no live ElevenLabs audio was produced (no account/key here), and the sag binary itself requires glibc ≥ 2.34 (newer than this EL8 host) so the CLI was not executed — readiness only probes PATH presence + executability ( Also noting for the record: on the previous head ( The PR body's Evidence section has been updated with this real installed-setup proof (L2). |
AI-assisted. Supersedes #147381 by @LiuwqGit. Closes #147346. ## What Problem This Solves A working `sag` skill appears unavailable, and `doctor --fix` disables it, when its installed CLI obtains credentials outside the Gateway environment. ## User Impact Installed `sag` stays available with alternate credentials. The executable checks credentials when it runs. Optional configured-key injection remains available. Doctor does not automatically re-enable entries disabled by an earlier run. The saved flag does not distinguish Doctor repair from an intentional user choice. If the earlier disablement was incorrect, run `openclaw config set skills.entries.sag.enabled true`. Refresh the Skills list; the next agent turn uses the refreshed skill settings. ## Why This Change Was Made The bundled skill declaration keeps its executable requirement and removes the incorrect environment prerequisite. The original metadata fix and authorship are preserved. The regression now runs registered `skills info sag --json` and stopped-Gateway `doctor --fix`, including the saved enable flag, instead of calling the status helper directly. ## Evidence | Check | Main | This change | | --- | --- | --- | | Real CLI and Gateway `skills.status` | Needs setup; not visible | Ready; visible | | Control UI Skills list | Under Needs Setup | Under Ready | | Skill details | Missing-variable warning | Warning gone; key editor retained | | Stopped-Gateway Doctor | Saves `enabled=false` | Preserves absent or explicitly true enablement | | Registered CLI regression | Four expected failures | Four passes | Correlated request/response frames confirm that both the browser and CLI received `skills.status` from the Gateway. The installed executable's alternate key-file check uses a local test endpoint; live-account validity and audio production are not claimed. Fresh merge `489365ccffab2e043d676ed3b01cb2e0b5a203d4` has candidate parent `40632360f3ff8162fa27503e08c636223c8cc852` and main parent `4750ff8d2b389280bdeaeec44d78b88cb7fb81d1`. It passes 4 registered CLI regressions, 44 skill tests, 10 Doctor tests, and 153 test-registration checks. Changed-file lint, formatting, and whitespace checks pass. Main's regression run used `d0cf628ff20d234657813074774739bcf321447d` with the same test and unchanged main metadata. The process test uses the existing isolated CLI project. Fixed test owners and CI job counts remain unchanged; generated compact group placement can change as the test inventory grows. Readiness does not establish live-account validity or successful audio output. ### Skills list | Before | After | | --- | --- | |  |  | ### Missing requirement and key editor | Before | After | | --- | --- | |  |  | ## Consumers - Discovery, Gateway and CLI status, both Doctor skill checks, onboarding, summaries, and recommendations read the same prerequisite declaration. - The Control UI list and agent controls consume the corrected status; the optional key editor remains available. - Runtime selection reads the same metadata. New snapshots preserve optional key injection; existing snapshot refresh rules remain unchanged. - Native clients consume the existing response. The macOS binary-trust reader uses the unchanged binary requirement. - Explicit disablement, allowlists, agent filters, configured-secret isolation, and automatic-update Doctor protection remain unchanged. ## Compatibility No new configuration key, schema, protocol, dependency, or runtime credential reader. Existing disabled entries are not automatically re-enabled. The skill prose assigns credential checking to the executable; readiness does not promise valid account credentials or successful speech generation. Co-authored-by: LiuwqGit <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
|
Thanks @LiuwqGit! Proof: Merged #147685 supersedes this PR, keeps your commit under your authorship, and verifies that installed
|
…147685) AI-assisted. Supersedes openclaw#147381 by @LiuwqGit. Closes openclaw#147346. ## What Problem This Solves A working `sag` skill appears unavailable, and `doctor --fix` disables it, when its installed CLI obtains credentials outside the Gateway environment. ## User Impact Installed `sag` stays available with alternate credentials. The executable checks credentials when it runs. Optional configured-key injection remains available. Doctor does not automatically re-enable entries disabled by an earlier run. The saved flag does not distinguish Doctor repair from an intentional user choice. If the earlier disablement was incorrect, run `openclaw config set skills.entries.sag.enabled true`. Refresh the Skills list; the next agent turn uses the refreshed skill settings. ## Why This Change Was Made The bundled skill declaration keeps its executable requirement and removes the incorrect environment prerequisite. The original metadata fix and authorship are preserved. The regression now runs registered `skills info sag --json` and stopped-Gateway `doctor --fix`, including the saved enable flag, instead of calling the status helper directly. ## Evidence | Check | Main | This change | | --- | --- | --- | | Real CLI and Gateway `skills.status` | Needs setup; not visible | Ready; visible | | Control UI Skills list | Under Needs Setup | Under Ready | | Skill details | Missing-variable warning | Warning gone; key editor retained | | Stopped-Gateway Doctor | Saves `enabled=false` | Preserves absent or explicitly true enablement | | Registered CLI regression | Four expected failures | Four passes | Correlated request/response frames confirm that both the browser and CLI received `skills.status` from the Gateway. The installed executable's alternate key-file check uses a local test endpoint; live-account validity and audio production are not claimed. Fresh merge `489365ccffab2e043d676ed3b01cb2e0b5a203d4` has candidate parent `40632360f3ff8162fa27503e08c636223c8cc852` and main parent `c0c96881fafde0c7233634efb2ec656d11c9d5fe`. It passes 4 registered CLI regressions, 44 skill tests, 10 Doctor tests, and 153 test-registration checks. Changed-file lint, formatting, and whitespace checks pass. Main's regression run used `b02160ba495e16a79daefed319200ef062027a4b` with the same test and unchanged main metadata. The process test uses the existing isolated CLI project. Fixed test owners and CI job counts remain unchanged; generated compact group placement can change as the test inventory grows. Readiness does not establish live-account validity or successful audio output. ### Skills list | Before | After | | --- | --- | |  |  | ### Missing requirement and key editor | Before | After | | --- | --- | |  |  | ## Consumers - Discovery, Gateway and CLI status, both Doctor skill checks, onboarding, summaries, and recommendations read the same prerequisite declaration. - The Control UI list and agent controls consume the corrected status; the optional key editor remains available. - Runtime selection reads the same metadata. New snapshots preserve optional key injection; existing snapshot refresh rules remain unchanged. - Native clients consume the existing response. The macOS binary-trust reader uses the unchanged binary requirement. - Explicit disablement, allowlists, agent filters, configured-secret isolation, and automatic-update Doctor protection remain unchanged. ## Compatibility No new configuration key, schema, protocol, dependency, or runtime credential reader. Existing disabled entries are not automatically re-enabled. The skill prose assigns credential checking to the executable; readiness does not promise valid account credentials or successful speech generation. Co-authored-by: LiuwqGit <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #147346
What Problem This Solves
Fixes an issue where the bundled
sagskill was reported unavailable — andopenclaw doctor --fixoffered to persistskills.entries.sag.enabled=false— wheneverELEVENLABS_API_KEYwas absent from the gateway environment, even though thesagCLI resolves credentials from several sources it supports itself (SAG_API_KEY,--api-key-file,ELEVENLABS_API_KEY_FILE,SAG_API_KEY_FILE). Operators with a working sag setup saw a false "needs setup" status and a destructive repair suggestion that ping-ponged with manual re-enablement.primaryEnvinjection, delegate credential validation to sag, document alternate credentials and recovery). Updater-side disabling was already addressed by fix(doctor): preserve enabled skills during automatic updates #138730 and is unchanged here. Note: refactor(skills): trim bundled starter set #95132 (open, size: XL, waiting on author) would later remove the bundled sag skill entirely; this PR only fixes the readiness metadata on current main, as routed by the issue review.Why This Change Was Made
The sag skill metadata declared
ELEVENLABS_API_KEYas a mandatory env requirement while the skill's own body documentsSAG_API_KEYas supported, so readiness flagged a false negative. The requirement is removed fromrequires; the skill now gates on thesagbinary alone (matching the bundledhimalayapattern for CLIs that own their credentials), whileprimaryEnv: ELEVENLABS_API_KEYis kept so a configured skillapiKeyoverride or env var still injects. The body documents sag's alternate credential sources and how to re-enable an entry previously disabled by the false positive. Broader Doctor policy changes (new readiness states, dry-run flags, generic file discovery) are intentionally out of scope per the issue review.ELEVENLABS_API_KEYin env → skill stays eligible/ready;doctor --fixno longer proposes disabling it.bins: ["sag"]gate — with the binary absent the skill still reports ineligible.User Impact
Operators using the sag skill with credentials sag itself resolves (e.g.
SAG_API_KEYor a key file) no longer see a misleading "needs setup" status, anddoctor --fixno longer offers to disable a working skill. Anyone previously hit by the false disable can re-enable withopenclaw config set skills.entries.sag.enabled true(documented in the skill body).sagbinary on PATH and all ElevenLabs/sag env vars unset,buildWorkspaceSkillStatusreports the bundled sag skilleligible: truewithmissing.envempty; with the binary missing it reportseligible: false.skills/sag/SKILL.mdfrontmatter change; regression test "keeps the bundled sag skill ready when only the sag binary is installed" insrc/skills/discovery/status-workspace.test.ts.Evidence
feat/issue-147346-sag-skill-readiness(PR head870577c0, built withpnpm build; CLI reportsOpenClaw 2026.9.4 (870577c)), with the realsagv0.4.1 release binary fromgithub.com/steipete/sag(sha256655e5c6a…57bc81) installed onPATH,ELEVENLABS_API_KEY/SAG_API_KEY/ELEVENLABS_API_KEY_FILE/SAG_API_KEY_FILEall unset, and an isolatedOPENCLAW_HOME. All commands below run the real built CLI (node openclaw.mjs …), not a test harness.skills/sag/SKILL.mdrestored from origin/main, same sag binary, same environment.✓ Readyand model-visible,doctorno longer counts sag among unusable skills, anddoctor --fixno longer disables it. Under origin/main metadata the identical environment yields△ Needs setup(missingELEVENLABS_API_KEYeven withSAG_API_KEYset) anddoctor --fixpersistsskills.entries.sag.enabled=false— the exact reported symptom. Regression testkeeps the bundled sag skill ready when only the sag binary is installedcovers this at the unit level.doctor-skills.test.tsupdate-preservation tests, unchanged here).