Skip to content

roadmap: changing a running server's scene, what a client inherits, and spawns (proposal) - #1531

Merged
transfix merged 3 commits into
masterfrom
docs/arisrv-scene-changes
Nov 25, 2026
Merged

transfix merged 3 commits into
masterfrom
docs/arisrv-scene-changes

Conversation

@transfix

@transfix transfix commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

A proposal (docs only): an rcon admin changes a running server's scene, either from a list or by pushing an arbitrary scene package. A joining client inherits the server's client-side apps, UIs and components, and avatars, vehicles and boats spawn where the scene (or the terrain generator) says, on its ground. New file: docs/roadmap/ARISRV_SCENES.md. Revised 2026-11-25 with the owner's answers to its four questions (section 5).

What it finds today

  • The scene, rules and vehicle spawns are written to the room once, when arisrv starts. While running, the server can only switch between the worlds its document declares, or regenerate a generated world (GB5 part 1, GB5 part 1: a joined terrain lab edits the server's world (rcon admins only) #1527).
  • Vehicle spawns come from world: spawns: in the room rules. They're fixed x/y points, and no server call edits them.
  • Avatars have no spawn points: they join on a 4 m ring at z = 0 (holon_sync.cpp), and nothing puts them on the ground. They respawn below a fixed −10 m.
  • A joined arigl draws the document it started with and doesn't follow world_source.

Phases

Phase What
SC1 Avatar spawn points. Joins and respawns land on the ground of the world that's on, and respawn is measured from the ground.
SC2 server.spawns.set (admin): spawns re-published at an activation tick. The minimap's tools send their edits there when joined.
SC3 server.scene.load for documents. Sources are allow-listed (stock worlds, --scene-root, cvcpkg). The new scene loads in the background and swaps in at a tick, and joined hosts follow world_source.
SC4 Bundles as scenes, through a wrapper document that server and clients build identically.
SC5 Bytes by content address (GB5 part 2): server.fetch, a cache, packs and cvcpkg, and the dataset hash and revision in world_on.
SC6 Spawns in bundles (world.json), and from the terrain generator: roads and dirt for vehicles and avatars, water for boats.
SC7 What a joining client inherits: the document's clients: block (apps, components, UIs; the server asks, it never grants). The client mounts them in a slot only it writes (shell.room_apps), as the sandboxed principal room:<server>/<room>, which can never make admin calls. The followed scene is a sandboxed mount there too. Builds on ARIADNE_SHELL's SH1, SH3, SH7, SH11, SH12 and SH14.
SC8 server.scene.push: an admin uploads a scene package (a world pack), sending only the files the server lacks.

Decisions and what's still open

The owner answered all four questions (2026-11-25):

  • an admin may push an arbitrary scene;
  • generated worlds are regenerated by clients from seeds and settings;
  • everyone respawns on a change;
  • large scenes may come from the relay;
  • a joined client gets whatever it needs from the server.

Still open:

  • the room: principal's defaults: section 3.4 proposes what is given, what is asked on first join, and what is never given (from a review by the shell/DSL-process session), for the owner to settle;
  • where pushed scenes are stored;
  • whether a pushed scene survives a restart.

Nothing in it is built yet. Claims marked "unverified" in the doc haven't been tested.

@transfix transfix changed the title roadmap: changing a running server's scene, and where avatars and vehicles spawn (proposal) roadmap: changing a running server's scene, what a client inherits, and spawns (proposal) Nov 25, 2026
… host-written room slot, the room: principal, a sandboxed followed scene, no admin calls
@transfix
transfix enabled auto-merge (squash) November 25, 2026 07:45
@transfix

Copy link
Copy Markdown
Owner Author

Review of section 3.4 (SC7) against docs/roadmap/ARIADNE_SHELL.md. It fits, with the six changes below; ba4145c folds all six in. The defaults at the end are for the owner to settle.

  1. The server asks; it never grants.

    • In ARIADNE_SHELL 4.5 the loading document grants and the mounted document asks, in its own requires:. Here the client is the loading document, so a server-side clients: grants: would let the server grant itself access.
    • Drop grants: from the clients: block. Each inherited app lists its tokens in its own requires:.
    • The host's slot grants them, up to the slot's ceiling, and asks the user for anything beyond the defaults (grants: { ask }).
  2. Inherited apps get their own mounts: slot, written by the host.

    • Not shell.apps.server.<as>: the mounts: widget treats every child of shell.apps as an app, so server would itself be mounted.
    • A second slot, for example mounts: shell.room_apps, with entries at shell.room_apps.<as>. Its grants:, allow: and budget defaults are where the client caps everything a server hands out.
    • The join code reconciles conf.rooms.<room>.clients into that slot: it checks each hash against the content store, applies the host's policy and refuses what the policy refuses.
    • The slot is never bound to the replicated room key, so a server cannot write the client's mount entries directly.
    • Hosts other than the shell get the same slot from a built-in component, so there is one code path.
  3. Name the principal room:<server>/<room>, not relay:.

    • ARIADNE_SHELL section 7's "Relay and conference documents as applications" is about a relay: block in a document, the server role. A relay: principal would collide with that name.
    • Like remote:, it is fixed at mount time from the connection:
      • <server> is the canonical origin the client dialed: scheme, host and port;
      • nothing the document says can name or raise it;
      • everything an app loads inherits it;
      • its relative paths resolve in the room's content-addressed set;
      • cvc:// stock components are allowed.
    • Two rooms on one server are two principals. That is right for storage; credentials don't arise, since it gets none.
  4. The followed scene document needs a principal too (a gap in 3.2).

    • "Loads the new document" as the host's world would run the server's document as local, outside the sandbox. If it replaces the outermost document, it also ends the client's own apps, which contradicts "the client keeps its own".
    • Under the shell, the followed scene is a mount in the same slot: SH3's scene of a mounted document, shown in the main view through front:.
    • It runs no server-side logic on the client. That logic stays on the server, and the client sees its replicated state.
    • Its geometry, materials and datasets go through 4.12's list of formats a sandboxed document may load. Bundle formats not on that list (Austin's) are added on purpose and put in the fuzzing order.
    • The clients: apps are the only client-side programs.
  5. The room channel is scoped and never carries admin rights.

    • room-call acts as the joined user only.
    • The admin_call names are refused for this principal, even while the user is elevated. Otherwise an app one admin pushed acts with another admin's elevation without that admin knowing.
    • The rcon password and the elevation are never readable. Admin calls come only from the host's own admin UI.
    • The tokens reach only that room on that connection, never another room or server.
  6. Phases SC7 needs:

    • SH1: mounts and budgets;
    • SH3: scenes of mounted documents, for view: window and the followed scene;
    • SH7: asks and grants, keys and pointer;
    • SH11: credentials per principal; without it, an inherited app finds the client's credentials by name;
    • SH12: the sandbox and the format list;
    • SH14's badge.
    • SH13's https fetcher isn't needed, since files come through the room (SC5); share its manifest checker, which reads OW5k's index fields.
    • clients: goes into the closed schema (Ariadne: a closed .ari schema every load checks, and ari validate #1464) in SC7.

The principal's defaults (proposed, for the owner to settle):

  • Default, like remote: in 4.12:
    • its own state, windows and scene;
    • the host verbs marked safe for remote documents;
    • its own storage, with a quota;
    • extend.settings;
    • a tighter budget (4.11);
    • for its own room only: state.room.read, room-call (not admin) and room-run within the server's read-lane allow list. These are the reason to join, so asking for them would only add a click.
  • Not given by default:
    • the network: its channel is the room; net.origin by grant;
    • credentials, end-to-end keys and OIDC: never the client's, and none of its own unless granted;
    • local files: file-pick by grant;
    • python: blocks and native extensions: they fail the mount.
  • Asked on first join, rememberable per server (like 4.13's Always trust this publisher):
    • delegate.keys and delegate.pointer. A drive panel needs them, and 4.6's focus rules already limit them to the focused app;
    • extend.menubar and extend.context_menu;
    • request.main_view.
    • A host setting can auto-grant these for servers the user dialed directly.
  • Never: access.settings for the shell's own settings, and request.open, unless servers should be able to open documents.

Smaller points:

  • Lifecycle:
    • When the server's clients: changes, it applies at the activation tick T.
    • An app whose hash changed reloads, keeping its resident as 4.2's caching does.
    • Leaving the room ends every mount and drops its runtime state. Its per-principal storage stays until the user clears it.
  • Processes and badge:
    • SH0's scope and owner_root already label these processes in (ps) and the Processes view. room-run programs are the server's processes, not the client's.
    • The badge reads "from , room ", always pinned, since everything is content-addressed. "Pushed by admin" can show once SC8 knows the pusher.

@transfix
transfix merged commit 3df78a3 into master Nov 25, 2026
55 of 56 checks passed
@transfix
transfix deleted the docs/arisrv-scene-changes branch November 25, 2026 12:05
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