rust(feat): preview_rule MCP tool - #738
Merged
evan-sift merged 5 commits intoAug 27, 2026
Merged
Conversation
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 26, 2026 07:55
3c4c477 to
ce38cc5
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 26, 2026 07:56
505de4d to
c49576a
Compare
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 26, 2026 08:20
ce38cc5 to
b782ed0
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 26, 2026 08:20
c49576a to
ac9064e
Compare
evan-sift
marked this pull request as ready for review
August 26, 2026 08:21
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 27, 2026 04:40
b782ed0 to
bc3f432
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 27, 2026 04:40
ac9064e to
bda5135
Compare
lineville
approved these changes
Aug 27, 2026
Add a preview_rule tool over the rule evaluation service's dry-run RPC. Supports evaluating a saved rule (by id or name, resolved through the existing rules service) or an ad-hoc draft rule config against a run, without persisting anything.
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 27, 2026 19:20
bc3f432 to
c2303e1
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 27, 2026 19:20
bda5135 to
f09118b
Compare
Co-authored-by: Liam Neville <liam@siftstack.com>
evan-sift
merged commit Aug 27, 2026
350af7a
into
rust/mcp-calculated-channel-data
5 of 6 checks passed
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.
Description
Adds
preview_rule: a dry run of a rule against a run that persists nothing. It accepts a saved rule (rule_idorrule_name, resolved through the existing rules service, considering only active rules) or an ad-hocdraft_rule_configJSON string; the two are mutually exclusive. Read-only, so it needs no write-mode flags.Surface note:
preview_ruleis an action, not a resource; the list / create / update / archive quartet does not apply.Stack note: the bundled agent skill and the 0.5.0 changelog for this whole stack land at the tip (#763).
Verification
cargo test -p sift_mcpon this branch: 363 passed, 0 failed (saved vs draft request construction, both mutual-exclusion directions, malformed draft JSON, name resolution, error propagation, result shape, archived-name exclusion).list_rulesround trip.preview_ruleovercreate_report/create_rule.