Interface: LuaCell
Defined in: src/batteries/orchestration/cells/lua/index.ts:256
The type of the cell returned by createLuaCell. It is a PredicateEvaluator with one extra field, status(), for inspecting the enforcement guarantee.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
id | readonly | string | How a node names this cell in evaluator. Cells merge by this id across construction and run. | PredicateEvaluator.id | src/batteries/orchestration/types.ts:1072 |
Methods
evaluate()
evaluate(node: PlanNode, ctx: PredicateContext): Promise<PredicateVerdict>;Defined in: src/batteries/orchestration/types.ts:1081
Decide the node's outcome. Called once per frame reaching the node.
Parameters
| Parameter | Type |
|---|---|
node | PlanNode |
ctx | PredicateContext |
Returns
Promise<PredicateVerdict>
Inherited from
load()
load(): Promise<void>;Defined in: src/batteries/orchestration/types.ts:1077
Acquire whatever the cell needs — typically an optional peer. Awaited at construction, so a missing peer fails at boot with a named error rather than part-way through a freeze.
Returns
Promise<void>
Inherited from
status()
status(): LuaCellStatus;Defined in: src/batteries/orchestration/cells/lua/index.ts:262
Returns the enforcement guarantee this instance is delivering. See LuaCellGuarantee. A cell that could not install a count hook or whose allocator cap probe failed reports watchdog-only here rather than claiming a full guarantee.
Returns
validate()
validate(node: PlanNode): Promise<void>;Defined in: src/batteries/orchestration/types.ts:1079
Reject a predicate shape this cell cannot use. Called at freeze, so refusal precedes approval.
Parameters
| Parameter | Type |
|---|---|
node | PlanNode |
Returns
Promise<void>