feat: dc_rulekit v0.1 — agnostic on-device rules engine - #1
Merged
Merged
Conversation
Introduce business-agnostic on-device rules core as publishable crate dc_rulekit with plugin registry, proposal workflow, engine dry-run, and audit hooks. Mirror semantics in pure Dart package dc_rulekit. Include toy demo plugins, ADR 0001, CI, and documentation noting GitHub repo name rulekit vs published dc_rulekit. Co-authored-by: Uday Chauhan <chauhan.s.uday26@gmail.com>
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.
Summary
First version of rulekit under the published name
dc_rulekit(crates.iorulekit/rule_kitare taken; pub.dev aligns ondc_rulekit). GitHub repo remainsDevelopersCoffee/rulekit.dc_rulekit: Rule JSON model,PluginRegistry,RuleStore/ProposalStore,Engine(ordered when/then, dry-run, fail-closed unknown plugins),AuditHookwith opaque receipt payload.dc_rulekit: Pure-Dart mirror of the same schema/semantics for Flutter hosts (FFI deferred; documented in ADR).dc_rulekit_demo_plugins: Toy plugins only (demo.when.always, threshold/counter,demo.then.log, increment planner).Test plan
cargo test --allcd packages/dc_rulekit && dart analyze && dart testcargo test -p dc_rulekit_demo_plugins quickstart_runsOut of scope (by design)
Cruftkit adapter, cron runner, product-domain APIs in core.
Publishing
Do not publish from this PR; Pub.dev/crates.io agent publishes
dc_rulekitafter merge.