Repository navigation
One world: a server holon runs the document's SceneWorld (OW2) - #1379
Merged
Merged
Conversation
…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.
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.
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.
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.
This was referenced Nov 19, 2026
# Conflicts: # docs/roadmap/ARIADNE_WORLDS.md # src/cvc/tests/ariadne_scene_world_test.cpp
transfix
added a commit
that referenced
this pull request
Nov 20, 2026
…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.
…/one-world-holon # Conflicts: # src/cvc/tests/ariadne_scene_world_test.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OW2 of ARIADNE_WORLDS.md section 18 (one world, the holon is the world), server side. It is stacked on #1378 (OW1, the 120 Hz clock), which it needs: the holon's quantum and the document world's step have to be the same.
What it does
holon::attach_world(SceneWorld *): a server holon with physics runs a server document's SceneWorld as its one physics world.SceneWorld::follow. Each avatar is driven just before each step, after the vehicles, boats and weather have applied their forces.avatar_worldover a shared world it doesn't own. The owner steps the world and owns its gravity, air and statics (stepandset_staticsthrow). Newrelease()andmove_to().SceneWorld::follow(clock, after_step, before_each, after_each): hooks around each step, called with the clock tick.AppRuntime::set_world_external: the document's runtime stops stepping a world that a holon runs.scene:with physics) to the room's holon at start-up, and says so in its log.Contact (
AriadneOneWorld.ACarShovesAnAvatarAndTheAvatarSlowsTheCar): a Humvee accelerates at 2 m/s² from (-40, 0) toward an avatar standing at (-25, 0).Not in this PR (section 18.7):
Local (MSVC, Jolt):
AriadneOneWorld2/2.