Skip to content

sdk.rule_engine ​

@type library Generic deterministic rule selection with explicit cooldown ownership. Rules are ordered by descending priority, ascending explicit order, and then insertion order. Selection never marks a cooldown; callers retain control of side effects by calling mark() only after the chosen action was accepted.

lua
local M = require("sdk.rule_engine")

Constants ​

Lua 5.4 has no enums — these are integer (or string) fields on the module.

NameValueSummary
EngineEngineRule engine class.

new ​

function · new(options)

Construct an engine; optional clock and rules. Rules are applied before return. A bad rules table fails the constructor instead of leaving a half-initialized instance.

Arcane SDK catalog generated from scripts/sdk