feat: sandbox Lua script VMs (ADR-0027 amendment, tech-debt #25) #120
No reviewers
Labels
No labels
atmosphere
clouds
debug
enhancement
foundation
high-priority
integration
low-priority
medium-priority
optimization
pbr
weather
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
akadmin/NemesisEngine!120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/lua-sandbox"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scene scripts are untrusted code. VMs are now created via new_sandboxed_vm:
stdlib whitelisted to MATH|STRING|TABLE|COROUTINE (base-lib dofile/loadfile
nilled), 64 MiB memory limit, and a per-tick 5M-instruction count hook so
'while true do end' disables the one script instead of hanging the fixed
tick. An engine-provided print (tagged with the entity) replaces the stdlib
one. mlua's send feature enabled (Lua: Send + Sync, ADR-0055 thread rule 1).
Roadmap item 35 (Tier 1), first sub-item.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Pull request closed