A project
yoke-compose is the tool an application is written and packaged with. It is built from the same
source as the manager and released beside it, it links the same gate, and nothing of it is installed on a
device: a device carries the runtime and not the tooling.
yoke-compose <verb> [options]
One validator. check and build run the same gate a host runs at install and at start, so a project
the composer accepts is one the device accepts. On a workstation the host's facts — its devices, its Core
— are not there, and those checks are reported as not run rather than as passed.
The working directory
station/
├── yoke.yaml the descriptor: the only source of truth about the application
├── manifests/ one Manifest per Plugin the descriptor runs
├── components/ the executables, and image archives for an offline install
├── advisories.yaml waived advice, and why · never packaged
└── blocks.yaml where each placed block came from · never packaged
yoke.yaml, manifests/ and components/ are the application; everything else is the authoring. A
build takes exactly those three and refuses a descriptor naming a path outside them.
The two sidecars record how the application was authored, not what it is, so neither is ever packaged: inside the package, such a statement would be signed and delivered to every host, none of which has a use for it. A project that has waived nothing and placed no block has neither file.
| Verb | Does |
|---|---|
init <id> [--version V] [--arch A] [--core R] | makes a project: a descriptor with the identity fields, and the directories beside it |
check | runs the gate over the project, then the advice — Advice and waivers |
build [--out O] [--sign KEY] [--seal FILE] | makes a package from the project |
Building a package
| # | Step | Refuses when |
|---|---|---|
| 1 | run the gate, and the advice after it | any refusal at all. Advice never stops a build |
| 2 | assemble the bundle: the descriptor, manifests/, components/ | the descriptor names a path outside them, or a file that is not there |
| 3 | archive it, deterministically | — |
| 4 | compute the payload's digest, and fill the metadata from the descriptor's head | — |
| 5 | seal the payload, where a credential was given | — |
| 6 | sign the metadata, where a key was given | — |
| 7 | append the footer, and name the file <id>-<version>.yoke | — |
- Two builds of one tree produce one digest. Entries are in a fixed order, timestamps are a constant, and the only attribute kept is whether a file is executable.
- Signing is offered and never required. The key is an input to
build, never a property of a project. A package built without one is unsigned, and installable where the host's policy does not require a signature. - An image archive for an offline install sits in
components/images/, named<algorithm>-<hex>.tarafter the digest the descriptor pins; one no image pins is refused. A build fetches nothing. - A build never runs anything the project contains.
What it reports
| Exit status | Means |
|---|---|
0 | the verb did what it says |
1 | a refusal: the answer will not change until the project does |
2 | a fault: the attempt failed, and the same attempt may succeed |