Repository navigation
feat(cron): apply configured default tools before approval - #187798
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
giodl73-repo
marked this pull request as ready for review
October 29, 2026 17:28
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 30, 2026
…187798) * feat(cron): apply configured default tools before approval * chore(sdk): budget the approved cron tool defaults API * test(cron): refresh default-tool snapshots and repair portable generation * test(browser): model CDP events in WebAuthn fixture * fix(plugin-sdk): canonicalize emitted declaration lookup --------- Co-authored-by: Gio Della-Libera <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #187767.
What Problem This Solves
An automation created with an explicit tool list can omit a prerequisite such as
read, leaving it unable to follow its instructions when it runs.User Impact
Operators can configure
cron.defaultTools. For example,["execute_code"]becomes["execute_code", "read"]before the existing creator-capability and approval checks. Defaults never grant unavailable tools. The request-leveltoolsAllowMode: "exact"opts out, and[]remains tool-less.Unset configuration, omitted/null selections, saved jobs, unrelated edits, CLI/direct Gateway writes, and already approved request shapes keep their existing behavior. Existing automations need an intentional tool-selection revision. Hosts must integrate and enable the setting separately.
Why This Change Was Made
One pure resolver serves the native automation tool and the narrow
openclaw/plugin-sdk/cron-tool-defaultssubpath so hosts can construct the same selection before binding approval. Only the concrete selection is persisted; execution-authority provenance is unchanged.The optional configuration adds two core schema paths (array and item). SDK budgets increase only by the approved one subpath, two exports and one callable. Supporting repairs keep generated snapshots portable on Windows, update the browser test fixture for its existing navigation contract, and use the emitter's canonical path key when rendering SDK declarations. They do not change production browser guards or expand tool permissions.
Evidence
20121545966a5212dc3783a0375333fb6cd29eebto47db914b3815620bc3bef787d6ea77fcd0450203. Acknowledgement:7071bd34. One new subpath, two added exports, no removed entrypoints/exports or changed existing export signatures. The 963 reachable-export changes derive from five additive declaration changes: the resolver/type, its native adapter, and the optional configuration schema in two views.47db914b3815620bc3bef787d6ea77fcd0450203, including CI gate, type/lint jobs, and dependency/security review. No manual CI retries were requested.Known local limitation: the standalone SDK source-budget report counts 161 entrypoints / 3843 exports / 2227 callables against the narrowly adjusted ceilings 159 / 3824 / 2215. The base has 160 entrypoints against its prior ceiling of 158; exact aggregate base export/callable counts were not independently reproduced. The successful semantic comparison establishes only the intended additive API delta; this PR does not absorb aggregate excess into its budget. Some local typed-lint/type attempts were blocked by shared dependency or artifact-lock boundaries; final-head hosted type/lint checks passed. A live scheduled-model run and host enablement are not claimed.