Skip to content

docs: worlds plan: local lab/gym, many rooms, conference features, worlds by need, E2EE private rooms - #1043

Merged
transfix merged 4 commits into
masterfrom
docs/worlds-lab-gym
Nov 7, 2026
Merged

transfix merged 4 commits into
masterfrom
docs/worlds-lab-gym

Conversation

@transfix

@transfix transfix commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

A plan, no code. Two asks from the owner go into ARIADNE_WORLDS.md (#1041):

  • the lab/gym (2026-11-06), which is the world document run with no relay;
  • many rooms, server-declared conference features, worlds clients already hold or fetch as needed, and end-to-end encrypted private rooms (2026-11-07).

Rooms, features, delivery and privacy (2026-11-07):

  • §10 Rooms. One server serves many rooms, each its own world: sections, entities, holon and clock.
    • A lobby section lists the rooms.
    • Rooms can be made at run time.
    • A client reads only the rooms it joined.
  • §11 Conference features. The server and each room publish a features section, and requires: gains server tokens.
    • The conference becomes stock components under cvc://conference/: lobby, users, chat, media bar, tiles, avatar panel, room view, settings and E2EE status.
    • Each component hides itself when the server doesn't offer its feature.
  • §12 Getting the world to a client. Every asset goes by hash, size and priority.
    • A client looks in its bundle, then its local cache, then a world pack, then the relay. A world pack is a world document and its assets with an index, from any source: a cvcpkg package, an archive from a URL, or a data directory on disk.
    • It fetches by need: the colliders where it spawns first, then nearby cells, coarse detail before fine, with stand-ins meanwhile.
    • The browser gets a content cache.
    • A client with nothing can still fetch everything.
  • §13 Private rooms, end-to-end encrypted after txwtf's ENCRYPTED_MESSAGING.md:
    • X25519 keys signed by today's Ed25519 device key, and a key directory on the relay;
    • X3DH and the Double Ratchet between members, and sender keys for a room;
    • SFrame media, with keys derived from the sender keys;
    • safety numbers, so members can check each other's keys;
    • admission by a member, never by the relay.
    • The relay sees metadata only.
    • The private world's authority is one member's client, over the stock default world. Lockstep, encrypted assets and MLS come later.
  • Phases: RM1–RM2 (rooms), CF1–CF2 (conference features), AD1–AD2 (asset delivery) and E0–E5 (encryption).
  • Decisions: Q12 (libsodium, as txwtf) to Q15 are open. Q16 is settled by the owner: a world pack can come from any source.

The lab and gym (2026-11-06):

  • §14 Local worlds: the lab and gym.
    • One C++ world runtime reads the world sections and runs the entities. It is the authority in a local lab, and the holon's authority on the relay (WD1 on).
    • The four components are .ari panels over sections: world_source, vehicle_selector, spawn_points and world_physics.
    • Vehicles are archetypes.
    • The gym (reset, step, observe, reward, episode logs) takes over pycvc_gl.cars' world glue.
    • The section ends with a list of what the runtime needs that isn't there yet.
  • §1 gains rows for sim_world, the plants, generated_world, the world-to-navigator glue, physics stats, step and restart, and views, checked against master 19423da:
    • agents are fixed when a sim_world is built;
    • one policy covers all of its agents;
    • generated_world publishes only its height field;
    • a document's physics writes no stats;
    • nothing handles sim.restart;
    • a click in a view doesn't give a world point.
  • §3–§5:
    • new sections spawns.* and physics.stats.*;
    • entities gain an identity: name, team, two colours and metadata;
    • nav@1 becomes a native kernel, with a policy per entity by URI and hash, loaded once per hash.
  • §15 phases: L0–L4 sit beside WD0–WD9. L0 (the local world runtime) needs no relay and can start before S0.
  • §16 decisions:
    • Q9: one simulator or two;
    • Q10: what a team means;
    • Q11: what "physics off" means.
    • The owner settled C++ for the core on 2026-11-07.

Elsewhere:

  • The new sections renumber local worlds, phases, decisions and pointers to §14–§17.
  • The conference roadmap's §5m lists all of it, and its §6g points at §13.

…-L4)

The lab/gym scope (2026-11-06) folds into ARIADNE_WORLDS.md: it is the
world document run with no relay, the process its own authority.

- New section 10, "Local worlds: the lab and gym": one C++ world runtime
  that reads the world sections and runs the entities, locally for the lab
  and as the holon's authority on the relay; the four components
  (world_source, vehicle_selector, spawn_points, world_physics) as panels
  over sections; vehicles as archetypes; the gym (reset, step, observe,
  reward) taking over pycvc_gl.cars' world glue; what the runtime needs
  that isn't there.
- Section 1: rows for sim_world, the plants, generated_world, the
  world-to-navigator glue, physics stats, step/restart and views, checked
  against master 19423da.
- Sections 3-5: spawns.* and physics.stats.* sections; identity (name,
  team, two colours, metadata) on entities; nav@1 as a native kernel with
  a policy per entity by URI and hash.
- Phases L0-L4 beside WD0-WD9; L0 can start before S0.
- Open decisions Q9-Q11 (one simulator or two, teams, physics off); C++
  for the core settled.
- Conference roadmap 5m lists the local world.

Phases, open decisions and pointers renumber to 11-13.
…orlds by need, E2EE private rooms

The owner's second ask (2026-11-07), as four new sections:

- 10 Rooms: one server, many worlds, each room with its own sections,
  entities, holon and clock; a lobby section; rooms made at run time;
  bound reads per room.
- 11 Conference features: features sections per server and per room,
  server tokens in requires:, and the conference as stock components
  under cvc://conference/ that hide what the server doesn't offer.
- 12 Getting the world to a client: assets by hash, size and priority;
  lookup in the bundle, the local cache, an installed world pack, then the
  relay; fetch by need (colliders first, near cells, coarse first); world
  packs; a browser content cache; everything still fetchable.
- 13 Private rooms: end-to-end encrypted after txwtf's design (X3DH,
  Double Ratchet, sender keys, SFrame keys from them; keys signed by the
  device key; safety numbers); the relay sees metadata only; one member's
  client is the private world's authority over the stock default world;
  encrypted assets later as txwtf's sealed content keys.

Section 1 gains rows for rooms, conference components, feature
detection, the asset cache and keys. Phases RM1-RM2, CF1-CF2, AD1-AD2,
E0-E5; decisions Q12-Q16. Local worlds, phases, decisions and pointers
renumber to 14-17. The conference roadmap's 5m and 6g point at them.
@transfix transfix changed the title docs: worlds plan: the same world run locally, as the lab and gym (L0-L4) docs: worlds plan: local lab/gym, many rooms, conference features, worlds by need, E2EE private rooms Nov 7, 2026
@transfix
transfix enabled auto-merge (squash) November 7, 2026 20:15
…dering

Owner's ask, 2026-11-07: a headless runtime must still run physics and
support the world without local rendering.

- section 0: the ask.
- section 1: a row for what exists. A document's physics world, bodies and
  generated_world are built only by cvcGL's scene realizer, and a headless
  runtime drops scene:. The physics world, plants and holon are already core.
- section 14, "Headless first": scene realization splits into a world half in
  core libcvc and a view half in cvcGL. The loader runs a scene's world
  headless behind a proposed scene.physics token. A test pins headless and
  offscreen to the same state hash. On the relay, one physics world holds
  the document's bodies and the avatars.
- L0 builds the world half headless. WD3's relay-simulated entities need L0.
- section 16: settled, with the token's name open.
@transfix
transfix merged commit 2cf195b into master Nov 7, 2026
16 of 28 checks passed
@transfix
transfix deleted the docs/worlds-lab-gym branch November 7, 2026 21:02
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