Rule Cascade
Examples

Examples

One page per integration point, each quoting and linking the example code in the repository that CI builds and runs.

Every example below is taken from files in the repository. All of them use the same payments contract, so a rule can be followed from the OpenAPI description to the form, the API, a batch job and an agent.

Integration pointWhat it showsCode
OpenAPI contractEntities as OpenAPI schemas, operations bound with x-rule-cascade, rules derived from schema constraintsexamples/contracts, examples/derived
UI formA React form driven entirely by the client manifestexamples/frontend-react
API endpointEvaluate, refuse with 422, persist, run commandsexamples/backend-spring-boot
BatchMany records against one bundleconformance/bundles, examples/engine-clients
AI agentStrict function tools and a drafting formatbindings/
Level cascadeAn organisation baseline and a feature ruleset that tightens itexamples/contracts
Post-save commandsAn action rule that emits an event once, after the saveexamples/contracts, examples/backend-spring-boot
Other languagesThe engine from nine languages and from WebAssemblyexamples/engine-clients

What CI proves about them: the rulesets pass check with their golden tests on every push; the Spring Boot example is built and tested; the React example is built; the engine clients run on Linux and their output is compared byte for byte.

The rule catalog has one rule for every common data type and severity; the cookbook walks through it recipe by recipe.

Source: site/content/docs/examples/index.mdx