yoke is one command with two halves: lifecycle verbs, which act on declarations, and client verbs,
which act on a running instance. They answer to different authorities and fail in different ways.
| Lifecycle verbs | Client verbs |
|---|
| subject | a package, a bundle, a record, a state directory | a Core running now |
| interlocutor | the filesystem, the guardian, the init system, the container engine | one of the instance's administrative projections |
| act when nothing runs | yes — that is what they are for | no |
| authority | what was written down | what the instance grants whoever reaches its surface |
- The manager holds no privileged path inwards. A client verb reaches an instance as any client
does, on a published projection whose address it computes from the instance's name.
- Neither interlocutor is reached through the other. The guardian carries nothing about the inside
of an instance, and no administrative operation stops an instance or changes its declaration.
The namespaces
Lifecycle verbs are namespaced, and the namespace selects the regime. Client verbs are grouped by
subject.
| Namespace | Regime | Acts on |
|---|
yoke app | user | packages, bundles, the install root |
yoke instance | user | instance records and the state beside them |
yoke service | system | the one deployment the init system activates |
yoke log, plugin, unit, core, stream, shell | either | what is inside a running instance |
yoke app
| Verb | Does | Goes to |
|---|
install <package> | expands a package into a bundle and resolves what it references — Installing | filesystem, engine |
list | the applications and versions installed, each with its install state | filesystem |
show <id> | one application: its versions, what each records, which any instance points at | filesystem |
remove <id> [--version <v>] | removes bundles; refused while any instance points at a version being removed | filesystem |
prune [<id>] | the one reclaiming verb — Updating and removal | filesystem, engine |
run <id> [--version <v>], run --from <dir> | creates an ephemeral record and follows the run — Instances | filesystem, guardian |
yoke instance
| Verb | Does | Goes to |
|---|
create <id> [--name <n>] [--version <v>] [--params <file>] | writes a record, its values checked against the declarations | filesystem |
list | this account's instances, each with the state derived for it | filesystem, guardian |
show <n> | the record, and what the state occupies | filesystem |
start <n>, stop <n>, restart <n> | writes the desired state, then asks for the record to be reconciled | filesystem, guardian |
enable <n>, disable <n> | writes autostart — a second field, not the desired state | filesystem |
set-version <n> <v> | re-points the record at an installed version | filesystem |
set-param <n> <group>.<key> <value> | replaces one recorded value, checked as at creation | filesystem |
set-secret <n> <secret> | reads a value without echoing it into the instance's state — Secrets | filesystem, operator projection |
copy <n> <path>, restore <path> <n> | copies a stopped instance's state out, or back in | filesystem |
clear <n> | removes the state; the instance stays declared | filesystem |
remove <n> | removes the record and the state together | filesystem |
list asks the guardian for the why behind an instance that is not running, and answers without
one: which instances exist is a directory listing, and whether one is alive is its claim.
yoke service
| Verb | Does | Goes to |
|---|
start, stop, restart | asks the init system, and starts nothing itself | init system |
status | what the init system reports, beside what the instance answers | init system, operator projection |
check | runs the gate over the composition in force | filesystem |
set-secret <name> | writes a secret into the deployment's own area | filesystem |
exec | gates and then executes the Core, in one process | filesystem |
- The init system is asked through
systemctl, about the unit yoke.service.
exec is the verb the unit names, not a verb for typing: it makes the party that executes the Core
the party that gated it.
yoke service reads the description the service form already has — core.yaml, the Plugin
directory and the composition. There is no manager configuration in this regime.
The client verbs
There is one verb per operation of the administrative contract, named after it and taking the same
subject — the operations are listed in the administrative surface.
yoke <subject> <operation> [--instance <name>] [options]
- The instance is a selector and never a namespace.
--instance chooses among an account's
instances and may be omitted while there is one; in the service form there is nothing to select.
- A stopped instance answers nothing. A client verb against one reports that it is not running.
| The exchange | Projection | Examples |
|---|
| a bounded question, answered and done — including a subscription followed until interrupted | operator | yoke core status, yoke plugin list, yoke log follow |
| a person carried into a deployment and left there | shell | yoke shell |
Neither projection is the more capable: both carry the same operations with the same authority.
What it reports
A refusal and a fault are different news. A refusal reports every failure found, not the first.
| Exit status | Means |
|---|
0 | the verb did what it says |
1 | a fault: the attempt failed, and the same attempt may succeed |
2 | a refusal: the answer will not change until something is changed |
- An account's listing shows that account's instances and no others. Installed applications are
visible to every account: the root is shared.
- When the init system and the instance disagree, both are reported and neither is chosen —
active according to the init system, not answering on its surface.