Skip to content

Status vocabulary is guarded in the summary and raw in the node counts

Two counters in the same payload count the same jobs on different terms, and a consumer that reads one as if it were the other draws the wrong conclusion.

The rule

Normative: this is the rule
  1. STORE-11 forbids persisting a job status outside PIPE-10.
  2. A read can still meet one, in a record it did not write, and this rule says only how such a value is reported: it permits no implementation to persist one.
  3. In job_status_summary and the job API's status_summary, total MUST count every job.
  4. A bucket MUST be incremented only for a persisted value that is a job status of PIPE-10.
  5. The buckets can therefore sum to less than total.
  6. A value outside the vocabulary MUST NOT appear as a key there.
  7. Each read reports the distinct unrecognised values once.
  8. The per-node node_statuses[*].status_counts is not guarded: it MUST count persisted values as they are.
  9. A value outside the vocabulary MUST therefore appear both as a key there and as node_statuses[*].status.

What it means

total and the per-status buckets in job_status_summary are answering two different questions from the same payload: total counts every job that exists, full stop, while a bucket only ever increments for a persisted value that is actually part of the vocabulary PIPE-10 lists. No implementation may persist any other value (STORE-11), so this is a reader's tolerance, not a writer's licence: a reader can still meet a value it does not know, in a record written by an implementation that broke that rule. Such a value is still counted in total, but claims no bucket of its own, so the buckets can sum to less than total; a reader who sees them fall short has found a record some writer got wrong, not a fault in the summary. That guard is scoped to the summary alone. The per-node status counts sitting in the very same payload count the raw persisted value with no such filter, so the identical unrecognised value that never appears as a key in the summary shows up there as its own key, and as the node's own reported status.

Example

A job's persisted status is a value the vocabulary has never defined:

A persisted job status outside the vocabularypersisted
"from_the_future"

On the next read of the full document it is the node's status and a key in the node's status_counts, and it is not a key in job_status_summary — the job counts toward total there and claims no bucket.

Why

Recorded under OPEN-25, OPEN-55.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · PIPE-3 · changed in spec 1.1