{
  "name": "dns",
  "version": "0.2.0",
  "description": "Deep module: 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": "958be912e3bca44fefc2a2603a9a5c2ca52e6734c2ef1ea1e6c8a8316dfcc1dc",
  "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.2.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.2.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.2.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.2.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.2.0\n---\n"
    ],
    [
      "dns--naming",
      "---\nid: dns--naming\ntype: plane\ntitle: Naming\nfields:\n  order: 4\n  pack: dns@0.2.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.2.0\n  description: 'Deep module: 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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.0\n---\n"
    ],
    [
      "examples/ops-api-names/acceptance-criterion-status-shown",
      "---\nid: acceptance-criterion-status-shown\ntype: acceptance-criterion\ntitle: Status shown\nplane: def--requirements\nfields:\n  given: A job has just changed state\n  when: Operations staff open the job list\n  then: The new state is shown within 60 seconds\n  method: test\n---\n"
    ],
    [
      "examples/ops-api-names/actor-ops-staff",
      "---\nid: actor-ops-staff\ntype: actor\ntitle: Operations 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 team\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: derives-from\n  to: goal-timely-visibility\n- type: performed-by\n  to: actor-ops-staff\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 service\nplane: dsn--design\nfields:\n  kind: service\n  owner: Platform team\n  status: planned\nlinks:\n- type: exposes\n  to: interface-ops-api\n- type: writes\n  to: datastore-ops-db\n- type: publishes\n  to: queue-job-events\n- type: runs-in\n  to: environment-production\n- type: satisfies\n  to: requirement-status-freshness\n---\nServes job status to operations staff and records state changes.\n"
    ],
    [
      "examples/ops-api-names/component-ops-report",
      "---\nid: component-ops-report\ntype: component\ntitle: Nightly report job\nplane: dsn--design\nfields:\n  kind: job\n  owner: Platform team\n  status: planned\nlinks:\n- type: subscribes\n  to: queue-job-events\n- type: reads\n  to: datastore-ops-db\n- type: runs-in\n  to: environment-production\n- type: satisfies\n  to: requirement-status-freshness\n---\nBuilds the overnight summary from the recorded events.\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: Operations database\nplane: dsn--design\nfields:\n  kind: relational\n  owner: Platform team\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 reports 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-status-freshness\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-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---\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 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---\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 team\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/question-report-recipients",
      "---\nid: question-report-recipients\ntype: question\ntitle: Report recipients\nplane: def--intent\nfields:\n  state: open\n  raised-by: agent\nlinks:\n- type: about\n  to: capability-view-job-status\n---\nWho should receive the nightly report, and should it also be emailed?\n"
    ],
    [
      "examples/ops-api-names/queue-job-events",
      "---\nid: queue-job-events\ntype: queue\ntitle: Job events\nplane: dsn--design\nfields:\n  kind: queue\n  delivery: at-least-once\n---\nAnnounces each job state change so other parts can react.\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-status-freshness",
      "---\nid: requirement-status-freshness\ntype: requirement\ntitle: Status is fresh\nplane: def--requirements\nfields:\n  statement: The system shall show each job status no more than 60 seconds old.\n  kind: functional\n  priority: must\n  status: accepted\n  accepted-by: Mat\n  accepted-on: '2026-11-03'\nlinks:\n- type: derives-from\n  to: capability-view-job-status\n- type: verified-by\n  to: acceptance-criterion-status-shown\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-build-agent",
      "---\nid: team-build-agent\ntype: team\ntitle: Build agent\nplane: pln--plan\nfields:\n  kind: agent\n  focus: Implements work packages for review\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 team\nplane: pln--plan\nfields:\n  kind: human\n  focus: Builds and runs the platform\n---\nThe people who own the system.\n"
    ],
    [
      "examples/ops-api-names/work-package-report-job",
      "---\nid: work-package-report-job\ntype: work-package\ntitle: Report job and database\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n- type: owned-by\n  to: team-platform\n- type: delivers\n  to: component-ops-report\n- type: delivers\n  to: datastore-ops-db\n- type: part-of\n  to: increment-live-status\n---\nBuild the database and the nightly job that reads it.\n"
    ],
    [
      "examples/ops-api-names/work-package-status-api",
      "---\nid: work-package-status-api\ntype: work-package\ntitle: Status API\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n- type: owned-by\n  to: team-build-agent\n- type: reviewed-by\n  to: team-platform\n- type: delivers\n  to: component-ops-api\n- type: delivers\n  to: interface-ops-api\n- type: part-of\n  to: increment-live-status\n---\nBuild the service that serves job status.\n"
    ]
  ]
}
