Files
ai-spel-rule-engine/docs/adr/0001-isolated-luau-runtime.md
Ein Anderssono a85a49dfd5
Build and publish rule engine / release (push) Failing after 1m34s
Add isolated Luau rule engine service
2026-10-20 11:24:52 +02:00

1.1 KiB

ADR 0001: Isolated Luau runtime

Status

Accepted; deployment verification is pending the first large pipeline release.

Decision

This repository owns the Luau sandbox and the v1 request/reply schema. It accepts only a versioned rule source and a bounded, read-only snapshot, then returns typed effect proposals. It has no database or AI provider dependency. The service connects to the private ai-spel.rules.evaluate.v1 NATS subject in a queue group so multiple replicas can share direct-scene evaluations.

The service cannot make a world change. The API validates every returned effect and is the only writer of canonical state. Synchronous evaluations use Core NATS; durable asynchronous work is out of scope until an outbox/inbox and idempotent JetStream consumer exist.

Verification required

The release workflow runs Rust checks and Helm checks on the existing large runner, publishes version-matched image/chart/manifest artifacts, and verifies the Argo rollout in Kubernetes. Live worker-loss and request/reply checks remain required before calling this service production-verified.