catalogue: T2 — the candidate tier: curated, compiled-in, never deployable #1120

Closed
opened 2026-09-01 20:49:22 +00:00 by ben · 2 comments
Owner

Parent

Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice catalogue-candidate-tier in docs/slices/catalogue.yaml.

What to build

A Candidate type and Candidates() listing beside the services: slug, name, product + product URL, category, one-liner, glyph, optional logo. Candidates carry no floor, no roles, no health check and are structurally unreachable from the deploy path — they ship compiled in through the update channel and browse offline. Seed with a handful of illustrative entries; the curated list content is a separate /research pass (out of scope).

Acceptance criteria

  • Candidates() returns the curated set; a table test proves every candidate has product + URL, category from the closed taxonomy, one-liner and glyph
  • No code path can hand a candidate to selection, impact or deploy — proven by type shape, not a runtime guard
  • Candidate slugs and service slugs share one namespace with no collisions (table test)
  • A candidate with no logo is valid — glyph fallback is the contract

Blocked by

  • #1119 (catalogue-display-facts)

Task manifest

task: catalogue-candidate-tier
implements_flow: p4-provisioning
implements_edge: "S2b candidate cards (data half)"
wireframe: docs/ux/wireframes/p4-provisioning/p4-s2b-browse-catalogue.html (candidate card contract)
seam: catalogue package table tests
depends_on: [catalogue:catalogue-display-facts]
out_of_scope: [the curated seed list content (/research pass), request machinery, UI]
needs_human_decision: []
## Parent Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice `catalogue-candidate-tier` in docs/slices/catalogue.yaml. ## What to build A Candidate type and Candidates() listing beside the services: slug, name, product + product URL, category, one-liner, glyph, optional logo. Candidates carry no floor, no roles, no health check and are structurally unreachable from the deploy path — they ship compiled in through the update channel and browse offline. Seed with a handful of illustrative entries; the curated list content is a separate /research pass (out of scope). ## Acceptance criteria - [ ] Candidates() returns the curated set; a table test proves every candidate has product + URL, category from the closed taxonomy, one-liner and glyph - [ ] No code path can hand a candidate to selection, impact or deploy — proven by type shape, not a runtime guard - [ ] Candidate slugs and service slugs share one namespace with no collisions (table test) - [ ] A candidate with no logo is valid — glyph fallback is the contract ## Blocked by - #1119 (catalogue-display-facts) ## Task manifest ```yaml task: catalogue-candidate-tier implements_flow: p4-provisioning implements_edge: "S2b candidate cards (data half)" wireframe: docs/ux/wireframes/p4-provisioning/p4-s2b-browse-catalogue.html (candidate card contract) seam: catalogue package table tests depends_on: [catalogue:catalogue-display-facts] out_of_scope: [the curated seed list content (/research pass), request machinery, UI] needs_human_decision: [] ```

swarm-claim host=matou-dev-server-01 run=16109
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=16109 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1120 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1120,
  "status": "success",
  "commits": [
    "4a24ea91"
  ],
  "changed_files": [
    "internal/catalogue/catalogue.go",
    "internal/catalogue/catalogue_test.go",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/catalogue/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command gofmt -l internal/catalogue/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/catalogue/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Candidates() returns the curated set; a table test proves every candidate has product + URL, category from the closed taxonomy, one-liner and glyph": "catalogue.Candidates() + TestCandidates_CarryDisplayFacts in internal/catalogue/catalogue_test.go asserts Product, https:// ProductURL, Category.Valid(), non-empty Description, single-letter Glyph for every candidate",
    "No code path can hand a candidate to selection, impact or deploy — proven by type shape, not a runtime guard": "Candidate type carries no Floor/Roles/access/health/estimate fields; TestCandidate_HasNoDeployFacts uses reflection to assert those field names are absent and that Candidate != Service — a structural proof, no runtime guard",
    "Candidate slugs and service slugs share one namespace with no collisions (table test)": "TestCatalogue_OneSlugNamespace walks both tiers into one map and reds on any duplicate slug",
    "A candidate with no logo is valid — glyph fallback is the contract": "Logo is optional (json omitempty); every seed candidate ships logo-less; TestCandidate_NoLogoIsValid asserts a logo-less candidate still carries a glyph"
  },
  "summary": "Added the catalogue candidate tier (Candidate type + Candidates()) — display facts only, structurally unreachable from the deploy path, seeded from the p4-s2b wireframe.",
  "blockers": []
}
**close-report** for #1120 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1120, "status": "success", "commits": [ "4a24ea91" ], "changed_files": [ "internal/catalogue/catalogue.go", "internal/catalogue/catalogue_test.go", "STATUS.md" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/catalogue/ ./internal/controlapi/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command gofmt -l internal/catalogue/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/catalogue/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 } ], "criteria": { "Candidates() returns the curated set; a table test proves every candidate has product + URL, category from the closed taxonomy, one-liner and glyph": "catalogue.Candidates() + TestCandidates_CarryDisplayFacts in internal/catalogue/catalogue_test.go asserts Product, https:// ProductURL, Category.Valid(), non-empty Description, single-letter Glyph for every candidate", "No code path can hand a candidate to selection, impact or deploy — proven by type shape, not a runtime guard": "Candidate type carries no Floor/Roles/access/health/estimate fields; TestCandidate_HasNoDeployFacts uses reflection to assert those field names are absent and that Candidate != Service — a structural proof, no runtime guard", "Candidate slugs and service slugs share one namespace with no collisions (table test)": "TestCatalogue_OneSlugNamespace walks both tiers into one map and reds on any duplicate slug", "A candidate with no logo is valid — glyph fallback is the contract": "Logo is optional (json omitempty); every seed candidate ships logo-less; TestCandidate_NoLogoIsValid asserts a logo-less candidate still carries a glyph" }, "summary": "Added the catalogue candidate tier (Candidate type + Candidates()) — display facts only, structurally unreachable from the deploy path, seeded from the p4-s2b wireframe.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1120
No description provided.