app.yaml at the root of a git
repository and one folder per blob under blobs/, each holding that blob’s blob.yaml.
blobhub app build compiles the repository into build/, blobhub app push makes the app blob’s draft equal
build/, and blobhub app commit makes the draft a version. The platform reads app.yaml from the app blob and
refuses a commit while the definition has a problem.
The example on these pages is Field Reports, acme-corp/field-reports: an app that turns field technicians’ notes
into reports, with a workflow blob flows and a scheduler blob schedules.
The repository
- The app is three things at the root:
app.yaml,blobs/andschemas/, withREADME.mdandLICENSE. Everything else in the repository is the repository’s own. - Blobs are found by folder, never listed. Every folder under
blobs/is one blob of the app, and its name, 1 to 31 ofa-z,0-9,_and-starting with a letter or a digit, is the blob’s alias in the app, so the list cannot drift from the tree. Any other path at the root is a problem. An install names the blob it makes<installation>-<alias>, within the alias grammar of 6 to 42 ofa-z,0-9,_and-: installed asreports, Field Reports makesreports-flowsandreports-schedules. build/has the same paths. Two things differ from the sources: code and widgets are compiled into the definitions, sosrc/andwidgets/are not copied, and each manifest loses itsbuildkeys. Nothing else moves or is renamed.- The app blob holds
build/, file for file.blobhub app pushuploads what changed and deletes what is gone, and writesREADME.mdandLICENSEas the revision’s Readme and License. Git holds sources only;build/is disposable.
The file
The only template in
app.yaml is a credential’s body. Every other value is read as written, so migration.as
names an account by its alias, runner, where a manifest writes "{{ accounts.runner.id }}"
(Templates).
App
Inputs
What differs per installation is an input: an install asks for each one, and a manifest reads it as{{ inputs.<name> }}.
- A secret is read only by a credential’s
body.{{ inputs.weather_key }}works there and nowhere else. A manifest that reads a secret input is a problem:describereportsthe secret input weather_key is read only by a credential bodyafter the file and the key it found it in, and a version with that problem cannot be committed. What an app needs from a secret at run time it reads from the credential, which the account’s runs find by alias. - A secret is never kept in the record. The install request writes each credential that reads one, as it writes any credential. The record keeps only the names of the secret inputs given and never shows them, and the worker that renders the manifests never holds a secret.
- An optional input left out skips the nearest list item whose template reads it: a credential, an object, a
definition, a
limitsentry, or one module of an entry’sincludes. Withoutweather_key, Field Reports installs with noweathercredential. An item is named in the plan by its stringalias, else by the nearest aliased item around it, else by its path. An item inside another skipped item goes with it, and the plan names only the outer one (Lines).
Accounts
An app acts as service accounts of its own. An install creates each entry as a service account of the installation’s organization, named like a blob as<installation>-<alias> (reports-runner), and makes it a member of the installation’s blobs with WRITE and of
nothing else. It has no key unless a credential asks for one or an admin mints it. Uninstall retires it, revoking its
keys and credentials.
A schedule or listener that names the account with
as acts as it
(blob.yaml).
Credentials
Each credential is stored on the account, so a run the account starts finds it by alias, as How a run uses one describes.
A credential takes exactly one of the three forms:
bodyholds a secret an install was given. A body whose template reads an optional input that was left out is skipped, and the credential is not stored.account_key: truegives the app a key of its own account, such as for a workflow that calls the BlobHub API. No one copies a key into an input.writable: trueis for a secret the app keeps current itself, such as a token it refreshes: the account’s own key may replace the body. Abodybeside it is only the starting value.
Migration
migration names the workflow an install runs after it applies every manifest, on the first install and on every
upgrade, before the installation turns ready. It is an ordinary workflow the app ships in one of its workflow blobs,
and it moves the app’s data from the shape one version left to the shape the next one reads. Its contract, input and
outcomes are under The migration workflow.
The new version’s workflows may run before its migration ends, so they must accept the data of any version
upgrade.from admits. A migration may run again over data it already moved, as an install after a
failed one does, so it must be idempotent.
Upgrade
from says which installed versions may move to this version; busy says, while this version is installed, which
object asks an upgrade or an uninstall to wait. Both keys are optional.
fromis read from the version being installed, which knows the data it can read.busyis read from the version installed now, because its workflows are the ones that write the object: the installation’sversion, the one it last asked for. After a failed upgrade, when the version it was last ready at differs, that version’sbusyis read too, found by version in the app blob as an install finds one, and the first object that says busy refuses; a version whose app revision is gone is not read. A development installation reads only its own version’s, because a draft cannot be found by version.
busy names the object by three keys:
An app without
upgrade upgrades from any version and is never busy. An installation moves forward only: a target
older than the version the installation last asked for is refused. A development installation is exempt from
that rule and from from. What the platform does with each key, the checks a plan runs, is the
installer’s (The checks, in order).
describe checks upgrade with the rest of the definition, and a commit is
refused while it has a problem. Below, each is Field Reports’ 0.3.0 given an upgrade gone wrong:
A
busy.object that breaks the
alias grammar is a problem under
app.yaml: upgrade.busy.object: , followed by the grammar’s own message:
The busy object
The app’s own workflows write one session object, the oneupgrade.busy names, to say an upgrade or an uninstall
must wait. The platform reads it and knows nothing of why:
type. The platform reads only busy, until and reason, and
ignores any other key, type among them.
Under a malformed object, an upgrade or an uninstall is refused as under a busy one, with the object named:
app_busy: reports is busy: the busy object is not {busy, until, reason} (acme-corp/reports-flows, session reports, object install/busy).
A plan reads the object for an upgrade, a repeat install over a ready or failed record and an uninstall; a first
install, an install over an uninstalled record and remove read none
(the installer’s side).
- Who writes it: the app’s workflows, as runtime data, which an install leaves alone (Content and runtime). A person with WRITE on the blob can write it too, which is the escape when the app is broken.
- The app’s duty: write
busybefore its work starts, ahead of it by at least the longest upgrade the app expects (the apply and a migration of up to 15 minutes), withuntilpast the work’s end by a margin, and clear it when the work ends. - Write on change, not on every tick. Each write is an object write and a session event, so an app that rewrites the object every few minutes pays for hundreds of writes a day where a few would do.
How the format grows
- A new blob type is a folder whose
blob.yamlnames it. Nothing inapp.yamlchanges. An app holds workflow, scheduler and ONNX model blobs today. - A new input kind, credential form or template context is one name each.
- A new key: optional keys arrive under
1.x; a breaking change is2.0. The platform refuses a format version or a key it does not know, naming it, so an old platform never half-reads a new definition.

