Skip to content

OW5f: clients follow the relay's world switch and generated worlds - #1454

Merged
transfix merged 72 commits into
feat/one-world-dynamic4wfrom
feat/one-world-follow
Nov 22, 2026
Merged

transfix merged 72 commits into
feat/one-world-dynamic4wfrom
feat/one-world-follow

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW5's sixth slice (ARIADNE_WORLDS.md §18.5): a client that builds the relay's world document (OW5c's world_replica) now follows what the relay has on. Two cases were missing:

  • A world switch. A relay that turned on another of its scene's worlds published nothing, so clients kept the document's first world and stood on statics the relay no longer had.
  • A Regenerate. A generated world made again with another seed, preset or counts left clients on the old terrain and buildings.

Stacked on #1453.

What changed

  • room_world_on (room_scene.h; conf.rooms.<room>.world_on) records the scene's world that is on, plus the params each generated_world node of it made its world from (in a scene without worlds, every generated node's). The DEM file is named as its key names it, not the path the relay resolved it to.
  • The relay publishes it. publish_world_on(app, room, world) writes it when it differs from what the room has. arisrv calls it every loop for the server document's world, next to the entity relay. world_on_of(world) builds the record.
  • SceneWorld gains:
    • world_nodes(name) and generated_nodes();
    • generated_params(node, out): the params a generated node's world was made from;
    • follow_generated(node, params): the node's keys take the params and ask for a new world, which the next sync() makes. A new preset is written and read first, so its quick-set doesn't overwrite the counts.
  • world_replica follows it. When the record's stamp moves, or the world is built again, the replica:
    • turns on the same world;
    • asks each generated node for the relay's params;
    • rebuilds its statics whenever the world on changes, not only when colliders change.

Tests

  • AriadneOneWorld.AClientFollowsTheRelaysWorldSwitch: a document with two worlds (a slab, and a 1 m dome of terrain). The client stands on the slab (z 0.00). The relay switches to the dome and publishes, and the client stands on the dome (z 0.99), its replica with dome on. publish_world_on writes once, then only on a change.
  • AriadneOneWorld.AClientFollowsTheRelaysRegeneratedWorld: a generated world made again on the relay from seed 9 and another preset. The params round-trip through the room, and the replica's world is made from the same signature. At the point where the ground moved most, the client's ground went from z 8.803 to z -3.963, the relay's own, and its statics are the new world's colliders. follow_generated refuses an unknown node and does nothing when the world is already made from those params.
  • Locally, these suites pass: scene world 113, holon 52, holon sync 35, room scene 21, room avatar 10, room intrinsics 21, server document 23, world dataset 4, pose stream 13, avatar sim 8. arigl builds.

Not verified

  • arisrv doesn't build on this machine (it needs gRPC), so its four-line call compiles only in CI's gRPC build. I haven't run a live arisrv + arigl session.
  • Params no key holds (the terrain cell, the terrain and raster size caps, the waterline slivers) aren't followed. They come from the document, which is the relay's own, so they already match.
  • A DEM terrain_file the client can't resolve makes its world from the default generators, so its statics differ from the relay's until world packs (§12) fetch the file.
  • A switch to a world whose generated node is still being made keeps the old statics until it's ready. The headless runtime makes it in the same sync(), so in practice that's one pump.

… it runs (#1391)

AriApp.grid read AppRuntime::scene_world(), which is null when a renderer's adapter runs the
scene's world, so an AriApp attached to a drawn host (ari_app_attach: a window, offscreen, ariglx-web)
got None although the world ran and published scene.world.grid.*. It now reads running_world(), as
WorldEntities does.

AriApp.world_geometry(node) is SceneWorld::world_geometry on that world: a generated world's
colliders, a dataset's world, as a pycvc.world_geometry sharing its arrays (as data_world's). A host
whose own physics is not in the scene's world (pycvc_gl.cars' plants, GRL-SNAM's ports) collides
with it instead of generating the world again in Python.

Tests: test_pycvc_ariadne checks world_geometry headless (its grid is SceneWorld's); the GL host
test's offscreen child checks grid and world_geometry through ari_app_attach on a drawn generated
world, against a headless AriApp on the same document, and a flat world's grid after a switch.
…1403)

FL1b of [FLEETS_AND_NIGHT_ROADMAP.md](docs/roadmap/FLEETS_AND_NIGHT_ROADMAP.md), following FL0 + FL1a (#1384, merged as 28c371c).

Each fleet now has its own navigator, with its own sense, belief and policy (settled as D8). Nothing in the one-world stack (#1378, #1379, #1381, #1387) touches this part.

```yaml
start:
  - { fleet: city, archetype: humvee, plant: kinematic, count: 800, spawn: opposed, seed: 7,
      rally: { count: 16 }, sense: fog, belief: grouped, policy: trained }
```

## A navigator per fleet

- **One navigator per plant per fleet**, keyed `<plant>/<fleet>`. The plant's unnamed vehicles keep the navigator they had. The fleets meet each other as foreign agents, as different plants already did.
- **`sense:`** is `known` or `fog`. By default it is the world's `vehicles.sense`, and it follows that key when the key changes.
- **`belief:`** says how the vehicles share what they sense:
  - `shared` (the default): one map;
  - `grouped`: max(2, n / 64) maps, teammates together;
  - `private`: one map per vehicle.
- **Keys:** `vehicles.fleets.<name>.sense` and `.belief` rebuild the navigator, with the vehicles at rest where they are. `.planes` counts the maps.

## The policy

`policy:` takes one of:

- `trained` (the default): `$CVC_NAV_WEIGHTS`, else an installed copy (`coef_mlp::default_weights_path`), else a download of `cvcpkg://cvc/grl-snam-weights` (`share/grl-snam-weights/coef_sdf.cvcnav`) through the data store, cached by hash;
- `builtin`: the built-in net;
- a `.cvcnav` path;
- `{ uri, path, sha256 }`: a file, an https URL or a cvcpkg:// package, the `.cvcnav` inside it, and its hash;
- `{ data: <entry> }`: one of the document's `data:` entries.

Switching and reporting:

- `vehicles.fleets.<name>.policy` switches it live: `sim_world::set_policy`, or `reset_policy` for the built-in net.
- `.drives` says what drives:
  - `trained (<where>, sha256:...)` or `weights (...)`;
  - `builtin`;
  - `builtin: loading <uri>` while a download is under way;
  - `builtin: no trained weights (<why>)` when the weights can't be had. The fleet then drives on the built-in net, and the host's log gets the same line once. With the network off, the reason reads "the network is off, so ... cannot be fetched: run the host with the network on (--net-allow ORIGIN)".
- New `policy_library::get_bytes` loads weights already in memory (a download, a data entry) once per hash, as `get` does for files.

## Also

- **`controller: pose` is refused for a fleet**, and so is an archetype whose first controller is `pose`. A fleet lays out and drives its vehicles, while a pose entity is placed only by its poses.
- **The FL1a documents now say `policy: builtin`**, so their layout and drive tests don't depend on the weights a box has installed.
- **Docs:** the Fleets section of ARIADNE.md, and in the roadmap the FL1b row and D3 updated for ARIADNE_WORLDS section 18. A drawn host's async world becomes the local server-role holon (OW7), and `poses(fleet)` feeds OW5's playout.

**Left for FL1:**
- plant lists and per-team plants;
- the metric (D9);
- `poses(fleet)`;
- the gym's fleet.

## Tests

`ariadne_scene_world_test` passes locally (MSVC, Jolt).

- **New:** `AriadneWorldVehicles.AFleetHasANavigatorAndAPolicyOfItsOwn` covers:
  - a 130-vehicle grouped fleet (2 maps) beside 6 private fog scouts (6 maps) on a sha256-pinned `.cvcnav`;
  - the belief key, then the policy key switched live: builtin, trained via `$CVC_NAV_WEIGHTS`, a missing file, and an unreachable cvcpkg package. The last two fall back visibly.
- **Extended:** `AFleetIsANamedStartEntry` gains the new keys and their errors.
…nd nav_plant (#1389)

pycvc_gl.cars' Settings window had 12 hand-made sliders, each with its own range, format and
tooltip. Now it holds one settings: editor that takes every key's slider, unit, range, tooltip
and reset from libcvc's descriptions of it (sim_world_binding.cpp's kVehicleKeys and reach_tol,
nav_plant.cpp's kPlantKeys).

It lists every knob under its roots, not just the 12: the 21 nav.vehicle knobs, reach_tol and,
on a plant other than nav's bicycle, nav_plant's latency, brake_margin, drift_nsub, plan.* and
modulation.*. Left out:
- read-outs;
- the plant's build keys (settings.*, available);
- nav_plant.vehicle, which Run's Vehicle combo sets.
It also has a search box. The unit keeps its args (title, id), its 360x330 window and the
"applied on the next tick" line, so cars.ari and nav_lab_arms.ari include it unchanged.
… mic drains its backlog (#1398)

Peers' voices broke up while video and avatars stayed smooth. Two causes:

- The receiver played a peer's audio the moment it landed, into a 100 ms output it filled once a
  frame. Over a WebSocket, audio lands in bursts (the sender captures in blocks and sends once a
  frame, and it shares the connection with video), so a late burst left the speaker with nothing.
- The mic producer read one 21 ms chunk per tick. A browser delivers its mic in 43 ms blocks and
  its timers skip the beats a busy frame misses, so every skipped tick left a chunk behind for
  good, and at 80 ms of backlog the capture dropped it (about 64 ms of audio each time).

cvc::voice_mixer (voice_mixer.h) holds a jitter buffer per peer and mixes them. The playback
device pulls the mix at its own pace through open_audio_output_pull (SDL's get-callback), not at
the frame loop's. A peer starts once its target is buffered: 80 ms, at least the device's block
plus 20 ms. The target grows 20 ms each time the peer runs dry and its audio comes back within
300 ms, and shrinks after 10 s without that. A burst past twice the target is cut back to it with
a cross-fade. The client logs each peer's buffer every 10 s.

frame_source::more lets a FIFO source say it has another chunk ready, and the producer reads up to
16 chunks a tick. The SDL mic says so while its backlog holds a chunk, and keeps up to 250 ms
before it drops. A decoder also drops an Opus packet at or behind the last one, and starts over
when the sender has.
…ter red after OW1) (#1405)

AFleetIsLaidOutInTeamsAtRallyPoints (FL1a, #1384) stepped 240 times and
asked for the fleet to be 5 m east. On OW1's 1/120 s quantum (#1378)
those steps are 2.0 s, not the 2.4 s it was written at, and the fleet
starting from rest is 4.36 m east by then. Neither PR's CI saw the
other, so master has failed it since OW1 merged.

It now steps 3 s of the clock (3 / kSimQuantum), about 9 m east.
…ures, sessions (P8 part 1) (#1400)

The data side of VolumeGridRover (docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md
section 4, P8), with no GL in it, in inc/cvc/volume/volume_grid.h:

- the node's parameter tables: volume_grid_params (view, tool, slice.x/y/z),
  volume_grid_display_params, volume_grid_source_params;
- cvc::point_class_editor: mark, toggle (VolumeGridRover's double-click),
  select by point and rubber band, move the selection (cut short at the edge,
  merging), delete, undo, one plane at a time and only the shown variable and
  timestep's classes;
- cvc::point_class_gestures: a slice view's picks (down, drag, up, Shift /
  Ctrl / Alt) turned into those edits as the legacy slice canvases turned
  mouse events: click marks, drag selects, Shift+Ctrl drag moves, navigate
  moves the other planes;
- the class rows a list: binds, reconciled with the classes as rows are
  edited, added and removed;
- sessions: the keys, the transfer function and the classes in one JSON file.

volume_grid_test (ports lane, native and wasm-mt; and SAN_CXX_TESTS) covers
the tables and rows on the tree (T8), the editor and gestures, sessions with
bad and truncated files (T9, T5), and two editors, threads and apps sharing
nothing (T6). pycvc binds all of it (pycvc_volume_grid.i,
test_pycvc_volume_grid.py).
…he major (#1377)

* cvcpkg recipes: pin every family dependency to its own release, not the major

While libcvc 4.0.1 was half-published (2026-11-19), CVC-Lab/GRL-SNAM's CI
resolved pycvc-gl-cp313 4.0.1 with cvcgl 4.0.0 (undefined symbol
cvc::gl::RibbonNode::replaceFrom) and pycvc-cp311 4.0.0 with libcvc 4.0.1
(segfaults, garbage energies). The ABI changes between patch releases, and
v4.0.1 predates #1289, so its rows record those edges with no version at all;
"^4.0" would have allowed the same mixes.

- Every dependency on a recipe under cvcpkg/recipes/ (or a name one provides)
  pins version "==<CMakeLists VERSION>". cvcpkg reads "==X.Y.Z" without
  +cvc.N as any revision of X.Y.Z, so +cvc.N rebuilds still satisfy it, and its
  backtracking resolver falls back to the newest release that is complete on
  the catalog instead of mixing two.
- recipe-family-pins.py checks "==<VERSION>" (was "^<major>.0") and gains
  --write. bump-version.py X.Y.Z does a release bump in one step (CMakeLists,
  every upstream_version, cvc_revision 1, the pins), so the pins move with it.
- publish-cvcpkg's CUDA lane installed the newest published cvcgl to build
  pycvc-gl-cp311-cuda: v4.0.1's was built against cvcgl 4.0.0+cvc.3, installed
  49 min before cvcgl 4.0.1 reached the catalog. It now waits (up to 120 min)
  for cvcgl==<version> and fails rather than link another release.
- backfill-family-pins.py pins the same edges on rows already published
  (1,116 rows; the registry's backfill-deps admin endpoint with
  expect_required_deps). Without it a half-published release still falls back
  to an unpinned older binding beside the new libraries. Dry run by default;
  --apply needs an admin token and is the registry owner's call.

* backfill-family-pins.py: count a row the server left alone as unchanged; --limit and --save

The registry's compare-and-set answers count.required_deps == 0, not an error, when a row's
stored deps differ from the catalog's copy, so a row it skipped was reported as pinned. It is
now reported UNCHANGED and fails the run. --limit N writes only the first N rows (a canary) and
--save FILE writes each row's old and new required_deps, from which the change can be reverted.

Applied to cvcpkg.org on 2026-11-19: 1,116 rows pinned, none unchanged or failed; a rerun finds
nothing.

* backfill-family-pins.py: the backfill's date is 2026-11-20 UTC

* recipes: pin the family to ==4.0.2, master's version since #1383

Written by recipe-family-pins.py --write after merging master.

* ariadne tests: the fleet's rally check drives 3 s, not 240 steps

AFleetIsLaidOutInTeamsAtRallyPoints (FL1a, #1384) stepped 240 times and
asked for the fleet to be 5 m east. On OW1's 1/120 s quantum (#1378)
those steps are 2.0 s, not the 2.4 s it was written at, and the fleet
starting from rest is 4.36 m east by then. Neither PR's CI saw the
other, so master has failed it since OW1 merged.

It now steps 3 s of the clock (3 / kSimQuantum), about 9 m east.

(cherry picked from commit 1cf1081)
…nstruct series (P4) (#1397)

* contour_lab: the contour tiler in Ariadne, with a demo on a real Reconstruct series (P4)

Phase P4 of docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md (§3's Ariadne part, §7's P4 row):
the tiler P3b ported (cvc::tile_contours) as a scene node, a component that drives it, and a
demo on a small redistributable Reconstruct series, native and in arigl-web.

- contour_lab (inc/cvc/gl/ariadne/contour_lab_nodes.h, registered by register_cvcgl_extensions):
  reads a contour file (source: { file }, any contour format), another node's contour_stack
  (source: { node }, its tiler.contours or grid.contours data key) or a stack on a state key's
  data channel (source: { state }), and follows a node or state source when it changes. It draws
  each component's contours as polylines under <id>_contours (tag contours). request "tile" runs
  tile_stepper as a sliced task on the app's scheduler; the surfaces go under <id>_tiles (tag
  tiles) and on the data channel at <node>.tiler.surfaces.<component>, the stack at
  <node>.tiler.contours. Keys under <node>.tiler: tile_params and read.* (contour_read_params)
  from their tables, with their properties; a row per component (name, colour, visible, tile);
  view.*, info.*, warnings; and §1.9's job keys, the phase naming the slice pair being tiled
  ("tiling slices 3 - 4 42%"). Stop ends the tile at its next step and keeps what the node had.
- contour_tiler.ari: the component picker (tile / show / colour per component), the slice range,
  the parameters, Tile / Stop / Load, a progress bar labelled with the slice pair; its INDEX.ari
  entry, which ariadne_loader_test requires of every shipped component.
- The loader passes source: { node } through to a custom type's props, as { state } and
  { stream }.
- RealizedScene::pending_work: a custom node's work in flight. cvcgl_ari_golden steps until none
  is busy before the capture.
- The demo, examples/ariadne/documents/contour_tiler.ari, tiles the Kuwajima 2019 series (CC0,
  doi:10.18738/T8/QP43LB): two axons through 72 sections, a third that branches, and two
  mitochondria inside one of them (examples/data/contours/kuwajima2019, 216 KB; its README says
  where it came from and what was kept; THIRD_PARTY_NOTICES.md cites it). In the gallery as
  contour_tiler_ari.
- Golden: src/cvcGL/test/golden/contour_tiler.ari (sections 14 to 33 of the axon with its
  mitochondria). Its PNG comes from CI's llvmpipe run, as orthoslicer's did.
- arigl-web: the docset's contour_tiler.ari, served at /apps/tiler/ with a page config that
  preloads the series from /apps/data/ (the repository's examples/data); it prints one line once
  its three surfaces are up.
- wasm: arigl-web's and libcvc-examples-web's recipes take clipper2, cdt and shewchuk-predicates
  (cvc_revision 2), as do deploy-pages' and publish-cvcgl-wasm's gallery builds (the wasm-mt SDK
  itself unchanged), so the browser builds have cvc::planar and the tiler.
- Tests: cvcgl_contour_lab (57 checks): rows, keys and their properties, polylines, the tile
  equal to tile_contours, untick, stop, colour and visibility, node and state sources, bad input,
  the pending-work probe, two apps, and a cooperative run that spans many frames.

Found: in cooperative mode the tiler's first frames (snapping, curating, augmenting) take 50 to
160 ms each in a native Release build: tile_stepper::step runs on across a phase change, and a
curating or augmenting unit is a whole slice or pair. The roadmap's §3 records it; the fix is
P3b's stepper's, not this node's.

* golden(contour_tiler): a taller window, so its three rows show

CI's first run drew the window 130 px tall, which hid the third component's row behind a
scrollbar. At 160 px all three rows show.

* golden(contour_tiler): its reference image, from CI's llvmpipe run

Taken from the ari-golden artifact of package-linux / libcvc-release at 1575da9. The
libcvc-release-grpc lane wrote the same bytes.

* ariadne tests: the fleet's rally check drives 3 s, not 240 steps

AFleetIsLaidOutInTeamsAtRallyPoints (FL1a, #1384) stepped 240 times and
asked for the fleet to be 5 m east. On OW1's 1/120 s quantum (#1378)
those steps are 2.0 s, not the 2.4 s it was written at, and the fleet
starting from rest is 4.36 m east by then. Neither PR's CI saw the
other, so master has failed it since OW1 merged.

It now steps 3 s of the clock (3 / kSimQuantum), about 9 m east.

(cherry picked from commit 1cf1081)
…very group (#1390)

* Ariadne settings: only a search, or a filter that picks keys, opens every group

Any filter: set the spec's narrowed flag, and ImGui then forced every group header open on
every frame. That included a filter made only of '-' patterns, which just leaves keys out. So
a user could not collapse a group, and open: / groups: had no say (pycvc_gl.cars' Settings
window hides the plant's build keys this way).

Now a search narrows the list, and so does a filter with a pattern that picks keys. Both still
draw every group open, so no match hides in a closed one. A filter of '-' patterns leaves the
groups to open: and groups:, and each one opens and closes by hand.

Tests:
- ariadne_settings_test: an exclude-only filter isn't narrowed; a search or a picking pattern
  is;
- cvcgl_imgui_settings: a click on a header closes its group under an exclude-only filter, and
  a picking filter draws a group open with open: false.
Both fail under the old rule. docs/ARIADNE.md §4 says which filters narrow.

* cvcgl_imgui_settings: make each session's ImGui context current in the test too

On Windows the test and libcvcGL each have their own imgui globals. The new filter checks open a
second and a third Session, but ImGui::CreateContext leaves an earlier context current. So the
test's own GetIO/NewFrame/Render kept going to the first context, while ImGuiBackend drew into
the new one, which never had a NewFrame: imgui.cpp asserted g.WithinFrameScope
(package-windows / libcvc-release). Each Session now calls ImGui::SetCurrentContext on its
context, as cvcgl_imgui_chat_widgets' does.
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.
A long frame held a native client's audio up both ways. A peer's mic chunks
were decoded and pushed to its jitter buffer once a frame, so a stall let the
device drain the buffer. Our own mic went out once a frame from a ring of 8
chunks (170 ms), so a stall delayed it, and one past 170 ms dropped it.

- A peer's mic is decoded and pushed to voice_mixer on the thread it arrives
  on (the transport's reader, or the lane's), with a decoder per peer under
  its own mutex. The frame takes each peer's talk highlight and A/V clock
  from there (take_voice).
- voice_ is made when the client joins, at 48 kHz mono; the output still
  opens on the frame's thread, once there is audio to play. A/V sync follows
  the jitter buffer only while the output is open.
- Our mic goes out on a sender thread as the producer delivers each chunk,
  stamped with the last frame's world-clock time moved on by the steady
  clock since. The frame still binds the stream and hands the subscription
  over.
- CVC_ARIGL_AUDIO_THREADS=0 puts both back on the frame. A browser build
  always has them there.
…ays near the slice (#1411)

* tile_stepper: every phase counted by vertex, so a cooperative step stays near the slice

In cooperative mode the first frames of a tile took 50-160 ms against §1.9's 4 ms slice (found
in P4): step() ran on across a phase change, and a curating or augmenting unit was a whole slice
or slice pair.

- A step ends where the phase changes (budget 0 still runs to the end).
- Curating, augmenting and tiling yield a contour, pair of contours or test at a time, and a call
  that cannot yield (Clipper2, a sweep, a simplicity test, a Delaunay) is charged by the vertices
  it takes (TILER_UNITS, tiler/stepping.h), about a microsecond a unit.
- An untiled region's fill yields a point at a time (medial_axis_stable_steps, interpolate_steps);
  a slice pair's workspaces and the assembled triangles are freed a piece at a time.
- The order of the work is unchanged: T7 still finds every budget's result bit for bit equal.

Tests: tiler_test's T7 on P4's demo stack (3 components x 12 slices x 64 vertices), and
tiler_bunny_test records the bunny's slowest step and cooperative frame (the harness's timed and
frame runs now run alone too).

* tile_stepper: an untiled region's partition charged where it runs, before its fill's points

* docs(roadmap §3): the tiler's units are a microsecond's work, and the slowest steps measured after the fix
…e, now that #1411 fixed it (#1419)

#1397 recorded the finding (50 to 160 ms cooperative frames on its demo
stack) and #1411 fixed it and recorded what it measured in §3's
Resumable paragraph. Whichever merged second was to replace the finding
with a pointer; #1411 merged second.
…as (#1416)

* voice_mixer: a late underrun grows the target by how late the audio was

A late underrun grew a peer's jitter-buffer target a fixed 20 ms, so a sender
whose main thread stalls 150 ms took a gap per step to catch up (9 late
underruns, 80 to 260 ms, in headless Chrome). Now it grows by how late the
audio was to the device: the audio the device asked for from running dry to the
audio's return and did not get, at least a step, rounded up to whole steps,
capped at max_delay_s. For a device pulling at its own pace that is the time
since; a receiver whose own main thread stalled pulls a stall's worth at once
after it, or nothing during it, and the time alone reads those wrong (measured
in headless Chrome under SwiftShader: 90 ms by the clock against 1 ms short,
and 3 ms against 56).

After a late underrun the voice plays again once what it waited for before is
buffered, not the grown target. The audio that comes back brings the delay the
stall needed; waiting for the rest was a gap of its own (up to 580 ms in one,
in headless Chrome). The grown target keeps that audio from being trimmed, and
the next talk spurt starts at it.

A voice that runs dry on quiet audio (below quiet_rms, 0.008) is not late: a
conference sender sends nothing through a silence after 0.8 s of its mic below
0.004, and the next talk spurt can come within late_window_s. Counted late, a
pause grew the target 20 ms, and by its length would take it to the most.

Relaxing stays one step per relax_after_s, so a stall that recurs still finds
the buffer big enough; the delay a one-off stall added lingers longer.

The tests: OnlyLateUnderrunsGrowTheTarget expects three steps for a device that
went 60 ms short; new tests for one large late arrival, a device that pulls a
stall's worth at once, one that pulled nothing while dry, a late voice playing
again at its old target, whole steps up to max_delay_s, a pause in speech, and
two minutes of speech sent with the uplink's silence rule; the simulation gains
sender and receiver main-thread stalls, and a test where both stall.

* roadmap §5j: jitter buffers grow by how late the audio was to the device
…1410)

C4 of docs/roadmap/NAV-COPH-ROADMAP.md (section 4.4), additive and default-off: nothing calls it
yet; C5's fleet driver will.

- coph_packet.h: the demos' packet (cooperative.Packet, then MazePacket's geometry), and bytes():
  the length of its compact, key-sorted JSON, with Python's repr for floats (coph_repr, from
  std::to_chars's shortest digits) (D9). coph_exchange_state holds the received packets, the
  route evidence and its cells, and the reported geometry.
- coph_exchange.h:
  - coph_export: CooperativeLearner's bootstrap and candidate anchors, TerrainLearner's
    risk-ordered anchors and second bootstrap, MazeLearner's geometry. The resample indices are
    injected, or drawn from a seeded std::mt19937 through detail::pick_below (D8).
  - coph_assimilate: MazeLearner's geometry checks; CooperativeLearner's schema, provenance, age,
    order, payload and received cap; TerrainLearner's route evidence.
  - coph_expire and the two refreshes.
  - coph_fit_messages: the legacy receiver's whitened Gauss-Newton step, which coph_update now
    commits when packets are held.
- coph_channel.h: the transport interface and coph_ideal_channel (seeded delay and jitter, drops,
  duplicates, an optional range).
- detail/coph_math.h: the features, Cholesky and slab distance that coph_learner.cpp and
  coph_exchange.cpp share (moved out of coph_learner.cpp unchanged).

nav_coph_exchange_test reproduces GRL-SNAM's G9 and G10 (CVC-Lab/GRL-SNAM#201;
data/coph_golden.json is its fixture). Every decision and byte count matches exactly, and the
values come within 0.074 of the tier's allowance on Windows. It also checks the channel's
statistics, production draws and JSON escapes.
A fleet's plant: is one plant, a list its vehicles cycle over, or each
team's ({ 0: jolt }; a team not named on the archetype's), each plant a
navigator of the fleet's own (<plant>/<fleet>); its plants all float or
none do. vehicles.fleets.<name>.plant switches them live
(fleet_plants::text: "jolt, kinematic", "kinematic, 0: jolt"), its
vehicles at rest where they are; a bad one is said in vehicles.status.

Its metric: trained (the trainer's vehicle: training_scene's rr, d_hat
and vmax at the hosts' tick, the plants' plan_with_vehicle off), vehicle
(each plant's own), or policy (the default: trained while weights drive
or are on their way, so their arrival does not make the navigator again;
vehicle on the built-in net, a fallback's included). .metric switches
it, .plans says which, and a change makes the navigators again.

plants() reports each fleet's own bicycle, and set_avoid sizes each
navigator's separation by its own vehicle.

Tests: AFleetHasPlantsAndAMetric; AFleetIsANamedStartEntry's plants and
metric; .plans across AFleetHasANavigatorAndAPolicyOfItsOwn's switches.
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.
…s section, a skeleton lab demo (P2) (#1402)

* mesh_lab skeleton: the skeleton request, its children and a mesh_tools section, a skeleton lab demo (P2)

Phase P2 of docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md: P1's cvc::skeletonize in Ariadne.

- mesh_lab `skeleton` request: cvc::skeletonize_job on the shown mesh's vertices as a sliced
  task on the app's scheduler. Its parameters are skeleton_params' table under
  <node>.mesh_ops.skeleton.* (seeded from a `skeleton:` prop, with their properties, read when a
  run starts; a bad value is reported and nothing runs; one changed mid-run applies to the next
  run, and the status says so). It publishes job_keys' busy, stoppable, status, progress, phase,
  stats.work_ms and pid, plus info.* and warnings. `stop` ends it and keeps the last skeleton,
  other requests wait while it runs, and a new mesh clears it. A realize-time load now runs
  before a request already waiting instead of replacing it.
- Children <id>_strands (lines) and <id>_sheets, view.strands / view.sheets, and the parts on
  the data channel at <node>.skeleton.{strands, sheets, helix}.
- View tags: the children are tagged skeleton and the node's own surface surface, for its props
  alone (RealizedScene::TaggedNode::subtree, honoured by scene_views when hiding, restyling and
  framing), so show: [skeleton] shows the skeleton alone and hide: [surface] drops the surface.
- RealizedScene::settling: probes a custom node type registers while its work would still change
  the frame; cvcgl_ari_golden steps on until they are all false before it captures.
- mesh_tools.ari: a Skeleton section (parameters, Skeleton and Stop, progress, counts, a show
  toggle per part).
- examples/ariadne/documents/skeleton_lab.ari, in the gallery as skeleton_lab_ari with a
  thumbnail. Golden src/cvcGL/test/golden/skeleton.ari on a committed 4,000-triangle bunny
  (golden/data/bunny_4k.off); its PNG follows from CI's llvmpipe run. arigl-web smoke case
  (docset skeleton.ari). arigl-web's and the gallery's recipes gain shewchuk-predicates, and
  arigl-web's full build fails at configure without them.
- Tests: cvcgl_mesh_skeleton, plus a cooperative-threading entry; cvcgl_ariadne_views' parts
  case; SkeletonParams.OnTheStateTree in skeleton_test (ports lane: native and wasm-mt).
- Docs: ARIADNE.md (§5.4 rows and the skeleton, Tags, golden tests), INDEX.ari, the roadmap's §2
  and P2 row.

* golden: skeleton.png from CI's llvmpipe run

The skeleton document's reference frame, taken from the ari-golden
artifact of package-linux / libcvc-release-grpc (llvmpipe, LLVM 20.1.8)
on this PR: the run settled (done, 315 strands, 2 sheets from 2064
points), the skeleton alone in the side view and over the translucent
bunny in the main view.

* scene_views: a view naming tags to show waits for their bounds before it frames

A view frames its camera once, the first frame it holds props with bounds. A view
with show: [skeleton] lets in a mesh_lab's skeleton children, which have bounds only
once the run ends; until then shown_bounds found none and the view framed on every
visible prop in its renderer (the surfaces) instead, for good. Whether the skeleton
was there first was a race: CI's Linux run framed on the surfaces, its Windows run on
the skeleton, so the skeleton golden differed in its side view (1.9% of pixels).

- A view whose show: list lets in tagged nodes, none of them with bounds yet, now
  waits for them. With no tagged node let in, it frames on what it draws, as before.
- shown_bounds leaves out a node an entry out of the view takes along (the entry's own
  node, and with subtree every node under it), as the view's renderer does: a
  mesh_lab tagged lab no longer puts its skeleton children (tagged lab and skeleton)
  in show: [skeleton]'s framing.
- cvcgl_ariadne_views: show: [skeleton] is framed on the untagged mesh_lab's skeleton
  once it has one (fails on the old code: framed on both bunnies).
- The skeleton golden and the skeleton_lab demo: the side view's zoom 0.85 -> 0.6, now
  that it is framed on the skeleton itself.
- ARIADNE.md: when a view naming tags to show is framed.

skeleton.png still holds the old framing; its replacement comes from this commit's
llvmpipe run.

* golden: skeleton.png retaken on the framing fix

The skeleton document's frame from package-linux / libcvc-release-grpc's
ari-golden artifact (llvmpipe, LLVM 20.1.8) at 6b8e6af, where the side
view waits for the skeleton's bounds and frames on it (zoom 0.6). The run
settled: 315 strands, 2 sheets from 2064 points. The previous golden had
the side view framed on the surfaces, the losing side of the race.
…#1414)

* gallery: build the browser gallery with Jolt; it had the null backend

deploy-pages.yml never installed joltphysics, so the configure turned
CVC_WITH_JOLT off and the gh-pages gallery shipped cvc::physics with the
null backend: terrain_lab's crates and boat were placed but never moved.

- deploy-pages.yml installs joltphysics (wasm, wasm32, static) with the
  other wasm32 deps.
- build-wasm-demo.sh passes CVC_WITH_JOLT from CVC_WASM_JOLT (ON by
  default) and, like ImageMagick, fails the build when the configure did
  not find Jolt, instead of shipping without it.
- The libcvc-examples-web recipe lists joltphysics among its build deps
  and asks for it (CVC_WASM_JOLT=ON).
- CI's physics replay job also runs single-threaded (wasm), the flavor
  the gallery serves: Jolt's single-threaded job system, on the catalog's
  wasm bundle, replays the native trace under node.

* physics_replay_test: proxy main to a pthread only in a threaded build

The new single-threaded physics replay leg failed at the link:
"em++: error: -sPROXY_TO_PTHREAD requires -pthread to work!". The test
always linked with -sPROXY_TO_PTHREAD, which only the wasm-mt build it was
written for has. Single-threaded there are no cvc::app workers to wait on
and Jolt runs its single-threaded job system, so main stays on the main
thread. The configure found Jolt and libcvc compiled; only this link
failed.

* ci: physics replay under node fails after 10 minutes, not the job's 6 hours

The replay takes about a second. The new single-threaded leg is not a
required check, so a run that hung there would stall long after the
required jobs had passed.
…ts (#1412)

SDL 3.4.12's Web Audio backend plays and captures through a ScriptProcessorNode
in 43 ms blocks, and its callback runs on the main thread between arigl's
frames. A long frame plays a gap and loses capture. In a hidden tab the mic is
not captured at all, and the speaker barely plays.

- cvcMedia's web_audio (cvc/media/web_audio.h) has two AudioWorklet processors
  (src/cvcMedia/web/cvc-audio-worklet.js). cvc-capture posts the mic in 20 ms
  blocks. cvc-playback plays a ring the main thread keeps filled. They hold no
  wasm and share no memory with it: every block goes over a MessagePort, so
  the single-threaded build and a page without COOP/COEP both work.
- Each block's message ticks an audio clock. The conference sends the mic and
  fills the jitter buffers there (ConferenceSession::audio_tick), not only
  once a frame. The browser delivers those messages between frames, and at
  full rate in a hidden tab.
- Capture: a FIFO frame_source. Each block wakes the stream's producer at once
  (frame_source::set_ready_callback, producer_thread::run_now), where it used
  to wait for a timer that a hidden tab slows to 1 Hz.
- Playback: the ring stays 60 ms ahead of the speaker. When it runs dry it grows
  by the silence played and a block, up to 400 ms. After 10 s without that it
  shrinks a block, cross-faded. The jitter buffers stay in voice_mixer. A/V
  sync counts what the ring holds.
- SDL is the fallback: no AudioWorklet, not a secure context, a rate other
  than the context's 48 kHz, more than two channels, a device other than the
  default, push-mode outputs, or CVC_WEB_AUDIO=sdl. A device opened while the
  worklets load gets its node once they have loaded.
- The page loads cvc-audio-worklet.js from beside itself (arigl-web and
  ariglx-web ship it), else the copy compiled in, from a blob: URL.
- Tests: cvc_audio_worklet_test.js (the processors in node, in
  run-js-tests.sh) and arigl_web_audio.mjs (a local arisrv and two headless
  Chromes with fake media: a 440 Hz tone sent, the receiver's playback recorded
  and checked for gaps and clicks; idle, busy main threads, sender hidden,
  receiver hidden; worklet against ?audio=sdl).
* net: the connection engine's C++ core (ARIADNE_NET_ENGINE N1)

cvc::net::net_engine: a caller-owned engine of Boost.Asio I/O threads that
accepts TCP connections, splits their input into delimiter, length-prefixed
or raw frames, and queues their output. send, send_many and broadcast copy
the bytes once into a refcounted buffer that each receiver's queue shares;
commands apply in issue order, so a connection's bytes keep the order of its
sends, broadcasts and closes. Groups (join, leave; a close leaves all of
them), max_queued backpressure (slow_reader), want_writable at a low mark,
flushing closes, inbound limits (bytes and frames per window, the first
frame's deadline), and per-thread counters.

A framing's pause_after and raw(n) make a framing switch land exactly after
a frame, since the I/O threads split input ahead of the program.

net_engine_test covers the framings and their switches, ordering, groups,
backpressure, closes, limits and stop, and benchmarks one message to 6000
loopback connections. The sanitizer lanes run it. The design doc records
what building N1 changed, and the measured fan-out cost, whose floor is the
loopback write itself.

* net_engine_test: fit the fan-out to macOS's real descriptor ceiling

macOS accepts an RLIMIT_NOFILE above OPEN_MAX and still refuses descriptors
past it (and past kern.maxfilesperproc): recipe / macos-latest / Debug failed
the 5115th connect with EMFILE. Clamp the limit the receiver count is fitted
to on Apple.
…'s fleets (#1424)

WorldVehicles::poses(fleet): the fleet's placed vehicles as the last
publish left them (fleet_poses: ids, chassis centres, headings, speeds,
teams, their box and the tick), made each publish and swapped in whole
with std::atomic_store, as sim_thread's snapshot is, so a view reads
them from any thread without a lock and keeps the one it has unchanged.
The summary gains .tick and .bounds.

The gym's fleets: gym_options::fleets (pycvc's fleets=) names the
document's fleets each reset lays out from their seed plus the reset's,
their vehicles the agents after the options' own; a name the document
does not declare is refused when the gym is made. WorldVehicles::starts
keeps the entries spawn_starts was given since the last clear(), which
the gym copies once.

Docs: ARIADNE.md's Fleets and gym sections (and the gym's tick, 7/120 s
at 120 Hz since OW1), the roadmap's FL1d row.

Tests: AFleetsPosesAreASnapshot (a reader thread while the world steps),
AriadneWorldGym.AFleetIsTheGymsAgents, test_pycvc_gym.py's fleets.


The poses test steps a tick a batch (a batch publishes once, at its end) and waits for its reader to take the newest snapshot before stopping it.
…guests (ID4) (#1406)

An admin could already set a client's limits with server.limits (ID3). They were kept in the
client's record and shown under limits.*, but nothing used them. #1296 (ID4a) added the hook,
ServerDocument::set_client_limits, and this sets it in arisrv's main() from
client_registry::limits(pid) (docs/roadmap/ARISRV_IDENTITY.md §2.6).

- A programs or guests flag set false refuses the client that kind (forbidden). true allows only
  what the document already allows.
- steps, time and memory_mb (in bytes; a huge value saturates) replace the document's caps where
  they aren't 0. Under D2 that means lower, or higher up to the action lane's caps, which the
  document enforces.
- It's asked at each start, on the room loop's thread, so a change applies from the client's next
  program or guest.
- At shutdown the callback is cleared before the registry it reads goes away.

Test: ctest arisrv_client_limits runs stock arisrv with client_programs_server.ari (5000 steps)
and rcon. The client makes itself an admin, then:
- refuses its own programs (forbidden);
- allows them again with t;
- lowers its steps to 5, so a 40-addition program ends resource_exhausted;
- sets steps back to 0, the document's, and the program runs again.
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* One world: the entity table and drivers, server side (OW3)

ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.

* OW3: clang-format the changed lines

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.
…/one-world-drive

# Conflicts:
#	docs/roadmap/ARIADNE_WORLDS.md
#	inc/cvc/ariadne/avatar_sim.h
#	inc/cvc/ariadne/holon.h
#	src/cvc/ariadne/holon.cpp
#	src/cvc/ariadne/holon_sync.cpp
#	src/cvc/tests/ariadne_scene_world_test.cpp
CMakeLists.txt, every cvcpkg recipe's upstream_version and the 59 family pins move to 4.0.3
(bump-version.py). arigl-web and libcvc-examples-web go back to cvc_revision 1; their
'Bumped 1 -> 2' notes stay as history above the reset line.
…t, the jump, getting in by asking (#1415)

* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* One world: the entity table and drivers, server side (OW3)

ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.

* OW3: clang-format the changed lines

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.

* OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking

avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock,
throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the
driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops
the vehicle and never backs it up; reverse brakes a car still rolling forward, then
backs it up; a boat has no brake and reverses on its propeller astern. On the wire:
intent.throttle, intent.brake, intent.jump (intent.accel is gone).

The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by
default) when something is under its feet, paying the jump from its reserve.

Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>",
answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds
it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis
box). room-drive / room-driving verbs; room entities carry drivable, reach, controls.

controls.h: control schemes walk, car and boat with their own bindings (Space jumps a
walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering
ramps and hold-to-fire.

* OW6a: clang-format the changed lines

* OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs

arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus
Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while
the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window).
The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt
over it, "E  Drive <name>", whose ring fills as E is held; a refusal is shown for a
moment. Driving, client_pump plays our own pose out from the relay's samples instead of
predicting it, room_view hides every driver's marker (set_riders), and the camera swings
behind the moving vehicle.

traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares,
the jump and the ask; OW6 is started.

* OW6a: clang-format the changed lines (client side)
…/one-world-gamepad

# Conflicts:
#	docs/roadmap/ARIADNE_WORLDS.md
#	inc/cvc/ariadne/controls.h
#	src/arigl/main.cpp
#	src/cvc/ariadne/controls.cpp
#	src/cvc/tests/holon_sync_test.cpp
…1418)

GR01 and DT02 compare a group's record (each process's status, steps and
outcome) with a steps-only run of the same programs. Under load they
failed about once each at CVC_EXEC_SLICE_STEPS=256, because the pumps had
a time budget nobody meant them to have:

- pump_pooled and check_against_solo's first frame passed the deadline
  now + 1 h. The pool turns that into a budget of about 3600 s, and with
  any time budget Stage S cuts a run at state_exec.slice_seconds (1 ms).
- bare_world::pump passed kNoTimeLimit (+inf) to sync_run_steps as a
  present optional, which also counts as a budget. exec_group::pump maps
  a non-finite budget to none.

A thread descheduled mid-run then ends its run early. That reorders a
group's processes: a broadcast receiver misses its message and waits
forever, or the fork and spawn children swap pids. The solo runs go
through exec_group::pump with no budget and are never cut, so the
records differ.

The pool's pumps now pass time_point::max() (kNoDeadline), which
seconds_left reads as infinite, and bare_world::pump maps a non-finite
budget to nullopt as exec_group::pump does. GR12's first frame gets the
same deadline. GR02 and GR03 share the helpers. Stage S is unchanged.
A scene's vehicles load a fleet's weights through DataStore, which can fetch over cvc::net, so
cvcGL's tests that realize a scene link the Emscripten-fetch backend. Without -sFETCH=1 its
emscripten_fetch* symbols are undefined: 38 cvcgl_* links failed in v4.0.3's pycvc-gl wasm build
(tolerated there, since the tests are not shipped). libcvc leaves the fetch flags to the
executable, so src/cvcGL sets it on every executable it defines.
…is (#1447)

A fitted model's base was the grid's ground under the chassis, relative to it, taken when the
vehicle view was built, and it is rebuilt whenever an entity comes or goes. A plant's chassis
rides on the grid's ground, but a pose entity's is wherever an outside simulation puts it, on
that simulation's terrain, which the grid may not match (a flat grid, or a coarser one): its
model floated or sank by whatever lay between them at the last rebuild, and moved at every
spawn or removal.

stand_height(vehicle_desc) is now public: half the box's height plus the front wheels' radius,
where a kinematic box and a pose entity with no z stand. A pose entity's model hangs that far
below its chassis, drawn (vehicle_view) and sent to a relay's clients (room_entities_of).
Plants are unchanged.
…n mouse look (#1420)

* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* One world: the entity table and drivers, server side (OW3)

ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.

* OW3: clang-format the changed lines

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.

* OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking

avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock,
throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the
driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops
the vehicle and never backs it up; reverse brakes a car still rolling forward, then
backs it up; a boat has no brake and reverses on its propeller astern. On the wire:
intent.throttle, intent.brake, intent.jump (intent.accel is gone).

The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by
default) when something is under its feet, paying the jump from its reserve.

Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>",
answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds
it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis
box). room-drive / room-driving verbs; room entities carry drivable, reach, controls.

controls.h: control schemes walk, car and boat with their own bindings (Space jumps a
walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering
ramps and hold-to-fire.

* OW6a: clang-format the changed lines

* OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs

arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus
Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while
the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window).
The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt
over it, "E  Drive <name>", whose ring fills as E is held; a refusal is shown for a
moment. Driving, client_pump plays our own pose out from the relay's samples instead of
predicting it, room_view hides every driver's marker (set_riders), and the camera swings
behind the moving vehicle.

traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares,
the jump and the ask; OW6 is started.

* OW6a: clang-format the changed lines (client side)

* OW6b: gamepads drive every scheme (sticks, triggers, buttons)

A control binding's pad inputs are read now: buttons by position (A, B, X,
Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+).
Each has a deadzone; an action is its keys' value or its gamepad's, the
larger, and only a key's steering ramps.

Defaults: walk on the left stick (as fast as pushed), look around on the
right, jump A, get in and out on X held; driving, the left stick steers,
RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT).

cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to
the resolver, faces where the camera looks while the gamepad is in use,
turns the camera with the right stick, and names the pad's button in the
get-in prompt. room_view gains intent_from_axes for the analog walk.

* OW6b: clang-format the changed lines; the prompt's key as plain ifs

* OW6b: gamepad bindings in the Controls window, beside the keys

A KeyBinding can name its gamepad inputs and where they live (pad,
pad_path). The Controls window shows them in a column of their own with
a Change button: the next gamepad input pressed becomes the new binding.
Keys are ignored while it waits, and Escape keeps the old one.

Runtime::post_pad_press takes the newly pressed gamepad inputs.
SdlGamepad::pressed() lists them each frame (a button gone down, a
trigger or stick half past half way).

arigl's input pump now owns the gamepad: it posts the presses to the
runtime and hands the gamepad to the room's controls, except while the
window waits for a button. Each avatar and vehicle action lists its
gamepad default, seeded at <viewer>.pad.<scheme>.<action>.

* OW6b: clang-format the changed lines (Controls window)

* OW6c: an avatar archetype may be a vehicle, picked beside the look

world: avatars: archetypes: entries may name one of the world's vehicle
archetypes (vehicle: rover). This is §5k phase 3 for vehicles.

- Choice: a participant picks an archetype under the existing avatar
  choice subtree (participants.<pid>.avatar.archetype, beside color and
  accessory); until it picks, it has the first.
- Server: server_pump rules on the choice (holon::set_archetype) and
  answers in the relay-owned archetype_status. For a vehicle it spawns
  it where the person stands and seats the participant for good: no
  getting out or into another, and the vehicle goes when the participant
  leaves or picks a person again.
- Rules: world_rules::avatar() is now the first person archetype;
  find_avatar is new.
- Room: the archetypes section carries vehicle, and room entities carry
  avatar (whose body it is). drive_target skips such vehicles, and arigl
  shows its owner no get-out prompt.
- Verbs: room-archetypes, room-set-archetype, room-archetype. The
  baseline conference document gains a Body combo beside Colour and
  Wear.
- traffic.ari offers a rover body.

* OW6c: clang-format the changed lines

* OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype)

* OW6c: mouse look is first person, by default

Walking under mouse look, arigl puts the camera at the walker's eyes
(0.92 of its body's height, 5 cm behind them) and hides its own avatar,
so W walks where you look. The orbit distance comes back when mouse look
ends.

The Controls window gains "Mouse look in first person"
(MouseControls::first_person, arigl's camera settings.first_person,
seeded on). Turning it off gives back the over-the-shoulder view.
Driving keeps the chase camera.

* ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2

cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with
-fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so
ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The
pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
…volume_grid; volume.filter and data-put (D1) (#1446)

* docs(roadmap): scene nodes view data on the state tree, the plan (D1-D6)

* volren and volume_slice follow a volume on the state tree; shared followed_key and volume_payload

* volume.filter: VolumeRover's bilateral filter as a sliced job, in the DSL's three forms

* data-put: a program puts a data object as a dataset's output; followers unwrap a program's data object

* volume_shared demo: one volume in a volren and a volume_grid, smoothed by volume.filter; docs

* loader test for the shared-volume demo; pycvc ignores the volume payload helpers

* clang-format the changed lines
…s blur map; strands follow the helices (#1430)

* cvc::mol: molecules from PDB, PQR and XYZR files, with TexMol's residue-atom table (TexMol M0 part 1)

The first TexMol port (docs/roadmap/TEXMOL-F2DOCK-ARISRV-ROADMAP.md, M0), and the first step
toward a skeleton demo on molecular data: a PDB file read into atoms with radii, which T1's blur
turns into a density and its isosurface into the surface mesh_lab skeletonizes.

- inc/cvc/mol/molecule.h: a flat molecule (atoms with serial, name, alternate location,
  residue, chain, insertion code, position, occupancy, B factor, element, HETATM, model, radius,
  charge and table row; HELIX, SHEET and TURN residue ranges; HEADER's id and TITLE), its
  bounds, and the structure an atom's residue lies in.
- Readers: PDB by its fixed columns (v3.3, and the older files whose columns 73-80 hold the
  entry and a line number; elements from columns 77-78 or the atom name, by the PDB's own
  convention), PQR by whitespace (charge and radius from the file), XYZR. A malformed line is an
  error naming the file and line, where TexMol's parser read it as zeros.
- Each app's own file handlers (molecule_handlers(app), an app slot, as point_classes), and
  read_molecule by extension.
- molecule_read_params, a param_table: which model, HETATM, water, hydrogens, alternate
  locations, van der Waals or solvent-enlarged radii, and the radius of an atom the table
  lacks. The defaults keep what TexMol's PDBParser kept.
- residue_atom_table.inc: PDBParser's ElementInformation table (TexMol ed20eae, LGPL-2.1 since
  TexMol#7), all 410 rows, generated from it: radii, colours, hydrophobicities, interface
  propensities, solvent-enlarged radii and charges, looked up by atom and residue name without
  blanks. TexMol gave an atom the table lacks its occupancy as its radius (addAtom's argument
  order); here it gets unknown_radius, 2.0 by default, TexMol's defaultInformation.
- molecule_test (a port test: natively and in the wasm-mt lane): the table, every record kind
  and filter, the older columns and CRLF lines, PQR and XYZR, each reader's errors, two apps'
  handlers, and PDB entry 1GRL, a GroEL subunit: 4,186 atoms, 757 hydrogens, one heavy atom the
  table lacks (OXT), 19 helices and 11 sheet strands.
- src/cvc/tests/data/mol/1grl.pdb (the PDB, CC0) and its notice; the TexMol roadmap's progress.

Not in this part: the group tree, torsions, writers, CLI, pycvc and intrinsics (M0 part 2), and
the A/B against TexMol's parser, which comes with T1's blur in tools/texmol-goldens.

* cvc::mol::blur: TexMol's GOABlur electron density as a stepper (WIP: the A/B comes next)

* cvc::mol::blur: the A/B against TexMol's own GOABlur (tools/texmol-goldens), its CI job, docs

- tools/texmol-goldens, as tools/volrover-goldens: builds TexMol's PDBParser and Blurmaps'
  GOABlur at a pinned sha (texmol.sha, ed20eae), with two shims (BlurMapsDataManager.h, whose
  getBoundingBox CMake copies out of the legacy source as it is; libcvc 3.x's cvc/endians.h), runs
  them on 1GRL (TexMol's default blobbiness at 1.5 Å, and a low-resolution map, B -0.5 at 2 Å),
  and writes the goldens to src/cvc/tests/data/texmol-goldens/blur; --check makes them again and
  compares (densities to 1e-5 relative). blur_driver.cpp stands in for getBlurredVolume.
- ci.yml: the texmol-goldens job runs --check when the tool, the goldens or 1GRL change.
- blur_test T1: TexMol's atoms and radii (read with unknown_radius 1.0, since TexMol gave an atom
  its table lacks its occupancy), in another order (its group tree keeps a sheet's strands
  together); its grid and box; its densities to 1e-5 relative: 158,394 of 159,120 voxels bit for
  bit at TexMol's default, 68,069 of 70,200 in the low-resolution map, the rest the same float
  sums in TexMol's order.
- blur.h says how close it is; the TexMol roadmap's progress; 1GRL's notice covers the goldens.

* mesh_lab: a molecule file's surface is its blur map's isosurface (WIP)

* cvc::mol: 1GRL lives in examples/data/molecules (the skeleton demo reads it too), with a README

* texmol-goldens: 1GRL from examples/data/molecules; the CI job's shell lines keep their continuations

* texmol-goldens: text files hashed and compared with CRLF read as LF, so the goldens' json is the same on Windows

* skeleton lab on a molecule: mesh_lab makes PDB 1GRL's surface (blur map, isosurface); its strands follow the helices

Joe: "i believe skeletonization was meant for molecular data. instead of the bunny, do we have a
better data set to use here ... maybe a pdb?"

- mesh_lab: a molecule file (.pdb, .ent, .pqr, .xyzr; cvc::mol) is read as its heavy atoms, blurred
  (cvc::mol::blur) and isosurfaced (cvc::iso); source.blobbiness / resolution / isovalue /
  hydrogens, seeded from the props of those names, are in the source's signature, so load reads it
  again when they change. TexMol's defaults (-2.3442, 1 Å, 1). An isovalue above the density's
  peak is an error naming the peak.
- skeleton_lab.ari: PDB 1GRL (a GroEL subunit) at blobbiness -0.2, 2 Å, isovalue 10, decimated to
  4,000 triangles and skeletonized; a Molecule window changes the blur and makes it again. The
  gallery entry's text and thumbnail. mesh_tools is unchanged (other documents and goldens show it).
- Why those settings: at TexMol's default blobbiness the surface is the atoms' own and the skeleton
  finds no strands; in blurrier maps its strands run along the helices. Here 81 of 243 helix
  C-alphas lie within 3 Å of a strand, 22 of 232 coil ones.
- cvcgl_mesh_skeleton: the molecule case (the surface, the seeded keys, decimate and skeleton, the
  helix/coil ratio above 2, an isovalue above the peak reported).
- Golden molecule_skeleton.ari: 1GRL's isosurface skeletonized as it is (not decimated), so every
  platform skeletonizes the same points; its PNG comes from CI's llvmpipe run.
- arigl-web smoke: molecule.ari in the docset at /apps/mol/, whose page config preloads the PDB.
- ARIADNE.md's mesh_lab table and demo paragraph; the TexMol roadmap's progress.

* blur.cpp without FMA contraction: on aarch64 (macOS CI) Clang fuses the float grid positions' multiply-add and misses TexMol's maps by up to 5e-5

* golden molecule_skeleton.png: CI's Linux llvmpipe render (run 44944618728, ari-golden-Linux-libcvc-release)
…1413)

* nav: CoPH's packets, their assimilation and the channel (C4; G9-G10)

C4 of docs/roadmap/NAV-COPH-ROADMAP.md (section 4.4), additive and default-off: nothing calls it
yet; C5's fleet driver will.

- coph_packet.h: the demos' packet (cooperative.Packet, then MazePacket's geometry), and bytes():
  the length of its compact, key-sorted JSON, with Python's repr for floats (coph_repr, from
  std::to_chars's shortest digits) (D9). coph_exchange_state holds the received packets, the
  route evidence and its cells, and the reported geometry.
- coph_exchange.h:
  - coph_export: CooperativeLearner's bootstrap and candidate anchors, TerrainLearner's
    risk-ordered anchors and second bootstrap, MazeLearner's geometry. The resample indices are
    injected, or drawn from a seeded std::mt19937 through detail::pick_below (D8).
  - coph_assimilate: MazeLearner's geometry checks; CooperativeLearner's schema, provenance, age,
    order, payload and received cap; TerrainLearner's route evidence.
  - coph_expire and the two refreshes.
  - coph_fit_messages: the legacy receiver's whitened Gauss-Newton step, which coph_update now
    commits when packets are held.
- coph_channel.h: the transport interface and coph_ideal_channel (seeded delay and jitter, drops,
  duplicates, an optional range).
- detail/coph_math.h: the features, Cholesky and slab distance that coph_learner.cpp and
  coph_exchange.cpp share (moved out of coph_learner.cpp unchanged).

nav_coph_exchange_test reproduces GRL-SNAM's G9 and G10 (CVC-Lab/GRL-SNAM#201;
data/coph_golden.json is its fixture). Every decision and byte count matches exactly, and the
values come within 0.074 of the tier's allowance on Windows. It also checks the channel's
statistics, production draws and JSON escapes.

* nav: CoPH's agent and fleet, and the crossing world (C5 part 1; G12)

C5 part 1 of docs/roadmap/NAV-COPH-ROADMAP.md (section 4.5), additive and default-off.

- coph_agent.h: the demos' whole learner (CrossingLearner) over C1-C4.
  - observe: CooperativeLearner's uids, navigation.observe_geometry's store, C1's ledger, the
    expiries, MazeLearner's geometry reports.
  - advance.
  - action: the routed control in the live navigation context.
  - update: CooperativeLearner's diagnostic controls around C3's update, then TerrainLearner's
    own anchors.
  - export and assimilate, with the received-geometry events.
- coph_fleet.h:
  - coph_fleet: the demos' runner (staggered_demo.execute) for agents that start together, over
    a coph_channel. Its boundaries observe and advance, export on the update cadence, deliver,
    update and act. It keeps records and each agent's energy account.
  - coph_crossing_world: the crossing demo's world, with its plant, its door and corridor hits
    and its sensing.
- C1-C3 gain the hooks it needs:
  - coph_ledger::commit;
  - the route change and the raw command in coph_control_meta;
  - coph_corridor_clear and coph_slab_sweep;
  - coph_field_vector;
  - TerrainLearner's local cells in the exchange state.

nav_coph_fleet_test reproduces GRL-SNAM's G12 (CVC-Lab/GRL-SNAM#202; data/coph_golden.json is its
fixture). Every decision matches, and positions and forces are within 2.8e-16 against an atol of
1e-6. The C++-only tests cover:
- refusals outside the profile;
- packets arriving after a channel's delay;
- a run of the whole crossing, which both agents finish (agent 0 in 92.0 s, the demo's
  reciprocal finish time) with each energy account's residual at 7e-15.

The vehicle driver and the plant_ledger items (D11) are part 2.
…e.ari) (#1422)

* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* One world: the entity table and drivers, server side (OW3)

ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.

* OW3: clang-format the changed lines

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.

* OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking

avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock,
throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the
driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops
the vehicle and never backs it up; reverse brakes a car still rolling forward, then
backs it up; a boat has no brake and reverses on its propeller astern. On the wire:
intent.throttle, intent.brake, intent.jump (intent.accel is gone).

The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by
default) when something is under its feet, paying the jump from its reserve.

Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>",
answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds
it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis
box). room-drive / room-driving verbs; room entities carry drivable, reach, controls.

controls.h: control schemes walk, car and boat with their own bindings (Space jumps a
walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering
ramps and hold-to-fire.

* OW6a: clang-format the changed lines

* OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs

arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus
Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while
the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window).
The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt
over it, "E  Drive <name>", whose ring fills as E is held; a refusal is shown for a
moment. Driving, client_pump plays our own pose out from the relay's samples instead of
predicting it, room_view hides every driver's marker (set_riders), and the camera swings
behind the moving vehicle.

traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares,
the jump and the ask; OW6 is started.

* OW6a: clang-format the changed lines (client side)

* OW6b: gamepads drive every scheme (sticks, triggers, buttons)

A control binding's pad inputs are read now: buttons by position (A, B, X,
Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+).
Each has a deadzone; an action is its keys' value or its gamepad's, the
larger, and only a key's steering ramps.

Defaults: walk on the left stick (as fast as pushed), look around on the
right, jump A, get in and out on X held; driving, the left stick steers,
RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT).

cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to
the resolver, faces where the camera looks while the gamepad is in use,
turns the camera with the right stick, and names the pad's button in the
get-in prompt. room_view gains intent_from_axes for the analog walk.

* OW6b: clang-format the changed lines; the prompt's key as plain ifs

* OW6b: gamepad bindings in the Controls window, beside the keys

A KeyBinding can name its gamepad inputs and where they live (pad,
pad_path). The Controls window shows them in a column of their own with
a Change button: the next gamepad input pressed becomes the new binding.
Keys are ignored while it waits, and Escape keeps the old one.

Runtime::post_pad_press takes the newly pressed gamepad inputs.
SdlGamepad::pressed() lists them each frame (a button gone down, a
trigger or stick half past half way).

arigl's input pump now owns the gamepad: it posts the presses to the
runtime and hands the gamepad to the room's controls, except while the
window waits for a button. Each avatar and vehicle action lists its
gamepad default, seeded at <viewer>.pad.<scheme>.<action>.

* OW6b: clang-format the changed lines (Controls window)

* OW6c: an avatar archetype may be a vehicle, picked beside the look

world: avatars: archetypes: entries may name one of the world's vehicle
archetypes (vehicle: rover). This is §5k phase 3 for vehicles.

- Choice: a participant picks an archetype under the existing avatar
  choice subtree (participants.<pid>.avatar.archetype, beside color and
  accessory); until it picks, it has the first.
- Server: server_pump rules on the choice (holon::set_archetype) and
  answers in the relay-owned archetype_status. For a vehicle it spawns
  it where the person stands and seats the participant for good: no
  getting out or into another, and the vehicle goes when the participant
  leaves or picks a person again.
- Rules: world_rules::avatar() is now the first person archetype;
  find_avatar is new.
- Room: the archetypes section carries vehicle, and room entities carry
  avatar (whose body it is). drive_target skips such vehicles, and arigl
  shows its owner no get-out prompt.
- Verbs: room-archetypes, room-set-archetype, room-archetype. The
  baseline conference document gains a Body combo beside Colour and
  Wear.
- traffic.ari offers a rover body.

* OW6c: clang-format the changed lines

* OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype)

* OW6c: mouse look is first person, by default

Walking under mouse look, arigl puts the camera at the walker's eyes
(0.92 of its body's height, 5 cm behind them) and hides its own avatar,
so W walks where you look. The orbit distance comes back when mouse look
ends.

The Controls window gains "Mouse look in first person"
(MouseControls::first_person, arigl's camera settings.first_person,
seeded on). Turning it off gives back the over-the-shoulder view.
Driving keeps the chase camera.

* The conference app as a component library (cvc://components/conference.ari)

The baseline conference app's windows and tick move into a shipped
library, so cyprty and other apps import them instead of carrying a copy
(cyprty's roadmap §2).

- Units: conference (My Camera), conference_avatar (Colour, Wear, Body,
  energy) and conference_peers (a camera window per participant, arg
  rows).
- Functions: conference-step runs the whole app. Its pieces can be
  called on their own (conference-join, conference-media-open,
  conference-name-step, conference-devices-step, conference-avatar-step),
  so an app can take some of the conference.
- The library imports room_users.ari and chat.ari itself.
- conference_roster.ari is now those units placed with its menus, and
  on_tick is (conference-step): 530 lines down to 114.
- Fix: the join now also resets the Body picker's keys. Before, they
  stayed unset (nil), so the picker never filled.
- INDEX.ari and ARIADNE.md's component table list the three units.

Tests: the baseline document is the library's windows and functions; the
library's steps join, fill the pickers, send a pick and show a refusal;
ShippedComponentsLoadClean covers the new file.

* conference library: clang-format the changed lines

* conference.ari: the Audio window is the library's too

conference.ari imports audio_buffers.ari (#1421) beside room_users and chat, and conference-join
seeds tree.audio.open to 0, so the Audio window waits for the View menu. The baseline keeps its
Audio include and View > Audio item; the test checks the window and the seed.

* ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2

cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with
-fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so
ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The
pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
…(ARIADNE_WORLDS.md §18.9) (#1441)

120 Hz was the only rate: each holon defaulted to 1/120 s on its own, and nothing told a client
the relay's quantum. A world can now run at a rate of its own, from 10 to 240 Hz:

- The knob: a scene's clock: { hz }, or arisrv --sim-hz to override the document's. 0 or absent
  means 120.
- sim_tick.h: sim_quantum, sim_tick_quanta and sim_tick. The navigator's tick is the whole number
  of quanta nearest the policies' 0.06 s: 7 at 120 Hz (kSimTick, unchanged), 4 at 60, 2 at 30.
  sim_clock_config and adopt_sim_clock take the quantum.
- SceneWorld::use_vehicle_clock puts the app's clock on the scene's rate before the physics world
  is made. WorldVehicles' default tick follows the world's step.
- holon_config_at(cfg, hz) keeps each tick-counted window's length in seconds: the skew, the lead
  slack, the peer playout, the intent lead and the catch-up.
- The relay builds its holon, and the server document's world (through a load hook), at the rate.
  It publishes the rate as conf.rooms.<room>.clock.hz, a revisioned section with the run's epoch,
  and holds a near entity's pose at 30 Hz.
- Clients build their holon from room_holon_config(app, room). arigl's follow_room_clock rebuilds
  it when on_room_clock says it is off the room's rate, because a holon can't change its quantum
  in place.

Tests: SimTickTest.AWorldsRateSetsItsQuantumAndTheNavigatorsTick,
HolonSyncTest.ARoomsRateIsItsClockSection, HolonSyncTest.ARoomAt60HzIsFollowedByItsClients,
AriadneOneWorld.AWorldAt60HzRunsOnAHolonAt60Hz and AriadneScene.ClockBlockTakesAWorldsRate.
The heavy policy A/B (CVC_NAV_TICK_AB=1) gains a 4/60 s arm, and the policies hold there: reach
at 0.06 s, then 4/60 s, is 0.519 then 0.512 for the shipped weights and 0.522 then 0.517 for the
untrained default, within the seeds' noise.

Not yet: changing the rate on a running relay (today it takes a restart), and a scene swarm,
which needs 120 Hz.
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* One world: the entity table and drivers, server side (OW3)

ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.

* OW3: clang-format the changed lines

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.

* OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking

avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock,
throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the
driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops
the vehicle and never backs it up; reverse brakes a car still rolling forward, then
backs it up; a boat has no brake and reverses on its propeller astern. On the wire:
intent.throttle, intent.brake, intent.jump (intent.accel is gone).

The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by
default) when something is under its feet, paying the jump from its reserve.

Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>",
answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds
it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis
box). room-drive / room-driving verbs; room entities carry drivable, reach, controls.

controls.h: control schemes walk, car and boat with their own bindings (Space jumps a
walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering
ramps and hold-to-fire.

* OW6a: clang-format the changed lines

* OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs

arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus
Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while
the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window).
The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt
over it, "E  Drive <name>", whose ring fills as E is held; a refusal is shown for a
moment. Driving, client_pump plays our own pose out from the relay's samples instead of
predicting it, room_view hides every driver's marker (set_riders), and the camera swings
behind the moving vehicle.

traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares,
the jump and the ask; OW6 is started.

* OW6a: clang-format the changed lines (client side)

* OW6b: gamepads drive every scheme (sticks, triggers, buttons)

A control binding's pad inputs are read now: buttons by position (A, B, X,
Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+).
Each has a deadzone; an action is its keys' value or its gamepad's, the
larger, and only a key's steering ramps.

Defaults: walk on the left stick (as fast as pushed), look around on the
right, jump A, get in and out on X held; driving, the left stick steers,
RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT).

cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to
the resolver, faces where the camera looks while the gamepad is in use,
turns the camera with the right stick, and names the pad's button in the
get-in prompt. room_view gains intent_from_axes for the analog walk.

* OW6b: clang-format the changed lines; the prompt's key as plain ifs

* OW6b: gamepad bindings in the Controls window, beside the keys

A KeyBinding can name its gamepad inputs and where they live (pad,
pad_path). The Controls window shows them in a column of their own with
a Change button: the next gamepad input pressed becomes the new binding.
Keys are ignored while it waits, and Escape keeps the old one.

Runtime::post_pad_press takes the newly pressed gamepad inputs.
SdlGamepad::pressed() lists them each frame (a button gone down, a
trigger or stick half past half way).

arigl's input pump now owns the gamepad: it posts the presses to the
runtime and hands the gamepad to the room's controls, except while the
window waits for a button. Each avatar and vehicle action lists its
gamepad default, seeded at <viewer>.pad.<scheme>.<action>.

* OW6b: clang-format the changed lines (Controls window)

* OW6c: an avatar archetype may be a vehicle, picked beside the look

world: avatars: archetypes: entries may name one of the world's vehicle
archetypes (vehicle: rover). This is §5k phase 3 for vehicles.

- Choice: a participant picks an archetype under the existing avatar
  choice subtree (participants.<pid>.avatar.archetype, beside color and
  accessory); until it picks, it has the first.
- Server: server_pump rules on the choice (holon::set_archetype) and
  answers in the relay-owned archetype_status. For a vehicle it spawns
  it where the person stands and seats the participant for good: no
  getting out or into another, and the vehicle goes when the participant
  leaves or picks a person again.
- Rules: world_rules::avatar() is now the first person archetype;
  find_avatar is new.
- Room: the archetypes section carries vehicle, and room entities carry
  avatar (whose body it is). drive_target skips such vehicles, and arigl
  shows its owner no get-out prompt.
- Verbs: room-archetypes, room-set-archetype, room-archetype. The
  baseline conference document gains a Body combo beside Colour and
  Wear.
- traffic.ari offers a rover body.

* OW6c: clang-format the changed lines

* OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype)

* OW6c: mouse look is first person, by default

Walking under mouse look, arigl puts the camera at the walker's eyes
(0.92 of its body's height, 5 cm behind them) and hides its own avatar,
so W walks where you look. The orbit distance comes back when mouse look
ends.

The Controls window gains "Mouse look in first person"
(MouseControls::first_person, arigl's camera settings.first_person,
seeded on). Turning it off gives back the over-the-shoulder view.
Driving keeps the chase camera.

* OW5a: the room's vehicles are in the client's world

A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where
its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its
velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a
moving one, as on the relay, instead of walking through and snapping back.

client_pump takes the entity_playout and holds every entity except the one the participant drives
or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and
OW5c still to come.

* OW5a: clang-format

* ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2

cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with
-fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so
ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The
pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
# Conflicts:
#	docs/roadmap/ARIADNE_WORLDS.md
#	inc/cvc/ariadne/holon.h
#	inc/cvc/ariadne/holon_sync.h
#	inc/cvc/ariadne/world_vehicles.h
#	src/arigl/main.cpp
#	src/cvc/ariadne/holon.cpp
#	src/cvc/tests/holon_sync_test.cpp
#	src/cvc/tests/holon_test.cpp
* The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.

* Hosts on the simulation clock build their plant world at its quantum

The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.

* clang-format the changed lines

* reach_on_plant: a physics step that divides the navigator's tick

0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.

* One world: a server holon runs the document's SceneWorld (OW2)

ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.

* docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick

* OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built

* One world: the navigators steer around the avatars (OW4)

ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).

* One world: the entity table and drivers, server side (OW3)

ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.

* OW3: clang-format the changed lines

* AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.

* OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking

avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock,
throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the
driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops
the vehicle and never backs it up; reverse brakes a car still rolling forward, then
backs it up; a boat has no brake and reverses on its propeller astern. On the wire:
intent.throttle, intent.brake, intent.jump (intent.accel is gone).

The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by
default) when something is under its feet, paying the jump from its reserve.

Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>",
answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds
it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis
box). room-drive / room-driving verbs; room entities carry drivable, reach, controls.

controls.h: control schemes walk, car and boat with their own bindings (Space jumps a
walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering
ramps and hold-to-fire.

* OW6a: clang-format the changed lines

* OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs

arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus
Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while
the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window).
The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt
over it, "E  Drive <name>", whose ring fills as E is held; a refusal is shown for a
moment. Driving, client_pump plays our own pose out from the relay's samples instead of
predicting it, room_view hides every driver's marker (set_riders), and the camera swings
behind the moving vehicle.

traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares,
the jump and the ask; OW6 is started.

* OW6a: clang-format the changed lines (client side)

* OW6b: gamepads drive every scheme (sticks, triggers, buttons)

A control binding's pad inputs are read now: buttons by position (A, B, X,
Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+).
Each has a deadzone; an action is its keys' value or its gamepad's, the
larger, and only a key's steering ramps.

Defaults: walk on the left stick (as fast as pushed), look around on the
right, jump A, get in and out on X held; driving, the left stick steers,
RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT).

cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to
the resolver, faces where the camera looks while the gamepad is in use,
turns the camera with the right stick, and names the pad's button in the
get-in prompt. room_view gains intent_from_axes for the analog walk.

* OW6b: clang-format the changed lines; the prompt's key as plain ifs

* OW6b: gamepad bindings in the Controls window, beside the keys

A KeyBinding can name its gamepad inputs and where they live (pad,
pad_path). The Controls window shows them in a column of their own with
a Change button: the next gamepad input pressed becomes the new binding.
Keys are ignored while it waits, and Escape keeps the old one.

Runtime::post_pad_press takes the newly pressed gamepad inputs.
SdlGamepad::pressed() lists them each frame (a button gone down, a
trigger or stick half past half way).

arigl's input pump now owns the gamepad: it posts the presses to the
runtime and hands the gamepad to the room's controls, except while the
window waits for a button. Each avatar and vehicle action lists its
gamepad default, seeded at <viewer>.pad.<scheme>.<action>.

* OW6b: clang-format the changed lines (Controls window)

* OW6c: an avatar archetype may be a vehicle, picked beside the look

world: avatars: archetypes: entries may name one of the world's vehicle
archetypes (vehicle: rover). This is §5k phase 3 for vehicles.

- Choice: a participant picks an archetype under the existing avatar
  choice subtree (participants.<pid>.avatar.archetype, beside color and
  accessory); until it picks, it has the first.
- Server: server_pump rules on the choice (holon::set_archetype) and
  answers in the relay-owned archetype_status. For a vehicle it spawns
  it where the person stands and seats the participant for good: no
  getting out or into another, and the vehicle goes when the participant
  leaves or picks a person again.
- Rules: world_rules::avatar() is now the first person archetype;
  find_avatar is new.
- Room: the archetypes section carries vehicle, and room entities carry
  avatar (whose body it is). drive_target skips such vehicles, and arigl
  shows its owner no get-out prompt.
- Verbs: room-archetypes, room-set-archetype, room-archetype. The
  baseline conference document gains a Body combo beside Colour and
  Wear.
- traffic.ari offers a rover body.

* OW6c: clang-format the changed lines

* OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype)

* OW6c: mouse look is first person, by default

Walking under mouse look, arigl puts the camera at the walker's eyes
(0.92 of its body's height, 5 cm behind them) and hides its own avatar,
so W walks where you look. The orbit distance comes back when mouse look
ends.

The Controls window gains "Mouse look in first person"
(MouseControls::first_person, arigl's camera settings.first_person,
seeded on). Turning it off gives back the over-the-shoulder view.
Driving keeps the chase camera.

* OW5a: the room's vehicles are in the client's world

A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where
its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its
velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a
moving one, as on the relay, instead of walking through and snapping back.

client_pump takes the entity_playout and holds every entity except the one the participant drives
or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and
OW5c still to come.

* OW5a: clang-format

* OW5b: the vehicle a client drives is predicted (kinematic plant)

On the kinematic plant a driven vehicle is nav's bicycle integrated once a navigator tick on the
tick's command, its chassis box moved a step at a time between the ticks, so a client that knows
its numbers runs it step for step.

- vehicle_kinematics.h: kinematic_drive (the bicycle's numbers, the envelope, the steps per tick
  and the clock ticks the navigator ticks on), kinematic_vehicle, kinematic_vehicle_step and
  kinematic_vehicle_at.
- WorldVehicles::kinematics(id); before_step(clock_tick), which SceneWorld::follow calls, notes
  the navigator's phase. room_entity::drive carries it.
- holon: the relay sets a driver's command after each step (not once a frame), so a client's
  steps match it. predict_vehicle runs the model as the walker is predicted and reconciles to the
  vehicle's samples (snap from the sample and replay past reconcile_tol).
- client_pump predicts the vehicle when its room entity carries the numbers (else plays it out as
  before); arigl draws it at the predicted pose (entity_playout::show_predicted).

Tests: the model stays within 0.05 mm of the relay's Humvee over 9 s of throttle, a turn, the
brake and reverse; the holon predicts it with nothing corrected and corrects a 1.5 m push at the
next sample; client_pump predicts with the numbers, plays out without, and walks again when out.

* OW5b: clang-format

* ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2

cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with
-fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so
ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The
pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
…#1449)

* Fleets: placing and removing vehicles is linear; fleet lookups build no strings

Loading a fleet took about twice as long as at FL1a: 88 ms for 800 kinematic
vehicles, 500 for 2000. Two causes:

- Placing a kinematic vehicle recomputed its fleet's per-vehicle kinematics
  (kinematics()), which walks every entity with two fleet lookups each. So n
  vehicles took n^2 lookups (since #1235). Removing one did the same, so
  teardown, a restart or reseed, and a navigator rebuilt were quadratic too.
- FL1b (#1403) gave a named fleet its own navigator, keyed "<plant>/<fleet>",
  and fleet_of() built that key on every call, which doubled each lookup.

The fix:

- A fleet's kinematics are marked stale when a vehicle comes or goes, and made
  once before its navigator next steps. Only the step reads them.
- The fleets are searched by the key's parts (nav_ref, through a transparent
  comparator), so fleet_of() builds no string.

FleetBench's [fleet doc] rows also time a reseed, with the tick after it.
Medians of three runs, alternating with the code before the fix:

- load, 800 vehicles: 105 to 117 ms before, 20 now;
- load, 2000 vehicles: 640 to 755 ms before, 40 now;
- reseed with summary keys: 228 to 28 ms at 800, 1.6 s to 118 ms at 2000.

Ticks didn't change beyond the noise. The roadmap's §3.1 has the numbers.

* Fleets: a step without contacts looks no vehicle up; a summary fleet's stats are one line

At 2000 kinematic vehicles with summary keys a tick took 23 % longer than at FL1a (43.9 ms
against 35.6), more than the seventh physics step (OW1's 120 Hz) accounts for. Timing each
phase, with FL1a's code and this branch's run alternately, it was 35.5 against 40.5 ms: 14 %,
the rest a busier day. Of the 5.0 ms:

- A step is more than its physics: it also counts the step's contacts and moves the kinematic
  boxes, at 2000 vehicles about half the physics again. At FL1a's costs a step, the seventh is
  2.3 ms.
- count_contacts() looked up every vehicle (a map of their chassis) before it read the step's
  contacts, and its lookups cost more since FL1b: 0.52 ms a step at FL1a, 0.69 now. A
  kinematic fleet's boxes meet nothing, so there were none to count.
- The navigator's tick took 0.9 ms more (the same lookups in its loops), and FL1d's pose
  snapshot 0.25.

The fixes:

- A step with no contacts that count looks nothing up.
- physics.stats.vehicles gives a summary fleet's quiet vehicles one line, as entities.summary
  does, not a line each built from info() every tick (3.3 ms at 2000 vehicles).

Alternating with the code before: 31.8 ms a tick at 2000 vehicles (40.5 before) and 9.5 at 800
(12.4), under FL1a's 35.5 and 10.9 with the seventh step. The roadmap's 3.1 has the numbers.
…ls (#1459)

The first JX2 deploy (d6b0bb8) failed to link ten gallery targets on MagickCore's
__resumeException and emscripten_longjmp: catx-03's prefix still held imagemagick
7.1.2+cvc.23, the JS-exceptions bundle the pin script had installed.

The loop that should have replaced it installs for --arch x86_64. cvcpkg's wasm bundles are
tagged wasm32 now; under x86_64 the catalog has only old ones that need a wasm cmake, so every
install in the loop failed, and `| tail -3 || echo` hid it. Until JX2 the pin installed
imagemagick for wasm32, and the vtk step installs the rest of the loop's packages for wasm32,
so nothing showed.

The loop installs for wasm32, and a package that fails prints the end of cvcpkg's output and a
warning instead of nothing.
# Conflicts:
#	inc/cvc/ariadne/world_vehicles.h
#	src/cvc/CMakeLists.txt
…op of the stack

# Conflicts:
#	inc/cvc/ariadne/world_vehicles.h
@transfix
transfix merged commit 6d63163 into feat/one-world-dynamic4w Nov 22, 2026
3 of 13 checks passed
@transfix
transfix deleted the feat/one-world-follow branch November 22, 2026 21:59
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