{
  "name": "api",
  "version": "0.3.2",
  "description": "An API as a contract: resources and endpoints, the schemas they accept and return, the errors they raise and how each is secured. Rules refuse an endpoint with no response, no error cases or no stated security.",
  "license": "Apache-2.0",
  "publisher": "trumly",
  "namespace": "api",
  "tier": "verified",
  "role": "enrichment",
  "useWhen": "When the system offers an API and you need its contract: the resources, endpoints, schemas, errors and how each is secured.",
  "enriches": [
    "interface"
  ],
  "requires": [
    "core@^1.0.0"
  ],
  "optional": [
    "links@^1.0.0",
    "dns@^0.4.0"
  ],
  "includes": [],
  "sha256": "919b3678b568791115005d63e5910d90dd0628fafafbd3ce295c92a975c2b06e",
  "files": [
    [
      "api--contract",
      "---\nid: api--contract\ntype: plane\ntitle: Contract\nfields:\n  order: 2\n  pack: api@0.3.2\n  stack: API\n---\n\nWhat crosses the wire: schemas, errors and how callers prove who they are.\n"
    ],
    [
      "api--derived-operation",
      "---\nid: api--derived-operation\ntype: derived\ntitle: Endpoint operation\nfields:\n  name: operation\n  label: Endpoint operation\n  description: The method and path of an endpoint, such as GET /jobs.\n  template: '{method} {path}'\n  applies_to:\n    type: api-endpoint\n  enabled: true\n  pack: api@0.3.2\n---\nA fact about the endpoint itself. A path's own braces (/jobs/{id}/status) are a value, not part of the template, so they come through as written.\n"
    ],
    [
      "api--derived-url",
      "---\nid: api--derived-url\ntype: derived\ntitle: Endpoint address\nfields:\n  name: url\n  label: Endpoint address\n  description: The full address of an endpoint, one for each hostname that serves it.\n  template: https://{served-by/runs-in/^serves/title}{path}\n  applies_to:\n    type: api-endpoint\n  enabled: true\n  pack: api@0.3.2\n---\nFollows the serving component to the environments it runs in, then the hostnames that serve them: one address per hostname. Needs the links and dns packs (`runs-in`, `serves`); without them the address is reported incomplete.\n"
    ],
    [
      "api--link-type-accepts",
      "---\nid: api--link-type-accepts\ntype: link-type\ntitle: accepts\nfields:\n  name: accepts\n  description: The endpoint takes this body.\n  inverse: accepted by\n  from:\n  - api-endpoint\n  to:\n  - api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--link-type-fails-with",
      "---\nid: api--link-type-fails-with\ntype: link-type\ntitle: fails-with\nfields:\n  name: fails-with\n  description: The endpoint can fail this way.\n  inverse: raised by\n  from:\n  - api-endpoint\n  to:\n  - api-error\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--link-type-operates-on",
      "---\nid: api--link-type-operates-on\ntype: link-type\ntitle: operates-on\nfields:\n  name: operates-on\n  description: The endpoint works on this resource.\n  inverse: operated on by\n  from:\n  - api-endpoint\n  to:\n  - api-resource\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--link-type-payload",
      "---\nid: api--link-type-payload\ntype: link-type\ntitle: payload\nfields:\n  name: payload\n  description: The event carries this body.\n  inverse: payload of\n  from:\n  - api-event\n  to:\n  - api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--link-type-returns",
      "---\nid: api--link-type-returns\ntype: link-type\ntitle: returns\nfields:\n  name: returns\n  description: The endpoint answers with this body.\n  inverse: returned by\n  from:\n  - api-endpoint\n  to:\n  - api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--link-type-secured-by",
      "---\nid: api--link-type-secured-by\ntype: link-type\ntitle: secured-by\nfields:\n  name: secured-by\n  description: Callers must satisfy this to use the endpoint.\n  inverse: secures\n  from:\n  - api-endpoint\n  - api-event\n  to:\n  - api-auth\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--link-type-served-by",
      "---\nid: api--link-type-served-by\ntype: link-type\ntitle: served-by\nfields:\n  name: served-by\n  description: The component that implements this endpoint.\n  inverse: serves\n  from:\n  - api-endpoint\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--pack",
      "---\nid: api--pack\ntype: pack\ntitle: API\nfields:\n  name: api\n  namespace: api\n  version: 0.3.2\n  description: 'An API as a contract: resources and endpoints, the schemas they accept and return, the\n    errors they raise and how each is secured. Rules refuse an endpoint with no response, no error cases\n    or no stated security.'\n  license: Apache-2.0\n  publisher: trumly\n  role: enrichment\n  enriches:\n  - interface\n  use-when: 'When the system offers an API and you need its contract: the resources, endpoints, schemas,\n    errors and how each is secured.'\n  requires:\n  - core@^1.0.0\n  optional:\n  - links@^1.0.0\n  - dns@^0.4.0\n---\n"
    ],
    [
      "api--rule-auth-scheme",
      "---\nid: api--rule-auth-scheme\ntype: rule\ntitle: Auth names its scheme\nfields:\n  name: Auth names its scheme\n  statement: Every auth names its scheme\n  severity: error\n  applies_to:\n    type: api-auth\n  check:\n    require_fields:\n    - scheme\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-built-served",
      "---\nid: api--rule-built-served\ntype: rule\ntitle: Built endpoints are served\nfields:\n  name: Built endpoints are served\n  statement: A built endpoint is served by something\n  severity: warn\n  applies_to:\n    type: api-endpoint\n    status: built\n  check:\n    require_link:\n      type: served-by\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-accepts-patch",
      "---\nid: api--rule-endpoint-accepts-patch\ntype: rule\ntitle: PATCH accepts a schema\nfields:\n  name: PATCH accepts a schema\n  statement: A PATCH endpoint accepts a schema\n  severity: warn\n  applies_to:\n    type: api-endpoint\n    method: PATCH\n  check:\n    require_link:\n      type: accepts\n      node_type: api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-accepts-post",
      "---\nid: api--rule-endpoint-accepts-post\ntype: rule\ntitle: POST accepts a schema\nfields:\n  name: POST accepts a schema\n  statement: A POST endpoint accepts a schema\n  severity: warn\n  applies_to:\n    type: api-endpoint\n    method: POST\n  check:\n    require_link:\n      type: accepts\n      node_type: api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-accepts-put",
      "---\nid: api--rule-endpoint-accepts-put\ntype: rule\ntitle: PUT accepts a schema\nfields:\n  name: PUT accepts a schema\n  statement: A PUT endpoint accepts a schema\n  severity: warn\n  applies_to:\n    type: api-endpoint\n    method: PUT\n  check:\n    require_link:\n      type: accepts\n      node_type: api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-errors",
      "---\nid: api--rule-endpoint-errors\ntype: rule\ntitle: Endpoints document errors\nfields:\n  name: Endpoints document errors\n  statement: Every endpoint documents its error cases\n  severity: warn\n  applies_to:\n    type: api-endpoint\n  check:\n    require_link:\n      type: fails-with\n      node_type: api-error\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-fields",
      "---\nid: api--rule-endpoint-fields\ntype: rule\ntitle: Endpoints state method, path\nfields:\n  name: Endpoints state method, path\n  statement: Every endpoint states its method and path\n  severity: error\n  applies_to:\n    type: api-endpoint\n  check:\n    require_fields:\n    - method\n    - path\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-public",
      "---\nid: api--rule-endpoint-public\ntype: rule\ntitle: Endpoints say if public\nfields:\n  name: Endpoints say if public\n  statement: Every endpoint says whether it is public\n  severity: error\n  applies_to:\n    type: api-endpoint\n  check:\n    require_fields:\n    - public\n  pack: api@0.3.2\n---\n\nPublic is a decision to make on purpose, not a default.\n"
    ],
    [
      "api--rule-endpoint-resource",
      "---\nid: api--rule-endpoint-resource\ntype: rule\ntitle: Endpoints have a resource\nfields:\n  name: Endpoints have a resource\n  statement: Every endpoint operates on a resource\n  severity: warn\n  applies_to:\n    type: api-endpoint\n  check:\n    require_link:\n      type: operates-on\n      node_type: api-resource\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-returns",
      "---\nid: api--rule-endpoint-returns\ntype: rule\ntitle: Endpoints return a schema\nfields:\n  name: Endpoints return a schema\n  statement: Every endpoint returns a schema\n  severity: warn\n  applies_to:\n    type: api-endpoint\n  check:\n    require_link:\n      type: returns\n      node_type: api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-secured",
      "---\nid: api--rule-endpoint-secured\ntype: rule\ntitle: Non-public is secured\nfields:\n  name: Non-public is secured\n  statement: A non-public endpoint is secured\n  severity: error\n  applies_to:\n    type: api-endpoint\n    public: false\n  check:\n    require_link:\n      type: secured-by\n      node_type: api-auth\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-endpoint-traces",
      "---\nid: api--rule-endpoint-traces\ntype: rule\ntitle: Endpoints satisfy a need\nfields:\n  name: Endpoints satisfy a need\n  statement: Every endpoint satisfies a requirement\n  severity: warn\n  applies_to:\n    type: api-endpoint\n  check:\n    require_link:\n      type: satisfies\n  pack: api@0.3.2\n---\n\nAn endpoint nobody asked for is surface to defend for ever.\n"
    ],
    [
      "api--rule-error-code",
      "---\nid: api--rule-error-code\ntype: rule\ntitle: Errors state a status code\nfields:\n  name: Errors state a status code\n  statement: Every error states its status code\n  severity: error\n  applies_to:\n    type: api-error\n  check:\n    require_fields:\n    - status_code\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-event-payload",
      "---\nid: api--rule-event-payload\ntype: rule\ntitle: Events carry a schema\nfields:\n  name: Events carry a schema\n  statement: Every event carries a schema\n  severity: error\n  applies_to:\n    type: api-event\n  check:\n    require_link:\n      type: payload\n      node_type: api-schema\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-event-secured",
      "---\nid: api--rule-event-secured\ntype: rule\ntitle: Events say who may consume\nfields:\n  name: Events say who may consume\n  statement: Every event says how consumers are authorised\n  severity: warn\n  applies_to:\n    type: api-event\n  check:\n    require_link:\n      type: secured-by\n      node_type: api-auth\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--rule-schema-used",
      "---\nid: api--rule-schema-used\ntype: rule\ntitle: Schemas are used\nfields:\n  name: Schemas are used\n  statement: Every schema is used by an endpoint or event\n  severity: info\n  applies_to:\n    type: api-schema\n  check:\n    any_of:\n    - require_link:\n        type: accepts\n        dir: in\n    - require_link:\n        type: returns\n        dir: in\n    - require_link:\n        type: payload\n        dir: in\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--surface",
      "---\nid: api--surface\ntype: plane\ntitle: Surface\nfields:\n  order: 1\n  pack: api@0.3.2\n  stack: API\n---\n\nWhat the API offers: resources, endpoints and events.\n"
    ],
    [
      "api--type-api-auth",
      "---\nid: api--type-api-auth\ntype: type\ntitle: api-auth\nfields:\n  name: api-auth\n  plane: api--contract\n  description: How a caller proves who they are.\n  shape: shield\n  label: auth\n  fields:\n  - name: scheme\n    kind: choice\n    values:\n    - api-key\n    - bearer\n    - oauth2\n    - mtls\n    - session\n    required: true\n  - name: scopes\n    kind: text\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--type-api-endpoint",
      "---\nid: api--type-api-endpoint\ntype: type\ntitle: api-endpoint\nfields:\n  name: api-endpoint\n  plane: api--surface\n  description: One operation a caller can make.\n  shape: hexagon\n  label: endpoint\n  fields:\n  - name: method\n    kind: choice\n    values:\n    - GET\n    - POST\n    - PUT\n    - PATCH\n    - DELETE\n    required: true\n  - name: path\n    kind: text\n    required: true\n  - name: public\n    kind: boolean\n  - name: idempotent\n    kind: boolean\n  - name: status\n    kind: choice\n    values:\n    - proposed\n    - built\n    - deprecated\n  pack: api@0.3.2\n---\n\n**Names:** a path is `/v<major>/<resources>`, with the resource in the plural and in kebab case (`/v1/work-orders`). A single item adds its id (`/v1/work-orders/:id`); nest at most one level (`/v1/work-orders/:id/notes`). Actions that are not create, read, update or delete go last as a verb (`/v1/work-orders/:id/close`). Guidance only: the endpoint's `path` field is the path.\n"
    ],
    [
      "api--type-api-error",
      "---\nid: api--type-api-error\ntype: type\ntitle: api-error\nfields:\n  name: api-error\n  plane: api--contract\n  description: A way a call can fail, and what the caller sees.\n  shape: triangle\n  label: error\n  fields:\n  - name: status_code\n    kind: text\n    required: true\n  - name: retryable\n    kind: boolean\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--type-api-event",
      "---\nid: api--type-api-event\ntype: type\ntitle: api-event\nfields:\n  name: api-event\n  plane: api--surface\n  description: A message the API publishes when something happens.\n  shape: chevron\n  label: event\n  fields:\n  - name: channel\n    kind: text\n    required: true\n  - name: delivery\n    kind: choice\n    values:\n    - at-least-once\n    - at-most-once\n    - exactly-once\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--type-api-resource",
      "---\nid: api--type-api-resource\ntype: type\ntitle: api-resource\nfields:\n  name: api-resource\n  plane: api--surface\n  description: A thing the API lets callers work with.\n  shape: folder\n  label: resource\n  pack: api@0.3.2\n---\n"
    ],
    [
      "api--type-api-schema",
      "---\nid: api--type-api-schema\ntype: type\ntitle: api-schema\nfields:\n  name: api-schema\n  plane: api--contract\n  description: The shape of a request, response or message body.\n  shape: document\n  label: schema\n  fields:\n  - name: format\n    kind: choice\n    values:\n    - json\n    - protobuf\n    - avro\n    - xml\n    - form\n  pack: api@0.3.2\n---\n"
    ],
    [
      "examples/ops-api-contract/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-contract/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-contract/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-contract/auth-bearer",
      "---\nid: auth-bearer\ntype: api-auth\ntitle: Bearer token\nplane: api--contract\nfields:\n  scheme: bearer\n---\n"
    ],
    [
      "examples/ops-api-contract/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-contract/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-contract/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-contract/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-contract/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-contract/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-contract/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-contract/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 job list would need joins in code.\n"
    ],
    [
      "examples/ops-api-contract/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-contract/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 listing jobs needs joins.\n"
    ],
    [
      "examples/ops-api-contract/environment-production",
      "---\nid: environment-production\ntype: environment\ntitle: Production\nplane: dsn--design\nfields:\n  code: prd\n  kind: production\n---\n\nThe live system that operations staff use.\n"
    ],
    [
      "examples/ops-api-contract/ep-list-jobs",
      "---\nid: ep-list-jobs\ntype: api-endpoint\ntitle: List jobs\nplane: api--surface\nfields:\n  method: GET\n  path: /jobs\n  public: false\n  idempotent: true\n  status: built\nlinks:\n- type: operates-on\n  to: res-job\n- type: returns\n  to: schema-job-list\n- type: fails-with\n  to: err-bad-request\n- type: secured-by\n  to: auth-bearer\n- type: satisfies\n  to: requirement-list-jobs\n- type: served-by\n  to: component-ops-api\n---\n"
    ],
    [
      "examples/ops-api-contract/err-bad-request",
      "---\nid: err-bad-request\ntype: api-error\ntitle: Bad request\nplane: api--contract\nfields:\n  status_code: '400'\n  retryable: false\n---\n"
    ],
    [
      "examples/ops-api-contract/evt-job-changed",
      "---\nid: evt-job-changed\ntype: api-event\ntitle: Job changed\nplane: api--surface\nfields:\n  channel: jobs.changed\n  delivery: at-least-once\nlinks:\n- type: payload\n  to: schema-job\n- type: secured-by\n  to: auth-bearer\n---\n"
    ],
    [
      "examples/ops-api-contract/example",
      "---\nid: example\ntype: example\ntitle: The ops API as a contract\nfields:\n  title: The ops API as a contract\n  description: One resource, an endpoint that returns a schema and says how it fails and how it is secured,\n    and an event, all attached to the ops API interface.\n  use: starter\n  requires:\n  - api\n  - core\n---\n"
    ],
    [
      "examples/ops-api-contract/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-contract/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-contract/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-contract/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-contract/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-contract/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-contract/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-contract/res-job",
      "---\nid: res-job\ntype: api-resource\ntitle: Job\nplane: api--surface\nlinks:\n- type: details\n  to: interface-ops-api\n---\n"
    ],
    [
      "examples/ops-api-contract/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-contract/schema-job-list",
      "---\nid: schema-job-list\ntype: api-schema\ntitle: Job list\nplane: api--contract\nfields:\n  format: json\n---\n"
    ],
    [
      "examples/ops-api-contract/schema-job",
      "---\nid: schema-job\ntype: api-schema\ntitle: Job\nplane: api--contract\nfields:\n  format: json\n---\n"
    ],
    [
      "examples/ops-api-contract/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-contract/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-contract/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"
    ]
  ]
}
