Skip to main content
Every folder under an app’s blobs/ holds a blob.yaml: the manifest of one blob, which says what the blob holds once the app is installed. The folder’s name is the blob’s alias in the app (app.yaml). One format serves every blob type: the same two header lines, then the blob type’s id, then what that type defines.
  • The platform refuses a format version or a key it does not know, naming it, so an old platform never half-reads a new manifest. source is not a key of a definition or an object. A definition that names its file with source is two problems: blobs/flows/blob.yaml: definitions[0].source: unknown key; the keys here are alias, category, file, as and blobs/flows/blob.yaml: definitions[0].file: required. An object’s source is two as well: blobs/flows/blob.yaml: sessions[0].objects[0].source: unknown key; the keys here are alias, value, file, write, then blobs/flows/blob.yaml: sessions[0].objects[0]: needs exactly one of value and file.
  • Every string leaf is a template, rendered at install with the names inputs, blobs, accounts and installation (Templates). The files a manifest names, an object’s file among them, are copied as they are.
  • limits is the package’s. The app’s definition reader reads it, and no blob type ever sees it (Limits).
  • build is the CLI’s. It says what blobhub app build compiles into a definition, and the platform never sees it: build/ holds each manifest without its build keys (Manifest).
  • target is refused inside an app. Outside an app the same file deploys a plain blob, where target: {blob, revision} says which; inside one the installation decides (Manifest).

Limits

limits lists what a blob needs of its organization’s limits. Each entry names a limit of the catalog by its id and gives one bound; Field Reports’ flows declares one (Workflow). Like the rest of the manifest it is rendered at install, so a bound may be a template; an id may not.
  • A retention takes at_least only. Lowering a retention deletes executions the app never owned, so at_most on a retention limit, such as blobhub.compute.workflow.execution_retention_days, is refused when the definition is read. A bound that assumes the organization’s retention says so in a comment and in the app’s README. Field Reports’ at_least: 400 in flows is a year of nightly runs and some by hand, as its comment says: it assumes the organization keeps a year of runs. acme-corp keeps executions forever, so there the session reports reaches 400 after about a year, which Field Reports’ README states.
  • One key per entry, and one entry per id in a file. A bound is a whole number of at least 0 in the limit’s unit (a count, bytes, seconds or days), or a template that renders to one; includes takes a list of module names.
  • Which ids: those in the catalog’s platform group or in the folder’s own type’s group. A workflow folder may name blobhub.compute.workflow.running_executions_per_org; it may not name a scheduler limit. platform.orgs_per_user is set per user, so no app can require it.
  • Not declarable: the <type id>.enabled flags, which every install checks. A fixed limit may be named, and is checked against its fixed value.
  • Where it is evaluated follows from the limit, not from the folder. A limit whose levels stop at the organization, as platform.blobs_per_org and blobhub.compute.workflow.running_executions_per_org, is evaluated at the organization; any other at the folder’s blob, as the install will leave it.
  • An install checks requirements and never raises, lowers or copies a limit. BlobHub raises one when the plan’s problem is sent to support@blobhub.io (Changing a limit).
What a plan does with each requirement is the installer’s: Requirements and the plan’s limits.

When it is checked

describe checks each declaration, so blobhub app push prints its problems and blobhub app commit refuses a version that has any. Each problem names the file and the entry. Below, each is one of Field Reports’ files with an entry added or changed, and gone wrong: room on a minimum ends so use at_most instead. At plan, a problem of a manifest is prefixed invalid_app: , as in invalid_app: blobs/flows/blob.yaml: limits[0]: blobhub.compute.workflow.execution_retention_days is a retention; use at_least, because a lower retention deletes executions. A templated bound is checked once it renders with the install’s inputs, at plan. Were flows to take its modules from an input, as includes: "{{ inputs.config.modules }}", a value that is not a list of module names is refused: invalid_app: blobs/flows/blob.yaml: limits[1].includes renders to "requests", not a list of module names. A plain blob’s deploy, blobhub workflow deploy or blobhub scheduler deploy of the same file, applies no requirements: it prints limits are checked by an install only and deploys.

Workflow

definitions lists the revision’s definitions of the four categories: A listener otherwise acts as whoever last uploaded it, which in an app is the admin who installed it, so an app names an account with as. Its own templates, the {{ event.… }} of its target, are in the file it names, which an install copies untouched, so they render when it fires. sessions lists the sessions an install makes sure exist, and the objects it writes in them: An object has value or file, not both and not neither: blobhub app build refuses it with MANIFEST_INVALID. An object whose value reads an optional input that was left out is skipped.

Scheduler

schedules lists the blob’s schedules. Each holds a schedule’s own fields, as Create Schedule takes them and the Scheduler overview describes, and two more:
  • A schedule otherwise fires as whoever created it, which in an app is the admin who installed it, so an app names an account with as.
  • enabled is read when the schedule is created. Once it exists, whether it is on is runtime, and an upgrade leaves it as it is.
  • The target names a blob of the installation by {{ blobs.flows.id }}, so an install applies flows before schedules: blobs are applied in the order their templates need.

ONNX model

Were Field Reports to carry a model, say one that sorts notes by kind, a third folder blobs/classifier/ would hold the model file beside its manifest:
blobhub app build copies the model file into build/ as it is: nothing compiles it.

Content and runtime

An install applies each manifest to its blob: the blob’s type makes the blob’s content what the manifest says, creating, updating and deleting, and leaves the blob’s runtime alone. Applying converges, so an install run again is safe. What is content and what is runtime is the type’s to say: Each type checks its manifest when a version is committed, with stand-in values for the templates, and again before an install. A type reports the overridable limits its content needs as requirements, such as how many definitions a workflow manifest leaves, never as a problem at the catalog’s defaults; a fixed limit the content breaks, or a malformed document, stays a problem (Requirements). So does a count no override can allow: describe reports a workflow manifest holding more definitions of a category, or more objects in one session, than the limit’s most permissive value, and a commit refuses it with 400 invalid_app:
The bounds today are 100 for blobhub.compute.workflow.listeners_per_revision and 10000 for blobhub.compute.workflow.session_objects_per_session. A plan that meets such a count, in a draft or in a version committed before a bound was lowered, answers it as an unmet row (When a requirement is not met). What an installing admin must see, such as a widget’s permissions, joins the plan’s lines, which an install shows for confirmation.