naming: one-slug-per-service — catalogue files and member-orbit nextcloud stop naming the same software twice #222

Closed
opened 2026-07-31 02:38:53 +00:00 by ben · 1 comment
Owner

Parent

Provisioning spec #17 / members spec #19 hygiene. Contract-gap sweep 2026-07-30, filed on Ben's request.

What's true today

  • Two slugs name the same software: the catalogue calls it files (internal/catalogue/catalogue.go) and the member-orbit reconciler calls it nextcloud (internal/nextcloud/nextcloud.go, const Service = "nextcloud"). control-plane/cmd/control-plane/servicehealth.go documents the split explicitly: "the two slugs are deliberately not unified in this slice."
  • The gate, the health registry, the offboard fate catalogue and the coverage math all key on a service string — a cross-feature drift risk every new consumer inherits, and a trap the moment one keyspace is compared against the other.

What to build

One slug per service, everywhere. The catalogue slug is the domain vocabulary (CONTEXT.md speaks in files, not products), so files should win and the member-orbit constant migrate to it — but confirm against how the fate catalogue and any persisted documents already spell it before renaming anything durable. Update the servicehealth.go note to say the unification happened.

Acceptance criteria

  • Given the tree after the change, When any registry, gate, port or document names the service, Then exactly one slug appears — grep proves no live "nextcloud"-as-service-key remains outside the adapter that speaks to the product's own API
  • Given persisted documents (ledgers, config-repo docs) that spelled the old slug, Then they are migrated or read compatibly — no silent key miss

Task manifest

task: naming:one-slug-per-service
implements_seam: "one service keyspace across catalogue, health, gate and orbit"
interface: "a service string means the same thing everywhere"
seam: "existing tests migrated; a guard against the dead slug"
acceptance:
  - given: any consumer; when: it keys on the service; then: one slug, everywhere
depends_on: []
out_of_scope: [renaming products in operator-facing copy (Nextcloud stays Nextcloud on screens)]
needs_human_decision: []

Blocks

Nothing — hygiene, best landed before more per-service ports multiply the keyspace.

## Parent Provisioning spec #17 / members spec #19 hygiene. Contract-gap sweep 2026-07-30, filed on Ben's request. ## What's true today - Two slugs name the same software: the catalogue calls it `files` (`internal/catalogue/catalogue.go`) and the member-orbit reconciler calls it `nextcloud` (`internal/nextcloud/nextcloud.go`, `const Service = "nextcloud"`). `control-plane/cmd/control-plane/servicehealth.go` documents the split explicitly: "the two slugs are deliberately not unified in this slice." - The gate, the health registry, the offboard fate catalogue and the coverage math all key on a service string — a cross-feature drift risk every new consumer inherits, and a trap the moment one keyspace is compared against the other. ## What to build One slug per service, everywhere. The catalogue slug is the domain vocabulary (CONTEXT.md speaks in `files`, not products), so `files` should win and the member-orbit constant migrate to it — but confirm against how the fate catalogue and any persisted documents already spell it before renaming anything durable. Update the `servicehealth.go` note to say the unification happened. ## Acceptance criteria - [ ] Given the tree after the change, When any registry, gate, port or document names the service, Then exactly one slug appears — grep proves no live `"nextcloud"`-as-service-key remains outside the adapter that speaks to the product's own API - [ ] Given persisted documents (ledgers, config-repo docs) that spelled the old slug, Then they are migrated or read compatibly — no silent key miss ## Task manifest ```yaml task: naming:one-slug-per-service implements_seam: "one service keyspace across catalogue, health, gate and orbit" interface: "a service string means the same thing everywhere" seam: "existing tests migrated; a guard against the dead slug" acceptance: - given: any consumer; when: it keys on the service; then: one slug, everywhere depends_on: [] out_of_scope: [renaming products in operator-facing copy (Nextcloud stays Nextcloud on screens)] needs_human_decision: [] ``` ## Blocks Nothing — hygiene, best landed before more per-service ports multiply the keyspace.
Author
Owner

Done in 2b8c42b (on origin/main).

One slug per service, everywhere. The catalogue's domain-vocabulary slug files wins: internal/nextcloud's const Service migrated "nextcloud" → "files", so the gate, health registry, offboard fate catalogue, rollout node-service keyspace and coverage math all key on the same string. The adapter still speaks to Nextcloud's own API and names the product in its error copy — only the service KEY moved.

AC1 (one slug, everywhere): grep proves no live "nextcloud"-as-service-key remains outside the adapter — every test/tool fixture that keyed on the dead slug migrated (internal/{controlapi,member,memberorbit,update}, control-plane/cmd/{control-plane,smoke-stores}). A new guard, internal/nextcloud/nextcloud_test.go TestServiceSlugIsCatalogueVocabulary, pins the reconciler slug to a real catalogue slug so "nextcloud" cannot return as a service key.

AC2 (persisted docs): no persisted production documents carried the old slug — no community is deployed yet, and the config-repo matrix / fate catalogue are operator-authored at runtime, so there is nothing to migrate.

The brand-kit theming surfaces (svc:nextcloud/svc:mattermost) keep their product names by design — a separate theming keyspace never compared against catalogue slugs, and explicitly out of scope (Nextcloud stays Nextcloud on screens). servicehealth.go's split-naming note now records the unification.

No Go toolchain in the sandbox (#198) — verified by careful review.

Done in 2b8c42b (on origin/main). **One slug per service, everywhere.** The catalogue's domain-vocabulary slug `files` wins: `internal/nextcloud`'s `const Service` migrated `"nextcloud"` → `"files"`, so the gate, health registry, offboard fate catalogue, rollout node-service keyspace and coverage math all key on the same string. The adapter still speaks to Nextcloud's own API and names the product in its error copy — only the service KEY moved. **AC1 (one slug, everywhere):** grep proves no live `"nextcloud"`-as-service-key remains outside the adapter — every test/tool fixture that keyed on the dead slug migrated (`internal/{controlapi,member,memberorbit,update}`, `control-plane/cmd/{control-plane,smoke-stores}`). A new guard, `internal/nextcloud/nextcloud_test.go` `TestServiceSlugIsCatalogueVocabulary`, pins the reconciler slug to a real catalogue slug so `"nextcloud"` cannot return as a service key. **AC2 (persisted docs):** no persisted production documents carried the old slug — no community is deployed yet, and the config-repo matrix / fate catalogue are operator-authored at runtime, so there is nothing to migrate. The brand-kit theming surfaces (`svc:nextcloud`/`svc:mattermost`) keep their product names by design — a separate theming keyspace never compared against catalogue slugs, and explicitly out of scope (Nextcloud stays Nextcloud on screens). `servicehealth.go`'s split-naming note now records the unification. No Go toolchain in the sandbox (#198) — verified by careful review.
ben closed this issue 2026-07-31 02:59:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#222
No description provided.