fix(skill-workshop): honor pending approval for tool suggestions [AI]#78516
fix(skill-workshop): honor pending approval for tool suggestions [AI]#78516pgondhi987 merged 7 commits intoopenclaw:mainfrom
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. source-reproducible: current main sets Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Keep the shared-helper fix, add a concise active-version changelog entry or maintainer-approved merge-time entry, and require redacted after-fix runtime proof before merge. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main sets Is this the best way to solve the issue? Yes for the implementation direction: routing the tool path through the shared apply/store helper is the narrow maintainable fix. The PR is not merge-ready until real behavior proof and changelog handling are resolved. Full review comments:
Overall correctness: patch is correct What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 42ecd5d95eae. |
|
Not applicable; changelog is handled at merge time. Quoted comment from @clawsweeper:
Re-review progress:
|
…openclaw#78516) * fix: honor pending skill workshop approvals * addressing review-skill * addressing codex review * addressing codex review * fix: require approval before skill workshop apply * docs: add changelog entry for PR merge
…openclaw#78516) * fix: honor pending skill workshop approvals * addressing review-skill * addressing codex review * addressing codex review * fix: require approval before skill workshop apply * docs: add changelog entry for PR merge
Summary
skill_workshoptool suggestions could request immediate application even when the plugin was configured for pending review.applyparameter to an auto-mode opt-out, and added regression coverage for pending mode withapply: true.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
skills/<name>/SKILL.mdwhen the tool call includesapply: true.extensions/skill-workshop/index.test.ts.Root Cause (if applicable)
apply: trueargument as sufficient to apply a proposal before checking whether the configured approval policy allowed automatic writes.apply: false, but not pending mode withapply: true.Regression Test Plan (if applicable)
extensions/skill-workshop/index.test.tsaction: "suggest"plusapply: truereturnsstatus: "pending", does not create a workspace skill file, and leaves no applied proposal entry.User-visible / Behavior Changes
In pending mode, tool-created skill suggestions remain queued for review even if the tool call includes
apply: true. In auto mode,apply: falsestill queues instead of applying.Diagram (if applicable)
Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): YesYes/No): NoYes, explain risk + mitigation: the existing tool behavior now honors pending review for workspace-skill writes; the change narrows write behavior and preserves the existing auto-mode opt-out.Repro + Verification
Environment
approvalPolicy: "pending"Steps
approvalPolicy: "pending".skill_workshopwithaction: "suggest",apply: true, and a new skill body.Expected
skills/<name>/SKILL.mdfile is written.Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
approvalPolicy === "auto"; reviewed the regression test for pending mode withapply: true.apply: falsecontinues to use the existing opt-out behavior; agent-end proposal handling still uses default helper behavior.Review Conversations
Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoRisks and Mitigations
apply: trueto force writes in pending mode will now receive queued proposals.apply: falsestill applies safe proposals automatically.AI-assisted: yes