Skip to content

feat(executor): delegate Lua loading and hooks to execution boundaries - #46

Merged
Sunrisepeak merged 1 commit into
mainfrom
feat/subos-delivery-641
Oct 8, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
feat/subos-delivery-641

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

The SubOS broker in openxlings/xlings#641 needs to load recipes and run hooks in a restricted worker. The current factory and metadata loader execute top-level Lua in the caller before a hook can be isolated.

Add optional execution boundaries for persistent executor operations, recipe metadata loading and index building. A deferred executor performs no local Lua load and delegates every action, retaining the existing cumulative effects and hook context contract. An absent or failed boundary returns an error without falling back to local Lua. Existing overloads retain their behavior for current consumers.

Version: 0.0.61. The client integration and worker transport are in openxlings/xlings#641; this library introduces no JSON or platform transport dependency.

Validation: mcpp build with LLVM 22.1.8 and mcpp test --toolchain gcc@16.1.0 --message-format json passed locally (4 test programs). New cases cover deferred top-level execution, persistent Lua state, cumulative effects, refreshed context, metadata and index builder delegation, and failure without fallback.

@Sunrisepeak
Sunrisepeak merged commit 76fa749 into main Oct 8, 2026
1 check passed
@Sunrisepeak
Sunrisepeak deleted the feat/subos-delivery-641 branch October 8, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant