Repository navigation
docs: resident guests (RG1-RG7), clients' guests that stay on arisrvx, with hooks, leases and a gas ledger - #1290
Merged
Merged
Conversation
…, with hooks, leases and a gas ledger A plan, nothing built: docs/roadmap/ARIADNE_RESIDENT_GUESTS.md, from the owner's ask after G4's first part (#1283). - RG1: a client starts a resident guest that the relay keeps, one instance across firings, with hooks (on_tick, watch, msg, timer, owner, close). It writes its own conf.rooms.<room>.guests.<gid> under the participant rule and reads what its owner is sent. - RG2: a gas ledger per principal, kept by salted hash: a grant at first sight, refill as a token bucket, a fee per firing, reserve then settle, starving at zero, a journal store behind an interface. - RG3: leases past the connection (linger with a reset on reconnect, forever, ttl), reattaching by principal, closing reasons, and an admin role. - RG4-RG7: DSL residents, hibernation, guests on clients (a Promise compile and the gas pass in the page), and the Worker backstop. Twelve decisions (D1-D12) are open, each with a recommendation. ARIADNE_SCRIPTING_HOSTS.md §8.7 points to it.
transfix
enabled auto-merge (squash)
November 16, 2026 01:50
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
…view From the arisrvx session's review, and Joe's answers to both sessions: - client_registry keeps a client's limits as client_limits (programs and guests as optional booleans; steps, time and memory_mb, where 0 is the document's), and limits(pid) returns them as an optional. That is what ServerDocument::set_client_limits (#1296) reads. - concurrency and python are not keys. Programs and guests run one at a time per client, and ID4c adds python. - The doc: - #1290's ledger keys on the principal or the verified device tag, never the client id; - packaged clients keep their names; - #1296's seam as built; - client Python needs a WASI CPython, not W5's Emscripten build; - parts are named by session; - D2 is being confirmed, since Joe answered the two sessions differently.
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
…view From the arisrvx session's review, and Joe's answers to both sessions: - client_registry keeps a client's limits as client_limits (programs and guests as optional booleans; steps, time and memory_mb, where 0 is the document's), and limits(pid) returns them as an optional. That is what ServerDocument::set_client_limits (#1296) reads. - concurrency and python are not keys. Programs and guests run one at a time per client, and ID4c adds python. - The doc: - #1290's ledger keys on the principal or the verified device tag, never the client id; - packaged clients keep their names; - #1296's seam as built; - client Python needs a WASI CPython, not W5's Emscripten build; - parts are named by session; - D2 is being confirmed, since Joe answered the two sessions differently.
transfix
added a commit
that referenced
this pull request
Nov 19, 2026
# Conflicts: # src/arisrv/main.cpp # src/cvc/CMakeLists.txt
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.
A plan, docs only. Nothing is built. It's the owner's ask after G4's first part (#1283): clients' WebAssembly guests that stay on the server, with hooks, lifetimes past the connection, and a gas ledger that pays for them. The plan is
docs/roadmap/ARIADNE_RESIDENT_GUESTS.md. ARIADNE_SCRIPTING_HOSTS.md §8.7 points to it.The model
A resident is a guest instance the relay keeps, in one room, owned by a principal (by hash).
conf.rooms.<room>.guests.<gid>, under the participant rule, so the room sees it as a headless participant.Phases
room-guest-start/-stop/-send/-call,room-guests. Hookson_tick,watch,msg,timer,owner,close. The instance kept across firings, its subtree, gate rule and status, a budget per room step, limits per principal(room-gas), a journal store behind an interface. G4's and S3's calls are charged toolinger(10 s grace by default),foreverandttl; the countdown and its reset on reconnect; reattaching by principal; closing reasons; the admin role, and arisrvx'shost.guests/host.ledgerOpen decisions (§11)
The plan has twelve, each with a recommendation. The ones that shape RG1–RG3 most:
linger.CI
Docs only. The full matrix is cancelled to spare runners while #1283's checks run, and the required jobs will be re-run before a merge.