Skip to content

Ariadne OW5q: a sea the relay's storms grow; clients follow it and draw the relay's world at its time - #1521

Merged
transfix merged 7 commits into
feat/one-world-ow5pfrom
feat/one-world-ow5q
Nov 24, 2026
Merged

transfix merged 7 commits into
feat/one-world-ow5pfrom
feat/one-world-ow5q

Conversation

@transfix

@transfix transfix commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

OW5's seventeenth slice (ARIADNE_WORLDS.md §18.5): a sea the relay's storms grow. Stacked on #1511 (OW5p).

On the relay, a storm never changed the water's sea, because the sea was timed on a clock nothing drives there. It now runs on the holon's clock. The relay also publishes each water node's sea and each weather node's storms. A client's replica builds the same sea and air, and its boat model floats on them from the same tick. The client draws the relay's world at the relay's time: its sea, storms, clouds and foliage, under the relay's sun.

What changed

  • The relay's sea on the world's clock (SceneWorld::sync(clock)).
    • Three things are timed on the clock: the water's sea keyframes, the storms' gust front (wind.front) and a new storm-wind peak.
    • They read the app's world clock. Once a holon runs the document's world on its own clock (holon::attach_world, arisrv's set_world_external), nothing drives the app's clock, so a storm's front never grew the relay's sea.
    • They now read the clock the world steps on. follow() passes its own, and WaterRuntime::tick and WeatherFriction::read_keys take it.
  • The relay publishes its seas (room_world_on's new seas).
    • Each water node's last keyframe goes in the section the relay already publishes for the world switch (world_on_of, SceneWaterKeyframe).
    • A keyframe is the winds of the old and new keyframes, the crossfade, the count, and the clock tick its field goes in after.
    • A sea lags its wind, and the front moved the wind before a client came, so a client that joins later cannot grow the same sea from the document.
    • The doubles are written to 17 digits, so they come back to the bit.
  • A client's replica follows them (WaterRuntime::follow_sea, SceneWaterSeaClock::follow).
    • It makes the keyframe as the relay made it: h0 and fetch maps from the winds, and the old keyframe's too after the first.
    • It does this in place of its own lag.
    • It hands the holon the new water with the tick it goes in after (world_replica::water_revision, water_from_tick; holon::set_water).
  • A boat's model floats on the water of each tick (dynamic_vehicle_model::set_water, jolt_vehicle_world::water_after).
    • It keeps the last 8 waters by tick.
    • Each step floats on the water of the tick it ends on, which the world's field time gives. A replay from before a change floats on the water before it, as the relay's boat did.
    • A saved state carries the water it was saved on (jolt_vehicle_saved::water), because a physics world restores only onto the sea it was saved on.
  • The air on the hull (world_replica::water, after the water). The replica's air, the scene's wind with the storms' fronts (a flow field), goes to the boat's model with the water, on the same timeline. The storm wind blows on the model's hull as on the relay's.
  • The relay's live storms (room_world_on's new weathers).
    • The relay publishes each weather node's events (a live weather.events) and its storm-wind peak, with the tick that went in after.
    • The replica's weather takes them at once (WeatherFriction::follow, SceneWorld::follow_weather). Nothing steps the replica's world, so it could not switch a peak in on its own.
    • The replica makes its air again, and the holon takes it as new water after that tick.
  • What the client draws, at the relay's time (show_relay_seas, new shown_clock.h).
    • One key under the scene's state prefix, shown_clock, is the time the scene is drawn at. Every drawn node whose look moves with time reads it in place of the app's clock, and seeds it empty: the water's waves, the weather node's storms, rain and lightning, the cloud sky's drift and morph, the forest's and a generated world's foliage's sway, and a wave_sea.
    • A water node also shows another host's sea through its water.sea key, a keyframe that replaces its own lag. The drawn node (with a body or without) and WaterRuntime both read it.
    • arigl calls show_relay_seas each frame after client_pump. It writes shown_clock (the relay's time as the holon counts it), each matching water node's keyframe, each weather node's events and peak, and the sun.
    • The sun. Nothing moves the sun with time; there is no day cycle. Its direction is the light rig's lighting.key_azimuth and lighting.key_elevation, which the clouds and the stage lighting are lit from. The client now takes them from the relay's key light, which the relay's document puts in the room's scene env, so a sun the relay moves is followed.
    • Every key is written only where the document has it.
  • The fetch map is the last keyframe's (SceneWaterSeaClock::advance). The relay's sea kept its fetch map when only the open fetch changed, where a client following the keyframe built a new one. It now rebuilds the map when the fetch moves too.
  • Fixed: a document with a water node rebuilt the replica's statics every frame (since OW5j). The replica never recorded a water node's colliders as taken, since they make no bodies. Now a water node's new field is the water alone: no new statics stamp, no model rebuilds.

Tests

  • New AriadneSceneWeather.TheFrontsSeaGrowsOnTheClockAHolonRunsTheWorldOn: the storm lake, its world following a clock of its own as a holon runs it.
    • It gets 3 sea keyframes and the same wind.front as on the app's clock, and the world's state hash agrees in all 1080 frames.
    • Before the fix: 1 keyframe, no front, and 600 frames that differ.
  • New AriadneOneWorld.AClientsBoatRidesTheSeaTheRelaysStormsGrow: the relay's holon runs a lake whose sea a storm's front grows (3 keyframes in 9 s), with a participant driving a launch across it. Two client models, each sampled every 4 ticks through the pose stream:
Client's model Height Attitude Place
Following the relay's sea 0.5 mm 0.1 mrad 0.8 mm
On its document's sea 2.5 mm 0.4 mrad 1.0 mm
  • The client's sea is the relay's, keyframe for keyframe, with the same tick.
  • The client's air is the relay's to the bit at every point and time checked, with a front of over 8 m/s in it.
  • With the air on the hull the model is 0.7 mm off the launch's place, 0.8 mm without. Sampled every 4 ticks, the launch feels little of the wind between samples.
  • New AriadneOneWorld.AClientsReplicaFollowsTheRelaysSea:
    • The room's seas come back to the bit.
    • The replica follows them: a new field, water_revision 1, water_from_tick 600.
    • The same keyframe again changes nothing, and the statics stamp does not move.
    • The relay's storms: the replica takes its events and its 24 m/s peak from tick 300, and its air is made again (water_revision 2, water_from_tick 300).
    • client_pump hands the water to the holon.
    • show_relay_seas writes the relay's keyframe, shown time, storms and sun into a document of the same nodes (and nothing where it has none), and that document's water follows them.
  • New AriadneOneWorld.ABoatsModelTakesTheWaterAtItsTick, a model given a 14 m/s keyframe from tick 130:
    • It floats exactly as one without it up to tick 130, and is 0.19 m apart by tick 200.
    • A model made with the change in its world floats exactly as the first.
    • Replayed from tick 100, it floats on the calm water again.
  • New AriadneSceneWorld.ASeaFollowedFromItsKeyframesIsTheSeaGrown: a sea grown through a stronger wind, a turn and a shorter fetch, and one following each of its 33 keyframes, have the same h0, full fetches and fetch maps at every one. Before the fetch fix, the last keyframe differed.
  • New checks in cvcgl_ariadne_physics:
    • test_drawn_water_shows_another_hosts_sea: a drawn water node seeds its keys, and its field follows water.sea at the next frame.
    • test_drawn_weather_draws_another_hosts_time: a storm alive at a shown time of 0 is gone at 600 s, and 0 again matches the app's own clock.
  • Checked by hand with arigl snapshot:
    • On a lake: the same shown time draws the same image twice, another time draws other waves, and a 25 m/s water.sea draws a rougher, foamier sea at the same time.
    • On lsystem_forest.ari (forest, wave_sea, cloud sky): the same image twice at one shown time, a different one at another.
  • These suites pass locally: scene world 135 (FleetBench skipped), holon 57, holon sync 40, server document 23, world dataset 4, pose stream 14, room AOI relay 10, room avatar 11, room scene 21, world rules 9, fast lane 9 (4 skipped). cvcgl_ariadne_physics passes. arigl builds.

Not done yet

  • Two drawn animations keep the app's clock: the swarm's pulse and the vehicle studio's turntable. They aren't the world's look.

Not verified

  • I haven't run it live against a relay. What the client draws was checked offscreen with arigl snapshot (above), not in a joined client.
  • A generated world's foliage reads the shown clock, but I didn't render it.

On the relay's clock: the water's sea keyframes, the storms' front
(wind.front) and a new storm-wind peak were timed on the app's world
clock, which nothing drives once a holon runs the document's world on
its own clock (holon::attach_world). On the relay a storm never grew
the sea. SceneWorld::sync(clock) times them on the clock the world
steps on; follow() passes its own.

Published: the relay puts each water node's last sea keyframe in
room_world_on (seas: the old and new keyframes' winds, the crossfade,
the count and the tick its field goes in after), since a sea lags its
wind and a client that came later cannot grow the same one.

Followed: a client's replica makes the same sea from it
(WaterRuntime::follow_sea, SceneWaterSeaClock::follow) and hands the
holon the new water with that tick (world_replica::water_revision,
water_from_tick; holon::set_water). A boat's model keeps its water by
tick and floats each step on the water of the tick it ends on; a saved
state carries the water it was saved on, since a world restores only
onto that sea. A water node's new field no longer rebuilds the
replica's statics (before, a document with water rebuilt them every
frame).

Tests: the storm lake on a holon's clock takes the same keyframes as on
the app's, to the bit; the relay's launch on a storm-grown sea is
within 0.5 mm of the client's model following the relay's sea, 2.5 mm
on its document's; the replica follows the room's seas; a boat's model
takes the water at its tick and replays onto the water before it.
…n sea

The air on the hull: the replica's air (the scene's wind with the
storms' fronts, a flow field) goes to the boat's model with the water,
on the same timeline, so the storm wind blows on its hull as on the
relay's. The client's air is the relay's to the bit.

The relay's storms: room_world_on gains `weathers`, each weather node's
live events and storm-wind peak with the tick it went in after. The
replica's weather takes them at once (WeatherFriction::follow,
SceneWorld::follow_weather) and makes its air again, which the holon
takes as new water after that tick.

The drawn sea: a water node shows another host's sea through two keys,
water.sea (a keyframe in place of its own lag) and water.clock (the
time it is drawn at), which the drawn node and WaterRuntime both read
and seed empty. arigl writes them each frame after client_pump
(show_relay_seas) for the water nodes of the relay's document its own
document has, with the relay's time as the holon counts it, and the
weather nodes' events and peak, so it draws the relay's sea at the
relay's time under the relay's storms.

Tests: the client's air matches the relay's at every point checked; the
replica follows the relay's storms and makes its air again;
show_relay_seas writes into a document of the same nodes only; a drawn
water node follows water.sea at the next frame.
@transfix transfix changed the title Ariadne OW5q: a sea the relay's storms grow Ariadne OW5q: a sea the relay's storms grow, followed and drawn by clients Nov 24, 2026
One key under the scene's state prefix, shown_clock (new
shown_clock.h), is the time the scene is drawn at. Every drawn node
whose look moves with time reads it in place of the app's world clock
and seeds it empty: the water's waves, the weather node's storms, rain
and lightning, the cloud sky, the forest's and a generated world's
foliage's sway, and a wave_sea. It replaces the per-node water.clock
and weather.clock keys.

show_relay_seas writes it each frame with the relay's time as the
holon counts it, and the sun: lighting.key_azimuth and
lighting.key_elevation from the relay's key light in the room's scene
env. Nothing moves the sun with time (no day cycle), so a sun the
relay's document moves is followed.

The fetch map is the last keyframe's: the relay's sea now rebuilds it
when the open fetch moves too, as a client following the keyframe
does. A sea followed from each of its keyframes is the grown sea's at
every one.

Tests: a sea followed from its 33 keyframes is the grown one's (the
last differed before the fetch fix); show_relay_seas writes the shown
clock and the relay's sun; a drawn storm is drawn at the shown time.
Checked by hand with arigl snapshot: the same shown time draws the
same image twice, another time another, on a lake and on
lsystem_forest.ari.
@transfix transfix changed the title Ariadne OW5q: a sea the relay's storms grow, followed and drawn by clients Ariadne OW5q: a sea the relay's storms grow; clients follow it and draw the relay's world at its time Nov 24, 2026
A kinematic vehicle turns through its tick: the relay's kinematic box
goes on a line between the bicycle's boxes at a navigator tick's ends,
yaw included, so the pose's yaw rate is the tick's, and
kinematic_vehicle_at now turns the box at it through the rest of the
tick and starts the next tick at the relay's heading. Placed from
samples every 4 ticks while turning: 2.3 mm off at a sample, 4.4 mm
without the yaw rate.

A jolt vehicle's wheels at the relay's steering: world::set_vehicle_steer
puts a vehicle's steering actuator at an angle (clamped to its lock),
and a jolt model placed from a sample that carries the relay's steering
puts it there. Joining the relay's jolt Humvee mid-turn: 0.31 mrad of
heading and 1.26 of attitude off at worst, 2.75 and 4.7 with straight
wheels.

A vehicle turned or sped up in place is placed again: the holon now
re-places a predicted vehicle when its heading or velocity is off the
sample by more than holon_config::reconcile_yaw_tol or
reconcile_speed_tol, not only its place.

Roadmap: the day-night cycle (FLEETS_AND_NIGHT_ROADMAP.md NL5) gains
Joe's requirements: set against the system clock as an option, and a
connected client on the server's time; D6 partly settled.
Ariadne OW5r: a sample corrects all of a vehicle's motion
@transfix
transfix merged commit 7a5af16 into feat/one-world-ow5p Nov 24, 2026
1 of 2 checks passed
@transfix
transfix deleted the feat/one-world-ow5q branch November 24, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant