{
  "name": "dns",
  "version": "0.3.0",
  "description": "DNS, how the system is named. Domains, the hostnames under them, the records that answer for them, and the providers behind them. A hostname must sit under a domain, have a record and serve something, and production must be reachable by name.",
  "license": "Apache-2.0",
  "publisher": "trumly",
  "namespace": "dns",
  "tier": "verified",
  "role": "enrichment",
  "useWhen": "When the system is reached by name and you need the domains, hostnames and records behind it.",
  "enriches": [
    "component",
    "environment"
  ],
  "requires": [
    "core@^1.0.0"
  ],
  "optional": [],
  "includes": [],
  "sha256": "a1564e0335d3a7e839febabaad572d4ece1396c9364292506addf8d21175be96",
  "files": [
    [
      "dns--link-type-answers",
      "---\nid: dns--link-type-answers\ntype: link-type\ntitle: answers\nfields:\n  name: answers\n  description: This record answers for a hostname.\n  inverse: answered-by\n  from:\n  - dns-record\n  to:\n  - hostname\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--link-type-provided-by",
      "---\nid: dns--link-type-provided-by\ntype: link-type\ntitle: provided-by\nfields:\n  name: provided-by\n  description: A domain or hostname is supplied by this provider.\n  inverse: provides\n  from:\n  - domain\n  - hostname\n  to:\n  - provider\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--link-type-redirects-to",
      "---\nid: dns--link-type-redirects-to\ntype: link-type\ntitle: redirects-to\nfields:\n  name: redirects-to\n  description: Requests for this hostname are sent on to another.\n  inverse: redirected-from\n  from:\n  - hostname\n  to:\n  - hostname\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--link-type-serves",
      "---\nid: dns--link-type-serves\ntype: link-type\ntitle: serves\nfields:\n  name: serves\n  description: This hostname leads to a component, an interface or an environment.\n  inverse: served-by\n  from:\n  - hostname\n  to:\n  - component\n  - interface\n  - environment\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--link-type-under",
      "---\nid: dns--link-type-under\ntype: link-type\ntitle: under\nfields:\n  name: under\n  description: A hostname sits under this domain.\n  inverse: names\n  from:\n  - hostname\n  to:\n  - domain\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--names",
      "---\nid: dns--names\ntype: plane\ntitle: DNS names\nfields:\n  order: 5\n  stack: Naming\n  shapes:\n    name-pattern: document\n    name-token: circle 2d\n  pack: dns@0.3.0\n---\nHow DNS things are named: the patterns the dns pack ships and the tokens that fill them. Descriptive only.\n"
    ],
    [
      "dns--naming",
      "---\nid: dns--naming\ntype: plane\ntitle: Hostnames\nfields:\n  order: 4\n  pack: dns@0.3.0\n  stack: DNS\n---\n\nDomains, hostnames and the providers behind them: how the system is found.\n"
    ],
    [
      "dns--pack",
      "---\nid: dns--pack\ntype: pack\ntitle: DNS\nfields:\n  name: dns\n  namespace: dns\n  version: 0.3.0\n  description: 'DNS, how the system is named. Domains, the hostnames under them, the records\n    that answer for them, and the providers behind them. A hostname must sit under a domain, have a record\n    and serve something, and production must be reachable by name.'\n  license: Apache-2.0\n  publisher: trumly\n  role: enrichment\n  enriches:\n  - component\n  - environment\n  use-when: When the system is reached by name and you need the domains, hostnames and records behind\n    it.\n  requires:\n  - core@^1.0.0\n---\n"
    ],
    [
      "dns--rule-domain-expiry",
      "---\nid: dns--rule-domain-expiry\ntype: rule\ntitle: Domains record expiry\nfields:\n  name: Domains record expiry\n  statement: Every domain records when it expires\n  severity: warn\n  applies_to:\n    type: domain\n  check:\n    require_fields:\n    - expires\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-domain-provider",
      "---\nid: dns--rule-domain-provider\ntype: rule\ntitle: Domains name a provider\nfields:\n  name: Domains name a provider\n  statement: Every domain names the provider it is registered with\n  severity: info\n  applies_to:\n    type: domain\n  check:\n    require_link:\n      type: provided-by\n      node_type: provider\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-hostname-domain",
      "---\nid: dns--rule-hostname-domain\ntype: rule\ntitle: Hostnames sit under a domain\nfields:\n  name: Hostnames sit under a domain\n  statement: Every hostname is under a domain\n  severity: warn\n  applies_to:\n    type: hostname\n  check:\n    require_link:\n      type: under\n      node_type: domain\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-hostname-record",
      "---\nid: dns--rule-hostname-record\ntype: rule\ntitle: Hostnames have a record\nfields:\n  name: Hostnames have a record\n  statement: Every hostname has a record that answers for it\n  severity: warn\n  applies_to:\n    type: hostname\n  check:\n    require_link:\n      type: answers\n      dir: in\n      node_type: dns-record\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-hostname-serves",
      "---\nid: dns--rule-hostname-serves\ntype: rule\ntitle: Hostnames serve something\nfields:\n  name: Hostnames serve something\n  statement: Every hostname serves something or redirects\n  severity: warn\n  applies_to:\n    type: hostname\n  check:\n    any_of:\n    - require_link:\n        type: serves\n    - require_link:\n        type: redirects-to\n        node_type: hostname\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-production-named",
      "---\nid: dns--rule-production-named\ntype: rule\ntitle: Production has a hostname\nfields:\n  name: Production has a hostname\n  statement: Every production environment is reached by a hostname\n  severity: warn\n  applies_to:\n    type: environment\n    kind: production\n  check:\n    require_link:\n      type: serves\n      dir: in\n      node_type: hostname\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-record-hostname",
      "---\nid: dns--rule-record-hostname\ntype: rule\ntitle: Records answer a hostname\nfields:\n  name: Records answer a hostname\n  statement: Every DNS record answers for a hostname\n  severity: warn\n  applies_to:\n    type: dns-record\n  check:\n    require_link:\n      type: answers\n      node_type: hostname\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-record-value",
      "---\nid: dns--rule-record-value\ntype: rule\ntitle: Records have a value\nfields:\n  name: Records have a value\n  statement: Every DNS record has a value\n  severity: warn\n  applies_to:\n    type: dns-record\n  check:\n    require_fields:\n    - value\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--rule-redirect-acyclic",
      "---\nid: dns--rule-redirect-acyclic\ntype: rule\ntitle: Redirects do not loop\nfields:\n  name: Redirects do not loop\n  statement: Hostnames do not redirect to each other in a circle\n  severity: warn\n  applies_to:\n    type: hostname\n  check:\n    acyclic: redirects-to\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--type-dns-record",
      "---\nid: dns--type-dns-record\ntype: type\ntitle: dns-record\nfields:\n  name: dns-record\n  plane: dns--naming\n  description: A line in a domain's DNS zone that answers for a hostname.\n  shape: document\n  fields:\n  - name: kind\n    kind: choice\n    values:\n    - A\n    - AAAA\n    - CNAME\n    - MX\n    - TXT\n    - NS\n    - CAA\n    - SRV\n    required: true\n  - name: value\n    kind: text\n  - name: ttl\n    kind: number\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--type-domain",
      "---\nid: dns--type-domain\ntype: type\ntitle: domain\nfields:\n  name: domain\n  plane: dns--naming\n  description: A registered name, the root that hostnames sit under.\n  shape: hexagon 2d\n  fields:\n  - name: registrar\n    kind: text\n  - name: expires\n    kind: text\n    label: Expires (YYYY-MM-DD)\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--type-hostname",
      "---\nid: dns--type-hostname\ntype: type\ntitle: hostname\nfields:\n  name: hostname\n  plane: dns--naming\n  description: A name that resolves to something, under a domain.\n  shape: circle 2d\n  fields:\n  - name: kind\n    kind: choice\n    values:\n    - site\n    - app\n    - api\n    - mail\n    - other\n    required: true\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "dns--type-provider",
      "---\nid: dns--type-provider\ntype: type\ntitle: provider\nfields:\n  name: provider\n  plane: dns--naming\n  description: A company that supplies registration, DNS, hosting, delivery or mail.\n  shape: triangle\n  fields:\n  - name: role\n    kind: choice\n    values:\n    - registrar\n    - dns\n    - hosting\n    - cdn\n    - email\n    - other\n    required: true\n  pack: dns@0.3.0\n---\n"
    ],
    [
      "examples/ops-api-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/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-names/domain-ops",
      "---\nid: domain-ops\ntype: domain\ntitle: ops.example.com\nplane: dns--naming\nfields:\n  expires: '2027-09-01'\nlinks:\n- type: provided-by\n  to: provider-hosting\n---\n"
    ],
    [
      "examples/ops-api-names/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-names/example",
      "---\nid: example\ntype: example\ntitle: Naming the ops API\nfields:\n  title: Naming the ops API\n  description: A domain with its provider, a hostname under it that serves the ops API in production,\n    and the record that answers for it.\n  use: starter\n  requires:\n  - dns\n  - core\n---\n"
    ],
    [
      "examples/ops-api-names/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-names/host-api",
      "---\nid: host-api\ntype: hostname\ntitle: api.ops.example.com\nplane: dns--naming\nfields:\n  kind: app\nlinks:\n- type: under\n  to: domain-ops\n- type: serves\n  to: component-ops-api\n- type: serves\n  to: environment-production\n---\n"
    ],
    [
      "examples/ops-api-names/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-names/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-names/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-names/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-names/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-names/provider-hosting",
      "---\nid: provider-hosting\ntype: provider\ntitle: Hosting provider\nplane: dns--naming\nfields:\n  role: hosting\n---\n"
    ],
    [
      "examples/ops-api-names/rec-api",
      "---\nid: rec-api\ntype: dns-record\ntitle: API record\nplane: dns--naming\nfields:\n  kind: CNAME\n  value: hosting.example.net\nlinks:\n- type: answers\n  to: host-api\n---\n"
    ],
    [
      "examples/ops-api-names/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-names/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-names/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-names/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-names/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-hostnames/hosts",
      "---\nid: hosts\ntype: name-pattern\ntitle: Hostnames\nplane: dns--names\nfields:\n  scope: Hostnames under the system's domains\n  pattern: '{title}.{serves/runs-in/^stands-for/value}.{under/title}'\n  example: api.dev.example.com\n  case: lower\n  max-length: 253\nlinks:\n- type: describes\n  to: dns--type-hostname\n---\nProduction drops the environment part (api.example.com). Each part is a DNS label: lower case, digits and -, 63 at most. Guidance only: dropping the environment for production needs a condition, which templates don't have, and a hostname's title already is the name.\n"
    ],
    [
      "patterns/naming-hostnames/pattern",
      "---\nid: pattern\ntype: pattern\ntitle: Naming – Hostnames\nfields:\n  title: Naming – Hostnames\n  description: Hostnames as service, environment code and domain (api.dev.example.com), with production dropping the\n    environment so the names customers see stay short.\n  use: starter\n  requires:\n  - dns\n  - naming\n  root: hosts\n  prefix: host\n---\n\n"
    ]
  ]
}
