Open engine
The rule engine is in the open
The agents run a closed language with seven operators. No code is fetched at run time, no network call is made and no language model is involved. The reference implementation is printed here in full, together with the hash that travels with every answer.
agent-engine-1 · sha256:0a4bd50d21f8ec9be383fc091511008b76ad61909cbfb674eab56fe567fbd7a0 · agent-engine-1+legal-2026-08-25
Operators
- all
- any
- not
- equals
- in
- gte
- exists
Reference implementation
evaluate(condition, facts):
all(of) -> every child is true
any(of) -> at least one child is true
not(of) -> the child is false
equals(field,v) -> facts[field] === v
in(field,values) -> values includes facts[field]
gte(field,v) -> typeof facts[field] === "number" && facts[field] >= v
exists(field) -> facts[field] !== undefined && facts[field] !== "" && facts[field] !== false
run(script, facts):
for rule in script.rules (declaration order):
if evaluate(rule.when, facts): return rule.outcome, rule.id
return script.fallback, null
A missing field is false. No coercion, no ordering by score, no randomness.Determinism
Rules are tried in declaration order. The first match wins. A missing field is false. No scoring, no randomness, no free-text interpretation.
Verify
The hash is sha256 over the engine version, a newline and the reference text. Recompute it and compare with the x-ai-engine header to see that this is the engine that ran.