---
id: TST-PFM-OPS-006
title: Job root status model
kind: unit
product_area: platform
module: operations
revision: 1
status: draft
source_sha:
  macroservice-libraries: 54536a441935c6e09fdb7f96f0bec71c52ba4e03
repository: macroservice-libraries
files:
  - packages/jobs/src/engine/job-root-status-model.spec.ts
implements:
  - ATS-PFM-OPS-001-13
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
estimate_basis: Scheduling estimate only; no duration is measured during this documentation pass.
isolation: 'Process-local inputs, registries and test adapters.'
evidence:
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts at
    54536a441935c6e09fdb7f96f0bec71c52ba4e03: existing suite body, setup, assertions and cleanup.
binding_note: This existing engineering suite is registered without claiming a complete specification scenario.
assertion_sources:
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#moves a pending job to
    running and records the step it reported
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#keeps a running job
    running and records the step it reported
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#discards a step
    transition against a succeeded job, leaving the job and its event log untouched
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#discards a step
    transition against a failed job, leaving the job and its event log untouched
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#discards a step
    transition against a cancelled job, leaving the job and its event log untouched
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#settles a pending job
    failed with the step’s own failure summary
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#settles a running job
    failed with the step’s own failure summary
  - >-
    macroservice-libraries:packages/jobs/src/engine/job-root-status-model.spec.ts#discards a step failure
    against a succeeded job, leaving its outcome and summary as they were
---

# Job root status model

## Verification Boundary

This suite exercises background work through its declared function or structural boundary. Its implementation is present at the pinned source revision, and this register records no execution result.

## What This Suite Proves

The checks enumerate root commands against every starting status and inspect accepted outcomes, settlement time, progress and unchanged final records. The scenario bindings name the attributed outcomes.

## What It Does Not Prove

Local execution does not establish deployed infrastructure, live commercial-provider configuration or authorization-cache completion. Registration and an implemented suite do not establish a passing result.

## Real Dependencies and Test Doubles

The production logic under assertion is real. Storage uses the suite’s in-memory records rather than a durable database. Execution clients or probes use the suite’s controlled response port. Boundary cases control the clock.

## Must Not Be Doubled

The production function, registry or builder under assertion remains real.
