Repository navigation
worlds: the relay seeds each room from a world document (WD0, WD1) - #1049
Merged
Merged
Conversation
ARIADNE_WORLDS.md's first cut. WD1: a room's world comes from a world document. - arisrv runs cvc://worlds/default.ari (the 20 m room) and --scene large runs cvc://worlds/large.ari: new src/cvc/ariadne/worlds/, installed beside the component library. A --doc whose document's scene: has nodes or lights is the world instead. --scene together with such a --doc is refused. - The relay publishes the world in one revision (conference::write_room_world: every field, soft removals, then scene.rev once, last). - room_world_from_scene carries what the room's wire holds. What it can't hold is left out with a warning: other node types and sources, children, textures, shaders, fit up x or flip, visible binds, shadow softness and focus. A body is published as a static until WD3; physics: waits for the headless world runtime (L0). - The look is the world's (Q1). The three_point rig and its shadows move from conference_roster.ari into the world document. The wire gains a rig's tuning knobs (stage, key, fill, back, warmth, environment, ambient, wash) and the shadows' re-bake interval, and the conference document drops its scene: block. - The C++ twins default_world() and large_world() are the fallback when the file can't be found; a test pins each twin equal to its document, leaf for leaf. - ServerDocument::read() keeps the parsed scene, so the relay publishes the world before the document runs. WD0: --set comes after the world and the room's policies, so it overrides them; a --set of scene.rev no longer stops the world from being seeded. It still comes before a server document's init:, so its ariadne.limits.* bound the document. The "under a sun" comment goes. Tests: RoomSceneTest.RigKnobsRoundTrip, RoomWorldIsOneRevision, RoomWorldFromSceneCarriesWhatTheWireHolds and StockWorldsMatchTheirTwins; ctests arisrv_world_from_doc, arisrv_world_doc_and_scene and arisrv_set_after_world. Docs: ARIADNE.md 9.7, ARIADNE_WORLDS.md (sections 1 and 15), the conference roadmap, and the scripting-hosts roadmap's 6.1.
…-deps The recipe lanes installed cvcpkg from transfix/libcvc-deps@master. That repo is archived and frozen at cvcpkg 2.2.1, whose builder puts the deps prefix on DYLD_LIBRARY_PATH. Once imagemagick 7.1.2+cvc.25 pulled iconv 1.17+cvc.7 into libcvc's closure, the prefix's GNU libiconv.2.dylib shadowed the system one, and Homebrew's cmake aborted before configuring on macOS: dyld: Symbol not found: _iconv ... Expected in: <prefix>/lib/libiconv.2.dylib cy-pca/cvcpkg master, which publish-cvcpkg.yml already installs, puts the prefix on DYLD_FALLBACK_LIBRARY_PATH (cy-pca/cvcpkg#221), so system libraries resolve first. Its `build` command has no --fallback-to-source. That is an install flag now, so the workflow_dispatch input moves to install-deps.
…ebrew's The recipe lanes took cmake and ninja from the runner image, which on macOS means Homebrew's (/opt/homebrew/Cellar/cmake/4.4.5). That was the cmake that aborted on #1049. Homebrew is not used at all: the lanes now run ./.github/actions/cvcpkg-build-tools after the cvcpkg CLI, as the package and release jobs do. It puts cvcpkg's cmake, ninja and pkg-config first on PATH for every later step, and fails the job if one resolves anywhere else.
On macOS the recipe lane's 16 IPC tests threw "state_transport_ipc::start: socket path too long". The failing suites were StateTransportIpcTest, StateReconnectResilienceTest, StateExecMultiprocessIpc and StateSnapshotProtocolTest.IpcSnapshotRequestResponse. Each test put its socket under std::filesystem::temp_directory_path(). cvcpkg 2.5's builder, which the lane now installs from cy-pca/cvcpkg, points TMPDIR at a per-job directory under /var/folders. A test's socket name there passes the 104 bytes of macOS's sockaddr_un::sun_path. The new tests/ipc_socket_path.h (cvc_test::ipc_socket_path) keeps the temp directory when the path fits and uses /tmp when it doesn't. The five IPC test files build their paths with it.
#1050 made the same two fixes this branch carried for the macOS recipe lane (b5597c7, dfd8d0e, 7791c2e), and it is on master now. The merge takes master's side of each, so this branch no longer changes CI: - .github/workflows/ci-recipe.yml is master's: the packaged cvcpkg 2.5.12 from cvcpkg.org's install.sh / install.ps1. The cvcpkg build-tools step (no Homebrew cmake) and the --fallback-to-source move to install-deps go to #1054, the PR that takes Homebrew out of CI. - src/cvc/tests/ipc_socket_path.h and the five IPC tests are master's.
#1047 added `sun: true` to a rig light: the key (and back) become a directional sun over the whole world instead of spots on the stage. The room's wire carries a rig's tuning knobs, so a world document's rig with sun: true lost it on the way to the clients. scene.env.lights.<id>.sun now holds "1", "0" or empty for unset, like the other knobs, and a plain light clears it. RigKnobsRoundTrip and RoomWorldFromSceneCarriesWhatTheWireHolds cover it.
transfix
added a commit
that referenced
this pull request
Nov 8, 2026
The recipe lanes took cmake and ninja from the runner image, which on macOS is Homebrew's. They now run ./.github/actions/cvcpkg-build-tools after installing cvcpkg, as the package and release jobs do, so cvcpkg's cmake, ninja and pkg-config come first on PATH for the recipe's build script and the job fails if one resolves anywhere else. cvcpkg 2.5's `build` has no --fallback-to-source (it is an install and install-deps flag; `build --no-deps` has no deps to build), so the workflow_dispatch input now goes to install-deps. This was on #1049 until #1050 fixed the rest of the macOS recipe lane on master.
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.
The first cut of ARIADNE_WORLDS.md: WD0 and WD1. Every room's world now comes from a world document, and so does its look. It builds on S0 (#1046).
WD1: the world document seeds the room
arisrvrunscvc://worlds/default.ari, the 20 m room.arisrv --scene largerunscvc://worlds/large.ari.src/cvc/ariadne/worlds/, installed besidecomponents/, so the libcvc package'sshare/libcvc/ariadne/carries them.arigl cvc://worlds/default.ari).--docwhose document has ascene:with nodes or lights is the world instead.--scenetogether with such a--docexits 2.conference::write_room_world): every field and the soft removals first, thenscene.rev, once and last.conference::room_world_from_sceneturns a document's scene into what the room's wire holds:fit:, along with its transform and plain material.fit: up xandflip,visible:binds, and shadow softness and focus.room_staticsbuilds every object; server-dynamic entities are WD3's, and the relay warns about them.physics:waits for the headless world runtime (L0, §14).conference_roster.ariinto the world document, and the conference document drops itsscene:block.sun) underscene.env.lights.<id>, andscene.env.shadows.interval, so every client draws the rig exactly as the world declares it.default_world()andlarge_world()are C++ twins of the two documents. A relay that can't find its world file says so and seeds the twin.RoomSceneTest.StockWorldsMatchTheirTwinspins each document and its twin to the same leaves.ServerDocument::read()now keeps the parsed scene, so the relay publishes the world before the document'sinit:runs. The load's "kept but not published" warning is gone; the physics warning stays.WD0:
--setorder--setnow comes after the world and the room's policies, so it overrides them; a--setofscene.revno longer stops the world from being seeded.It still comes before a server document's
init:, unlike the plan's "last". Otherwise theariadne.limits.*it sets would no longer boundinit:. The "under a sun" comment goes too.Tests
RoomSceneTest.RigKnobsRoundTrip,RoomWorldIsOneRevision,RoomWorldFromSceneCarriesWhatTheWireHoldsandStockWorldsMatchTheirTwins.ServerDocumentTestnow also checks thatread()keeps the scene.arisrv_world_from_doc: a document's world is published beforeinit:, which reads it back.arisrv_world_doc_and_scene:--docand--scenetogether are refused.arisrv_set_after_world: with--setofscene.revand of an object's leaf, the world is still seeded and the leaf is moved.arisrv_*ctest.--scene largepublished 26 objects fromlarge.ari.ari checkloads both worlds.Notes for review
scene:, once from the room. It should drop itsscene:block when it moves to this libcvc, asconference_roster.aridoes here.shadows.interval. Rig knob leaves exist only on rig lights.scene_realize.cpp, thescene.physicstoken,sim_worldandgenerated_world. WD1 readscvc::ariadne::Sceneonly and adds no loader syntax.CI: none here now
The macOS recipe lane failed on this PR first because cvcpkg was stale and cmake came from Homebrew, then because IPC socket paths ran past macOS's 104-byte
sun_path. #1050 fixed both on master, so the merge of master (0139fba) takes its side: this PR changes no CI file, andipc_socket_path.hand the five IPC tests are master's. The step that puts cvcpkg's cmake, ninja and pkg-config first on PATH in the recipe lanes, so that nothing comes from Homebrew, moves to #1054.After the merge: 8
arisrv_*ctests and 43 gtests (RoomSceneTest, ServerDocumentTest, the IPC suites, WorldCloudLayer, RoomRelayLoopbackTest) pass on the local Windows tree.