Repository navigation
Ariadne shell SH0: scope on (ps) rows, the ariadne.apps mirror, processes.ari - #1499
Merged
Merged
Conversation
…sses.ari
Phase SH0 of docs/roadmap/ARIADNE_SHELL.md (4.9, 4.10): the first step toward a Processes window
that shows which application each running DSL process belongs to.
- execute_options::owner_root and process::owner_root hold the owner's root; process_scope
writes process_info::scope from it and the chroot, "" for a plain host's processes. (ps) and
(inspect) rows carry it, both schedulers fill it, spawn and fork copy the owner root, the
coordinator's process rows and state_value_codec carry it, and pycvc has the new fields.
- The Runtime gives every process it starts its context's chroot and the document's prefix, so
a document's own programs are "" and a mount's includes.<as>. Its actions' async progress now
posts under their chroot, as STATE_EXEC_EXCEPTIONS.md 3.10 says.
- mirror_apps writes the 5.25 applications to ariadne.apps.<key>.{name, scope, running} under
the document's prefix, following Quit, reopening and Restart, and the document's meta.name to
ariadne.name (the loader sets the root widget's app_name).
- components/processes.ari: a window with the document's processes by application, pid, name,
status, steps, what each waits on, memory and a Kill button; (processes-step ROWS) from
on_tick polls (ps) twice a second with a row cap. Listed in INDEX.ari and ARIADNE.md 6.5.
Tests: ProcessRowsCarryTheirScope (state_exec), ProcessRowsSayWhoseTheyAre,
TheApplicationsAreMirroredUnderTheDocumentsPrefix and ProcessesListsByApplicationAndKillsARow
(ariadne_runtime_test), and ari test src/ari/tests/processes_component.ari
(ari_processes_component).
INDEX.ari keeps master's http_cache entry and adds processes after it. The runtime tests keep master's AMountsNameNamesEachInstancesApplication beside SH0's two tests, which git had interleaved. The mirror test checks that a loader's name: (#1485) names an ariadne.apps entry, and ARIADNE.md says so.
No conflicts. S2a's exec_group passes a caller's execute_options through, owner_root with them, and Ariadne's submissions still set it in own_scope.
transfix
enabled auto-merge (squash)
November 23, 2026 20:18
transfix
added a commit
that referenced
this pull request
Nov 24, 2026
… ...) into p9/volume-grid-segment #1464 checks every load against the closed schema, which already takes a color picker's fmt: rgb | hex. ColorWidgetFmtHexDrawsTheHexPicker counted every warning of its fmt: hsv load; it now counts the loader's own, as #1464's loader tests do, and checks that the schema flags that fmt where it is when the validator is built in.
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.
Phase SH0 of the Ariadne shell design (
docs/roadmap/ARIADNE_SHELL.md4.9, 4.10 and section 5): the first step toward a Processes window that shows which application each running DSL process belongs to. It works with today's staticload:mounts and the §5.25 applications; nothing ofmounts:orshell.ariis here.What changes
scopeon(ps)and(inspect)rows. A process's chroot relative to its owner's root:execute_options::owner_rootandprocess::owner_root(new) hold the owner's root.process_scope(root_path, owner_root)(scheduler_base.h) writesprocess_info::scope:""when the two are the same, the rest of the path under it, the whole chroot after a/when it is outside, and the chroot itself with no owner root. A plain host gives neither, so its rows' scope is"".make_info;forkandspawncopy the owner root (and, as before, the chroot), so a child has its parent's scope.exec_coordinator's process rows carryscope(for the threaded plan's published rows, S2-Q9),state_value_codeccarriesowner_root(written only when set), and pycvc'sexecute_options,processandprocess_infohave the new fields.own_scopein ariadne.cpp) gives every process it starts (actions, residents,start_process) its context's chroot asroot_pathand the document's prefix asowner_root. So a document's own programs are"", a mount'sincludes.<as>, a repeated mount'sincludes.<as>.<i>.process::root_path(the chroot lived only in the intrinsics context), so an action's async calls posted their progress at<name>.progressfrom the tree's root rather than under the program's chroot, unlike what STATE_EXEC_EXCEPTIONS.md 3.10 says. With the chroot recorded they post under it.The
ariadne.appsmirror.Runtime::Impl::mirror_appswrites every §5.25 application (frame_apps, withquit_appsforrunning) under the outermost document's prefix, as the feed mirrors itself tonotify.*:ariadne.apps.<key>.{name, scope, running}. Only changes are written; an application gone from the tree is taken out; Quit, reopening and Restart updaterunningat once. The key is the scope without itsincludessegments, joined by_(fe_lab, a repeated mount'scam_0, a nesteda_b), numbered if two collide.front,askedandgrantscome in later phases.The document's own
meta.nameis mirrored toariadne.name: the loader now sets the root widget'sapp_nametometa.name(a mount's wrapper already carried its document's), and the Runtime writes it. The design names the document's own rows bymeta.namebut did not say how a view gets it; this is the new key for that.components/processes.ari. A Processes window: application (the row's scope looked up inariadne.apps, the deepest application holding it; the document's own rows byariadne.name), pid, name, status, steps, what it waits on, memory, and a Kill button per row. Like the other shipped components (ARIADNE.md §6.5), a document imports it, includes the window, and calls(processes-step ROWS)from itson_tick:, which polls(ps)and(inspect)at most everyROWS.everyseconds (0.5) into its own state, at mostROWS.maxrows (50), the rest counted inROWS.more.(processes-kill ROWS I)is the Kill button. Listed inINDEX.ariand ARIADNE.md §6.5.Tests
state_exec_integration_test:E2EIntrinsicsTest.ProcessRowsCarryTheirScope(plain host"", own, mount, outside, no owner root, a forked child,process_info).ariadne_runtime_test:AriadneRuntime.ProcessRowsSayWhoseTheyAre(a mount's resident, its action and the child it spawns asincludes.fe_lab; the document's resident and an action as"", through(ps),(inspect)andlist_processes),AriadneRuntime.TheApplicationsAreMirroredUnderTheDocumentsPrefix(the mirror through Quit, reopening and Restart, a repeated mount, an application taken out,ariadne.name),AriadneComponents.ProcessesListsByApplicationAndKillsARow(the component's rows by application, and Kill on the mount's sleeping action leaves the rest running).ari test src/ari/tests/processes_component.ari(ctestari_processes_component, loadstests/processes_app.ari): the mirror,(ps)scopes, rows named by application, the row cap. Kill is not in it: the Runtime reports a killed program as a warning, whichari testcounts as a failure.AriadneComponents.ShippedComponentsLoadCleancovers the new component.Docs: ARIADNE.md §5.25 (the mirror, whose a process is) and §6.5, STATE_EXEC_DEVELOPER_GUIDE.md ("Whose a process is"), and an "As built in SH0" note in the shell design's 4.10.