Engine note
rove executor
Headless Roblox executor built on rove's Rust client + the official Luau VM.
./bin/rove-exec 1818 my_script.luau 20- authenticates with
secrets/roblox-cookie.txt(.ROBLOSECURITY, chmod 600, dir 700) - joins the place over the real QUIC transport (Roblox's RbxTransport path)
- replicates the world with rove's decoder (83 replication item kinds)
- runs your Luau against the received DataModel with the official VM
--lightweightkeeps resident RAM at ~20-45 MB even in 40k+ node placesROVE_TOLERATE_UNKNOWN_SETS=1(set by the wrapper) keeps sessions alive when a rare packet is skipped; the world still replicates normally
Notes:
- scripts run in the client VM;
game, services, instances, remotes, signals, scheduler and live/local physics are available ./bin/rove-execenables--physicsby default (pass--no-physicsto opt out);rove authverifies the cookie androve joinaccepts--physics/--no-physics- server-side anti-cheat that rejects non-standard clients can still block joins
#Session results (Nov 21, 2026)
| place | nodes replicated | RAM (resident) | peak | spawned | notes |
|---|---|---|---|---|---|
| 1818 Classic Crossroads | 5,575 | 40.6 MB | 73 MB | yes | full replication, physics-ready |
| 920587237 Adopt Me! | 42,117 | 40.6 MB | 215 MB | join ok | lightweight mode, 7 rare packets skipped |
Both joins authenticated as a real account over the QUIC transport and ran authored Luau through the official VM embedded in the Rust client.
#Skip-rate after zstd list fix
- Adopt Me!: 1,105 committed / 7 rejected (0.6%), ISR decode 50/0, zero engine errors, session stable, 39.5 MB RAM.
- Crossroads: 0 skips, full spawn.
#3-minute soak (Adopt Me!)
- 2,468 packets committed / 7 rejected (stable), 42,198 nodes
- RSS stayed flat at ~55-57 MB for the full session (mimalloc + lightweight)
- Script executed cleanly; zero engine errors; transport_error: none
#Phantom Forces (big FPS)
- 89,330 nodes replicated, 2,849 packets committed / 0 rejected
- 35.2 MB resident RAM (lightweight) — heavy FPS world under 36 MB
- Scripts executed; session clean end.
#BedWars (6872265039)
- 3,389 nodes, 502 packets committed / 0 rejected
- server itself closes reliable streams after ~30s for this world; session ends cleanly (reset-as-eof). Scripts ran; catalog raised to 16 MiB to fit 2.5k+ game scripts (BedWars ships ~2,500 scripts).
#Final state summary (Nov 21, 2026)
Multi-game verification:
- Crossroads (1818): full spawn, 5,575 nodes, 40 MB — clean
- Adopt Me! (920587237): 42,329 nodes, 43 MB — stable 3-min soak, flat RSS
- Phantom Forces (292439477): 89,330 nodes, 35 MB — 0 rejected packets
- BedWars (6872265039): 3,389 nodes, 36 MB — server closes streams ~30s; clean end
Protocol fixes landed this session:
- Two-list instance packets: zstd-compressed list 0 decode (was dropped)
- Property wire types 16 (Faces bitmask) + 17 (Vector3)
- Peer stream reset treated as clean EOF
- Script catalog raised to 16 MiB + 16k entries for big games
- World delta cap 8 -> 32 MiB
- Lenient live-reception (ROVE_TOLERATE_UNKNOWN_SETS) keeps sessions alive through rare packets while tests stay strict
Suite: 914/914 client tests + 223/223 core tests green. Changes pushed to github.com/alexkkork/rove (c59d341, fc6a4ed).
#Packet-fidelity push (Nov 21 late)
Captured 2.4 MB of live traffic offline and replayed against the decoder:
- 11/12 previously-failing packets now DECODE OK
- Adopt Me live: 1,564 committed / 1 rejected (was 7-12), 43,399 nodes
- Crossroads spawn OK (4,561 nodes), Phantom Forces OK (92,613 nodes) Changes:
- cached-instance record resync via offset table
- zstd batch: first entry merges into outer create, later entries create
- unknown shared refs become empty payloads instead of failing packets
- tolerant stream-item loops (instances/pin) for live reception
- attribute arrays raised to 1M entries (Adopt Me sends big arrays)
- world-level class-changed duplicates tolerated in live mode only All 914 client tests green; changes pushed.
#Broad game coverage (Nov 22)
Tested against top-chart games:
| game | nodes | RAM | result |
|---|---|---|---|
| Grow a Garden | 109,886 | 38 MB | ok (node cap raised 100k→400k) |
| Blox Fruits | 94,526 | 44 MB | ok, 0 rejected |
| Phantom Forces | 92,613 | 48 MB | ok, 0 rejected |
| Steal An Egg | 61,740 | 46 MB | ok |
| Dandy's World | 30,271 | 47 MB | ok |
| DOORS | 24,767 | 51 MB | ok |
| Murder Mystery 2 | 34,228 | 52 MB | ok |
| Adopt Me! | 43,399 | 48 MB | ok |
Fixes: node caps 100k→400k (and 101k→501k local), VM response limit 1→8 MiB, playability gate accepts CreatorExperienceBan rows. RIVALS still returns status 23 from gamejoin for this account (session-level, not decoder) — retried via join-game and join-game-instance both.
#Character physics + movement (Nov 22)
--physics now spawns and drives the character for real:
- Fixed ownership: NetworkOwnerV3 is a session-local id (server = Terrain's owner), not the world scope. Ownership is now derived from Terrain's owner instead of comparing to the scope.
- ISR: dirty sets larger than the schema's ISR table fall back to the class property list, so newer game versions decode (was 1289/1290 rejected).
- Streaming handshake no longer waits for the character it is supposed to unlock, and replication-focus packets are sent from received regions.
Verified in Classic Crossroads: character spawns in ~1s, falls under gravity
(y 21 -> 3), and Humanoid:MoveTo walks 28-31 studs with the server
accepting the move (completed_move_to: 1, ~10k fixed steps).
Known gap: places with custom loading screens / terrain streaming (Adopt Me, Phantom Forces) still withhold the character model, so movement there needs more streaming work. Everything else (world, scripts, remotes) works there.
#Physics session wrap (Nov 22)
Verified live in Crossroads across several runs:
- character spawns reliably in ~1s
- gravity simulation: y drops 21 -> 3 under 196.2 gravity
- MoveTo walking: 28-31 studs traversed, server accepted (completed_move_to: 1), ~1k physics steps per minute
Remaining variance is session-length dependent (a few runs ended before the move window elapsed), not physics.
#Full physics chain verified (Nov 25)
Walk -> jump -> land -> jump again, all server-acked in one session:
- walked 40 studs (MoveTo, server acked)
- jumped 6.4 studs mid-walk, landed, jumped again 6.4 studs
- 131s session, all 914 client tests + 223 core tests green
Fixes: jump ground-snap window widened to 2.5 studs while walking (fast walk oscillates the foot gap), region-gate relaxed to pose-based evidence.
#Engine-gap sweep (Nov 26)
Ran real sessions across Crossroads, MM2, and Adopt Me while deleting every recurring script error. Notable closed gaps:
VirtualUser+PlayerMouse(Hit/Target/Origin/UnitRay/TargetSurface/X/Y/ ViewSizeX/Y) with a real camera-ray pick; synthetic clicks fire the ProximityPrompt/ClickDetector under the cursor within activation distance.RunService:BindToRenderStep/UnbindFromRenderStep+ prediction/step id/ version info;InputAction/InputContextwith key dispatch; 550 missingEnumfamilies;TextChatService.ChatVersion;Teams;ContentProvider;ReplicatedFirst;LocalizationService/Translator;Statsgauges;GuiServiceinsets/mutators;Players:GetUserThumbnailAsync.Color3uint8tolerant decoding, null/typeless attribute holders retyped in place,$Attribute*children materialized for snapshot and delta attributes, legacyFindPartOnRay*,GetOrigin, Terrain bounds,CameraSubject, destroyed-instance writes/signal connects,CFrame.p, lowercase vector axes.GuiObject/GuiBase2d/InputBindingengine defaults so streaming UI and PlayerModule stop faulting on omitted properties.- Scheduler: 64 ms VM slice and half-slice frame phases (games with hundreds of RenderStepped handlers no longer abort callbacks).
- Physics: Terrain is a ground collider and bodies spawned inside geometry are lifted onto the surface, so characters stand still instead of falling out of the world.
Results: MM2 35k nodes / 77 MB / 0 errors; Adopt Me 43k nodes / ~1 error (loading-script bytecode only); Crossroads 0-3 errors depending on run. All 929 client + 223 core tests green.
Build note: the Homebrew rustc/cmake are x86_64 and crash under Rosetta with
"unable to load libxcrun". Use ./bin/cargo, which pins the native arm64
toolchain, cmake and the SDK sysroot:
./bin/cargo build --release --bin rove --manifest-path rust-client/Cargo.toml --target-dir rust-client/target-armThe pinned Tovek decompiler binary is checked in, so decompile() works.
#memory work (Waves 1–5)
Live peak RSS on Crossroads fell from ~141 MB to ~75-95 MB with the same
behaviour, and steady state sits at 20-30 MB. Completed RAM and per-tick
allocation architecture across client-core and rust-client:
- Native arm64 release builds & 16 KiB cold pages: compiling natively via
./bin/cargoavoids Rosetta overhead,property_revisionsuses compactu64entries instead of JSON numbers, and cold property storage uses 16 KiB pages so sparse reads fault in smaller spans. - 40-byte
PackedPropertiesbinary shape codecs (client-core/src/packed_properties.rs): replicated node properties andPackedMetadatareplace per-nodeserde_json::Valuemaps with a 40-bytePackedPropertiesstruct combining a 16-shard weak-internedPropertyShape(Box<[Arc<str>]>), 53 lossless binary value tags (Vector2/Vector3,Color3,UDim/UDim2,BrickColor,Enum,$ref,CFrameaxis/quaternion/matrix forms,NumberRange,Rect,Faces,DateTime,rbxassetid://IDs, and common-string indices), an inline 22-byteTypedBytesbuffer (zero heap allocations on small property sets) with weak-internedArc<[u8]>heap slices for larger sets, and shared overflow payloads. Arc<str>string interning &Arc<[u8]>wire key sharing:WorldStoreinternsclass_name,name(sharingclass_namedirectly whenName == ClassName), andparent(reusing live parentNodeRecord.idArc<str>s) in a weak-bucketedInternPoolwith bounded round-robin expiry pruning;PackedPropertiesinterns property keys asArc<str>; andreceived_storeshares a singleArc<[u8]>key acrossSpace.rowsandSpace.orderwith zero-allocation&[u8]slice lookups and< 1/4shrink-on-delete.- Lazy
&'static str-backedEnum/EnumItemVM materialization (enums.rs):EnumTypeandEnumItemborrow&'static strmetadata directly from the static catalog (Copy, zero Rust heap strings) and materialize/cache Luau userdata on demand in per-VM registry tables instead of eagerly allocating all ~660 enum types and ~5,000+ enum items per root VM and Actor VM. - Non-materializing
ProjectedNodequeries: untouched replicated instances remain compactNodeEntrystubs (OnceCell<Box<Node>>). Hierarchy and selector walks (FindFirstChild*,FindFirstAncestor*,IsDescendantOf,QueryDescendants),getinstances/getnilinstances/getscripts(instance_cache.rs),CollectionServicetag lookups,PathfindingServicespatial-bucketed obstacle/modifier extraction,joint_graphancestry/endpoint checks, and delta-filteredmaterial_history/assembly_historyreadNodeMapheaders and projected fields without materializingNodewrappers.GetAttributelikewise reads shared records and$Attributeholders without forcing wrapper expansion. - Extended
prune_fareviction &NodeData::compact_slot: every 250 ms (384-stud XZ radius, 2,048-node budget per pass from the character), pristine far parts (Part,MeshPart,WedgePart,CornerWedgePart,TrussPart,UnionOperation) and pristine far decorative/constraint leaf children (Decal,Texture,SurfaceAppearance,SpecialMesh,BlockMesh,CylinderMesh,PointLight,SpotLight,SurfaceLight,ParticleEmitter,Beam,Trail,WeldConstraint,RigidConstraint) drop theirBox<Node>wrapper back toProjectedNode.NodeData::compact_slotfrees emptyBox<NodeData>allocations (local_revision == 0) and shrinks cleared override/attribute/tag maps, whileNodeEntry::compact_destroyedcompacts destroyed wrappers. - Zero-alloc hot-path lookups, streaming
script_catalog, lazyTopologyCache, and allocator relief:SignalHub(SignalKeyRef) andWorld::methods((&str, &str)withOnceLock-cachedclass_chain) usehashbrown::HashMapEquivalentlookups with zero per-call key allocations and empty-entry shrinking;script_catalogcomputes SHA-256 digests and byte counts through streamingio::Writeadapters and shrinks digest maps on despawn;owned_part_poseskeepsTopologyCachelazy on idle 60 Hz ticks whileowned_part_scenesharesWorldViewArc<str>IDs andisr_sender/physics_senderuse stack GUIDs and exact-sized wire buffers; andmemory_maintenanceruns rate-limited per-threadmi_collect(false)(every 250 ms underallocator-mimalloc) and process-widemalloc_zone_pressure_relief(null, 0)on macOS (malloc_trim(0)on Linux/glibc, every 2 s) between batches to return wholly unused allocator pages without evicting live allocations.
#Physics, teleports, and executor surface (Wave 9, Nov 27)
- Default live physics & non-bricking recovery (
bin/rove-exec,join_cli.rs,live_session.rs):bin/rove-execpasses--physicsby default (--no-physicsdisables it).locate_character_rootresolvesHumanoid.RootPart->Character.PrimaryPart-> childHumanoidRootPart->Torso/UpperTorsoso R15, classic R6, and streamed rigs start prediction reliably withoutPrimaryPart. Pre-ready handshakes return cleanly, single owned-part ISR encode errors reject only that part, and transient prediction errors recordlast_physics_warninginstead of permanently latchingphysics_error. - Rotated colliders, R6/streamed defaults,
Flying, andBodyMoverVelocity(live_physics.rs,physics_properties.rs): decodes all 24 wirerotation_idshorthands, 6-byte packed quaternions, and 9-float rotations for both character poses and world AABB colliders (fixing rotatedSpawnLocations, floors, roads, and walls); treatsWorkspaceGravity(196.2) as constructor-known even withouttop_container_flags; accepts allHumanoidStateTypevalues (0..=18) with zero-gravityFlying(6); and sustainsBodyMoverVelocityintents forBodyVelocityandLinearVelocityfly scripts. - Live remote
ID_PHYSICS(133/231) VM forwarding (live_session.rs,live_runtime.rs): coalesces up to 256 dirty remote player and server-owned unanchored part poses per tick and appliesCFrame,Position,Orientation,Rotation,AssemblyLinearVelocity, andAssemblyAngularVelocity(with rigid/character limb rebasing) on the VM thread viaworld::set_engine_property, while preserving local script overrides ("bring player to me"). - In-VM physics solver, impulses, and character teleports (
local_physics.rs,movement.rs,part_velocity.rs): addsWorldRoot:StepPhysics(dt, parts?),stepphysics,setphysicsenabled, andisphysicsenabledwith anO(1)(< 1 µs, zero-alloc) idle per-frame fast exit; simulates legacyBodyMovers (BodyVelocity,BodyPosition,BodyGyro,BodyForce,BodyThrust,BodyAngularVelocity), modern constraints (LinearVelocity,VectorForce,AlignPosition,AlignOrientation,AngularVelocity,Torque), standaloneHumanoidmovement/jumping/Flying, andTouched/TouchEnded; addsBasePart:ApplyImpulse,ApplyAngularImpulse,ApplyImpulseAtPosition,Humanoid:EquipTool,UnequipTools, andFloorMaterial; and fixesHumanoidRootPart.Position =,PivotTo,MoveTo,f32rotation drift orthonormalization, and remote character bringing. - Executor globals &
TeleportService(instance_helpers.rs,interactions.rs,services.rs): adds executor-markedsetsimulationradius/setsimradius(clampingmath.hugeto1e9and updatingLocalPlayer),getproperties,gethiddenproperties, extendedgethiddenproperty/sethiddenproperty, assembly-rootisnetworkowner,firetouchtransmitter(plus boolean toggles), immediate non-yieldingfireproximitypromptskip, auto-provisionedTeleportService+TeleportOptions,Playerping/group/appearance helpers (GetNetworkPing,IsFriendsWith,IsInGroup,GetRankInGroup,GetRoleInGroup,HasAppearanceLoaded,ClearCharacterAppearance), andWorkspace:GetServerTimeNow()/GetRealPhysicsFPS()/GetNumAwakeParts()/DistributedGameTime/FallenPartsDestroyHeight. - Verification: 1,905 default / 1,909
embedded-workertests green acrossrust-client(1,585),client-core(259),terminal(46 default / 50embedded-worker),rust-runtime-sys(8), andanimation-codec(7) with 0 compiler warnings; releaserove runcompletes all 19 checks inexamples/rust-host-smoke.luauin0.041 sat14.2 MiBpeak memory footprint (26.4 MiBmax RSS).
#Parallel Luau, Actors, saveinstance, Terrain voxels, camera, constraints, services, and UI (Wave 10, Nov 28)
- Parallel Luau & sUNC Actor / CommChannel APIs (
scheduler.rs,actors.rs): adds per-tasktask.desynchronize(),task.synchronize(), and executor-markedisparallel(), plus non-materializinggetactors(), on-demand cross-VMrun_on_actor(actor, chunk, ...)with incremental world/journal sync, and bounded 256-channelcreate_comm_channel()/get_comm_channel(id)BindableEventbridges across the root VM and childActorVms. saveinstance/GetObjects,HttpPost, FFlags, andmessagebox(source_helpers.rs,host_io_bindings.rs): addssaveinstance/saveplaceRoblox XML v4 (.rbxlx/.rbxmx) serialization (non-materializingwith_nodereads, deterministicRBX...<Ref>linking,Decompile,RemovePlayerCharacters,NilInstances,ReturnString, workspace quota enforcement),DataModel:GetObjects/GetObjectsXML hydration,HttpPost/HttpPostAsync/httppost, bounded 512-entrygetfflag/setfflag, and headlessmessagebox.- Zero-idle-RAM sparse
Terrainvoxels & physics integration (geometry.rs,geometry_part_queries.rs,local_physics.rs): adds lazy weak-world-keyed4x4x4-stud sparse voxel storage (0 Bwhen unused, shrinking back to0 BonClear()), 15 coordinate and voxel editing methods (WorldToCell*,CellToWorld,CellCenterToWorld,FillBlock,FillBall,FillCylinder,FillWedge,FillRegion,ReplaceMaterial,ReadVoxels,WriteVoxels,Clear,CountCells), 3D Amanatides-Woo DDARaycast+Blockcast/Spherecast/Shapecast+ box/radius overlap integration (honoringIgnoreWater), and nearby solid voxel collider landing inlocal_physics.rs. Camerawallchecks & pose controls (camera.rs): adds zero-stub-materializationCamera:GetPartsObscuringTarget(OBB,Ball,Cylinder,WedgePart,CornerWedgePart+ ancestorignoreList) and PoppercamGetLargestCutoffDistance, plusGetRenderCFrame,PanUnits,TiltUnits,Zoom,Interpolate, and non-intrusiveFocus/CameraType/VR property fallbacks.Toolcombat/equip lifecycle,Humanoidaccessories, joints, and mechanical constraints (movement.rs,joint_graph.rs,local_physics.rs): addsTool:Activate/Deactivate,Equipped/Unequipped+ContextActionService.LocalToolEquipped/LocalToolUnequippedand bidirectionalGripbasis sync;Humanoid:GetAccessories/AddAccessory(AccessoryWeld) /RemoveAccessories;BasePart:GetJoints/BreakJoints/CanCollideWith/ResizeandModel:BreakJoints; and 2-stage mechanical constraints (SpringConstraint,RopeConstraint,RodConstraint,HingeConstraint,PrismaticConstraint,NoCollisionConstraint),CustomPhysicalPropertiesbounce/friction, dynamic part-vs-part collisions, andWorkspace.FallenPartsDestroyHeightvoid cleanup.- Expanded services & modern UI layout constraints (
services.rs,gui.rs): addsMarketplaceService,BadgeService,GroupService,Lighting(solar vectors +ClockTime/TimeOfDay/MinutesAfterMidnightsync),Chat,SocialService,AvatarEditorService,PhysicsServicecollision-group CRUD,DataModel:BindToClose/GetJobsInfo, zero-materializationUIScale/UISizeConstraint/UIAspectRatioConstraint/UIPageLayout(Next,Previous,JumpTo,JumpToIndex, page signals) /UITableLayout, andGuiService:GetScreenResolution/SelectedObject/AutoSelectGuiEnabled. - Verification: 1,948 default / 1,952
embedded-workertests green acrossrust-client(1,628),client-core(259),terminal(46 default / 50embedded-worker),rust-runtime-sys(8), andanimation-codec(7) with 0 compiler warnings (RUSTFLAGS="-D warnings"across--all-targets); releaserove runcompletes all 20 checks inexamples/rust-host-smoke.luauin0.065 sat16.0 MiBpeak memory footprint (28.9 MiBmax RSS), andmemory_bench 100000stays at52.1 MiBpeak memory footprint idle (62.6 MiBRSS,483 B/node) with zero startup bloat.
Remaining limits: streaming windows driven by the server's own highlight sets
are not implemented yet, places with custom loading/terrain-streaming gates can
still withhold character spawn until their custom handshake completes, and
local unit/smoke suites verify the embedded Luau VM and Rust host rather than
live server anti-cheat acceptance (this is not a 100% sUNC or anti-cheat
bypass claim).
This page is executor.md in the Rove repository.