Repository navigation
Bridged users: another chat system's users in a conference room - #1302
Merged
Merged
Conversation
A program beside the relay (arisrvx, pycvc.ariadne) can now bridge another chat system's users
(an NMDC hub's, say) into the relay's room, where Ariadne clients see them in the roster and chat
with them both ways.
Relay (libcvc core):
- room_intrinsics: bridged users live under conf.rooms.<room>.bridge (rev, count,
users.<pid>.{present,uid,via,name,detail,e}), apart from the participants, so presence, the
area of interest and the holon never see them. A bridged pid is "_<via>_<uid escaped>", a
state name; room_write_gate takes no write from a participant pid starting with '_'. Leaving is
soft; `e` (the chat epoch) hides what an earlier relay process wrote.
- room_chat_relay::post_bridged posts as a bridged user (room or a DM to a participant), stamped,
kept and pushed like any post, marked "via"; set_listener hands the program participants' room
posts and DMs to bridged users (refused while nothing listens for them).
- DSL: (room-roster ROOM [KIND [LIMIT]]) with "participants" (default, unchanged), "bridged",
"all"; (room-bridged-count ROOM); (room-bridged-rev ROOM); chat-messages gives `via`;
chat-conversations names bridged peers.
- room_users.ari shows bridged users in rows of their own (no cam/mic/vol, no camera window, at
most 100, rebuilt when the rev moves and at most every 30 ticks); chat.ari shows "name (via)".
arisrvx and pycvc.ariadne:
- ServerLink bridge ops (presence, absent, post; at most 128 applied per room step) and
listen_chat; "room_chat" events are JSON strings, so they need no pycvc.
- Host.room, room_presence, room_absent, room_bridged, room_chat_post, @on_room_chat,
@on_room_dm, RoomChatMessage, bridged_pid; validation mirrors the relay's rules.
- ServerHarness(room=...) models the room chat: clients are participants (chat_post,
chat_messages, roster, leave; ChatRefused).
Tests: room_chat_test (bridged posts, the listener, bridged DMs, the verbs), room_intrinsics_test
(pids, presence, limits, epoch, 6000 users, the gate), arisrvx_server_link_test,
test_pycvc_ariadne_bridge.py, ari_chat_component, and arisrvx_bridge_arigl_{grpc,ws} end to end
(arisrvx running tests/bridge_service.py, arigl as a participant). relay_pair.py's --client-env
takes {url}.
Docs: ARIADNE.md 5.16, 9.8.6, 9.8.7; roadmap/ARIADNE_CHAT.md "Bridged users"; the
ariadne_server.py module docstring.
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
…#1305, #1310, #1311) #1305 gives each Runtime program-lane providers of its own (add_program_intrinsics), so two documents on one app no longer reach each other's verbs and host functions, and moves AppRuntime's provider there from the app's list. This branch had split that provider in seven, each registered on the app with its kind (S1-Q7). Conflicts in ariadne.h, app_runtime.cpp and ariadne.cpp keep both: - Runtime::add_program_intrinsics takes a kind too (the form without one is host_only, as register_action_intrinsics's), and the Runtime's own list keeps it. AppRuntime adds its seven providers there, each with the kind it had, in the same order. - install_providers runs any list by kind; the Runtime's own run after the app's, by the same rules, wherever an env is built: an action, a resident, a spawned child (finish_context), the names probe, and init: and a module's init: (every kind as it is, on their own thread). - host_only_bindings counts the Runtime's own host_only providers, so one that binds anything pumps the document's group on the host thread, as an app provider does. - add_program_intrinsics marks the placement stale, as a late host verb does. - The own list is read where an env is built, a spawned child's on its pumping worker, so it is under a mutex of its own (own_mutex), copied, and run unlocked; names_mutex no longer guards it. STATE_EXEC_THREADED.md: the Runtime's own providers, AppRuntime's seven among them, and the fourth late-registration path. Built locally (MSVC Release; AB.lock held the box, so the suites were not run here); a test of the own providers by kind follows.
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
#1276 made server_link take the module object (self) so it finds the link on its own host, and #1302 landed after it with five calls that pass nothing: room, bridge_presence, bridge_absent, bridge_post and listen_chat. Master's pycvc-linux build fails on them. Name self in those five functions and pass it.
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
#1276 moved _arihost's lent relay onto the module's own state, so server_link() became server_link(self). #1302 (bridged users) was tested on a base without #1276 and added five calls in the old form: room, bridge_presence, bridge_absent, bridge_post and listen_chat. Master has not compiled arisrvx since #1302 landed (pycvc-linux / cp312 on #1281, run 43951076345: "too few arguments to function server_link"). Name each one's module parameter self and pass it, as their neighbours do.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…17 on master (#1301) * docs(roadmap): the ocean roadmap's status line puts O8-O11, O15 and O17 on master The status line still had O8-O11 and O15 in review and didn't list O17. All of them merged by 2026-11-16 (807d892 is the last). It also says why O16 waits: a room still leaves a generated_world out (section 11.4). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * Revert "Merge fix/realize-timeout (#1329, dc56429) into docs/ocean-roadmap-status: realize's Debug timeout" This reverts commit bbee5d5, reversing changes made to 077433d. * Revert "Merge fix/server-link-self (#1328, e768c26) into docs/ocean-roadmap-status: master's arisrvx build" This reverts commit 077433d, reversing changes made to e222c46.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…it (#1170) * Ariadne L4: the gym (WorldGym, pycvc.WorldGym), and pycvc_gl.cars on it A world document driven headless by reset(seed), step(steer, accel) and observe(), with a reward of the user's and an episode log: one app per gym, its clock paused, every draw seeded. WorldVehicles gains per-tick commands, held goals, reseeding and per-step contact counts; SceneWorld::restart hands the vehicles the new ground bodies. GymCars and --gym run the cars template's controllers in a world document; world_gym.ari/.py are the example. * Gym follow-up: every plant in a scene world, buildings as obstacles, a world per episode WorldVehicles runs jolt, kinematic, dynamic and dynamic4w entities, a navigator per plant (the dynamic models' chassis in a world of their own holding the world's colliders); entity_spec and vehicles.spawn.plant name it; across plants vehicles touch by their chassis boxes, and cvcGL draws a vehicle with no chassis from its pose. A world's terrain alone is its ground (SceneWorldBody::ground), so a building is an obstacle. WorldGym's regenerate makes a generated world per episode from the reset's seed (SceneWorld::regenerate_world). GymCars and --gym take the cars template's plant names; dyn_bike_plant and dyn_4w_plant gain add_desc. * Vehicles start on a slope, not inside it A vehicle in world_gym.ari's generated world (seed 1, agent 3 at about (-51.7, 46.4)) fell straight down from its first step. The terrain collider has no hole there: a raycast at every free grid cell hits the ground. The spot is a slope of about 0.75, and nav_plant placed every start level at one ground sample (the nearest 2 m grid cell under the rear axle) plus its resting height. Facing uphill, the Humvee's origin started under the ground at its own centre and its nose more than a metre deep; a body that starts below a height field falls through it. nav_plant: with ground_height set, a start is tilted onto the plane fitted to the ground under its chassis, its origin its resting height above that plane, then lifted clear of the highest ground under the chassis and the wheels at full reach. Level ground and a constant ground_z keep the pose they had. WorldVehicles: every plant's ground height (and height_at) is the world's terrain where it has one, the physics collider's own heights, else the grid bilinear between its samples, not the nearest sample. Tests: a downward raycast at every free cell of the generated world finds the ground at the grid's height; twelve Humvees placed on its slopes (1 in 3 to 1 in 1, up and across) start above the ground and are on it 3 s later (two fell to z -27 before). * Generated world: a cell's water class is its own depth Each terrain cell took its material from one raster sample, its NE corner where the raster and the mesh share samples. On a steep shore that corner can be dry or shallow while the cell is metres deep, so the navigator and the physics took deep water for drivable ground: 151 cells deeper than 0.5 m on world_gym.ari's generated world, the deepest at -1.91 m. The materials stage now classes each cell's water by the mean of its corners against the sea, with derived_class's depths (deep below sea - 0.5, shallow below sea, sand for a dry cell the raster called water). A prop's footprint keeps its own material. Test: WorldGenerated.ACellsWaterIsTheMeshsDepth checks every ungraded cell's class against its mean height. * Terrain edge walls: nothing leaves a world over its edge add_world_geometry adds four static boxes around the rectangle the collide height fields cover (world_bodies::edges): 2 m thick, 1 cm outside the edge, from 20 m below the lowest height to 20 m above the highest. They are not items and not ground, so a vehicle touching one has hit an obstacle. SceneWorld keeps them as the terrain node's bodies, so they go and come with it. world_gym.ari's generated world, seed 1: from agent 1's start (-122.9, -72.6) toward its goal on the west shore, the vehicle slid down the slippery underwater slope and off the west edge in 14 of 18 runs (3 masses x 3 top speeds x nav@1 and world_gym.py's policy). Now 0 of 18; seeds 1-20 under both controllers have no agent out. Tests: PhysicsWorldGeometry.NothingLeavesTheTerrainOverItsEdge (a box sliding at 15 m/s down a mu 0.1 slope stops at the wall; rays down on the edge still meet the terrain) and AriadneWorldGym.AGeneratedWorldsEdgeHoldsAVehicleIn (Humvees flat out at each edge stay in). The body counts of generated and data worlds include the 4 walls. * World edge modes: walls, a shore and the sea, or nothing What is at a generated world's edge is now a choice (generated_world_params::edge, world_edge): - wall (the default): the invisible walls of the previous commit. - shore: a band at the rim (15 % of half, 40-250 m) becomes coast. From the band's inner end the ground eases down to a beach sloping 1 in 50 to the waterline, then under the sea to the island preset's shelf depth at the edge. Ground already lower keeps its bed. It wraps any terrain generator (fbm, dem, registered), lots stay off the shore, and the sea goes on past the world: outer_sea() is a ring at the waterline out 6 km, which cvcGL draws under <id>_water. No walls. - none: the edge is open. world_geometry::edge_walls() says whether add_world_geometry adds the walls; a generated world sets it from its edge (only wall), and every other world_geometry keeps them on. Ariadne: a generated_world node's `edge: wall | shore | none`. pycvc: generate_world's "edge" param, and info()["edge"]. docs/ARIADNE.md describes it. Tests: WorldGenerated.AShoreEdgeLinesTheWorldWithABeachAndTheSea (deep water all round the rim, a sand beach inside it, the relief untouched past the band, the outer sea ring), PhysicsWorldGeometry.TheEdgeWallsCanBeLeftOut, AriadneSceneWorld.AGeneratedWorldsEdgeCanBeAShore, cvcgl_ariadne_realize (the drawn outer sea), test_pycvc_plant_host.py. * Shore edge: a wider coast and a wandering coastline Rendered, the shore's blend from the relief to the beach was short enough (about 11 m on a 300 m world) that high ground met the coast as a rock cliff, and the coastline ran dead straight. The band is now 20 % of half (50-300 m), the blend takes its inner half (sea floor to waterline by 25 %, beach to 50 %), and the coastline lies up to 15 % of the band further in by a smooth wobble the seed sets. The edge stays the sea floor and the relief past the band is untouched. * Shore edge: rounded corners, bays and headlands The shore's coast followed the world's square outline, corners and all. It now follows a rounded square, |x|^4 + |y|^4 = half^4 (world_shore_roundness), so the corners curve away into the sea, and its wobble is up to 35 % of the band on longer waves (2.5 and 0.8 bands), for bays and headlands. The square's edge is still the sea floor everywhere and the relief past the band is untouched; the test measures the band from the rounded edge. * Terrain lab: the world's edge is a live setting (world.edge, an Edge picker) A generated_world node's edge was only its authored `edge:` key, so the terrain lab's World panel could not change it. It is now a world.* key like the preset: world.edge (0 wall, 1 shore, 2 none), seeded from the node, read on Regenerate, and part of the world's signature, so an edit marks the world pending until Regenerate. world_controls.ari has an Edge combo (Wall, Shore, None) after Water level. The walls follow the new world's colliders, and cvcGL draws or empties the outer sea on the swap. pycvc_gl.cars logs it with the other world keys. Tests: AriadneSceneWorld.TheWorldsEdgeIsALiveSetting (seeded 0; 1 waits, then Regenerate makes a shore world with no walls; 0 brings them back) and the loader's world_controls check for the Edge picker. Checked drawn too: an offscreen host switched a walled world to Shore and regenerated it. 711/711 related ctest. * world_gym.h: clang-format a comment's spacing * Ariadne gym: what a differentiable twin of the world reads (WorldGym::fields, WorldGym::plants) * One simulation tick: 0.06 s by default everywhere, vehicle worlds on the 0.01 s clock, real time catching up 0.25 s a frame * ariadne_scene_world_test: built with -ffp-contract=off, as the plant it replays bit for bit * Generated world: the cells round a lowered waterline sliver take their water class again Master's #1271 lowers the terrain mesh's waterline slivers at the end of the grade stage, after the materials stage classed each cell's water by its corners' mean height. A cell round a lowered sample kept the class of the ground before it (sand, or shallow water over half a metre deep), so WorldGenerated.ACellsWaterIsTheMeshsDepth failed. The materials stage's rule is now cell_class(), and the cells touching a lowered sample are classed by it again from the lowered mesh. * python_engine: the bridge ops pass self to server_link #1276 made server_link take the module object (self) so it finds the link on its own host, and #1302 landed after it with five calls that pass nothing: room, bridge_presence, bridge_absent, bridge_post and listen_chat. Master's pycvc-linux build fails on them. Name self in those five functions and pass it. * test_pycvc_gl_nav_lab: the retarget's tick from the sim tick #1258 wrote the arms run's retarget at 3 s as tick 60, a 0.05 s tick. #1275 made the sim tick 0.06 s, so the leg starts at tick 50. The test takes the tick as round(3.0 / cars.DT) for the legs, the goals and the alone run it compares against.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
… and darkness (O18) (#1312) * world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…h the same values (#1322) * physics: the field step's sea reads, cheaper and on worker threads, with the same values terrain_lab's physics step cost about 16 ms of CPU a frame in arigl, all of it the water field reading the sea at every cell of every floating body (Jolt's own step: 0.01 ms). Nothing it computes changes: every pinned hash holds. - det::sin / det::cos take the quadrant from an integer remainder below 2^53 (fmod above); det::sincos shares one reduction. The sea's modes and the shore layer's trains use it. The sea's Catmull-Rom stencil wraps its index the same way. - fft_plan::run_2d transforms eight rows or columns abreast, run()'s butterflies operation for operation, and leaves blocks of +0 rows as they are (a +0 row transforms to itself bit for bit). - world_config::field_threads reads the cells on worker threads, each cell into its own slot, summed in the cells' order; the sea's per-time fields run as their tasks. The reads go through the sea held at the step's time (sea_surface::at, fluid_surface::at), without the cache's lock; the source lattice's corners are read under a shared lock. SceneWorld uses up to three workers. - step_report carries fields_ms and engine_ms. * docs: the field step's cost as built (under the roadmap's B6) Where terrain_lab's 16 ms of physics went (the sea's per-time fields and the cells' reads; Jolt's own step is 0.01 ms), what was cut without changing a value, and the before / after numbers. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…ry change of step (#1324) * cvcGL: the volume's draw queued without VTK's glFinish on still renders vtkOpenGLGPUVolumeRayCastMapper::GPURender ends every draw with glFinish() so that its CPU timer measures the GPU's work, which only an auto-adjusting (interactive) draw uses. The CPU waited there for the whole frame queued so far: in terrain_lab, 45-48 % of the main thread's samples, about 25 ms of a 45 ms offscreen frame on the Intel Arc iGPU. OverlappingVolumeMapper is a vtkSmartVolumeMapper that swaps glad's glFinish pointer for an empty function for the length of its own Render, unless the draw is timed (the window's desired update rate at or above the interactive rate), the loader has not loaded it, or an enclosing draw swapped it already. VolumeNode and the scene views' twin volumes use it. WebAssembly keeps VTK's behaviour. cvcgl_volume_overlap: no glFinish on still renders and the pointer put back, VTK's kept on interactive ones, one per still draw with a plain vtkSmartVolumeMapper, and byte-identical pixels between the two mappers. * EWave: the step tables kept per step, not remade at every change of step The exact step's coefficients, the symmetric step's multipliers and the real-space factors are n^2 modes of det:: math each. EWave kept one of each, for the last step only. The world clock moves in whole 1/120 s quanta, so a window stepped by the frame's clock step takes only a few steps, but under arigl run's wall clock the step changed nearly every frame and the tables were remade each time: about 10 ms of terrain_lab's 22 ms AriRuntime::frame on the Intel Arc iGPU (12-13 ms now). Each table is now kept for the last six steps it was made for, dropped as before when the depth or the mask changes. Same functions, same inputs, so the same values. cvcgl_ewave 2b: twelve steps of 1/30 s and 1/40 s in turn work out four tables and follow the CPU's exact step; a new depth works the coefficients out again. Docs: the wake window in OCEAN-AND-WEATHER-ROADMAP.md, and the volume's wait and what is left of terrain_lab's frame under RENDER_PERF_ROADMAP.md's Phase 6. * docs: terrain_lab's frame, measured interleaved on a quiet machine (with and without #1322) * Revert "cvcGL: the volume's draw queued without VTK's glFinish on still renders" This reverts commit 8d5858d11d5bf6b84b9c78de79cf7cd79193d17d. The swap of glad's glFinish pointer is process-wide state. The wait is to be removed in VTK itself instead: an opt-in vtkGPUVolumeRayCastMapper::FinishEveryRender (a cvcpkg patch, written for upstream), which libcvc then turns off per mapper. * docs: the volume's GPU wait is fixed in VTK (an opt-in FinishEveryRender), and the step tables' own measurement * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…mplers (O5, O21) (#1314) * cvc::ocean: persistent foam's integration and the biases that keep Monahan's share (O5) foam_step is the turbulence update the GPU runs (foam builds while a texel folds, decays as exp(-t / decay) after; bubbles, crest, spray), foam_look the windrow carve the shader draws it with. foam_history evolves the cascades' h0 over a few seconds, integrates the long cascades' foam texel by texel, and finds two biases: the aging foam's alone covers 0.6 of Monahan's share, the whitecaps' the rest. A unit of work is one cascade's Jacobian, so a caller can slice it. * cvcGL: OceanFoam, the long cascades' foam in one atlas, and the A4 water shading The long and middle cascades' turbulence lies side by side in one 512 x 256 RGBA32F atlas, ping-ponged: one pass a frame, one sampler for the water. OceanFoamCalibration runs foam_history as a sliced task. The GLSL it hands the water: the atlas read bilinear, the windrows, and the shading (GGX with Smith visibility and the sun's disc, footprint roughness from Cox-Munk's slopes, short ripples for the glitter, light through crests, the bubbles), ported from ABYSSAL (MIT, 849ff7f4). GeometryNode can report the uniforms and textures it was given. * water node and lsystem_coast: persistent foam, the A4 shading, and their level of detail (O5) Both draw the long waves' foam from OceanFoam's atlas, carved into windrows, with the whitecaps on top, and shade with OceanFoam's GLSL. The thresholds are found off the frame. New keys: foam_decay (0: the whitecaps alone, as before), lod_foam (the foam's detail ends there; the mean cover beyond and on the far grid) and lod_shade (the O15 water beyond), on water_controls.ari; coast.water.* in lsystem_coast. * docs: O5's persistent foam and shading as built * OceanCascades: the three cascades' FFTs in one set of passes (18, not 105) The cascades' textures are atlases of tiles side by side and every pass does all of them: one time pass, 2 log2 n butterfly passes (OceanButterfly over tiles) and one assemble, texel for texel three OceanFFTs (the test's worst difference is 0). Each cascade's two work tiles sit together, so setActive(k) transforms only the first k. OceanFoam steps from the displacement atlas, and its calibration also finds the whitecaps' bias for Monahan's share with no persistent foam beside them. * water node: level of detail, packed samplers, and adaptive quality (O21) - water.profile times the node's work into water.stats.<section>_ms (2 also fences each section on the GPU). - The cascades come from OceanCascades: one displacement atlas (uDisp). - The coast is one atlas (uCoast): the shore distance and the still water's depth, then the shore layer's two planes. The bed's height field is no longer bound. - The near grid is three rings (2, 4 and 8 m at the defaults). The far grid's vertex shader reads nothing. The short cascade fades out by water.lod_waves (150 m). The wake is read only inside its window, its slope from 12 cells instead of 20. - Samplers: vertex 8 -> 3, fragment 9 -> 4 (11 -> 6 with a cloud_sky's shade). - cvc::ariadne::AdaptiveQuality ports ABYSSAL's Quality.tick. AriRuntime ticks it on the wall time between frames, never on the fixed clock, and publishes quality.tier, quality.scale and quality.frame_ms. water_quality maps a tier to the water's distances and switches: the shading, the persistent foam, the wake's window, the short cascade and the far normal. water.quality pins a tier. Drawing only: the physics sea is the same at every tier. * docs: the water's level of detail and O21's adaptive quality as built The roadmap's "As built (O21)" under §10.10, the water's frame cost and level of detail under §10.11, and D9's row. O5's frame-cost note names the GPU it was measured on: the laptop's Intel Arc iGPU, where cvcGL's contexts run, not the RTX 4070. docs/ARIADNE.md: water.lod_waves, water.quality and water.profile, and the quality.* keys. * test(cvcgl_ariadne_realize): the foam thresholds' check doesn't race the calibration package-windows failed the O5 block three times: the thresholds' sliced task had finished within the block's first seven frames, so the value read as the guess was already the calibration's (0.7697) and never changed again. The check now waits on and compares against the guess itself (0.75), so it passes whether the calibration lands before or during the wait. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…1315) * world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * cvcGL: shader textures fit WebGL2's 16 units: the reserve is the mapper's arrays The redeployed terrain_lab still ran out in every water draw: headless Chrome logged 2,318 out-of-units warnings in 75 s once the water came up. VTK sizes its texture-unit table from GL_MAX_TEXTURE_IMAGE_UNITS, which is 32 on a desktop GL but 16 in WebGL2. bindShaderTextures first reserved a fixed 8 units for the low-memory mapper's emulated vertex arrays, which left a draw 8 for its own textures, and the water binds 10 (three cascades, three coast grids, the wake, the bed, two cloud-shade textures). - LowMemoryPolyDataMapper::arrayTextureUnits(): the arrays the draw under way takes, vtkDrawTexturedElements::Arrays (bound in RenderPieceStart, before UpdateShaderEvent fires). bindShaderTextures reserves that many when the drawing mapper (the event's caller, or the node's own) is one of ours, else 8 as before. - A texture that still finds no unit is left unbound, so it no longer sets a -1 sampler, which was a second GL error every draw. cvcGL names the node and texture once. - ViewportManager::limitTextureUnits(n) and $CVCGL_TEXTURE_UNITS cap VTK's table, put back at the start of each render after a GL state reset. With CVCGL_LOWMEM_MAPPER=force, a native run draws within the browser's budget. Native terrain_lab that way logged 1,440 warnings with the fixed reserve ("far" and "near" out of units for uWake: 16 in all, 8 kept, 10 shader textures), and 0 with this change. - cvcgl_ariadne_realize: the water (with a swell, so the swash and coast grids are on), cloud_sky's shade and a shadow-casting sun, drawn with the low-memory mapper at 16 units, log no out-of-units warning. The count is checked to hear VTK's warning. - ARIADNE.md: the browser's texture units, natively. - The comment #1304 added said WebGL2 gives VTK 32 units; it gives 16. * world: the weather's recent storms, their rain radius and the ground's wetness (O19) weather::recent gives the cells whose life reached into a window, alive or gone; rain_radius is where a cell's field passes the rain onset; wetness is how long a recent storm's rain lay over a point over a soak time, times its drying since, the CPU twin of the wet ground the sky draws and the friction O20 will read. * rain: streaks near the camera, shafts, wet ground, rings on the water and fog (O19) The weather node hands cloud_sky the recent storms' tracks and the rain's constants (sky.rain, sky.rain_k) and draws the streaks near the camera: a port of ABYSSAL's Rain, drops placed and moved in the vertex shader as a closed form of time, slanted by the scene wind's one accessor. cloud_sky draws rain shafts below the cloud base in its far shells, wets and darkens its receivers along the tracks and dries them after, puts procedural raindrop rings into the water's normal, and thickens a distance fog with the rain at the camera, all as uniforms: no sampler joins the ground, the buildings, the roads, the trees or the water. terrain_lab's sky lists the streaks; the Weather panel has the rain's keys. * rain: the sky finds the streaks inside the weather's node; the ground off the terrain cloud_sky looked its receivers up among the scene's top-level names, so the weather's streak mesh (weather_rain, a child of the weather's node) was never wired: it drew without the deck's shade and fog, and in the volume layer before the clouds instead of after them. A receiver is now found anywhere in the scene. The streaks' ground under a camera off the terrain is the height at the terrain's edge, not NaN. cvcgl_ariadne_realize checks that the sky wired the streaks. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…ut of lakes (L3b) (#1309) * boats: nav drives them, dyn_boat_plant and plant_host's dynamicboat (O12) cvc::physics::dyn_boat_plant (OCEAN-AND-WEATHER-ROADMAP.md D4) puts a sim_world's agents on boats (world::add_boat) in a borrowed world that floats them, beside dyn_bike_plant and dyn_4w_plant. Each boat goes in over its agent's start at the draft its hull_mesh gives (float_height); a start with no water under it, too shallow, or a hull that cannot float is refused. Every world step a driver turns nav's bicycle angle and acceleration into set_boat_controls. The throttle takes the acceleration as dyn_driver.h does, over the propeller's thrust at the speed through the water, its trim kept across sign changes since the water holds the boat back either way. The rudder holds the bicycle's yaw rate u tan(delta) / L: a feed-forward share of full rudder and a PI term on the yaw rate's error as a curvature. state()'s steer is the angle the driver holds, not the rudder, which fed the driver's corrections into nav's steering-rate limit. The books are the hull's mechanical energy every step: drive and brake (the thrust's T u_a through the water), rudder, damping, water (the field load and the water's own motion on the propeller and rudder), gravity and the integrator's residual. Presets launch (physics_boat_test's boat; 3.19 m/s, 15.4 m) and jonboat (a 350 kg flat box with a steering outboard; 4.0 m/s, 4.1 m), measured. - plant_host: dynamicboat / dynamicboat:<presets> on set_water's field and the geometry; no water is a fallback to the bicycle. - world::water_at; water_sample moves to field.h. - cvc::nav::plant_medium (land, water) and vehicle_plant::medium(), for spawning boats on water later. physics_dyn_boat_plant_test: the presets' envelopes; 2.5 m/s and 0.08 rad/s held exactly on calm water and within 1 % on a 0.3 m swell; the books' residual 6e-8 to 3.5e-5 of the flow; nav drives a launch and a jonboat 120 m to their goals and turns them round to goals behind them; plant_host; a hosted world bit for bit; a pier contact; the refusals; and the pinned hash 96abfc30fcae4fd4 (Windows MSVC; CI to confirm Linux and macOS). No existing hash moved. pycvc does not bind the plant (it binds no boats yet). * Ariadne: boats as world vehicles, and spawns by medium so cars stay out of lakes (L3b) A world document's vehicles: archetypes: can offer a boat, plant: dynamicboat (or dynamicboat:launch / dynamicboat:jonboat), and every spawn now follows its archetype's medium: cars never start in water deeper than a ford, boats only in water deep and open enough for them. - nav::world_grid gains a water layer: water_depth (the level less the ground at each sample, set_water) and solid (what blocks a sample other than a water surface). medium_grid(g, medium, depth) is a car's grid with water deeper than a ford blocked, or a boat's with only deep enough water free. SceneWorld::grid sets the water from a water node over the node's ground, or a generated world's bodies of water. - world: spawns: takes ford_depth (0.3 m), keel_clearance (0.3 m) and shore_clearance (0 m). WorldSpawns::set_needs takes each archetype's medium (from its plant's vehicle_plant::medium()), a boat's draft (dyn_boat_plant::draft, the deepest boat's) and half its length. - choose, add, points() (free, medium) and the free-point fallback use each medium's grid (ground_for). An untagged point serves only the archetypes whose medium it is on. - suggest follows the tag's archetype: roads on land, or water_spawn_points over the water, spread over each body of water with room. - WorldVehicles: a dynamicboat fleet (dyn_boat_plant, step_world off) whose navigator plans on the inverse grid. The boats float on the water node's field, or on still water at the grid's level that the runtime adds when the world has none. vehicle_desc_of gives a boat a stand-in (its hull's box, envelope, no wheels), boat_desc_of its boat, and entity_info its goal. - A placed start off its medium (a car in a lake, a boat ashore) moves to a free point of its medium, as a blocked start always has. - dyn_boat_plant::attach also refuses a start where a ray from the hull's top meets ground above the boat's deepest point: the field's box alone knows nothing of the terrain in it. ariadne_scene_world_test, on a lake 107 m across in a 300 m world: - 48 humvees and 24 launches over all four policies each start on their medium; - the any-points serve both, the free-point fallback respects medium, starts off their medium move, and boat suggestions are over the water; - a launch on nav@1 reaches two goals across the lake with at least 1.6 m of water under it; - without a water node, boats get still water. nav_world_grid_test covers the water layer and the medium grids. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles.h: the includes in clang-format's order after the master merge
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…still volume render) (#1327) * cvcGL: VolumeNode turns VTK's FinishEveryRender off, where the VTK has it VTK's GPU volume ray caster ends every render with glFinish() for a timer only an auto-adjusting render uses; in terrain_lab that wait was about 25 ms of a 45 ms frame. cvcpkg's VTK (cy-pca/cvcpkg#625: vtk 9.5.0+cvc.5, written for upstream) adds an opt-in vtkGPUVolumeRayCastMapper::FinishEveryRender, and vtkSmartVolumeMapper's, forwarded to its GPU mapper. VolumeNode's mapper and scene_views' twin turn it off: a still render queues its ray cast and returns; an interactive render still waits, as it adjusts its sample distance by its time. No process-wide state. A compile check (check_cxx_source_compiles against VTK::RenderingVolumeOpenGL2) defines CVC_VTK_HAS_FINISH_EVERY_RENDER, so libcvc still builds, and renders as before, against an unpatched VTK. cvcgl_volume_finish: the VolumeNode's mapper has it off, and the pixels are byte-identical with it off and on (only with the define; otherwise it checks that the volume draws). * docs: VolumeNode turns VTK's FinishEveryRender off; terrain_lab measured against the patched VTK * cvcGL: configure says whether VTK has FinishEveryRender * cvcGL: FinishEveryRender's check compiles only and runs at every configure The check linked a whole VTK program, so a link that failed for another reason (a wasm one, say) would have turned the property off silently; a static-library try_compile compiles the header's declaration and links nothing. Its cached answer is also dropped before each configure: VTK's version stays 9.5.0 across cvcpkg's revisions, so a build directory configured against vtk 9.5.0+cvc.3 would otherwise keep "no" after the prefix gets cvc.5. Checked by reconfiguring a build against the patched VTK ("has FinishEveryRender") and one against the catalog's ("no FinishEveryRender"). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
… its push on bodies (O14) (#1317) * water: fetch and lee, gusts, the sea lagging the wind, and currents, in both seas (O13) - cvc::algo::wind_field: the scene's gusts as one deterministic function of (x, y, t): two scales of integer-hashed value noise carried downwind and ABYSSAL's pulse over time. cvc/gl/WindGLSL.h is the same in GLSL, no texture. Everything the wind moves (O14: the clouds, the trees, the air physics) can sample it at the same point and time. - cvc::ocean: fetch.h (the fetch map in one upwind sweep, coarse, capped by each body's extent; each cascade scaled by sqrt(F / F_full), F_full where its band is fully grown), sea_lag.h (the sea's wind follows with a time constant and steps by keyframes, at most one per crossfade), current.h (a divergence-free curl-noise current and a two-phase flow map). sea_surface takes a sea_forcing: the h0 crossfade, the fetch scales, the ripples' gust weight, the current. - Ariadne: scene_wind.h reads a node's wind in one place (O14 points it at wind.*). SceneWaterSeaClock steps the keyframes both seas use. New water keys: gustiness, lee, sea_lag, sea_fade, current (water_controls.ari, ARIADNE.md). - cvcGL: OceanWind (one RG32F texture of the two keyframes' fetch maps; the gusts and the current hashed per vertex). The water node and lsystem_coast draw the lee, the gusts (the ripples' weight, cat's paws in the shading), the current carrying the two short cascades, and mix the two keyframes' h0 on the CPU only while a crossfade runs. - Tests: ocean_wind_test (fetch behind an island and on a lake, the lag and its debounce, a continuous crossfade, golden hashes of the fetch map, the gusts and the current, a divergence-free current, the physics sea's lee and current), a floating crate in the lee against one in the open (ariadne_scene_world_test), the water node's new keys (cvcgl_ariadne_realize). No golden hash moved: a sea_surface without a forcing has the same digest and values as before. * physics, ariadne: one scene wind for the water, clouds and trees, and its push on bodies (O14) A document's scene: wind: seeds wind.speed, wind.dir and wind.gustiness. While wind.speed is set, the water (both seas), cloud_sky's drift and orographic heading, and the forest's lean and sway all follow those keys, sampling the same gust field at the same (x, y, t). Each node's own wind keys are the fallback. SceneWind::azimuth is dir + 90 (O13 had it mirrored). cvc::physics: field::wind takes a flow_velocity (a velocity in space and time, with a digest). wind_flow is the scene's wind over a power-law height profile, linear below 0.1 m. A flow with a wind may have no volume (then it is air everywhere). The field step reads the wind once per body and its profile at nine heights across the body, and clips cells to the wind's base. The wind's digest is in save() and state_hash(); a world without one hashes as before. A vehicle's aero drag reads the wind at its centre of mass. The push: SceneWorld adds the wind as a flow field. WorldVehicles' dynamic, dynamic4w and kinematic fleets get the wind's share of the drag through the drive's external force. The room rules carry the wind to arisrv: dynamic avatars stand in a flow field, and kinematic avatars drift once the wind's drag beats the walker's grip, the drift folded into the intent. wind_controls.ari; docs: roadmap As built (O14), ARIADNE.md Wind, PHYSICS_API.md flow hook. * terrain_lab: the scene's one wind (9 m/s toward 30 degrees) for its water and clouds, and a Wind panel in Settings The water's and the clouds' own winds stay as fallbacks. The Water and Sky panels' wind sliders say they are unused while the scene has a wind. * docs(roadmap): O14 as built, terrain_lab's wind and its frame cost with the wind on and off * tests: IntentsMaybeSetFromAnotherThread waits for its writer's first intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late. * tests: IntentsMaybeSetFromAnotherThread steps on until an intent lands mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles: the boat note in the wind push's comment within the column limit
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…1323) * water: fetch and lee, gusts, the sea lagging the wind, and currents, in both seas (O13) - cvc::algo::wind_field: the scene's gusts as one deterministic function of (x, y, t): two scales of integer-hashed value noise carried downwind and ABYSSAL's pulse over time. cvc/gl/WindGLSL.h is the same in GLSL, no texture. Everything the wind moves (O14: the clouds, the trees, the air physics) can sample it at the same point and time. - cvc::ocean: fetch.h (the fetch map in one upwind sweep, coarse, capped by each body's extent; each cascade scaled by sqrt(F / F_full), F_full where its band is fully grown), sea_lag.h (the sea's wind follows with a time constant and steps by keyframes, at most one per crossfade), current.h (a divergence-free curl-noise current and a two-phase flow map). sea_surface takes a sea_forcing: the h0 crossfade, the fetch scales, the ripples' gust weight, the current. - Ariadne: scene_wind.h reads a node's wind in one place (O14 points it at wind.*). SceneWaterSeaClock steps the keyframes both seas use. New water keys: gustiness, lee, sea_lag, sea_fade, current (water_controls.ari, ARIADNE.md). - cvcGL: OceanWind (one RG32F texture of the two keyframes' fetch maps; the gusts and the current hashed per vertex). The water node and lsystem_coast draw the lee, the gusts (the ripples' weight, cat's paws in the shading), the current carrying the two short cascades, and mix the two keyframes' h0 on the CPU only while a crossfade runs. - Tests: ocean_wind_test (fetch behind an island and on a lake, the lag and its debounce, a continuous crossfade, golden hashes of the fetch map, the gusts and the current, a divergence-free current, the physics sea's lee and current), a floating crate in the lee against one in the open (ariadne_scene_world_test), the water node's new keys (cvcgl_ariadne_realize). No golden hash moved: a sea_surface without a forcing has the same digest and values as before. * physics, ariadne: one scene wind for the water, clouds and trees, and its push on bodies (O14) A document's scene: wind: seeds wind.speed, wind.dir and wind.gustiness. While wind.speed is set, the water (both seas), cloud_sky's drift and orographic heading, and the forest's lean and sway all follow those keys, sampling the same gust field at the same (x, y, t). Each node's own wind keys are the fallback. SceneWind::azimuth is dir + 90 (O13 had it mirrored). cvc::physics: field::wind takes a flow_velocity (a velocity in space and time, with a digest). wind_flow is the scene's wind over a power-law height profile, linear below 0.1 m. A flow with a wind may have no volume (then it is air everywhere). The field step reads the wind once per body and its profile at nine heights across the body, and clips cells to the wind's base. The wind's digest is in save() and state_hash(); a world without one hashes as before. A vehicle's aero drag reads the wind at its centre of mass. The push: SceneWorld adds the wind as a flow field. WorldVehicles' dynamic, dynamic4w and kinematic fleets get the wind's share of the drag through the drive's external force. The room rules carry the wind to arisrv: dynamic avatars stand in a flow field, and kinematic avatars drift once the wind's drag beats the walker's grip, the drift folded into the intent. wind_controls.ari; docs: roadmap As built (O14), ARIADNE.md Wind, PHYSICS_API.md flow hook. * terrain_lab: the scene's one wind (9 m/s toward 30 degrees) for its water and clouds, and a Wind panel in Settings The water's and the clouds' own winds stay as fallbacks. The Water and Sky panels' wind sliders say they are unused while the scene has a wind. * docs(roadmap): O14 as built, terrain_lab's wind and its frame cost with the wind on and off * cvcGL: a generated world's trees lean and sway in the scene's wind Every prop mesh of a generated_world (the wood, which holds the native trees' crowns, the leaves, the needles, on every LOD rung) leans downwind and sways in the vertex shader while the scene has a wind, from uniforms alone: the wind's direction, the lean and sway, the clock, the camera and the gust field (cvc_wind_gust). No texture and no vertex array, which the low-memory mapper would spend a unit on. A vertex's height above the ground rides in its normal's length (1 + h / 64): the lighting normalises it away, and the shader reads it back, so a point moves as (h - 0.3)^2 and a trunk's foot stays put. The phase is the vertex's world position. The displacement goes in at //VTK::Clip::Impl as a #define of vertexMC, so either mapper's position code follows it. The inputs skip the shadow bake, so the trees' shadows stay at rest. The sway fades out 300-450 m from the camera. world.sway (prop sway, 1; Tree sway on the Terrain Lab panel) scales it; world.lean_dir publishes the way the trees lean. Without a scene wind they stand still, as before. * cvcGL: swaying trees look their shadows up at rest The trees' shadow map is baked at rest, and a swayed point that had moved behind its own rest-pose surface read as shadowed: dark streaks along the trunk and limbs, faint at 9 m/s close up and the trunk nearly black at 25 m/s. A prop mesh now passes its unswayed view-space position to the fragments and points the first shadow lookup (calcShadow of the FilteredShadowMapPass) at it, so a swaying tree is shaded as the at-rest map says. One varying, no texture or uniform. Docs: the roadmap's trees note gets this and the frame cost measured on a quiet machine (a GPU timer: a few tenths of a millisecond near the trees; nothing arigl's frame shows). * tests: IntentsMaybeSetFromAnotherThread waits for its writer's first intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late. * tests: IntentsMaybeSetFromAnotherThread steps on until an intent lands mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles: the boat note in the wind push's comment within the column limit
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…(D5, D6) (#1316) * boats: nav drives them, dyn_boat_plant and plant_host's dynamicboat (O12) cvc::physics::dyn_boat_plant (OCEAN-AND-WEATHER-ROADMAP.md D4) puts a sim_world's agents on boats (world::add_boat) in a borrowed world that floats them, beside dyn_bike_plant and dyn_4w_plant. Each boat goes in over its agent's start at the draft its hull_mesh gives (float_height); a start with no water under it, too shallow, or a hull that cannot float is refused. Every world step a driver turns nav's bicycle angle and acceleration into set_boat_controls. The throttle takes the acceleration as dyn_driver.h does, over the propeller's thrust at the speed through the water, its trim kept across sign changes since the water holds the boat back either way. The rudder holds the bicycle's yaw rate u tan(delta) / L: a feed-forward share of full rudder and a PI term on the yaw rate's error as a curvature. state()'s steer is the angle the driver holds, not the rudder, which fed the driver's corrections into nav's steering-rate limit. The books are the hull's mechanical energy every step: drive and brake (the thrust's T u_a through the water), rudder, damping, water (the field load and the water's own motion on the propeller and rudder), gravity and the integrator's residual. Presets launch (physics_boat_test's boat; 3.19 m/s, 15.4 m) and jonboat (a 350 kg flat box with a steering outboard; 4.0 m/s, 4.1 m), measured. - plant_host: dynamicboat / dynamicboat:<presets> on set_water's field and the geometry; no water is a fallback to the bicycle. - world::water_at; water_sample moves to field.h. - cvc::nav::plant_medium (land, water) and vehicle_plant::medium(), for spawning boats on water later. physics_dyn_boat_plant_test: the presets' envelopes; 2.5 m/s and 0.08 rad/s held exactly on calm water and within 1 % on a 0.3 m swell; the books' residual 6e-8 to 3.5e-5 of the flow; nav drives a launch and a jonboat 120 m to their goals and turns them round to goals behind them; plant_host; a hosted world bit for bit; a pier contact; the refusals; and the pinned hash 96abfc30fcae4fd4 (Windows MSVC; CI to confirm Linux and macOS). No existing hash moved. pycvc does not bind the plant (it binds no boats yet). * Ariadne: boats as world vehicles, and spawns by medium so cars stay out of lakes (L3b) A world document's vehicles: archetypes: can offer a boat, plant: dynamicboat (or dynamicboat:launch / dynamicboat:jonboat), and every spawn now follows its archetype's medium: cars never start in water deeper than a ford, boats only in water deep and open enough for them. - nav::world_grid gains a water layer: water_depth (the level less the ground at each sample, set_water) and solid (what blocks a sample other than a water surface). medium_grid(g, medium, depth) is a car's grid with water deeper than a ford blocked, or a boat's with only deep enough water free. SceneWorld::grid sets the water from a water node over the node's ground, or a generated world's bodies of water. - world: spawns: takes ford_depth (0.3 m), keel_clearance (0.3 m) and shore_clearance (0 m). WorldSpawns::set_needs takes each archetype's medium (from its plant's vehicle_plant::medium()), a boat's draft (dyn_boat_plant::draft, the deepest boat's) and half its length. - choose, add, points() (free, medium) and the free-point fallback use each medium's grid (ground_for). An untagged point serves only the archetypes whose medium it is on. - suggest follows the tag's archetype: roads on land, or water_spawn_points over the water, spread over each body of water with room. - WorldVehicles: a dynamicboat fleet (dyn_boat_plant, step_world off) whose navigator plans on the inverse grid. The boats float on the water node's field, or on still water at the grid's level that the runtime adds when the world has none. vehicle_desc_of gives a boat a stand-in (its hull's box, envelope, no wheels), boat_desc_of its boat, and entity_info its goal. - A placed start off its medium (a car in a lake, a boat ashore) moves to a free point of its medium, as a blocked start always has. - dyn_boat_plant::attach also refuses a start where a ray from the hull's top meets ground above the boat's deepest point: the field's box alone knows nothing of the terrain in it. ariadne_scene_world_test, on a lake 107 m across in a 300 m world: - 48 humvees and 24 launches over all four policies each start on their medium; - the any-points serve both, the free-point fallback respects medium, starts off their medium move, and boat suggestions are over the water; - a launch on nav@1 reaches two goals across the lake with at least 1.6 m of water under it; - without a water node, boats get still water. nav_world_grid_test covers the water layer and the medium grids. * Ariadne: a boat node you can drive, and boats drawn with their hulls (D5, D6) A scene node `type: boat` puts a boat on a water node's sea: a hull, a propeller and a rudder (preset launch) or a steering outboard (jonboat) in the scene's physics world, at its draft on the water there. It drives from its keys or from nav, headless or drawn, and terrain_lab.ari has a launch on the big lake beside the crates. - cvc::ariadne::BoatRuntime (scene_boat.h): a dyn_boat_plant with one boat in the scene's world (step_world off, stepped around each world step) and a sim_world of its own on the water's grid, land and water too shallow for it blocked. SceneWorld runs it (bind_boats) from from_scene and from cvcGL's realize alike; it goes in once the water's grid is ready. - Its keys, under its id (or its keys: root): drive (keys / nav), throttle and rudder, goal ("x,y"), and its telemetry x, y, z, heading, speed, thrust, reached, placed, status. boat_controls.ari is its helm (Settings > Launch in terrain_lab.ari). - dyn_boat_plant::hold_controls / release_controls: a helm in place of the driver's command for one boat, the books going on. - SceneWorld learns a renderer-run water node's ground and level from the scene, so a drawn scene's grids carry the water too. - SceneWorld::restart forgets the old world's node fields; a scene whose water node has a body: threw "unknown or removed field id" on restart. Drawn (cvcGL): - add_hull_node (vehicle_view): the hull_mesh flat-shaded, white topsides, a blue stripe just over the waterline and a dark red bottom below it (static, at the resting waterline). A box hull draws open, with a teak sole 0.12 m over the waterline. The boat node is its hull bound to the hull body; a dynamicboat world vehicle draws the same hull in place of the box stand-in. - The water node keeps its water out of the four boats nearest the camera (boat nodes and boat world vehicles): eight vec3 and four float uniforms on its near and far grids (pose; half length, half beam, sheer height; bottom height), not a texture, since the water already binds 11-12 of WebGL2's 16 texture units. A fragment inside a footprint, under its sheer and over its bottom, is discarded: a trough deeper than the hull still draws. - The boat nodes' hulls make waves in the water's wake window. - GeometryNode::shaderUniformf / shaderUniform3f read a uniform back. ariadne_scene_world_test: - a launch on a lake floats at its draft (z -0.85 over a -1 m level); on its helm it reaches 3.14 m/s and turns 0.90 rad in 12 s; on nav it reaches a goal 60 m off in 96.8 s over at least 1.19 m of water; a restart puts it back; - terrain_lab.ari's launch crosses the lake to its goal on the 9 m/s sea in 17.8 s over at least 12.4 m of water. cvcgl_ariadne_physics: the node realizes its hull and is shown, bound and drawn where the boat floats; the helm moves it 11.0 m and turns it 0.42 rad in 5 s; the far grid's uniforms hold its footprint, bottom to sheer; a boat world vehicle draws its hull with no wheels, and the water takes its footprint too. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles.h: the includes in clang-format's order after the master merge * water_node: the uniforms' trailing comments in clang-format's alignment after the master merge * GeometryNode: one shaderUniformf (master's, from #1314); this branch's duplicate goes, its shaderUniform3f stays
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…the current (#1318) * water: fetch and lee, gusts, the sea lagging the wind, and currents, in both seas (O13) - cvc::algo::wind_field: the scene's gusts as one deterministic function of (x, y, t): two scales of integer-hashed value noise carried downwind and ABYSSAL's pulse over time. cvc/gl/WindGLSL.h is the same in GLSL, no texture. Everything the wind moves (O14: the clouds, the trees, the air physics) can sample it at the same point and time. - cvc::ocean: fetch.h (the fetch map in one upwind sweep, coarse, capped by each body's extent; each cascade scaled by sqrt(F / F_full), F_full where its band is fully grown), sea_lag.h (the sea's wind follows with a time constant and steps by keyframes, at most one per crossfade), current.h (a divergence-free curl-noise current and a two-phase flow map). sea_surface takes a sea_forcing: the h0 crossfade, the fetch scales, the ripples' gust weight, the current. - Ariadne: scene_wind.h reads a node's wind in one place (O14 points it at wind.*). SceneWaterSeaClock steps the keyframes both seas use. New water keys: gustiness, lee, sea_lag, sea_fade, current (water_controls.ari, ARIADNE.md). - cvcGL: OceanWind (one RG32F texture of the two keyframes' fetch maps; the gusts and the current hashed per vertex). The water node and lsystem_coast draw the lee, the gusts (the ripples' weight, cat's paws in the shading), the current carrying the two short cascades, and mix the two keyframes' h0 on the CPU only while a crossfade runs. - Tests: ocean_wind_test (fetch behind an island and on a lake, the lag and its debounce, a continuous crossfade, golden hashes of the fetch map, the gusts and the current, a divergence-free current, the physics sea's lee and current), a floating crate in the lee against one in the open (ariadne_scene_world_test), the water node's new keys (cvcgl_ariadne_realize). No golden hash moved: a sea_surface without a forcing has the same digest and values as before. * physics, ariadne: one scene wind for the water, clouds and trees, and its push on bodies (O14) A document's scene: wind: seeds wind.speed, wind.dir and wind.gustiness. While wind.speed is set, the water (both seas), cloud_sky's drift and orographic heading, and the forest's lean and sway all follow those keys, sampling the same gust field at the same (x, y, t). Each node's own wind keys are the fallback. SceneWind::azimuth is dir + 90 (O13 had it mirrored). cvc::physics: field::wind takes a flow_velocity (a velocity in space and time, with a digest). wind_flow is the scene's wind over a power-law height profile, linear below 0.1 m. A flow with a wind may have no volume (then it is air everywhere). The field step reads the wind once per body and its profile at nine heights across the body, and clips cells to the wind's base. The wind's digest is in save() and state_hash(); a world without one hashes as before. A vehicle's aero drag reads the wind at its centre of mass. The push: SceneWorld adds the wind as a flow field. WorldVehicles' dynamic, dynamic4w and kinematic fleets get the wind's share of the drag through the drive's external force. The room rules carry the wind to arisrv: dynamic avatars stand in a flow field, and kinematic avatars drift once the wind's drag beats the walker's grip, the drift folded into the intent. wind_controls.ari; docs: roadmap As built (O14), ARIADNE.md Wind, PHYSICS_API.md flow hook. * terrain_lab: the scene's one wind (9 m/s toward 30 degrees) for its water and clouds, and a Wind panel in Settings The water's and the clouds' own winds stay as fallbacks. The Water and Sky panels' wind sliders say they are unused while the scene has a wind. * docs(roadmap): O14 as built, terrain_lab's wind and its frame cost with the wind on and off * physics: an inertial fluid, so floating bodies drift in the wind and the current A fluid's damping held a floating body to the water's velocity in every direction, so a 1 m crate in a 10 m/s wind drifted about a millimetre a second. With field::inertial set, the damping acts on the vertical only (the heave it stands for, also left out of the horizontal drag's implicit rate, as a hull's is). Sideways, the water's acceleration pushes the body over its immersed volume (Froude-Krylov, rho V du/dt at the immersed centroid, du/dt from the water's velocity a step either side) and it drags against the water's velocity. So it rides the waves, takes the current, and drifts downwind where the air's drag on its freeboard balances the water's on its hull. The Ariadne water node's field is inertial. The default is off, so other worlds step and hash as before. * docs(roadmap): as built, floating bodies drift in the wind and the current (the inertial fluid) * tests: IntentsMaybeSetFromAnotherThread waits for its writer's first intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late. * tests: IntentsMaybeSetFromAnotherThread steps on until an intent lands mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles: the boat note in the wind push's comment within the column limit
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
* world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * cvcGL: shader textures fit WebGL2's 16 units: the reserve is the mapper's arrays The redeployed terrain_lab still ran out in every water draw: headless Chrome logged 2,318 out-of-units warnings in 75 s once the water came up. VTK sizes its texture-unit table from GL_MAX_TEXTURE_IMAGE_UNITS, which is 32 on a desktop GL but 16 in WebGL2. bindShaderTextures first reserved a fixed 8 units for the low-memory mapper's emulated vertex arrays, which left a draw 8 for its own textures, and the water binds 10 (three cascades, three coast grids, the wake, the bed, two cloud-shade textures). - LowMemoryPolyDataMapper::arrayTextureUnits(): the arrays the draw under way takes, vtkDrawTexturedElements::Arrays (bound in RenderPieceStart, before UpdateShaderEvent fires). bindShaderTextures reserves that many when the drawing mapper (the event's caller, or the node's own) is one of ours, else 8 as before. - A texture that still finds no unit is left unbound, so it no longer sets a -1 sampler, which was a second GL error every draw. cvcGL names the node and texture once. - ViewportManager::limitTextureUnits(n) and $CVCGL_TEXTURE_UNITS cap VTK's table, put back at the start of each render after a GL state reset. With CVCGL_LOWMEM_MAPPER=force, a native run draws within the browser's budget. Native terrain_lab that way logged 1,440 warnings with the fixed reserve ("far" and "near" out of units for uWake: 16 in all, 8 kept, 10 shader textures), and 0 with this change. - cvcgl_ariadne_realize: the water (with a swell, so the swash and coast grids are on), cloud_sky's shade and a shadow-casting sun, drawn with the low-memory mapper at 16 units, log no out-of-units warning. The count is checked to hear VTK's warning. - ARIADNE.md: the browser's texture units, natively. - The comment #1304 added said WebGL2 gives VTK 32 units; it gives 16. * world: the weather's recent storms, their rain radius and the ground's wetness (O19) weather::recent gives the cells whose life reached into a window, alive or gone; rain_radius is where a cell's field passes the rain onset; wetness is how long a recent storm's rain lay over a point over a soak time, times its drying since, the CPU twin of the wet ground the sky draws and the friction O20 will read. * rain: streaks near the camera, shafts, wet ground, rings on the water and fog (O19) The weather node hands cloud_sky the recent storms' tracks and the rain's constants (sky.rain, sky.rain_k) and draws the streaks near the camera: a port of ABYSSAL's Rain, drops placed and moved in the vertex shader as a closed form of time, slanted by the scene wind's one accessor. cloud_sky draws rain shafts below the cloud base in its far shells, wets and darkens its receivers along the tracks and dries them after, puts procedural raindrop rings into the water's normal, and thickens a distance fog with the rain at the camera, all as uniforms: no sampler joins the ground, the buildings, the roads, the trees or the water. terrain_lab's sky lists the streaks; the Weather panel has the rain's keys. * rain: the sky finds the streaks inside the weather's node; the ground off the terrain cloud_sky looked its receivers up among the scene's top-level names, so the weather's streak mesh (weather_rain, a child of the weather's node) was never wired: it drew without the deck's shade and fog, and in the volume layer before the clouds instead of after them. A receiver is now found anywhere in the scene. The streaks' ground under a camera off the terrain is the height at the terrain's edge, not NaN. cvcgl_ariadne_realize checks that the sky wired the streaks. * world: the weather schedules lightning strikes (O20) weather::strikes(t, window) lists the strikes of the last window weather seconds: each recent cell's life in 1 s slots, a slot holding a strike with probability flash_rate times a smoothstep of the cell's intensity from flash_onset, a hashed draw of the seed, the cell and the slot, at a hashed point within its rain radius; ground_share of them reach the ground. A lightning_strike carries its id (the seed of its bolt), its time, its point and one to four strokes, and intensity(age) gives its light. A pure function of the seed, the time and the events, so every client sees the same strike. Test: WorldWeather.LightningStrikesOnSchedule. * physics: rain lowers the surfaces' friction through the material table (O20) surface_class::mu_wet is each class's friction soaked (wet asphalt and concrete 0.55, dirt 0.35, gravel and sand 0.45, grass 0.3; indoor floors keep theirs). cvc::physics::wet_friction(class, w) runs mu toward it by the wetness, and apply_wetness(world, w) sets every material named after a surface class (as add_world_geometry names them) through world::set_material. Test: PhysicsVehicle.RainLowersTheRoadsTractionAndItComesBackAsItDries, a storm crossing the road: braking from 20 m/s the vehicle stops in 25.2 m dry, 37.8 m soaked and 25.2 m three dry times later. * lightning: bolts and their flash; the rain into the scene's friction (O20) The weather node draws the brightest strike of the moment as a bolt, a port of ABYSSAL's Lightning (Lightning.js at 849ff7f4, MIT; notice in the header and THIRD_PARTY_NOTICES.md): a channel from the cloud base to the ground by midpoint displacement, fading forks and in-cloud crawlers, grown from the strike's id, drawn as camera-facing ribbons (a hot core and a blue-white glow, tapering past their ends) in the mesh <id>_bolt, rebuilt once a strike and drawn after the deck as a sky receiver. Its ground point is the ground's height, at the terrain's edge past it. The flash goes to the sky as sky.flash, a frame step ahead since the sky ticks first, and from there as one vec4 uniform, cloudFlash: the receivers add their albedo times it, the water its lit term, the far shells glow round the strike and the background whitens. No sampler is added. In a scene with a physics world the node sets the surface materials' friction from weather::wetness at the vehicles (apply_wetness), at most twice a world second and only when the wetness moves by 1/64; weather.friction off restores the dry friction. Keys weather.lightning, .flash, .friction and .wetness, on the Weather panel; props flash_rate, flash_onset, ground_share, lightning and friction. terrain_lab lists weather_bolt among the receivers. cvcgl_ariadne_realize covers the lightning, the bolt's wiring and the friction. Docs: ARIADNE.md, and "As built (O20, part 1)" in the roadmap, with what F4 needs from O14. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * Ariadne weather: the rain's friction is the scene world's, set in the physics step on the clock The wet friction (O20, F6) was set by cvcGL's weather node from its frame tick: at most twice a world second, into the physics world's materials from the next step on. The wetness is a function of the seed, the time and the events, but the step at which the friction changed depended on when a frame came (30 fps, 60 fps or an offscreen capture changed it at different steps), and a host without a renderer (ari, arisrv, a headless test) never applied it, so one document's physics differed by host and frame rate. The friction is physics, so the scene's world now sets it. scene_weather.h: - scene_weather_params / _ground / _soak / _dry read a weather node's props; the drawn node and the world both use them, so the friction follows the storms the node draws. - WeatherFriction (one per weather node, SceneWorld::bind_weather; from_scene and scene_realize both bind it) reads weather.events and weather.friction at sync, and sets the friction in follow() before the physics step: on the first step of each half second of world time, counted in the world clock's ticks (each step's tick from the clock follower), when the wetness at the vehicles (their mean; the weather's centre with none) has moved by 1/64. weather.friction 0 dries the surfaces at the next step. It publishes weather.wetness. A restart sets it again at the next step. The weather node no longer touches the friction (its frame tick is gone) and takes its params and soak/dry from scene_weather. Test: AriadneSceneWeather.TheRainsFrictionIsSetInTheStepOnTheClocksTicks. A headless world lowers asphalt's friction to its soaked value; it first changes on a half-second boundary; a run with uneven 0.137 s frames has the same friction as one with a frame per clock quantum at every tick both see; weather.friction 0 dries it at the next step. * AriadneSceneWeather test: the friction is the wet ground's at the wetness applied (the storm moves on and the ground begins to dry), not a full soak
transfix
added a commit
that referenced
this pull request
Nov 19, 2026
… joining carries it arisrvx_bridge_arigl_* (#1302's bridged users) failed on this branch: arigl joined as Alice and posted at once, and the bridge's echo said "echo Alice_xlq7eb: hello hub", the pid, not "echo Alice: hello hub". server.set had succeeded, but the relay wrote a name only for a participant already present. The call came before the presence.joined that room-join wrote with it, so the name waited for the next net step, about 250 ms later. Before this branch, the client wrote its own name in the same batch as its presence. Now: - server.set writes the caller's profile.name at once (client_registry::write_name), present or not. The roster shows nobody until their presence.joined, so an early name shows nothing. - An older client's own name write, refused by the gate, is granted every room step, before the calls, instead of every net step.
This was referenced Nov 19, 2026
Merged
transfix
added a commit
to cy-pca/sublevels
that referenced
this pull request
Nov 23, 2026
…17) * The room bridge: NMDC users in the conference room, the chats joined server/src/sublevels/bridge.py joins the NMDC hub to the relay's room through arisrvx's bridged-users API (transfix/libcvc#1302, 4.0.2): every online NMDC user is a bridged user of the room (via nmdc, with their client and share as the detail), so Ariadne clients list them in the room's users; NMDC main chat goes to the room's chat (unescaped, not hub commands), and a participant's room post reaches NMDC users as <[room]name> text. Direct messages go both ways: a participant's DM arrives as a $To from [room]name, and an NMDC user's reply to [room]name goes back to that participant. Hub nicks may not take the [room] prefix (P3 section 5). A host without the API runs without the bridge and says so. Tests: the bridge against a stand-in host (any pycvc), and through libcvc's ServerHarness(room=) when pycvc.ariadne has it (skipped on 4.0.0/4.0.1; SUBLEVELS_REQUIRE_BRIDGE=1 requires it). All 118 pass with #1302's pycvc.ariadne. * CI on libcvc 4.0.2: the room bridge's harness test required, and the smoke run checks the bridge starts server/ci/install.sh pins libcvc 4.0.2+cvc.2 with arisrvx and pycvc-cp312 4.0.2+cvc.1, the first release with the bridged-users API; ci.yml sets SUBLEVELS_REQUIRE_BRIDGE; the arisrvx smoke run checks that the bridge starts and that both NMDC users joined the room; the recipe and the server document ask for 4.0.2.
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.
What
A program beside the relay (arisrvx,
pycvc.ariadne) can bridge another chat system's users into the relay's room: Ariadne clients see them in the room's roster and chat with them both ways. This is what sublevels needs to put its NMDC hub's users in a known room (nmdc): NMDC main chat ↔ room chat, NMDC users as bridged roster entries, DMs both ways.Python API (arisrvx and plain python)
bridged_pid(user_id, via=)andRoomChatMessageare exported frompycvc.ariadne.ServerHarness(host, room="nmdc")models the room chat for tests under plain python (connect(name=),client.chat_post,chat_messages,roster,leave,ChatRefused).Relay / clients
conf.rooms.<room>.bridge(rev,count,users.<pid>.{present,uid,via,name,detail,e}), apart from the participants, so presence, the area of interest and the holon never see them. The relay is their only writer;room_write_gatetakes no write from a participant whose pid begins with_(a bridged pid's form), so nobody can join as one.e(the chat epoch) hides users an earlier relay process wrote.room_chat_relay::post_bridgedstamps, keeps and pushes a bridged post like any post, with"via"in the message JSON; the same 2000-byte text limit, no rate limit.set_listenerhands the program each participant's room post and each DM to a bridged user. A DM to a bridged user is refused while the program has noon_room_dmhook.(room-roster ROOM)is unchanged (participants only, so documents that subscribe to each entry's media are unaffected);(room-roster ROOM "bridged"|"all" [LIMIT]),(room-bridged-count ROOM),(room-bridged-rev ROOM);chat-messagesaddsvia;chat-conversationsnames bridged peers.room_users.ari: bridged users in rows of their own (name, system, message button; no cam/mic/vol, no camera window), at most 100, rebuilt when the rev moves and at most every 30 ticks.chat.arishowsname (nmdc): text.room_chatevents are JSON strings, so they need no pycvc beside arisrvx.Tests
room_chat_test(+4): bridged posts reach every participant and are kept; the listener; a bridged user's DM; the verbs.room_intrinsics_test(+4, and the gate): pids, presence/absence, limits, the epoch, 6000 presences + 3000 absences (582 ms locally).arisrvx_server_link_test(+1),test_pycvc_ariadne_bridge.py(new, under plain python),ari_chat_component(+3).arisrvx_bridge_arigl_{grpc,ws}end to end: arisrvx runningtests/bridge_service.py, arigl as a participant (conference mode) finds the bridged users, reads their welcome, gets the echo of its post, DMs one and gets the answer, and sees the other leave.relay_pair.py --client-envtakes{url}for that.Run locally (Linux, RelWithDebInfo, gRPC + WS + pycvc + cvcGL): the room/loader/runtime gtests, ServerLink,
pycvc_ariadne*,ari_chat_component,arisrvx_*andarisrv_*ctests pass, except tests that need arix (not built here) andarisrvx_startup_fails, which expects uvicorn's startup failure to exit the server ("its startup failed") while this machine's system uvicorn 0.44 returns instead ("it stopped before it started"). This change does not touch that path; I did not run it on master here. CI uses cvcpkg's uvicorn.Docs
ARIADNE.md §5.16, §9.8.6, new §9.8.7; roadmap/ARIADNE_CHAT.md "Bridged users"; the
ariadne_server.pymodule docstring.A 4.0.x release carrying this is a separate step, on Joe's word for the tag.