Skip to content

feat: evaluate the showcase generous-order guard in WebAssembly#97

Merged
joshua-temple merged 1 commit into
mainfrom
feat/dispatch-polyglot
May 31, 2026
Merged

feat: evaluate the showcase generous-order guard in WebAssembly#97
joshua-temple merged 1 commit into
mainfrom
feat/dispatch-polyglot

Conversation

@joshua-temple
Copy link
Copy Markdown
Collaborator

Demonstrates a polyglot guard: the order machine's "generous order" decision, evaluated in WebAssembly, proven to behave identically to the existing CEL version.

examples/fooddelivery gains a functional-options guard seam — NewModel(WithGenerousGuard(...)) lets a consumer swap the engine that produces the named generousOrder guard while leaving the machine untouched; the default still compiles the CEL predicate exactly as before. The showcase compiles a tiny wasip1 guest implementing the same subtotal + tip >= 6000 predicate (built at test time, no binary committed) and drives both the CEL-guarded and WASM-guarded models through the authorization decision across orders chosen to isolate that branch — a generous order both admit and a frugal order both block — confirming the two engines agree.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit 1f785dc into main May 31, 2026
10 checks passed
@joshua-temple joshua-temple deleted the feat/dispatch-polyglot branch May 31, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant