Lua: add an optional bounded runtime adapter #39

Closed
opened 2026-12-03 10:24:25 +00:00 by faumaray · 1 comment
Owner

Context: Forge's pipeline SDK supports Lua after cutover. Forge tracks this as VL-LUA-01.

Current behavior: Plugin facilities load native modules and provide a C-ABI host; Runtime coordinates resources. No Lua adapter was found in the inspected interfaces, module listings or dependency declarations. This is not exhaustive absence proof.

Need: if a follow-up source audit confirms absence, a Lua::Runtime with explicit allowed bindings, allocation budget, execution budget, cancellation and structured errors. No ambient filesystem, network, process or dynamic-loader access. Evaluation runs in a separately isolated process; Lua controls alone are insufficient.

Tests/gate: allocation failure, runaway execution, forbidden imports, malformed scripts, exception boundaries, cancellation and equivalent IR fixtures. Keep Lua an optional dependency. Gates Forge M22 after cutover; unresolved adapter discovery does not block the initial release.

Context: Forge's pipeline SDK supports Lua after cutover. Forge tracks this as VL-LUA-01. Current behavior: Plugin facilities load native modules and provide a C-ABI host; Runtime coordinates resources. No Lua adapter was found in the inspected interfaces, module listings or dependency declarations. This is not exhaustive absence proof. Need: if a follow-up source audit confirms absence, a Lua::Runtime with explicit allowed bindings, allocation budget, execution budget, cancellation and structured errors. No ambient filesystem, network, process or dynamic-loader access. Evaluation runs in a separately isolated process; Lua controls alone are insufficient. Tests/gate: allocation failure, runaway execution, forbidden imports, malformed scripts, exception boundaries, cancellation and equivalent IR fixtures. Keep Lua an optional dependency. Gates Forge M22 after cutover; unresolved adapter discovery does not block the initial release.
Author
Owner

Implemented as the optional bounded Lua adapter on branch issue-39-lua-adapter (commit ae7bedb), merged into main as 963afac. Lua-enabled and Lua-disabled builds verified, tests pass. Closing as done.

Implemented as the optional bounded Lua adapter on branch `issue-39-lua-adapter` (commit `ae7bedb`), merged into `main` as `963afac`. Lua-enabled and Lua-disabled builds verified, tests pass. Closing as done.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#39