{
  "name": "containers",
  "version": "0.1.0",
  "description": "How software is packaged and run as containers, before any orchestrator: the image that holds it, the registry that stores it, the container that runs it, the host it runs on and the storage it uses. OCI only, so Docker, Podman and containerd all fit. Rules ask that every container runs one image in one place, and that images are pinned and stored in a registry.",
  "license": "Apache-2.0",
  "publisher": "trumly",
  "namespace": "ctr",
  "tier": "verified",
  "role": "enrichment",
  "useWhen": "When the system ships as container images, run on laptops, servers, Compose or a managed container service. Add the kubernetes pack as well for a cluster.",
  "enriches": [
    "design"
  ],
  "requires": [
    "core@^1.0.0"
  ],
  "optional": [
    "kubernetes@^0.1.0"
  ],
  "includes": [],
  "sha256": "20b0e78c2e39be40377663b25ac9047d00605f0517275e13f397fb658d53cbcf",
  "files": [
    [
      "ctr--containers",
      "---\nid: ctr--containers\ntype: plane\ntitle: Containers\nfields:\n  order: 1\n  stack: Containers\n  shapes:\n    compose-project: folder up\n    container: square up\n    host: square up\n    image: document up\n    registry: cloud up\n    volume: database up\n  pack: containers@0.1.0\n---\nHow software is packaged and run as containers, before any orchestrator is involved: the image that holds it, the registry that stores it, the container that runs it, the host it runs on and the storage it uses. OCI only: Docker, Podman and containerd all fit here.\n"
    ],
    [
      "ctr--derived-reference",
      "---\nid: ctr--derived-reference\ntype: derived\ntitle: Image reference\nfields:\n  name: reference\n  label: Image reference\n  description: The full reference of an image, the name a container pulls.\n  template: '{stored-in/url}/{repository}:{tag}'\n  applies_to:\n    type: image\n  enabled: true\n  pack: containers@0.1.0\n---\nThe ops-api image gives `123456789012.dkr.ecr.eu-west-2.amazonaws.com/ops-api:1.4.2`. An image with no repository, tag or registry address is reported incomplete.\n"
    ],
    [
      "ctr--link-type-belongs-to",
      "---\nid: ctr--link-type-belongs-to\ntype: link-type\ntitle: belongs-to\nfields:\n  name: belongs-to\n  description: 'Use to say which group something is a member of: a container in a Compose project, or\n    (with the kubernetes pack) a namespace in a cluster or a workload in a namespace.'\n  inverse: has member\n  from: []\n  to: []\n  pack: containers@0.1.0\n---\n\n"
    ],
    [
      "ctr--link-type-mounts",
      "---\nid: ctr--link-type-mounts\ntype: link-type\ntitle: mounts\nfields:\n  name: mounts\n  description: 'Use to say something reads and writes durable storage: a container mounts a volume, or (with\n    the kubernetes pack) a workload mounts a persistent volume claim.'\n  inverse: mounted by\n  from:\n  - container\n  - workload\n  to:\n  - volume\n  - persistent-volume-claim\n  pack: containers@0.1.0\n---\n\n"
    ],
    [
      "ctr--link-type-packages",
      "---\nid: ctr--link-type-packages\ntype: link-type\ntitle: packages\nfields:\n  name: packages\n  description: Use to say what software an image holds. This joins the design to the container that ships\n    it.\n  inverse: packaged in\n  from:\n  - image\n  to:\n  - component\n  pack: containers@0.1.0\n---\n\n"
    ],
    [
      "ctr--link-type-runs",
      "---\nid: ctr--link-type-runs\ntype: link-type\ntitle: runs\nfields:\n  name: runs\n  description: Use to say which image a container is started from.\n  inverse: run as\n  from:\n  - container\n  to:\n  - image\n  pack: containers@0.1.0\n---\n\n"
    ],
    [
      "ctr--link-type-stored-in",
      "---\nid: ctr--link-type-stored-in\ntype: link-type\ntitle: stored-in\nfields:\n  name: stored-in\n  description: Use to say which registry holds an image.\n  inverse: stores\n  from:\n  - image\n  to:\n  - registry\n  pack: containers@0.1.0\n---\n\n"
    ],
    [
      "ctr--names",
      "---\nid: ctr--names\ntype: plane\ntitle: Container names\nfields:\n  order: 3\n  stack: Naming\n  shapes:\n    name-pattern: document\n    name-token: circle 2d\n  pack: containers@0.1.0\n---\nHow Container things are named: the patterns the containers pack ships and the tokens that fill them. Descriptive only.\n"
    ],
    [
      "ctr--pack",
      "---\nid: ctr--pack\ntype: pack\ntitle: Containers\nfields:\n  name: containers\n  namespace: ctr\n  version: 0.1.0\n  license: Apache-2.0\n  publisher: trumly\n  role: enrichment\n  enriches:\n  - design\n  description: 'How software is packaged and run as containers, before any orchestrator: the image that\n    holds it, the registry that stores it, the container that runs it, the host it runs on and the storage\n    it uses. OCI only, so Docker, Podman and containerd all fit. Rules ask that every container runs one\n    image in one place, and that images are pinned and stored in a registry.'\n  use-when: When the system ships as container images, run on laptops, servers, Compose or a managed container\n    service. Add the kubernetes pack as well for a cluster.\n  requires:\n  - core@^1.0.0\n  optional:\n  - kubernetes@^0.1.0\n---\n\n"
    ],
    [
      "ctr--rule-container-realises-design",
      "---\nid: ctr--rule-container-realises-design\ntype: rule\ntitle: Containers realise design\nfields:\n  name: Containers realise design\n  statement: Every container details a component or a datastore, or runs in a workload that does\n  severity: warn\n  applies_to:\n    type: container\n  check:\n    any_of:\n    - require_link:\n        min: 1\n        type: details\n        node_type: component\n    - require_link:\n        min: 1\n        type: details\n        node_type: datastore\n    - require_link:\n        min: 1\n        type: runs-in\n        node_type: workload\n  pack: containers@0.1.0\n---\n**Why:** a container that realises nothing in the design is something that runs for no stated reason.\n\n**Fix:** add a `details` link to the component it runs or the datastore it is. A container run by a Kubernetes workload takes its meaning from the workload instead.\n"
    ],
    [
      "ctr--rule-container-root-advisory",
      "---\nid: ctr--rule-container-root-advisory\ntype: rule\ntitle: Root needs a reason\nfields:\n  name: Root needs a reason\n  statement: Containers should not run as root unless there is a reason\n  severity: info\n  applies_to:\n    type: container\n    runs-as-root: true\n  pack: containers@0.1.0\n---\nAdvisory only. Some containers, such as log agents that read host files, genuinely need root. This flags them so the reason is a conscious decision; record it in the node's body.\n"
    ],
    [
      "ctr--rule-container-runs-image",
      "---\nid: ctr--rule-container-runs-image\ntype: rule\ntitle: Containers run one image\nfields:\n  name: Containers run one image\n  statement: Every container runs exactly one image\n  severity: error\n  applies_to:\n    type: container\n  check:\n    require_link:\n      max: 1\n      min: 1\n      node_type: image\n      type: runs\n  pack: containers@0.1.0\n---\n**Why:** a container is an instance of an image. Without one there is nothing to run.\n\n**Fix:** add a `runs` link from the container to its image.\n"
    ],
    [
      "ctr--rule-container-runs-in-one-place",
      "---\nid: ctr--rule-container-runs-in-one-place\ntype: rule\ntitle: Containers have one home\nfields:\n  name: Containers have one home\n  statement: Every container runs in exactly one place\n  severity: error\n  applies_to:\n    type: container\n  check:\n    require_link:\n      max: 1\n      min: 1\n      type: runs-in\n  pack: containers@0.1.0\n---\n**Why:** a container with no home never starts, and one with two homes is really two containers. Model one container per place the image runs.\n\n**Fix:** add one `runs-in` link to a host or a cloud service (or a workload when the kubernetes pack is added).\n"
    ],
    [
      "ctr--rule-image-stored-in-registry",
      "---\nid: ctr--rule-image-stored-in-registry\ntype: rule\ntitle: Images live in a registry\nfields:\n  name: Images live in a registry\n  statement: Every image is stored in a registry\n  severity: warn\n  applies_to:\n    type: image\n  check:\n    require_link:\n      min: 1\n      node_type: registry\n      type: stored-in\n  pack: containers@0.1.0\n---\n**Why:** an image that is not in a registry can only run on the machine that built it.\n\n**Fix:** add a `stored-in` link to a registry.\n"
    ],
    [
      "ctr--rule-image-tag-pinned",
      "---\nid: ctr--rule-image-tag-pinned\ntype: rule\ntitle: Image tags are pinned\nfields:\n  name: Image tags are pinned\n  statement: No image uses the latest tag\n  severity: warn\n  applies_to:\n    type: image\n  check:\n    compare_fields:\n      left: tag\n      op: '!='\n      value: latest\n  pack: containers@0.1.0\n---\n**Why:** `latest` moves, so you cannot say what is running or roll back to it.\n\n**Fix:** use a specific version tag such as `1.4.2`.\n"
    ],
    [
      "ctr--type-compose-project",
      "---\nid: ctr--type-compose-project\ntype: type\ntitle: compose-project\nfields:\n  name: compose-project\n  plane: ctr--containers\n  description: Use for a group of containers started together on one host from a single Compose file,\n    such as an app, its database and its cache.\n  fields:\n  - name: file\n    kind: text\n    label: Compose file\n    required: true\n  - name: purpose\n    kind: choice\n    values:\n    - development\n    - testing\n    - production\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: containers@0.1.0\n---\n**Ask:** Which Compose file? Is it for development, testing or production?\n\nIts containers join it with `belongs-to`; it runs on a host with `runs-in`.\n"
    ],
    [
      "ctr--type-container",
      "---\nid: ctr--type-container\ntype: type\ntitle: container\nfields:\n  name: container\n  plane: ctr--containers\n  description: 'Use for one running instance of an image: the process, its limits and its ports. Model\n    one per place the image runs, such as your laptop, a Kubernetes workload or a managed container service.'\n  fields:\n  - name: port\n    kind: number\n    label: Listening port\n  - name: cpu-limit\n    kind: text\n  - name: memory-limit\n    kind: text\n  - name: runs-as-root\n    kind: boolean\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: containers@0.1.0\n---\n**Ask:** Which image does it run, and where? What are its limits? Does it need root?\n\nLink it to its image with `runs` and to the one place it runs with `runs-in`: a host, a cloud service, or a workload when the kubernetes pack is added.\n"
    ],
    [
      "ctr--type-host",
      "---\nid: ctr--type-host\ntype: type\ntitle: host\nfields:\n  name: host\n  plane: ctr--containers\n  description: 'Use for a single machine that runs containers directly, with no orchestrator: a developer\n    laptop, a build server or a small VM running Docker.'\n  fields:\n  - name: runtime\n    kind: choice\n    label: Container engine\n    required: true\n    values:\n    - docker\n    - podman\n    - containerd\n    - other\n  - name: kind\n    kind: choice\n    values:\n    - laptop\n    - server\n    - virtual-machine\n  - name: os\n    kind: text\n    label: Operating system\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: containers@0.1.0\n---\n**Ask:** Which container engine? Is it a laptop, a server or a VM?\n\nContainers and Compose projects point at it with `runs-in`.\n"
    ],
    [
      "ctr--type-image",
      "---\nid: ctr--type-image\ntype: type\ntitle: image\nfields:\n  name: image\n  plane: ctr--containers\n  description: Use for a packaged, versioned build of your software that can be started as a container.\n    Build it once, run it in many places. One image per deployable piece of software.\n  fields:\n  - name: repository\n    kind: text\n    label: Repository name\n  - name: tag\n    kind: text\n    label: Version tag\n    required: true\n  - name: digest\n    kind: text\n    label: Content digest\n  - name: base-image\n    kind: text\n    label: Base image\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: containers@0.1.0\n---\n**Ask:** What software does this package? Which version? Where is it stored?\n\n**Watch for:** the `latest` tag (you cannot tell what is running) and secrets baked into the image (keep them in a secret).\n\nLink it to the thing it holds with `packages`, and to its registry with `stored-in`.\n"
    ],
    [
      "ctr--type-registry",
      "---\nid: ctr--type-registry\ntype: type\ntitle: registry\nfields:\n  name: registry\n  plane: ctr--containers\n  description: Use for the place images are stored and pulled from. Every image that runs somewhere other\n    than the machine that built it needs one.\n  fields:\n  - name: url\n    kind: text\n    label: Address\n  - name: visibility\n    kind: choice\n    required: true\n    values:\n    - private\n    - public\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: containers@0.1.0\n---\n**Ask:** Who can pull from it? Who can push to it? Is it a managed cloud service?\n\nIf it is a managed service (Amazon ECR, Azure Container Registry, Docker Hub), link it to that service with `runs-in`.\n"
    ],
    [
      "ctr--type-volume",
      "---\nid: ctr--type-volume\ntype: type\ntitle: volume\nfields:\n  name: volume\n  plane: ctr--containers\n  description: Use for storage a container reads or writes outside its own disposable filesystem, such\n    as a database folder or uploaded files.\n  fields:\n  - name: kind\n    kind: choice\n    required: true\n    values:\n    - named\n    - bind\n    - tmpfs\n  - name: size\n    kind: text\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: containers@0.1.0\n---\n**Ask:** What is kept here, and must it survive the container being replaced?\n\nContainers attach it with `mounts`.\n"
    ],
    [
      "examples/ops-api-containers/acceptance-criterion-jobs-listed",
      "---\nid: acceptance-criterion-jobs-listed\ntype: acceptance-criterion\ntitle: Jobs listed\nplane: def--requirements\nfields:\n  given: A job has just changed state\n  when: Ops staff open the job list\n  then: The job and its new state are shown within 60 seconds\n  method: test\n---\n"
    ],
    [
      "examples/ops-api-containers/actor-ops-staff",
      "---\nid: actor-ops-staff\ntype: actor\ntitle: Ops staff\nplane: def--capabilities\nlinks:\n- type: uses\n  to: component-ops-api\n---\n"
    ],
    [
      "examples/ops-api-containers/assumption-job-volume",
      "---\nid: assumption-job-volume\ntype: assumption\ntitle: Job volume stays modest\nplane: def--intent\nfields:\n  statement: No more than 5,000 jobs run each night.\n  how-to-check: Count the nightly jobs for a month\n  owner: Platform\n  state: open\n---\n"
    ],
    [
      "examples/ops-api-containers/capability-view-job-status",
      "---\nid: capability-view-job-status\ntype: capability\ntitle: View job status\nplane: def--capabilities\nfields:\n  statement: view the current status of every job\n  scope: in\n  priority: must\n  status: proposed\nlinks:\n- type: performed-by\n  to: actor-ops-staff\n- type: derives-from\n  to: goal-timely-visibility\n- type: refers-to\n  to: concept-job\n- type: relies-on\n  to: assumption-job-volume\n---\n"
    ],
    [
      "examples/ops-api-containers/cloud-provider-aws",
      "---\nid: cloud-provider-aws\ntype: cloud-provider\ntitle: AWS\nplane: hst--hosting\nfields:\n  kind: public-cloud\n  account: ops-production\nlinks:\n- type: details\n  to: environment-production\n---\nThe account that hosts production.\n"
    ],
    [
      "examples/ops-api-containers/cloud-service-apprunner",
      "---\nid: cloud-service-apprunner\ntype: cloud-service\ntitle: AWS App Runner\nplane: hst--hosting\nfields:\n  service: AWS App Runner\n  kind: compute\n  region: eu-west-2\nlinks:\n- type: runs-in\n  to: cloud-provider-aws\n- type: details\n  to: component-ops-api\n---\nA managed container service with no cluster to look after. Used for a lightweight preview copy of the API.\n"
    ],
    [
      "examples/ops-api-containers/cloud-service-ecr",
      "---\nid: cloud-service-ecr\ntype: cloud-service\ntitle: Amazon ECR\nplane: hst--hosting\nfields:\n  service: Amazon ECR\n  kind: storage\n  region: eu-west-2\nlinks:\n- type: runs-in\n  to: cloud-provider-aws\n- type: details\n  to: component-ops-api\n---\nStores the container images for the API and the cache.\n"
    ],
    [
      "examples/ops-api-containers/cloud-service-fargate",
      "---\nid: cloud-service-fargate\ntype: cloud-service\ntitle: ECS Fargate\nplane: hst--hosting\nfields:\n  service: ECS Fargate\n  kind: compute\n  region: eu-west-2\nlinks:\n- type: runs-in\n  to: cloud-provider-aws\n- type: details\n  to: component-ops-api\n---\nRuns the API service.\n"
    ],
    [
      "examples/ops-api-containers/cloud-service-rds",
      "---\nid: cloud-service-rds\ntype: cloud-service\ntitle: RDS for PostgreSQL\nplane: hst--hosting\nfields:\n  service: RDS for PostgreSQL\n  kind: database\n  region: eu-west-2\nlinks:\n- type: runs-in\n  to: cloud-provider-aws\n- type: details\n  to: datastore-ops-db\n---\nManaged database that holds the operations data.\n"
    ],
    [
      "examples/ops-api-containers/component-ops-api",
      "---\nid: component-ops-api\ntype: component\ntitle: Ops API\nplane: dsn--design\nfields:\n  kind: service\n  owner: Platform\n  status: planned\nlinks:\n- type: satisfies\n  to: requirement-list-jobs\n- type: writes\n  to: datastore-ops-db\n- type: runs-in\n  to: environment-production\n- type: exposes\n  to: interface-ops-api\n---\n\nServes the list of jobs and their status to operations staff.\n"
    ],
    [
      "examples/ops-api-containers/compose-project-ops-local",
      "---\nid: compose-project-ops-local\ntype: compose-project\ntitle: Local development stack\nplane: ctr--containers\nfields:\n  file: compose.yaml\n  purpose: development\nlinks:\n- type: runs-in\n  to: host-dev-laptop\n---\nThe API as developers run it on their own machine. Not used in production.\n"
    ],
    [
      "examples/ops-api-containers/concept-job",
      "---\nid: concept-job\ntype: concept\ntitle: Job\nplane: def--capabilities\nfields:\n  definition: A scheduled piece of work run for a customer.\n---\n"
    ],
    [
      "examples/ops-api-containers/consequence-one-engine",
      "---\nid: consequence-one-engine\ntype: consequence\ntitle: Vertical scaling\nplane: gov--decisions\nfields:\n  effect: negative\n---\nThe database scales up before it scales out, so growth in jobs costs more.\n"
    ],
    [
      "examples/ops-api-containers/constraint-uk-eu-data",
      "---\nid: constraint-uk-eu-data\ntype: constraint\ntitle: Data stays in UK/EU\nplane: def--intent\nfields:\n  statement: Customer data stays in the UK or the EU.\n  kind: legal\n  source: Customer contracts\n  status: proposed\nlinks:\n- type: governs\n  to: capability-view-job-status\n---\n"
    ],
    [
      "examples/ops-api-containers/container-ops-api-apprunner",
      "---\nid: container-ops-api-apprunner\ntype: container\ntitle: API on App Runner\nplane: ctr--containers\nfields:\n  port: 8080\n  runs-as-root: false\nlinks:\n- type: details\n  to: component-ops-api\n- type: runs\n  to: image-ops-api\n- type: runs-in\n  to: cloud-service-apprunner\n---\nThe same image run on a managed container service: no cluster to look after, fewer controls. Used for preview copies.\n"
    ],
    [
      "examples/ops-api-containers/container-ops-api-local",
      "---\nid: container-ops-api-local\ntype: container\ntitle: API on a laptop\nplane: ctr--containers\nfields:\n  port: 8080\n  runs-as-root: false\nlinks:\n- type: details\n  to: component-ops-api\n- type: runs\n  to: image-ops-api\n- type: runs-in\n  to: host-dev-laptop\n- type: belongs-to\n  to: compose-project-ops-local\n- type: mounts\n  to: volume-ops-local-data\n---\nThe same image as production, started by Compose for local development.\n"
    ],
    [
      "examples/ops-api-containers/convention-short-titles",
      "---\nid: convention-short-titles\ntype: convention\ntitle: Short titles\nplane: abt--about\nlinks:\n- type: describes\n  to: overview\n---\nKeep a title to a short label and put the long text in the description.\n"
    ],
    [
      "examples/ops-api-containers/datastore-ops-db",
      "---\nid: datastore-ops-db\ntype: datastore\ntitle: Ops db\nplane: dsn--design\nfields:\n  kind: relational\n  owner: Platform\n---\n\nHolds every job and its latest status.\n"
    ],
    [
      "examples/ops-api-containers/decision-option-document-store",
      "---\nid: decision-option-document-store\ntype: decision-option\ntitle: Managed document store\nplane: gov--decisions\nfields:\n  chosen: false\n  summary: Documents, managed\n---\nScales out easily but the reports would need joins in code.\n"
    ],
    [
      "examples/ops-api-containers/decision-option-managed-postgres",
      "---\nid: decision-option-managed-postgres\ntype: decision-option\ntitle: Managed PostgreSQL\nplane: gov--decisions\nfields:\n  chosen: true\n  summary: Relational, managed\n---\nJoins and constraints come for free; scaling is mostly vertical.\n"
    ],
    [
      "examples/ops-api-containers/decision-use-postgres",
      "---\nid: decision-use-postgres\ntype: decision\ntitle: Database choice\nplane: gov--decisions\nfields:\n  status: accepted\n  accepted-by: Mat\n  accepted-on: '2026-11-03'\n  review-by: '2027-05-01'\nlinks:\n- type: considers\n  to: decision-option-managed-postgres\n- type: considers\n  to: decision-option-document-store\n- type: has-consequence\n  to: consequence-one-engine\n- type: governs\n  to: datastore-ops-db\n- type: derives-from\n  to: requirement-list-jobs\n- type: complies-with\n  to: principle-prefer-managed\n- type: relies-on\n  to: assumption-job-volume\n---\nUse a managed relational database. Job data is highly structured and the reports need joins.\n"
    ],
    [
      "examples/ops-api-containers/environment-production",
      "---\nid: environment-production\ntype: environment\ntitle: Production\nplane: dsn--design\nfields:\n  kind: production\n---\n\nThe live system that operations staff use.\n"
    ],
    [
      "examples/ops-api-containers/example",
      "---\nid: example\ntype: example\ntitle: The ops API in containers\nfields:\n  title: The ops API in containers\n  description: 'One image for the operations API, stored in Amazon ECR and run two ways: on a developer\n    laptop with Compose, and on AWS App Runner for previews.'\n  use: starter\n  requires:\n  - containers\n  - hosting\n  - core\n---\n\n"
    ],
    [
      "examples/ops-api-containers/goal-timely-visibility",
      "---\nid: goal-timely-visibility\ntype: goal\ntitle: Timely ops visibility\nplane: def--intent\nfields:\n  statement: Operations staff see the state of every job within a minute.\n  status: proposed\nlinks:\n- type: measured-by\n  to: metric-status-freshness\n---\n"
    ],
    [
      "examples/ops-api-containers/host-dev-laptop",
      "---\nid: host-dev-laptop\ntype: host\ntitle: Developer laptop\nplane: ctr--containers\nfields:\n  runtime: docker\n  kind: laptop\n  os: macOS\n---\nWhere developers run the API locally against the same image that ships to production.\n"
    ],
    [
      "examples/ops-api-containers/image-ops-api",
      "---\nid: image-ops-api\ntype: image\ntitle: ops-api image\nplane: ctr--containers\nfields:\n  repository: ops-api\n  tag: 1.4.2\n  base-image: node:22-slim\nlinks:\n- type: packages\n  to: component-ops-api\n- type: stored-in\n  to: registry-ecr\n---\nThe operations API, built once and run on laptops and in the managed app service.\n"
    ],
    [
      "examples/ops-api-containers/image-ops-cache",
      "---\nid: image-ops-cache\ntype: image\ntitle: Cache image\nplane: ctr--containers\nfields:\n  repository: ops-cache\n  tag: '7.2'\n  base-image: none (vendor image)\nlinks:\n- type: stored-in\n  to: registry-ecr\n---\nThird-party cache server, mirrored into our own registry so deployments do not depend on a public one.\n"
    ],
    [
      "examples/ops-api-containers/increment-live-status",
      "---\nid: increment-live-status\ntype: increment\ntitle: Live job status\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n- type: enables\n  to: capability-view-job-status\n---\n\nThe first slice: staff can see live job status.\n"
    ],
    [
      "examples/ops-api-containers/interface-ops-api",
      "---\nid: interface-ops-api\ntype: interface\ntitle: Ops API\nplane: dsn--design\nfields:\n  protocol: http\n---\nThe boundary operations tools call to read job status.\n"
    ],
    [
      "examples/ops-api-containers/metric-status-freshness",
      "---\nid: metric-status-freshness\ntype: metric\ntitle: Job status age\nplane: def--intent\nfields:\n  kind: success\n  unit: seconds\n  direction: lower-is-better\n  target: 60\n  how-measured: Age of the newest status for each job, sampled every minute\n---\n"
    ],
    [
      "examples/ops-api-containers/overview",
      "---\nid: overview\ntype: overview\ntitle: Ops API\nplane: abt--about\nfields:\n  purpose: A status API so operations staff can see what every job is doing.\n  audience: The build team and operations staff\n  owner: Platform\n  stage: design\nlinks:\n- type: starts-at\n  to: goal-timely-visibility\n---\n"
    ],
    [
      "examples/ops-api-containers/principle-prefer-managed",
      "---\nid: principle-prefer-managed\ntype: principle\ntitle: Prefer managed services\nplane: gov--decisions\nfields:\n  statement: Prefer managed services over running our own.\n  status: accepted\n  accepted-by: Mat\n  accepted-on: '2026-11-03'\n---\nWe would rather pay for a managed service than operate one ourselves.\n"
    ],
    [
      "examples/ops-api-containers/registry-ecr",
      "---\nid: registry-ecr\ntype: registry\ntitle: Container registry\nplane: ctr--containers\nfields:\n  url: 123456789012.dkr.ecr.eu-west-2.amazonaws.com\n  visibility: private\nlinks:\n- type: runs-in\n  to: cloud-service-ecr\n---\nPrivate registry for every image the system ships. Provided by Amazon ECR.\n"
    ],
    [
      "examples/ops-api-containers/requirement-list-jobs",
      "---\nid: requirement-list-jobs\ntype: requirement\ntitle: List jobs\nplane: def--requirements\nfields:\n  statement: The system shall list every job with its current status.\n  kind: functional\n  priority: must\n  status: proposed\nlinks:\n  - type: verified-by\n    to: acceptance-criterion-jobs-listed\n  - type: derives-from\n    to: capability-view-job-status\n---\n"
    ],
    [
      "examples/ops-api-containers/risk-job-volume-growth",
      "---\nid: risk-job-volume-growth\ntype: risk\ntitle: Job volume growth\nplane: pln--plan\nfields:\n  likelihood: medium\n  impact: high\n  mitigation: Recount nightly jobs every month\n  state: open\nlinks:\n- type: owned-by\n  to: team-platform\n- type: about\n  to: assumption-job-volume\n- type: arises-from\n  to: assumption-job-volume\n---\nIf job volume grows past the assumption, the database may need a bigger plan.\n"
    ],
    [
      "examples/ops-api-containers/team-dev",
      "---\nid: team-dev\ntype: team\ntitle: Dev\nplane: pln--plan\nfields:\n  kind: agent\n  focus: Implements work packages for review\n---\n\nAn AI agent that writes code and hands it to people to review.\n"
    ],
    [
      "examples/ops-api-containers/team-platform",
      "---\nid: team-platform\ntype: team\ntitle: Platform\nplane: pln--plan\nfields:\n  kind: human\n  focus: Builds and runs the platform\n---\n\nThe people who own the system.\n"
    ],
    [
      "examples/ops-api-containers/volume-ops-local-data",
      "---\nid: volume-ops-local-data\ntype: volume\ntitle: Local API data\nplane: ctr--containers\nfields:\n  kind: named\n  size: 1GB\n---\nScratch data for local development. Safe to delete.\n"
    ],
    [
      "examples/ops-api-containers/work-package-build-status-api",
      "---\nid: work-package-build-status-api\ntype: work-package\ntitle: Build status API\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n  - type: owned-by\n    to: team-dev\n  - type: reviewed-by\n    to: team-platform\n  - type: delivers\n    to: component-ops-api\n  - type: part-of\n    to: increment-live-status\n---\n\nBuild the service that lists job status.\n"
    ],
    [
      "patterns/naming-image-repositories/pattern",
      "---\nid: pattern\ntype: pattern\ntitle: Naming – Image repositories\nfields:\n  title: Naming – Image repositories\n  description: Image repositories named after the design component they package (ops-api), with release-version\n    tags that are never latest.\n  use: starter\n  requires:\n  - containers\n  - naming\n  root: repos\n  prefix: repo\n---\n\n"
    ],
    [
      "patterns/naming-image-repositories/repos",
      "---\nid: repos\ntype: name-pattern\ntitle: Image repositories\nplane: ctr--names\nfields:\n  scope: Container image repository names and tags\n  pattern: '{title}'\n  example: ops-api\n  case: kebab\n  max-length: 128\nlinks:\n- type: describes\n  to: ctr--type-image\n---\nName the repository after the design component the image packages, and set it in the image's `repository` field. Tags are the release version, never latest; add the short commit (1.4.2-a1b2c3d) for builds between releases. One image for every environment: promote the same tag rather than rebuilding per environment. Guidance only: the repository field is the name.\n"
    ]
  ]
}
