The install root
Bundles are installed into one shared tree outside every home directory, three levels deep: the root, one directory per application, one per version.
/var/lib/yoke/apps/ the root — mode 2775, group yoke-apps
└── com.yoke.station/ owned by the account that installed it
├── 2.1.0/
│ ├── bundle/ never written at runtime
│ │ ├── yoke.yaml
│ │ ├── manifests/
│ │ └── components/
│ └── install.yaml the record of this installation
└── 2.2.0/
├── bundle/
└── install.yaml
| Path | Owner | Group | Mode |
|---|---|---|---|
| the root | whoever provisioned the host | yoke-apps | 2775 |
<id>/, <id>/<version>/, bundle/ and below | the installing account | inherited | 2775 for directories |
files in bundle/ | the installing account | inherited | 0644, and 0755 for the executables the descriptor names |
install.yaml | the installing account | inherited | 0664 |
- The root is a system location, created once when Yoke is installed. Where it is comes from the manager's configuration.
- Membership of the group is the right to install. The set-group-id bit keeps everything below in the group; each application's directory is owned by whoever installed it.
- Installing needs no privilege and writes nothing into the system's own locations: no unit file, no
path on the search path, nothing under
/etc. - Versions coexist and are never overwritten.
Nothing at runtime writes inside bundle/, and every identity the description states is verified
before every start — each executable, each image, each Manifest that carries a digest, and the
descriptor against the digest its instance pinned. What no digest names is not covered.
The barrier between accounts is administrative, not confidential. Any member of the group can alter another member's bundle; tampering is detected by those digests, not prevented by a permission.
The install record
install.yaml sits beside the bundle, never inside it — the mutable half of an installation.
state: complete
installed_by: davide
installed_at: 2026-08-15T09:12:04Z
verified_by: "9f3c1e…"
sealed: false
digest: "sha256:1a2b3c…"
shared: true
| Field | Holds |
|---|---|
state | incomplete, written before anything is expanded; complete, once every check passed; withdrawn, written by a removal before anything is deleted |
installed_by | the installing account, as it was named then |
installed_at | when it completed, UTC |
verified_by | the key_id the signature verified against, in hex as the trust store writes it; or unsigned where the policy allowed one |
sealed | whether the package arrived sealed |
digest | the payload digest the footer carried |
shared | whether other accounts are offered it. true unless the installation said otherwise |
verified_byanswers what entered under a key after that key is removed.shared: falsewithholds an installation: other accounts see it, and creating an instance of it is refused to them.- Nothing runs from an
incompleteversion, and a reclaiming pass removes it. - A
withdrawnversion refuses new pins. Neither creating an instance nor re-pointing one names it.
What is read from the tree
What the filesystem can say is read from it, and nothing else is written down.
| Question | Answered by |
|---|---|
| which applications and versions are installed | the directory listing |
| who installed one | its directory's owner, and installed_by |
| whether an installation completed | state |
| which images a version references | the descriptor in its bundle |
| whether anything points at a version | the instance records |
| which version is newest | the version directories, ordered as semantic versions |
Two installs at once
A version directory is created exclusively, which decides which of two installs of one version
proceeds. The other reads the record it finds: incomplete is an installation in progress or
interrupted, complete is a version already present. Two different versions do not contend.