Repository navigation
fix(scheduler): Require action review for delete and run-now - #1324
Merged
Merged
Conversation
Create and update already declare approvalMode review. Delete and run-now still relied on the core-tool default that skips Guardian. Align the mutating schedule tools so delete and immediate run enter action review too, while list stays outside review as read-only. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Audit of tool approval modes found one real inconsistency in the already-classified scheduler surface: create/update require Guardian review, but delete and run-now still relied on the core-tool default that skips it.
What changed
slackScheduleDeleteTaskandslackScheduleRunTaskNownow declareapprovalMode: "review".review, and list stays outside review as read-only.Inventory findings (not changed here)
zodTools with noapprovalModeintentionally skip Guardian (undefined/approve). That is the current design from feat: add core action review and approvals for permissioned tools #874, not a silent plugin-style auto path.definePluginTool) already default toauto, so GitHub mutations/reads enter review via annotations/identity rather than needing source-levelapprovalMode.approveis still appropriate for always-safe tools likeaddReaction(handled on fix(slack): Route silent acknowledgements through reactions #1322) and memory create.Refs #874
Refs #1051
Checks:
pnpm --filter @sentry/junior typecheck. Focused schedule integration test needs local Postgres/Vercel env linkage.Requested by David Cramer.
--
View Junior Session [Sentry]