Repository navigation
mounts: an entry's catalog flag, beside the slot's catalog: - #1594
Merged
Merged
Conversation
A local file mounted by a mounts: slot runs as `local` when the slot's catalog: lists it, and now also when its entry's `catalog` flag (<slot>.<id>.catalog) is true. Neither makes a document from the network `local`. Both are written by the slot's document: a mounted document cannot write outside its own scope, so it cannot make itself local. The principal is decided as the entry opens. A flag that changes on an open entry opens it again as its new principal, its state kept and its init: not run again, when that changes the principal; when catalog: lists it as well, it runs on untouched. shell.ari's shell-open sets the flag on what it opens from its catalog, and keeps catalog: for the catalog's documents opened any other way. Tests: AriadneMounts.TheCatalogFlagOrCatalogMakesALocalFileLocal (neither, the flag, catalog:; set, cleared, and set where catalog: already applies), TheCatalogFlagLeavesARemoteDocumentRemote, and ShellOpensItsCatalogOnDemand checks the flag shell-open writes. Docs: ARIADNE.md 6.8, ARIADNE_SHELL.md 4.2 and 4.12.
transfix
added a commit
that referenced
this pull request
Nov 27, 2026
Conflicts resolved keeping both sides: - open_mount: #1594's mount_principal(..., slot.catalog), then SH11's block recording the principal (a flag change reopens the entry through close_mount and open_mount, so the new principal is recorded again). - shell.ari shell-open: sets the catalog flag on what it opens, as #1594 does; an entry with a network of its own opens under its slug with its flag and network written first, so it opens as local. - ARIADNE.md 6.8: #1594's paragraph, plus SH11's sentence on what a principal reaches. ARIADNE_SHELL.md's SH11 note says so.
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.
Follow-up to #1566 (SH1). The decision it left open was whether the shell marks its catalog's documents with
catalog:on themounts:slot or with a per-entry flag. Joe asked for both.What it does
mounts:slot runs aslocalwhen the slot'scatalog:lists it (as before), or when its entry'scatalogflag (<slot>.<id>.catalog) is true. Otherwise it runs asfile:<its directory>.local: anhttp(s)document staysremote:<origin>.local.init:not run again. Ifcatalog:lists it as well, the principal doesn't change and it keeps running untouched.shell.ari'sshell-opensets the flag on what it opens from its catalog, and keepscatalog: { bind: shell.catalog_uris }for the catalog's documents opened any other way.Docs: ARIADNE.md §6.8 (the entry keys and "Principals and budgets"), ARIADNE_SHELL.md 4.2 (as built) and 4.12.
Verified
On Windows (MSVC 19.44, Release, cvcGL off), at 20f37ff from master daf6367, with
TMPset to a short path:New tests:
AriadneMounts.TheCatalogFlagOrCatalogMakesALocalFileLocal:file:, its budget), one with the flag (local, its budget), and one under acatalog:prefix (local);local, resumed, itsinit:run once;file:;catalog:already lists: it keeps the same processes.AriadneMounts.TheCatalogFlagLeavesARemoteDocumentRemote: anhttpsentry with the flag runs asremote:https://apps.example.org.AriadneComponents.ShellOpensItsCatalogOnDemandnow also checks thatshell-openwrote the flag.Not run here: the cvcGL build, the tmux shell run and the Linux and macOS lanes; CI covers them.