Repository navigation
wasm: wasm exceptions and JSPI for libcvc's web hosts (JX2, first part) - #1409
Merged
Merged
Conversation
- CMakeLists.txt: -fwasm-exceptions for every wasm compile and link, replacing -fexceptions (JS exceptions). cvcpkg's wasm packages are built this way since cy-pca/cvcpkg#624, and the two kinds of object don't link together. bindings/pycvc/wasm/link-host.sh likewise. - Every Asyncify host links -sJSPI instead of -sASYNCIFY=1 -sASYNCIFY_STACK_SIZE: the gallery demos (examples/CMakeLists.txt), ari's web target, and arigl's (cyprty, arigl_web, arigl_term). JSPI suspends main's stack where Asyncify unwound it, so the unwind room goes too. - .github/scripts/pin-wasm-pre-jx1.sh and all 12 calls to it are removed (ci.yml, publish-cvcgl-wasm.yml, publish-pycvc-gl-wasm.yml, deploy-pages.yml). The wasm jobs install cvcpkg's current bundles again.
ari's web build links -sJSPI now. emsdk's node 22.16 (V8 12.4) has no WebAssembly.Suspending, even with --experimental-wasm-jspi, and Node has JSPI on by default only from 24.20. The job installs cvcpkg's nodejs26 (cy-pca/cvcpkg#632), refuses one without JSPI, and runs ari.js's five steps on it: the snapshot, the net probe, sign-in, and the two L4 frame checks. The ImageMagick round trip and the state_exec smoke link no JSPI and stay on emsdk's node.
… link)
VTK 9.5's Common/Misc/CMakeLists.txt compiles exprtk with -fexceptions and
gives every program that links VTK::CommonMisc -sDISABLE_EXCEPTION_CATCHING=0
and -fexceptions. Under -fwasm-exceptions emcc refuses the first ("not
compatible with -fwasm-exceptions"), so arigl.js and ariglx.js failed to link
on #1409's arigl-web and ariglx-web jobs.
cvcpkg's wasm vtk (9.5.0+cvc.6) is built with wasm exceptions, exprtk
included, so the two options don't describe it. CMake/CvcVtkWasmExceptions.cmake
drops them from VTK::CommonMisc in a browser build. It is called after each
find_package(VTK) (cvcGL, arigl, examples, pycvc), since imported targets
belong to the directory that found them.
Master added two calls to the pre-JX1 pin, which this branch deletes: one in ci.yml's new physics wasm job, and one in deploy-pages.yml, with a lockfile check that existed only for it. Both go. deploy-pages keeps master's new .github/actions/cvcpkg-cli/** path.
transfix
added a commit
to cy-pca/cvcpkg
that referenced
this pull request
Nov 21, 2026
…y-cp312 cvc.7 (#633) The gate added in #624 read only .a and .o files, so it never saw a Python extension: emcc -shared writes a relocatable wasm object named *.so, which a host links statically. numpy-cp312 2.4.6+cvc.6 predates #624, and its _multiarray_umath extension uses Emscripten's JS exceptions. libcvc's ariglx link (transfix/libcvc#1409) fails on it: undefined symbol __resumeException. check_wasm_exceptions now picks files by magic, whatever their names: ar archives, relocatable objects (a linking section), side modules (dylink.0) and LLVM bitcode. A linked module is still skipped, since nothing links it. numpy-cp312 goes to cvc.7 so its wasm and wasm-mt columns rebuild with -fwasm-exceptions. The native columns are unchanged.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…il JX2 numpy-cp312 2.4.6+cvc.7 was published for wasm and wasm-mt on 2026-11-21 (23:43Z), built with -fwasm-exceptions for JX2 (#1409). libcvc still links ariglx with Emscripten's JS exceptions, so every ariglx-web job that has installed it since fails to link bin/ariglx.js: wasm-ld: error: .../numpy/_core/_multiarray_umath.cpython-312-wasm32-emscripten.so: undefined symbol: __cpp_exception (also __wasm_lpad_context, _Unwind_CallPersonality) pin-wasm-pre-jx1.sh now puts cvc.6 back, as it does for the JX1 bundles. cvc.6 is the bundle #1417's ariglx-web jobs linked on both columns. Checked locally on wasm and wasm-mt: with cvc.7 installed, 2 of numpy's 19 extensions import __cpp_exception; after the script, the lockfile says cvc.6 and none do. JX2 deletes the script and its calls.
This was referenced Nov 22, 2026
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…il JX2 numpy-cp312 2.4.6+cvc.7 was published for wasm and wasm-mt on 2026-11-21 (23:43Z), built with -fwasm-exceptions for JX2 (#1409). libcvc still links ariglx with Emscripten's JS exceptions, so every ariglx-web job that has installed it since fails to link bin/ariglx.js: wasm-ld: error: .../numpy/_core/_multiarray_umath.cpython-312-wasm32-emscripten.so: undefined symbol: __cpp_exception (also __wasm_lpad_context, _Unwind_CallPersonality) pin-wasm-pre-jx1.sh now puts cvc.6 back, as it does for the JX1 bundles. cvc.6 is the bundle #1417's ariglx-web jobs linked on both columns. Checked locally on wasm and wasm-mt: with cvc.7 installed, 2 of numpy's 19 extensions import __cpp_exception; after the script, the lockfile says cvc.6 and none do. JX2 deletes the script and its calls.
deploy-pages.yml conflicted: #1438 moved the cvcpkg CLI step ahead of the CMake step and split the lockfile check before the pin call. Master's step order is kept and the pin call goes, as JX2 deletes the pin script.
transfix
marked this pull request as ready for review
November 22, 2026 04:44
This was referenced Nov 22, 2026
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
The ariglx-web lanes link numpy's wasm build, which needs wasm exceptions.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…clock-rate JX2 deleted .github/scripts/pin-wasm-pre-jx1.sh, so this branch's numpy pin goes with it.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…n mouse look (#1420) * The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…e.ari) (#1422) * The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * The conference app as a component library (cvc://components/conference.ari) The baseline conference app's windows and tick move into a shipped library, so cyprty and other apps import them instead of carrying a copy (cyprty's roadmap §2). - Units: conference (My Camera), conference_avatar (Colour, Wear, Body, energy) and conference_peers (a camera window per participant, arg rows). - Functions: conference-step runs the whole app. Its pieces can be called on their own (conference-join, conference-media-open, conference-name-step, conference-devices-step, conference-avatar-step), so an app can take some of the conference. - The library imports room_users.ari and chat.ari itself. - conference_roster.ari is now those units placed with its menus, and on_tick is (conference-step): 530 lines down to 114. - Fix: the join now also resets the Body picker's keys. Before, they stayed unset (nil), so the picker never filled. - INDEX.ari and ARIADNE.md's component table list the three units. Tests: the baseline document is the library's windows and functions; the library's steps join, fill the pickers, send a pick and show a refusal; ShippedComponentsLoadClean covers the new file. * conference library: clang-format the changed lines * conference.ari: the Audio window is the library's too conference.ari imports audio_buffers.ari (#1421) beside room_users and chat, and conference-join seeds tree.audio.open to 0, so the Audio window waits for the View menu. The baseline keeps its Audio include and View > Audio item; the test checks the window and the seed. * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * OW5a: the room's vehicles are in the client's world A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a moving one, as on the relay, instead of walking through and snapping back. client_pump takes the entity_playout and holds every entity except the one the participant drives or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and OW5c still to come. * OW5a: clang-format * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * OW5a: the room's vehicles are in the client's world A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a moving one, as on the relay, instead of walking through and snapping back. client_pump takes the entity_playout and holds every entity except the one the participant drives or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and OW5c still to come. * OW5a: clang-format * OW5b: the vehicle a client drives is predicted (kinematic plant) On the kinematic plant a driven vehicle is nav's bicycle integrated once a navigator tick on the tick's command, its chassis box moved a step at a time between the ticks, so a client that knows its numbers runs it step for step. - vehicle_kinematics.h: kinematic_drive (the bicycle's numbers, the envelope, the steps per tick and the clock ticks the navigator ticks on), kinematic_vehicle, kinematic_vehicle_step and kinematic_vehicle_at. - WorldVehicles::kinematics(id); before_step(clock_tick), which SceneWorld::follow calls, notes the navigator's phase. room_entity::drive carries it. - holon: the relay sets a driver's command after each step (not once a frame), so a client's steps match it. predict_vehicle runs the model as the walker is predicted and reconciles to the vehicle's samples (snap from the sample and replay past reconcile_tol). - client_pump predicts the vehicle when its room entity carries the numbers (else plays it out as before); arigl draws it at the predicted pose (entity_playout::show_predicted). Tests: the model stays within 0.05 mm of the relay's Humvee over 9 s of throttle, a turn, the brake and reverse; the holon predicts it with nothing corrected and corrects a 1.5 m push at the next sample; client_pump predicts with the numbers, plays out without, and walks again when out. * OW5b: clang-format * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…legacy A/B (TexMol T5 part 1) (#1439) * cvc::pocket_tunnel: PocketTunnel on the shared cocone core, with its legacy A/B (TexMol T5 part 1) PocketTunnel (Goswami and Bajaj, UT 2008; transfix/volrover src/PocketTunnel, UT LGPL-2.1): the pockets, tunnels and voids of a surface, as the stable manifolds of the distance function's maxima outside it. - The cocone core P1 ported (init, util, tcocone, rcocone, datastruct, stepping) moves from src/cvc/geometry/skeleton to src/cvc/geometry/cocone, shared by both ports. The skeleton's own stages keep their files and get skeleton_stages.h. PocketTunnel's init.cpp and tcocone.cpp were this code; its util.cpp adds only cell_volume, now in the core. - cvc::pocket_tunnel (inc/cvc/geometry/pocket_tunnel.h): S_max (grow_maximum, merging the touching outside clusters, volumes and their sort), the mouths (detect_handle) and the output (convert_pocket_tunnel_to_rawc_geometry) as one coroutine, a resumable pocket_tunnel_stepper and its result_job, with a param_table (pocket_tunnel_params.h). The result lists every cluster with its kind, mouths, volume, cells and maxima, which the legacy library only printed; the coloured surface keeps the legacy colours. No statics, no files, no stderr; bad input throws pocket_tunnel_error with a reason. The quadratic legacy pieces (the linked-list merges, the volume table, the selection sort, a facet scan per shown feature) are a union-find, a table, a stable merge sort and one scan. - pocket_tunnel_test: the four chambered-ball inputs (a pocket, a tunnel, three chambers, a cavity), the output's invariants (closed, consistently oriented boundaries whose enclosed volume is the cluster's), bad and degenerate input, point order (which moves only a few surface cells: Tight Cocone walks in tet_complex's insertion order), independent calls, two apps at once on their own schedulers and state trees, T7 resumability and cancel, the parameter keys on the state tree; natively and in the wasm-mt ports lane. - The legacy A/B (tools/volrover-goldens): pockettunnel_driver.cpp runs the legacy entry once a process, through a read-only hook patched into pocket_tunnel.cpp, and records its clusters, geometry and Tight Cocone marking; make_goldens.py --check compares by content. Given the legacy marking, the port's own stages match the legacy library exactly on all four cases (clusters, triangles, colours). End to end they match exactly on three; Tight Cocone's greedy peeling walks in the cells' order, which in the legacy code is their addresses, and on the tunnel case that marks a few surface cells differently (the legacy library itself gives the other result in one run of five within a process). - CI: pocket_tunnel_test joins SAN_CXX_TESTS; the cgal-ab path filter watches the cocone core's new directory; the volrover goldens job checks PocketTunnel too. * pocket_tunnel: the legacy A/B on PDB 1GRL's surface, now that cvc::mol::blur is on master - tools/volrover-goldens/inputs/pockettunnel/1grl.pts: 1GRL's heavy atoms blurred by cvc::mol::blur (blobbiness -0.2, a 3 A grid) and cvc::iso at 10, 2,609 points as floats; its golden from the legacy library. make_inputs.py leaves it alone (it needs libcvc). - OnAProtein (native, where libcvc has its mesher): makes the surface at the skeleton lab's 2 A (10,881 points; the largest feature a two-mouth tunnel of about 2,600 A^3) and at 3 A, checks the committed points against the latter, and writes them again with CVC_POCKETTUNNEL_WRITE_1GRL. - The A/B covers 1grl: after Tight Cocone, the port is the legacy library exactly (19 clusters, 490 triangles, 251 coloured points). End to end the large pocket is the legacy's cell for cell, the tunnel has 317 cells to its 309 (1,195 A^3 to 1,181), and the legacy run finds 17 one-cell pockets to the port's 3; large clusters are compared to 5%. * ci: pin numpy-cp312 to cvc.6, its last JS-exceptions wasm bundle, until JX2 numpy-cp312 2.4.6+cvc.7 was published for wasm and wasm-mt on 2026-11-21 (23:43Z), built with -fwasm-exceptions for JX2 (#1409). libcvc still links ariglx with Emscripten's JS exceptions, so every ariglx-web job that has installed it since fails to link bin/ariglx.js: wasm-ld: error: .../numpy/_core/_multiarray_umath.cpython-312-wasm32-emscripten.so: undefined symbol: __cpp_exception (also __wasm_lpad_context, _Unwind_CallPersonality) pin-wasm-pre-jx1.sh now puts cvc.6 back, as it does for the JX1 bundles. cvc.6 is the bundle #1417's ariglx-web jobs linked on both columns. Checked locally on wasm and wasm-mt: with cvc.7 installed, 2 of numpy's 19 extensions import __cpp_exception; after the script, the lockfile says cvc.6 and none do. JX2 deletes the script and its calls. * pocket_tunnel: the goldens are the legacy library's on Linux, as CI's check makes them The first Linux run of the volrover goldens check (run 44987475380) remade three of the five PocketTunnel goldens differently from the Windows ones. The legacy result follows the cells' heap order, so glibc's and MSVC's heaps mark different cells outside on tunnel (33 more on Linux), three_chambers (41 fewer) and 1grl (67 fewer). As with Skeletonization's goldens, the committed set is now CI's (ubuntu-24.04, GCC, cvcpkg's CGAL), from that run's artifact. - MatchesTheLegacyLibraryAfterTightCocone: unchanged and exact on all five; given either platform's marking, the port's stages make that platform's result. - MatchesTheLegacyLibrary: tunnel is now exact end to end (a tunnel of 3,085 cells and five pockets of one or two, as the port finds); three_chambers moves to the 5% group (each cluster 3 to 6 cells more than the legacy's); 1grl's tunnel is 317 cells to 307. - README: the table, the end-to-end numbers and the platform note. * LBIE: no edge flag for an edge stored outside the grid The asan-ubsan job stopped pocket_tunnel_test's OnAProtein at 1GRL's 3 A surface: octree.cpp:2656, "shift exponent -1 is negative". An edge on the volume's far boundary is stored in a cell outside the grid; xyz2octcell gives -1 there, so is_eflag_on() and eflag_on() computed idx -3 to -1 and shifted by idx%8. Both now treat such an edge as having no flag. The mesh does not change. Every caller makes a quad only through is_min_edge(), which returns 0 for these edges before it touches the frame, because is_refined() is 1 outside the grid. eflag_on() already changed nothing for them, since the shifted bit fell outside the char. pocket_tunnel 15, lbie_mesher 69, algorithm 10, geometry 122 and skeleton 11 pass natively, and the 3 A surface still matches the committed 1grl.pts. * pocket_tunnel_test: 1GRL's 3 A surface exactly on x86, its size on aarch64 recipe / macos-latest / Debug ran OnAProtein for the first time on this PR (every earlier macOS run was cancelled), and its 3 A surface had 2,606 points to the committed 1grl.pts's 2,609. x86 Linux and Windows make the same 2,609. On aarch64 the compilers' default fuses the mesher's multiply-adds; the mesher is not built with -ffp-contract=off, as blur.cpp is, and the 2 A surface still has the same 10,881 points. So the committed-copy check stays exact where __FP_FAST_FMA is not defined (x86, and MSVC everywhere), and on a target with fused multiply-add it checks the point count to 1%. The README says so. pocket_tunnel_test passes 15/15 natively (Windows, exact path).
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…-secondary #1439 moved the cocone core to src/cvc/geometry/cocone and the skeleton's U1/U2 declarations to skeleton/skeleton_stages.h, so secondary.h now includes that. The eight conflicts are adjacent additions, and both sides are kept: the build lists, the goldens tool (CMakeLists, make_goldens.py, make_inputs.py, README) and the TexMol roadmap. The shared cvcgeom.h shim is #1439's plus line_t and lines(). With that shim, the legacy SecondaryStructures makes the same bytes as before.
transfix
added a commit
that referenced
this pull request
Nov 23, 2026
…lants, world follow, ground, surfaces) (#1444) * The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * OW5a: the room's vehicles are in the client's world A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a moving one, as on the relay, instead of walking through and snapping back. client_pump takes the entity_playout and holds every entity except the one the participant drives or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and OW5c still to come. * OW5a: clang-format * OW5b: the vehicle a client drives is predicted (kinematic plant) On the kinematic plant a driven vehicle is nav's bicycle integrated once a navigator tick on the tick's command, its chassis box moved a step at a time between the ticks, so a client that knows its numbers runs it step for step. - vehicle_kinematics.h: kinematic_drive (the bicycle's numbers, the envelope, the steps per tick and the clock ticks the navigator ticks on), kinematic_vehicle, kinematic_vehicle_step and kinematic_vehicle_at. - WorldVehicles::kinematics(id); before_step(clock_tick), which SceneWorld::follow calls, notes the navigator's phase. room_entity::drive carries it. - holon: the relay sets a driver's command after each step (not once a frame), so a client's steps match it. predict_vehicle runs the model as the walker is predicted and reconciles to the vehicle's samples (snap from the sample and replay past reconcile_tol). - client_pump predicts the vehicle when its room entity carries the numbers (else plays it out as before); arigl draws it at the predicted pose (entity_playout::show_predicted). Tests: the model stays within 0.05 mm of the relay's Humvee over 9 s of throttle, a turn, the brake and reverse; the holon predicts it with nothing corrected and corrects a 1.5 m push at the next sample; client_pump predicts with the numbers, plays out without, and walks again when out. * OW5b: clang-format * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it. * OW5c: a client's statics from the relay's world document The room scene carries only what every client can draw (planes, boxes, spheres, meshes by URI), so a client's walk met none of a document's meshes, terrain or generated buildings. - room_world_source (conf.rooms.<room>.world_source.{uri, sha256}): the document the relay runs; arisrv writes it beside the room scene (none for a C++ twin). file_sha256. - world_replica: a client that resolves the same URI to a file with the same hash builds the document's world (SceneWorld::from_scene, no vehicles, keys under its own prefix) and takes its statics: each static body as the world made it, and each node's run-time colliders as they become ready (a generated world's terrain, buildings and edge walls). Only what is in the world now counts. - avatar_static: kind::body (a body_desc, made static, default material) and kind::geometry (a world_geometry, through add_world_geometry); avatar_world removes their fields too. - client_pump(..., world) takes the replica's statics once it is ready, the room scene's until then; arigl passes one and logs its status. Tests: on a 1 m dome of terrain a client with the replica stands at z 0.99, with the room scene's statics at z 0, and another document under the same name is refused; on a generated world it stands at z 1.23 where the relay's ground is at 1.22. * OW5c: clang-format * OW5d: predict the vehicle a client drives on the dynamic plant The relay publishes what a client needs to run a `dynamic` vehicle (dynamic_drive: its preset and five numbers, the navigator's hold on a command, the ticks it ticks on; WorldVehicles::dynamics, room_entity::dynamics). dynamic_vehicle_model runs the relay's dyn_bike_plant with that vehicle alone and no world, one substep a physics step; dyn_bike_plant::save/restore let the holon log and replay it. holon::predict_vehicle takes a dynamic_drive, and client_pump uses it when the room's entity carries one. * OW5e: predict the vehicle a client drives on the dynamic4w plant * OW5f: clients follow the relay's world switch and generated worlds * OW5g: predict the dynamic plants on the world's ground * OW5h: a client's statics take the relay's surfaces * OW5i: predict the jolt plant's vehicle in a Jolt world of the client's own The vehicle a participant drives on the jolt plant (nav_plant: a Jolt vehicle in the relay's world) is predicted like the dynamic plants'. The room's entities carry it as dynamic_drive with plant "jolt" (WorldVehicles::dynamics). dynamic_vehicle_model runs it in a Jolt world made as the relay's scene world is, with the holon's statics and the vehicle alone, and keeps the whole of that world (world::save) as the vehicle's state, so a sample restores what was predicted for its tick and replays. New statics rebuild the model's world. avatar_world gains a constructor from a world_config. The gearbox, clutch and engine are not in the pose stream; with the relay's sample every 4 ticks each sample finds the model within 3-5 mm of the relay's Humvee, flat and over a 3 m dome.
transfix
added a commit
that referenced
this pull request
Nov 24, 2026
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * OW5a: the room's vehicles are in the client's world A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a moving one, as on the relay, instead of walking through and snapping back. client_pump takes the entity_playout and holds every entity except the one the participant drives or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and OW5c still to come. * OW5a: clang-format * OW5b: the vehicle a client drives is predicted (kinematic plant) On the kinematic plant a driven vehicle is nav's bicycle integrated once a navigator tick on the tick's command, its chassis box moved a step at a time between the ticks, so a client that knows its numbers runs it step for step. - vehicle_kinematics.h: kinematic_drive (the bicycle's numbers, the envelope, the steps per tick and the clock ticks the navigator ticks on), kinematic_vehicle, kinematic_vehicle_step and kinematic_vehicle_at. - WorldVehicles::kinematics(id); before_step(clock_tick), which SceneWorld::follow calls, notes the navigator's phase. room_entity::drive carries it. - holon: the relay sets a driver's command after each step (not once a frame), so a client's steps match it. predict_vehicle runs the model as the walker is predicted and reconciles to the vehicle's samples (snap from the sample and replay past reconcile_tol). - client_pump predicts the vehicle when its room entity carries the numbers (else plays it out as before); arigl draws it at the predicted pose (entity_playout::show_predicted). Tests: the model stays within 0.05 mm of the relay's Humvee over 9 s of throttle, a turn, the brake and reverse; the holon predicts it with nothing corrected and corrects a 1.5 m push at the next sample; client_pump predicts with the numbers, plays out without, and walks again when out. * OW5b: clang-format * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it. * OW5c: a client's statics from the relay's world document The room scene carries only what every client can draw (planes, boxes, spheres, meshes by URI), so a client's walk met none of a document's meshes, terrain or generated buildings. - room_world_source (conf.rooms.<room>.world_source.{uri, sha256}): the document the relay runs; arisrv writes it beside the room scene (none for a C++ twin). file_sha256. - world_replica: a client that resolves the same URI to a file with the same hash builds the document's world (SceneWorld::from_scene, no vehicles, keys under its own prefix) and takes its statics: each static body as the world made it, and each node's run-time colliders as they become ready (a generated world's terrain, buildings and edge walls). Only what is in the world now counts. - avatar_static: kind::body (a body_desc, made static, default material) and kind::geometry (a world_geometry, through add_world_geometry); avatar_world removes their fields too. - client_pump(..., world) takes the replica's statics once it is ready, the room scene's until then; arigl passes one and logs its status. Tests: on a 1 m dome of terrain a client with the replica stands at z 0.99, with the room scene's statics at z 0, and another document under the same name is refused; on a generated world it stands at z 1.23 where the relay's ground is at 1.22. * OW5c: clang-format * OW5d: predict the vehicle a client drives on the dynamic plant The relay publishes what a client needs to run a `dynamic` vehicle (dynamic_drive: its preset and five numbers, the navigator's hold on a command, the ticks it ticks on; WorldVehicles::dynamics, room_entity::dynamics). dynamic_vehicle_model runs the relay's dyn_bike_plant with that vehicle alone and no world, one substep a physics step; dyn_bike_plant::save/restore let the holon log and replay it. holon::predict_vehicle takes a dynamic_drive, and client_pump uses it when the room's entity carries one. * OW5e: predict the vehicle a client drives on the dynamic4w plant * OW5f: clients follow the relay's world switch and generated worlds * OW5g: predict the dynamic plants on the world's ground * OW5h: a client's statics take the relay's surfaces * OW5i: predict the jolt plant's vehicle in a Jolt world of the client's own The vehicle a participant drives on the jolt plant (nav_plant: a Jolt vehicle in the relay's world) is predicted like the dynamic plants'. The room's entities carry it as dynamic_drive with plant "jolt" (WorldVehicles::dynamics). dynamic_vehicle_model runs it in a Jolt world made as the relay's scene world is, with the holon's statics and the vehicle alone, and keeps the whole of that world (world::save) as the vehicle's state, so a sample restores what was predicted for its tick and replays. New statics rebuild the model's world. avatar_world gains a constructor from a world_config. The gearbox, clutch and engine are not in the pose stream; with the relay's sample every 4 ticks each sample finds the model within 3-5 mm of the relay's Humvee, flat and over a 3 m dome. * OW5j: the boat a client drives, predicted on the relay's water ARIADNE_WORLDS.md section 18.5. A dynamicboat boat a participant drives is now predicted, like the other plants. - dynamic_drive takes plant dynamicboat, and WorldVehicles::dynamics fills it for a boat fleet's vehicle (its preset with its mass and top speed, and the navigator's hold). - dynamic_vehicle_model runs it on dyn_boat_plant in a Jolt world of its own, with the holon's statics and their water. Its state is that world and the driver's memory, which the save does not hold: dyn_boat_plant::remember and resume. The boat goes on the water at its first sample over water deep enough for it. - The water comes with the statics: world_replica::water (the replica world's fluid fields, else the still water the relay adds for its boats, boat_still_water, which WorldVehicles now calls too), passed by client_pump to holon::set_statics. Tests: the relay's launch on a still lake against the client's model, within 0.8 mm and 0.08 mrad at each sample every 4 ticks (AriadneOneWorld); the replica's water; exact agreement and a corrected push in the holon; the client pump played out without water and predicted with it; a plant restored with its driver's memory steps on to the same state hash. * OW5k: a client finds the relay's world document in a world pack ARIADNE_WORLDS.md sections 12 and 18.5, AD1's first slice. world_pack (world_pack.h) is a directory with an index, world-pack.index: one "<sha256> <size> <path>" line per file. write_world_pack_index writes one. world_replica looks in the packs it is pointed at (CVC_WORLD_PACKS, add_pack) when the room's document URI does not give the relay's bytes here. It finds the document by the room's SHA-256, in the first pack that lists it and whose files all match the index, and builds the world from there. A pack with a file that differs from its index is refused, and the status says which. * OW5l: a sea's waves under a predicted boat The relay's scene world now reads its water's waves at the clock's time: SceneWorld::follow sets the world's field time to the clock's at its first call, as world::follow does. The step ending on tick T reads the sea at T x fixed_dt however late the world was attached, and the bodies float on the waves the drawn sea shows. A client's boat model sets its world's field time to the sample's tick x fixed_dt, so it rides the relay's waves. AriadneOneWorld.AClientsBoatRidesTheRelaysWaves: on a lake with a 14 m/s wind sea that heaves the launch 0.71 m, each sample finds the model within 2.2 mm of it and 6.4 mm of its height; a model reading the waves half a second off is 171 mm off. The gust-front and wake frame-pacing tests now pin the clock-anchored field time. * OW5m: a vehicle's attitude in its pose The relay's pose for an entity whose chassis is a body in its world (a jolt vehicle, a boat's hull, a dynamic plant's box) now carries that body's attitude and vertical speed, for the room's entities and for a driver's pose alike; before, a turn about z alone. A jolt or boat model takes its chassis's pitch, roll and vertical speed from each sample; a heading-only sample (an older relay's) keeps the predicted ones. The drive axes read the pose's heading whatever its tilt. On OW5l's waves the boat model is within 7.9 mrad of the hull's attitude from its first sample (145 mrad before); the jolt Humvee within 3.7 mrad (17.5 before). * OW5n: a four-wheel suspension from its pose A dynamic4w model takes its suspension's pitch and roll from each sample that carries them (the relay's box, OW5m) and its heave from the box's height (dyn_4w_plant::box_pose inverted). The rates of heave, roll and pitch stay the model's: the pose stream carries no roll or pitch rate, and its vertical speed is the box's after the relay's step under gravity. A heading-only sample keeps the predicted suspension. A client joining a four-wheel vehicle mid-turn is now within 24-26 mrad of its attitude (94-98 before) and 0.3-1.2 mm of its height (1.7-10). drive_as_the_world_does gains sampled_too and join for the new AriadneOneWorld.AClientJoinsAFourWheelVehicleMidTurn. * OW5m: the room's entity poses carry the chassis's attitude too The relay streams the room's vehicles from conference::entity_pose_subjects, which still built a heading-only pose; OW5m had changed only holon's ride_of (a driver's pose and holon::entities). Both now use entity_ride (world_vehicles.h), with WorldVehicles::world() for the chassis. Every client draws the room's vehicles from that stream, so they were drawn level. client_run gains entity_gap: the jolt and boat runs check the vehicle's own entry in that stream is within 1e-6 rad of the chassis. Without this fix it was 169 mrad off for the jolt car on the hill and 207 mrad for the boat on the waves. * OW5n: a vehicle's spin and steering in its pose The pose stream carries each entry's angular velocity (mrad/s) and a vehicle's steering angle (microradians), delta-encoded like the rest (PoseEntry.wx, wy, wz, steer). PoseSnapshot.carries says the relay sends them (kCarriesMotion); a relay before this leaves it 0, so its zeros read as not known, not as not turning, and a client keeps its model's values. The relay fills them from the chassis body (entity_ride's angular velocity) and the plant's steering (entity_info::steer; holon::steer for a driver). A client's sample carries them (pose_sample::steer) through holon::apply_authoritative to dynamic_vehicle_model::at: the dynamic plants take the steering angle and yaw rate, dynamic4w the roll and pitch rates too, a jolt or boat model its chassis's spin. A client joining a four-wheel Humvee mid-turn, through the pose stream, is now within 0.7 mrad of its attitude and 0.3 mrad of its heading (24-25 and 10.4 with the attitude alone). The jolt Humvee is within 1.1 mrad (3.7); the boat on the waves within 3.6 mm of height (4.7). The waves test's phase check now skews by a second (15 mm of drift) rather than half (8 mm). * OW5o: the room's vehicles in the car a client drives A jolt or boat model's world holds a box for each of the room's vehicles the client shows (dynamic_vehicle_model::hold_obstacles, from holon::held_obstacles). Before each step each goes where its vehicle is to be at the step's end, along its velocity, as the walker's world holds them. A kinematic-plant vehicle is a kinematic box. A vehicle the relay can push (a jolt vehicle, a dynamic plant's box) is a body of its mass (room_entity::dynamics, through hold_entity's new mass), put where it is shown before each step, so the car shoves it as the relay's does. The boxes are made with the model's world (obstacle_room: one per vehicle held and two spares of each size and mass), since world::restore needs the same bodies. When more come into view than it has room for, the holon makes the model again with room (vehicle_rebuilds). Held entities now count their steps while the participant drives, too. The relay's car into a parked vehicle, sampled every 4 ticks through the pose stream: the model is within 3.9 mm holding its box, 50 mm without (kinematic plant); 3.9 mm and 21 mm for a jolt Humvee shoved 4 m.
transfix
added a commit
that referenced
this pull request
Nov 25, 2026
…room in a dynamic plant's car (#1511) * The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * OW5a: the room's vehicles are in the client's world A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a moving one, as on the relay, instead of walking through and snapping back. client_pump takes the entity_playout and holds every entity except the one the participant drives or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and OW5c still to come. * OW5a: clang-format * OW5b: the vehicle a client drives is predicted (kinematic plant) On the kinematic plant a driven vehicle is nav's bicycle integrated once a navigator tick on the tick's command, its chassis box moved a step at a time between the ticks, so a client that knows its numbers runs it step for step. - vehicle_kinematics.h: kinematic_drive (the bicycle's numbers, the envelope, the steps per tick and the clock ticks the navigator ticks on), kinematic_vehicle, kinematic_vehicle_step and kinematic_vehicle_at. - WorldVehicles::kinematics(id); before_step(clock_tick), which SceneWorld::follow calls, notes the navigator's phase. room_entity::drive carries it. - holon: the relay sets a driver's command after each step (not once a frame), so a client's steps match it. predict_vehicle runs the model as the walker is predicted and reconciles to the vehicle's samples (snap from the sample and replay past reconcile_tol). - client_pump predicts the vehicle when its room entity carries the numbers (else plays it out as before); arigl draws it at the predicted pose (entity_playout::show_predicted). Tests: the model stays within 0.05 mm of the relay's Humvee over 9 s of throttle, a turn, the brake and reverse; the holon predicts it with nothing corrected and corrects a 1.5 m push at the next sample; client_pump predicts with the numbers, plays out without, and walks again when out. * OW5b: clang-format * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it. * OW5c: a client's statics from the relay's world document The room scene carries only what every client can draw (planes, boxes, spheres, meshes by URI), so a client's walk met none of a document's meshes, terrain or generated buildings. - room_world_source (conf.rooms.<room>.world_source.{uri, sha256}): the document the relay runs; arisrv writes it beside the room scene (none for a C++ twin). file_sha256. - world_replica: a client that resolves the same URI to a file with the same hash builds the document's world (SceneWorld::from_scene, no vehicles, keys under its own prefix) and takes its statics: each static body as the world made it, and each node's run-time colliders as they become ready (a generated world's terrain, buildings and edge walls). Only what is in the world now counts. - avatar_static: kind::body (a body_desc, made static, default material) and kind::geometry (a world_geometry, through add_world_geometry); avatar_world removes their fields too. - client_pump(..., world) takes the replica's statics once it is ready, the room scene's until then; arigl passes one and logs its status. Tests: on a 1 m dome of terrain a client with the replica stands at z 0.99, with the room scene's statics at z 0, and another document under the same name is refused; on a generated world it stands at z 1.23 where the relay's ground is at 1.22. * OW5c: clang-format * OW5d: predict the vehicle a client drives on the dynamic plant The relay publishes what a client needs to run a `dynamic` vehicle (dynamic_drive: its preset and five numbers, the navigator's hold on a command, the ticks it ticks on; WorldVehicles::dynamics, room_entity::dynamics). dynamic_vehicle_model runs the relay's dyn_bike_plant with that vehicle alone and no world, one substep a physics step; dyn_bike_plant::save/restore let the holon log and replay it. holon::predict_vehicle takes a dynamic_drive, and client_pump uses it when the room's entity carries one. * OW5e: predict the vehicle a client drives on the dynamic4w plant * OW5f: clients follow the relay's world switch and generated worlds * OW5g: predict the dynamic plants on the world's ground * OW5h: a client's statics take the relay's surfaces * OW5i: predict the jolt plant's vehicle in a Jolt world of the client's own The vehicle a participant drives on the jolt plant (nav_plant: a Jolt vehicle in the relay's world) is predicted like the dynamic plants'. The room's entities carry it as dynamic_drive with plant "jolt" (WorldVehicles::dynamics). dynamic_vehicle_model runs it in a Jolt world made as the relay's scene world is, with the holon's statics and the vehicle alone, and keeps the whole of that world (world::save) as the vehicle's state, so a sample restores what was predicted for its tick and replays. New statics rebuild the model's world. avatar_world gains a constructor from a world_config. The gearbox, clutch and engine are not in the pose stream; with the relay's sample every 4 ticks each sample finds the model within 3-5 mm of the relay's Humvee, flat and over a 3 m dome. * OW5j: the boat a client drives, predicted on the relay's water ARIADNE_WORLDS.md section 18.5. A dynamicboat boat a participant drives is now predicted, like the other plants. - dynamic_drive takes plant dynamicboat, and WorldVehicles::dynamics fills it for a boat fleet's vehicle (its preset with its mass and top speed, and the navigator's hold). - dynamic_vehicle_model runs it on dyn_boat_plant in a Jolt world of its own, with the holon's statics and their water. Its state is that world and the driver's memory, which the save does not hold: dyn_boat_plant::remember and resume. The boat goes on the water at its first sample over water deep enough for it. - The water comes with the statics: world_replica::water (the replica world's fluid fields, else the still water the relay adds for its boats, boat_still_water, which WorldVehicles now calls too), passed by client_pump to holon::set_statics. Tests: the relay's launch on a still lake against the client's model, within 0.8 mm and 0.08 mrad at each sample every 4 ticks (AriadneOneWorld); the replica's water; exact agreement and a corrected push in the holon; the client pump played out without water and predicted with it; a plant restored with its driver's memory steps on to the same state hash. * OW5k: a client finds the relay's world document in a world pack ARIADNE_WORLDS.md sections 12 and 18.5, AD1's first slice. world_pack (world_pack.h) is a directory with an index, world-pack.index: one "<sha256> <size> <path>" line per file. write_world_pack_index writes one. world_replica looks in the packs it is pointed at (CVC_WORLD_PACKS, add_pack) when the room's document URI does not give the relay's bytes here. It finds the document by the room's SHA-256, in the first pack that lists it and whose files all match the index, and builds the world from there. A pack with a file that differs from its index is refused, and the status says which. * OW5l: a sea's waves under a predicted boat The relay's scene world now reads its water's waves at the clock's time: SceneWorld::follow sets the world's field time to the clock's at its first call, as world::follow does. The step ending on tick T reads the sea at T x fixed_dt however late the world was attached, and the bodies float on the waves the drawn sea shows. A client's boat model sets its world's field time to the sample's tick x fixed_dt, so it rides the relay's waves. AriadneOneWorld.AClientsBoatRidesTheRelaysWaves: on a lake with a 14 m/s wind sea that heaves the launch 0.71 m, each sample finds the model within 2.2 mm of it and 6.4 mm of its height; a model reading the waves half a second off is 171 mm off. The gust-front and wake frame-pacing tests now pin the clock-anchored field time. * OW5m: a vehicle's attitude in its pose The relay's pose for an entity whose chassis is a body in its world (a jolt vehicle, a boat's hull, a dynamic plant's box) now carries that body's attitude and vertical speed, for the room's entities and for a driver's pose alike; before, a turn about z alone. A jolt or boat model takes its chassis's pitch, roll and vertical speed from each sample; a heading-only sample (an older relay's) keeps the predicted ones. The drive axes read the pose's heading whatever its tilt. On OW5l's waves the boat model is within 7.9 mrad of the hull's attitude from its first sample (145 mrad before); the jolt Humvee within 3.7 mrad (17.5 before). * OW5n: a four-wheel suspension from its pose A dynamic4w model takes its suspension's pitch and roll from each sample that carries them (the relay's box, OW5m) and its heave from the box's height (dyn_4w_plant::box_pose inverted). The rates of heave, roll and pitch stay the model's: the pose stream carries no roll or pitch rate, and its vertical speed is the box's after the relay's step under gravity. A heading-only sample keeps the predicted suspension. A client joining a four-wheel vehicle mid-turn is now within 24-26 mrad of its attitude (94-98 before) and 0.3-1.2 mm of its height (1.7-10). drive_as_the_world_does gains sampled_too and join for the new AriadneOneWorld.AClientJoinsAFourWheelVehicleMidTurn. * OW5m: the room's entity poses carry the chassis's attitude too The relay streams the room's vehicles from conference::entity_pose_subjects, which still built a heading-only pose; OW5m had changed only holon's ride_of (a driver's pose and holon::entities). Both now use entity_ride (world_vehicles.h), with WorldVehicles::world() for the chassis. Every client draws the room's vehicles from that stream, so they were drawn level. client_run gains entity_gap: the jolt and boat runs check the vehicle's own entry in that stream is within 1e-6 rad of the chassis. Without this fix it was 169 mrad off for the jolt car on the hill and 207 mrad for the boat on the waves. * OW5n: a vehicle's spin and steering in its pose The pose stream carries each entry's angular velocity (mrad/s) and a vehicle's steering angle (microradians), delta-encoded like the rest (PoseEntry.wx, wy, wz, steer). PoseSnapshot.carries says the relay sends them (kCarriesMotion); a relay before this leaves it 0, so its zeros read as not known, not as not turning, and a client keeps its model's values. The relay fills them from the chassis body (entity_ride's angular velocity) and the plant's steering (entity_info::steer; holon::steer for a driver). A client's sample carries them (pose_sample::steer) through holon::apply_authoritative to dynamic_vehicle_model::at: the dynamic plants take the steering angle and yaw rate, dynamic4w the roll and pitch rates too, a jolt or boat model its chassis's spin. A client joining a four-wheel Humvee mid-turn, through the pose stream, is now within 0.7 mrad of its attitude and 0.3 mrad of its heading (24-25 and 10.4 with the attitude alone). The jolt Humvee is within 1.1 mrad (3.7); the boat on the waves within 3.6 mm of height (4.7). The waves test's phase check now skews by a second (15 mm of drift) rather than half (8 mm). * OW5o: the room's vehicles in the car a client drives A jolt or boat model's world holds a box for each of the room's vehicles the client shows (dynamic_vehicle_model::hold_obstacles, from holon::held_obstacles). Before each step each goes where its vehicle is to be at the step's end, along its velocity, as the walker's world holds them. A kinematic-plant vehicle is a kinematic box. A vehicle the relay can push (a jolt vehicle, a dynamic plant's box) is a body of its mass (room_entity::dynamics, through hold_entity's new mass), put where it is shown before each step, so the car shoves it as the relay's does. The boxes are made with the model's world (obstacle_room: one per vehicle held and two spares of each size and mass), since world::restore needs the same bodies. When more come into view than it has room for, the holon makes the model again with room (vehicle_rebuilds). Held entities now count their steps while the participant drives, too. The relay's car into a parked vehicle, sampled every 4 ticks through the pose stream: the model is within 3.9 mm holding its box, 50 mm without (kinematic plant); 3.9 mm and 21 mm for a jolt Humvee shoved 4 m. * Ariadne OW5p: the room's avatars in the car a client drives A jolt or boat model's world holds each peer on foot as a frictionless box of the avatar body's size and mass where the client shows it, so the predicted car knocks it aside and is slowed by it as the relay's is. A peer aboard a vehicle the room shows is not held (holon::set_aboard, from client_pump). Every box with a mass is frictionless, and one the car knocks off where it is shown is left to the model's world until the shown pose catches up, instead of being put back where it stood a playout's delay ago and hit again every step. * Ariadne OW5p: a knocked avatar's box has its walker Knocked loose, an avatar's box in a jolt or boat model is pushed back toward the velocity it is shown at with up to the policy's force_max each step, and kept upright, as the relay's walker does with the avatar. * Ariadne OW5p: a dynamic plant's car meets the room A dynamic or dynamic4w model given statics or room for the room's boxes puts its plant's chassis box in a world of its own with them, as the relay's is in its world: what it hits goes back into the model, and the world is saved with the model's state for the holon's replay. Touching the ground is not a hit: avatar_static::ground marks it as the relay's world does (SceneWorld::ground_bodies, a generated world's terrain, the room scene's plane). A model made without a world has no room, so the first vehicle or avatar held makes it again with one. * Ariadne OW5q: a sea the relay's storms grow On the relay's clock: the water's sea keyframes, the storms' front (wind.front) and a new storm-wind peak were timed on the app's world clock, which nothing drives once a holon runs the document's world on its own clock (holon::attach_world). On the relay a storm never grew the sea. SceneWorld::sync(clock) times them on the clock the world steps on; follow() passes its own. Published: the relay puts each water node's last sea keyframe in room_world_on (seas: the old and new keyframes' winds, the crossfade, the count and the tick its field goes in after), since a sea lags its wind and a client that came later cannot grow the same one. Followed: a client's replica makes the same sea from it (WaterRuntime::follow_sea, SceneWaterSeaClock::follow) and hands the holon the new water with that tick (world_replica::water_revision, water_from_tick; holon::set_water). A boat's model keeps its water by tick and floats each step on the water of the tick it ends on; a saved state carries the water it was saved on, since a world restores only onto that sea. A water node's new field no longer rebuilds the replica's statics (before, a document with water rebuilt them every frame). Tests: the storm lake on a holon's clock takes the same keyframes as on the app's, to the bit; the relay's launch on a storm-grown sea is within 0.5 mm of the client's model following the relay's sea, 2.5 mm on its document's; the replica follows the room's seas; a boat's model takes the water at its tick and replays onto the water before it. * Ariadne OW5q: the storm air on the hull, the relay's storms, the drawn sea The air on the hull: the replica's air (the scene's wind with the storms' fronts, a flow field) goes to the boat's model with the water, on the same timeline, so the storm wind blows on its hull as on the relay's. The client's air is the relay's to the bit. The relay's storms: room_world_on gains `weathers`, each weather node's live events and storm-wind peak with the tick it went in after. The replica's weather takes them at once (WeatherFriction::follow, SceneWorld::follow_weather) and makes its air again, which the holon takes as new water after that tick. The drawn sea: a water node shows another host's sea through two keys, water.sea (a keyframe in place of its own lag) and water.clock (the time it is drawn at), which the drawn node and WaterRuntime both read and seed empty. arigl writes them each frame after client_pump (show_relay_seas) for the water nodes of the relay's document its own document has, with the relay's time as the holon counts it, and the weather nodes' events and peak, so it draws the relay's sea at the relay's time under the relay's storms. Tests: the client's air matches the relay's at every point checked; the replica follows the relay's storms and makes its air again; show_relay_seas writes into a document of the same nodes only; a drawn water node follows water.sea at the next frame. * Ariadne OW5q: the client draws the relay's world at the relay's time One key under the scene's state prefix, shown_clock (new shown_clock.h), is the time the scene is drawn at. Every drawn node whose look moves with time reads it in place of the app's world clock and seeds it empty: the water's waves, the weather node's storms, rain and lightning, the cloud sky, the forest's and a generated world's foliage's sway, and a wave_sea. It replaces the per-node water.clock and weather.clock keys. show_relay_seas writes it each frame with the relay's time as the holon counts it, and the sun: lighting.key_azimuth and lighting.key_elevation from the relay's key light in the room's scene env. Nothing moves the sun with time (no day cycle), so a sun the relay's document moves is followed. The fetch map is the last keyframe's: the relay's sea now rebuilds it when the open fetch moves too, as a client following the keyframe does. A sea followed from each of its keyframes is the grown sea's at every one. Tests: a sea followed from its 33 keyframes is the grown one's (the last differed before the fetch fix); show_relay_seas writes the shown clock and the relay's sun; a drawn storm is drawn at the shown time. Checked by hand with arigl snapshot: the same shown time draws the same image twice, another time another, on a lake and on lsystem_forest.ari. * Ariadne OW5r: a sample corrects all of a vehicle's motion A kinematic vehicle turns through its tick: the relay's kinematic box goes on a line between the bicycle's boxes at a navigator tick's ends, yaw included, so the pose's yaw rate is the tick's, and kinematic_vehicle_at now turns the box at it through the rest of the tick and starts the next tick at the relay's heading. Placed from samples every 4 ticks while turning: 2.3 mm off at a sample, 4.4 mm without the yaw rate. A jolt vehicle's wheels at the relay's steering: world::set_vehicle_steer puts a vehicle's steering actuator at an angle (clamped to its lock), and a jolt model placed from a sample that carries the relay's steering puts it there. Joining the relay's jolt Humvee mid-turn: 0.31 mrad of heading and 1.26 of attitude off at worst, 2.75 and 4.7 with straight wheels. A vehicle turned or sped up in place is placed again: the holon now re-places a predicted vehicle when its heading or velocity is off the sample by more than holon_config::reconcile_yaw_tol or reconcile_speed_tol, not only its place. Roadmap: the day-night cycle (FLEETS_AND_NIGHT_ROADMAP.md NL5) gains Joe's requirements: set against the system clock as an option, and a connected client on the server's time; D6 partly settled. * ari test: FramesAndTimeout's stuck document gets 3 s, so its test is running when the timeout comes On a loaded Debug runner (#1511's package-linux libcvc-debug, three tries), loading the document took over a second, so a 1 s timeout came before the test 'waits' started and the message named no test. 3 s leaves the load room; the message still names the test. * weather_node.cpp: align the includes' comments (clang-format, changed lines)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is JX2's first part, from
docs/roadmap/WASM_JSPI_EXCEPTIONS.md: libcvc builds with wasm exceptions and its web hosts move from Asyncify to JSPI. Joe said "Start JX2 libcvc". It needed two cvcpkg changes, both merged and published: cy-pca/cvcpkg#632 (nodejs26, which the ari-wasm job installs) and cy-pca/cvcpkg#633 (the wider pack gate, and numpy-cp312 2.4.6+cvc.7 with wasm exceptions for wasm and wasm-mt).What it does
CMakeLists.txtuses-fwasm-exceptionsfor every wasm compile and link, replacing-fexceptions(JS exceptions);bindings/pycvc/wasm/link-host.shdoes the same. Since wasm: -fwasm-exceptions for every wasm package, and a pack gate against JS exceptions (JX1) cy-pca/cvcpkg#624 cvcpkg's wasm packages are built this way, and the two kinds of object don't link together.-sJSPIinstead of-sASYNCIFY=1 -sASYNCIFY_STACK_SIZE=131072. The hosts are the gallery demos (examples/CMakeLists.txt), ari's web target (src/ari/CMakeLists.txt), and arigl's cyprty, arigl web and arigl_term (src/arigl/CMakeLists.txt). Comments that said Asyncify say JSPI now.Common/Misc/CMakeLists.txtcompiles exprtk with-fexceptionsand gives every program that linksVTK::CommonMisc-sDISABLE_EXCEPTION_CATCHING=0and-fexceptions. emcc refuses the first under-fwasm-exceptions, which is how this PR's first run failed to linkarigl.jsandariglx.js. cvcpkg's wasm vtk 9.5.0+cvc.6 is built with wasm exceptions, exprtk included, so the options don't describe it.CMake/CvcVtkWasmExceptions.cmakedrops them in a browser build. It's called after eachfind_package(VTK)(cvcGL, arigl, examples, pycvc), because imported targets belong to the directory that found them..github/scripts/pin-wasm-pre-jx1.sh(ci: pin the pre-JX1 wasm bundles until JX2 #1360, chore: bump libcvc to 4.0.2; the wasm publishes pin the pre-JX1 bundles #1383) is deleted, with all 12 calls to it inci.yml,publish-cvcgl-wasm.yml,publish-pycvc-gl-wasm.ymlanddeploy-pages.yml, and deploy-pages' path entry for it. The wasm jobs install cvcpkg's current bundles again, which are built with wasm exceptions.The suspension audit
Under JSPI a pause works only on a stack entered through
mainor aJSPI_EXPORTSexport, with no JS frame below it. Under Asyncify any export could pause.Module._ftxui_on_resizeandModule._tvision_set_screen_size, from the pages' resize handlers. They set a size and don't pause.emscripten_set_timeout, websocket and fetch callbacks (ws_client.cpp,state_transport_ws.cpp,http_client_fetch.cpp,net_intrinsics.cpp) and SDL's event filter. Reading them, they record results or queue work for the frame loop.A pause from anywhere else would fail at run time with SuspendError, so the host runs below (and this PR's arigl-web and ariglx-web jobs) are the real check.
Checked locally (Windows, emsdk 5.0.7)
The deps. cvcpkg's current wasm bundles for ari's closure, installed into a fresh prefix, pass cvcpkg's wasm-exceptions gate: no JS exceptions or JS longjmp anywhere in it. That covers boost 1.86.0+cvc.11, imagemagick 7.1.2+cvc.27, libpng 1.6.44+cvc.7, libjpeg-turbo 3.1.0+cvc.5 and tiff 4.7.0+cvc.5.
The build. It configures as ci.yml's ari-wasm job does (ImageMagick Q16 HDRI, YAML loader, FTXUI backend), and builds and links
ari,image_magick_roundtrip_testandstate_exec_wasm_smokeagainst those deps.The two test binaries under emsdk's node 22.16.
image_magick_roundtrip_testround-trips TIFF and WebP ("ImageMagick works"), andstate_exec_wasm_smokeprintsSTATE_EXEC_WASM_OK. They link no JSPI, so node 22 runs them.ari's page in headless Chrome 157, driven over DevTools:
runningwithWebAssembly.Suspendingpresent;_ftxui_on_resizefrom JS;ariadne.config.jsonandfavicon.ico.VTK under wasm exceptions: a small program links
VTK::CommonMiscfrom cvcpkg's wasm vtk 9.5.0+cvc.6 with-fwasm-exceptions.DISABLE_EXCEPTION_CATCHING=0 is not compatible with -fwasm-exceptions.cvc_vtk_wasm_exceptions()it links and runs under emsdk's node: exprtk evaluates2*x+1, rejects2*(xthrough its own error path, and a thrownstd::runtime_erroris caught.Not covered
ariglx.jsfailed on numpy 2.4.6+cvc.6, which predates cvcpkg's wasm exceptions:_multiarray_umath…so: undefined symbol: __resumeException..aand.ofiles, so it missed these*.soobjects. wasm: the exceptions gate reads every wasm object, .so included; numpy-cp312 cvc.7 cy-pca/cvcpkg#633 makes it pick files by their magic, and bumps numpy-cp312 to cvc.7.nodejs26. They used to runari.jsunder emsdk's node 22.16, whose V8 12.4 has noWebAssembly.Suspendingeven with--experimental-wasm-jspi. JSPI is on by default from Node 24.20.nodejs26(recipes: nodejs26 (Node.js 26.13.1 LTS), JSPI on by default (JX2) cy-pca/cvcpkg#632, Node 26.13.1, Joe's pick) and refuses one without JSPI.ari.jssteps run on it: the snapshot, the net probe, sign-in, and the two L4 frame checks. They passed on f1f5573.cvc_ariadne_wasm_transformstill Asyncify-transforms browser guests. That's JX3.