From 71bbc7dab0e0d64016d1216b72b33a3d8caa7ea2 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 15 Sep 2026 20:51:00 +0200 Subject: [PATCH] Name the two modules after their software: nftables and distribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A module's identity is the software it is (ADR 0040). Two were named after the job instead, and the job already had a name. firewall installs the nftables package and runs nftables.service. The seat it claims is the-packet-filter, which is correctly named for the role. Calling the module firewall named neither the software nor the provision, and promised that any firewall could sit there — the false genericity the naming rule forbids. registry runs Distribution, the OCI reference implementation, and provides artifact-store. So registry was a third name for a thing that already had two, which is how one word ended up meaning the module, the software and the concept in the same paragraph. The capability stays firewall, and correctly: a capability IS a functionality, so a node having one and fail2ban requiring one are both right. Only the module moves. Claude-Session: https://claude.ai/code/session_01D6qtiYU3P9jk3pnAXyAFyx --- modules/{registry => distribution}/client.ts | 0 modules/{registry => distribution}/index.ts | 0 modules/{registry => distribution}/module.json | 2 +- modules/{registry => distribution}/package.json | 0 modules/{registry => distribution}/tools/index.ts | 0 modules/{registry => distribution}/tsconfig.json | 0 modules/{firewall => nftables}/client.ts | 0 modules/{firewall => nftables}/module.json | 2 +- modules/{firewall => nftables}/package.json | 0 modules/{firewall => nftables}/tools/index.ts | 0 modules/{firewall => nftables}/tsconfig.json | 0 modules/showcase/module.json | 2 +- 12 files changed, 3 insertions(+), 3 deletions(-) rename modules/{registry => distribution}/client.ts (100%) rename modules/{registry => distribution}/index.ts (100%) rename modules/{registry => distribution}/module.json (97%) rename modules/{registry => distribution}/package.json (100%) rename modules/{registry => distribution}/tools/index.ts (100%) rename modules/{registry => distribution}/tsconfig.json (100%) rename modules/{firewall => nftables}/client.ts (100%) rename modules/{firewall => nftables}/module.json (95%) rename modules/{firewall => nftables}/package.json (100%) rename modules/{firewall => nftables}/tools/index.ts (100%) rename modules/{firewall => nftables}/tsconfig.json (100%) diff --git a/modules/registry/client.ts b/modules/distribution/client.ts similarity index 100% rename from modules/registry/client.ts rename to modules/distribution/client.ts diff --git a/modules/registry/index.ts b/modules/distribution/index.ts similarity index 100% rename from modules/registry/index.ts rename to modules/distribution/index.ts diff --git a/modules/registry/module.json b/modules/distribution/module.json similarity index 97% rename from modules/registry/module.json rename to modules/distribution/module.json index 08cb45f..029fb04 100644 --- a/modules/registry/module.json +++ b/modules/distribution/module.json @@ -1,5 +1,5 @@ { - "module": "registry", + "module": "distribution", "version": "1", "provides": [ { diff --git a/modules/registry/package.json b/modules/distribution/package.json similarity index 100% rename from modules/registry/package.json rename to modules/distribution/package.json diff --git a/modules/registry/tools/index.ts b/modules/distribution/tools/index.ts similarity index 100% rename from modules/registry/tools/index.ts rename to modules/distribution/tools/index.ts diff --git a/modules/registry/tsconfig.json b/modules/distribution/tsconfig.json similarity index 100% rename from modules/registry/tsconfig.json rename to modules/distribution/tsconfig.json diff --git a/modules/firewall/client.ts b/modules/nftables/client.ts similarity index 100% rename from modules/firewall/client.ts rename to modules/nftables/client.ts diff --git a/modules/firewall/module.json b/modules/nftables/module.json similarity index 95% rename from modules/firewall/module.json rename to modules/nftables/module.json index e8331a2..d552d65 100644 --- a/modules/firewall/module.json +++ b/modules/nftables/module.json @@ -1,5 +1,5 @@ { - "module": "firewall", + "module": "nftables", "version": "1", "capabilities": [ "firewall" diff --git a/modules/firewall/package.json b/modules/nftables/package.json similarity index 100% rename from modules/firewall/package.json rename to modules/nftables/package.json diff --git a/modules/firewall/tools/index.ts b/modules/nftables/tools/index.ts similarity index 100% rename from modules/firewall/tools/index.ts rename to modules/nftables/tools/index.ts diff --git a/modules/firewall/tsconfig.json b/modules/nftables/tsconfig.json similarity index 100% rename from modules/firewall/tsconfig.json rename to modules/nftables/tsconfig.json diff --git a/modules/showcase/module.json b/modules/showcase/module.json index e2d2711..289cf76 100644 --- a/modules/showcase/module.json +++ b/modules/showcase/module.json @@ -43,7 +43,7 @@ { "id": "state", "type": "directory", "path": "/var/lib/showcase", "mode": "0755" }, { "id": "settings", "type": "file", "path": "/var/lib/showcase/showcase.env", "mode": "0600", - "content": "SHOWCASE_GREETING=hello\nSHOWCASE_EVERY_SECONDS=30\nSHOWCASE_STATE=/var/lib/showcase\nSHOWCASE_DATABASE=${bound:postgres-database:at}\n" }, + "content": "SHOWCASE_GREETING=hello\nSHOWCASE_EVERY_SECONDS=30\nSHOWCASE_STATE=/var/lib/showcase\nSHOWCASE_DATABASE=${bound:postgres-database:at}\nSHOWCASE_LISTEN=${port:8080}\n" }, { "id": "packed", "type": "archive", "path": "/opt/showcase", "artifact": "files" },