brand-reach: svc:video wears the kit — PeerTube full palette, live oneshot #1262

Closed
opened 2026-09-06 05:36:52 +00:00 by ben · 4 comments
Owner

Parent

Spec #1253 (brand-reach arc, DDR 0225 + DDR 0220 amendments).

What to build

A kit change lands on PeerTube without a restart: instance name, logos, favicon and palette CSS, so the video service looks like the community's.

Acceptance criteria

  • A brandkit surface with capability exactly brand.name · logos · logo.favicon · the four colour tokens; pure Render emits the instance-customization CSS/config artifacts with golden tests; out-of-capability tokens report Unsupported
  • The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path; logo/avatar/banner/favicon uploads happen on apply (clan-side detail)
  • A kit apply lands via an admin-API reconciler oneshot with no restart
  • The card line derives "Carries your name, logo & colours"

Blocked by

## Parent Spec #1253 (brand-reach arc, DDR 0225 + DDR 0220 amendments). ## What to build A kit change lands on PeerTube without a restart: instance name, logos, favicon and palette CSS, so the video service looks like the community's. ## Acceptance criteria - [ ] A brandkit surface with capability exactly brand.name · logos · logo.favicon · the four colour tokens; pure Render emits the instance-customization CSS/config artifacts with golden tests; out-of-capability tokens report Unsupported - [ ] The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path; logo/avatar/banner/favicon uploads happen on apply (clan-side detail) - [ ] A kit apply lands via an admin-API reconciler oneshot with no restart - [ ] The card line derives "Carries your name, logo & colours" ## Blocked by - #1256

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

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

Ruled by agent under ADR 0174 — veto anytime.

Decision: the svc:video capability is brand.name · logo.full · logo.mono · logo.favicon + the four colour tokens (8 tokens).

Why: the acceptance contract reads "brand.name · logos · logo.favicon · the four colour tokens" — plural "logos" listed separately from logo.favicon, and deliberately contrasted with newsletters's explicit singular logo.full in the same spec table. The non-favicon logo tokens in the closed vocabulary are logo.full + logo.mono, and the research doc records PeerTube exposing MULTIPLE real logo slots (instance-logo/header-wide, instance-avatar/square icon) plus the favicon — three genuine upload destinations, so carrying all three logo tokens strands nothing (all resolve to the one materialised object, #357). The card line derives identically ("Carries your name, logo & colours") either way.

Why two-way: a revertible additive surface — the token set is one NewTokenSet(...) line, provable by the boundary test (TestVideo_Boundary asserts the exact set) and reverted by a later commit. No credential / security-widening / trust / data-destruction / spend.

What proves it: internal/brandkit/video_surface_test.go (boundary, pure-render, unsupported-facets, adoption-line), the regenerated golden corpus, and TestRenderVideo_BrandConsumedOverAdminAPI (the admin-API oneshot, no restart). The live custom-config/logo-pick wire is confirmed on the deferred clan-lab drive.

Ruled by agent under ADR 0174 — veto anytime. **Decision:** the `svc:video` capability is `brand.name · logo.full · logo.mono · logo.favicon` + the four colour tokens (8 tokens). **Why:** the acceptance contract reads "brand.name · **logos** · logo.favicon · the four colour tokens" — plural "logos" listed *separately* from `logo.favicon`, and deliberately contrasted with newsletters's explicit singular `logo.full` in the same spec table. The non-favicon logo tokens in the closed vocabulary are `logo.full` + `logo.mono`, and the research doc records PeerTube exposing MULTIPLE real logo slots (instance-logo/header-wide, instance-avatar/square icon) plus the favicon — three genuine upload destinations, so carrying all three logo tokens strands nothing (all resolve to the one materialised object, #357). The card line derives identically ("Carries your name, logo & colours") either way. **Why two-way:** a revertible additive surface — the token set is one `NewTokenSet(...)` line, provable by the boundary test (`TestVideo_Boundary` asserts the exact set) and reverted by a later commit. No credential / security-widening / trust / data-destruction / spend. **What proves it:** `internal/brandkit/video_surface_test.go` (boundary, pure-render, unsupported-facets, adoption-line), the regenerated golden corpus, and `TestRenderVideo_BrandConsumedOverAdminAPI` (the admin-API oneshot, no restart). The live custom-config/logo-pick wire is confirmed on the deferred clan-lab drive.

close-report for #1262 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 2d485a842b is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/logoobject_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/surface.go' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/contrast-shortfall.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/extras-nextcloud.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/palette-full.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/preset-matou-default.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/preset-reef-service.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot' is not in the diff of the claimed commits
  • changed_files: 'internal/brandkit/video_surface_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/catalogue/catalogue.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/branddeploy.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/video.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/video_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/controlapi/catalogue_read_integration_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/founding/deploy_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1262,
  "status": "success",
  "commits": [
    "2d485a842be1869f99715b1192ca758cdb85aa51"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/brandkit/logoobject_test.go",
    "internal/brandkit/surface.go",
    "internal/brandkit/testdata/golden/contrast-shortfall.snapshot",
    "internal/brandkit/testdata/golden/extras-nextcloud.snapshot",
    "internal/brandkit/testdata/golden/palette-full.snapshot",
    "internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot",
    "internal/brandkit/testdata/golden/preset-matou-default.snapshot",
    "internal/brandkit/testdata/golden/preset-reef-service.snapshot",
    "internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot",
    "internal/brandkit/video_surface_test.go",
    "internal/catalogue/catalogue.go",
    "internal/clan/branddeploy.go",
    "internal/clan/video.go",
    "internal/clan/video_test.go",
    "internal/controlapi/catalogue_read_integration_test.go",
    "internal/founding/deploy_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/brandkit/ ./internal/clan/ ./internal/catalogue/ ./internal/controlapi/ ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l (touched files)",
      "exit_code": 0
    },
    {
      "command": "nix-instantiate --parse (rendered video.nix)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A brandkit surface with capability exactly brand.name · logos · logo.favicon · the four colour tokens; pure Render emits the instance-customization CSS/config artifacts with golden tests; out-of-capability tokens report Unsupported": "internal/brandkit/surface.go VideoSurface() Capability() = brand.name·logo.full·logo.mono·logo.favicon + 4 colours; Render emits video-brand.conf (name/logo/avatar/favicon + customCss :root over PeerTube --mainColor/etc). Golden corpus regenerated (all 7 snapshots carry the svc:video artifact + coverage). TestVideo_Boundary asserts the exact set; TestVideo_UnsupportedFacets asserts greeting/status Unsupported. 'logos'=full+mono ruled under ADR 0174 (issue comment).",
    "The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path; logo/avatar/banner/favicon uploads happen on apply (clan-side detail)": "surface.go DefaultRegistry() adds VideoSurface(); internal/clan/branddeploy.go brandConsumingSlugs[VideoSlug]; LogoBearingSurfaces derives svc:video via the logo tokens (TestLogoBearingSurfaces_ExcludesIdp +svc:video). internal/clan/video.go renderVideoBrand picks the logo onto header-wide/avatar/favicon slots (multipart) — clan-side detail.",
    "A kit apply lands via an admin-API reconciler oneshot with no restart": "internal/clan/video.go renderVideoBrand: systemd.services.video-brand oneshot (mkIf pathExists, restartTriggers) authenticates root over PeerTube OAuth, GET-merge-PUT /api/v1/config/custom (DB-held, hot-applied — no restart) + logo picks. TestRenderVideo_BrandConsumedOverAdminAPI asserts OAuth/PUT/logo/env/ordering/no-restart; rendered video.nix nix-parse clean.",
    "The card line derives \"Carries your name, logo & colours\"": "catalogue.go video row gains Surface: \"svc:video\"; controlapi catalogue read derives the line from Capability(). TestVideo_AdoptionLineNameLogoColours + catalogue_read_integration_test.go assert video.BrandLine == \"Carries your name, logo & colours\"."
  },
  "summary": "Registered svc:video (PeerTube) as a full-palette+favicon brandkit surface with a live admin-API reconciler oneshot that lands name, logos, favicon and colours on the running instance with no restart.",
  "blockers": []
}
**close-report** for #1262 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 2d485a842be1869f99715b1192ca758cdb85aa51 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/logoobject_test.go' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/surface.go' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/contrast-shortfall.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/extras-nextcloud.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/palette-full.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/preset-matou-default.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/preset-reef-service.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot' is not in the diff of the claimed commits - changed_files: 'internal/brandkit/video_surface_test.go' is not in the diff of the claimed commits - changed_files: 'internal/catalogue/catalogue.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/branddeploy.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/video.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/video_test.go' is not in the diff of the claimed commits - changed_files: 'internal/controlapi/catalogue_read_integration_test.go' is not in the diff of the claimed commits - changed_files: 'internal/founding/deploy_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1262, "status": "success", "commits": [ "2d485a842be1869f99715b1192ca758cdb85aa51" ], "changed_files": [ "STATUS.md", "internal/brandkit/logoobject_test.go", "internal/brandkit/surface.go", "internal/brandkit/testdata/golden/contrast-shortfall.snapshot", "internal/brandkit/testdata/golden/extras-nextcloud.snapshot", "internal/brandkit/testdata/golden/palette-full.snapshot", "internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot", "internal/brandkit/testdata/golden/preset-matou-default.snapshot", "internal/brandkit/testdata/golden/preset-reef-service.snapshot", "internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot", "internal/brandkit/video_surface_test.go", "internal/catalogue/catalogue.go", "internal/clan/branddeploy.go", "internal/clan/video.go", "internal/clan/video_test.go", "internal/controlapi/catalogue_read_integration_test.go", "internal/founding/deploy_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/brandkit/ ./internal/clan/ ./internal/catalogue/ ./internal/controlapi/ ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l (touched files)", "exit_code": 0 }, { "command": "nix-instantiate --parse (rendered video.nix)", "exit_code": 0 } ], "criteria": { "A brandkit surface with capability exactly brand.name · logos · logo.favicon · the four colour tokens; pure Render emits the instance-customization CSS/config artifacts with golden tests; out-of-capability tokens report Unsupported": "internal/brandkit/surface.go VideoSurface() Capability() = brand.name·logo.full·logo.mono·logo.favicon + 4 colours; Render emits video-brand.conf (name/logo/avatar/favicon + customCss :root over PeerTube --mainColor/etc). Golden corpus regenerated (all 7 snapshots carry the svc:video artifact + coverage). TestVideo_Boundary asserts the exact set; TestVideo_UnsupportedFacets asserts greeting/status Unsupported. 'logos'=full+mono ruled under ADR 0174 (issue comment).", "The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path; logo/avatar/banner/favicon uploads happen on apply (clan-side detail)": "surface.go DefaultRegistry() adds VideoSurface(); internal/clan/branddeploy.go brandConsumingSlugs[VideoSlug]; LogoBearingSurfaces derives svc:video via the logo tokens (TestLogoBearingSurfaces_ExcludesIdp +svc:video). internal/clan/video.go renderVideoBrand picks the logo onto header-wide/avatar/favicon slots (multipart) — clan-side detail.", "A kit apply lands via an admin-API reconciler oneshot with no restart": "internal/clan/video.go renderVideoBrand: systemd.services.video-brand oneshot (mkIf pathExists, restartTriggers) authenticates root over PeerTube OAuth, GET-merge-PUT /api/v1/config/custom (DB-held, hot-applied — no restart) + logo picks. TestRenderVideo_BrandConsumedOverAdminAPI asserts OAuth/PUT/logo/env/ordering/no-restart; rendered video.nix nix-parse clean.", "The card line derives \"Carries your name, logo & colours\"": "catalogue.go video row gains Surface: \"svc:video\"; controlapi catalogue read derives the line from Capability(). TestVideo_AdoptionLineNameLogoColours + catalogue_read_integration_test.go assert video.BrandLine == \"Carries your name, logo & colours\"." }, "summary": "Registered svc:video (PeerTube) as a full-palette+favicon brandkit surface with a live admin-API reconciler oneshot that lands name, logos, favicon and colours on the running instance with no restart.", "blockers": [] } ``` </details>

close-report for #1262 — status success

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

envelope
{
  "issue": 1262,
  "status": "success",
  "commits": [
    "2d485a842be1869f99715b1192ca758cdb85aa51"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/brandkit/logoobject_test.go",
    "internal/brandkit/surface.go",
    "internal/brandkit/testdata/golden/contrast-shortfall.snapshot",
    "internal/brandkit/testdata/golden/extras-nextcloud.snapshot",
    "internal/brandkit/testdata/golden/palette-full.snapshot",
    "internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot",
    "internal/brandkit/testdata/golden/preset-matou-default.snapshot",
    "internal/brandkit/testdata/golden/preset-reef-service.snapshot",
    "internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot",
    "internal/brandkit/video_surface_test.go",
    "internal/catalogue/catalogue.go",
    "internal/clan/branddeploy.go",
    "internal/clan/video.go",
    "internal/clan/video_test.go",
    "internal/controlapi/catalogue_read_integration_test.go",
    "internal/founding/deploy_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/brandkit/ ./internal/clan/ ./internal/catalogue/ ./internal/controlapi/ ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l (touched files)",
      "exit_code": 0
    },
    {
      "command": "nix-instantiate --parse (rendered video.nix)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A brandkit surface with capability exactly brand.name · logos · logo.favicon · the four colour tokens; pure Render emits the instance-customization CSS/config artifacts with golden tests; out-of-capability tokens report Unsupported": "internal/brandkit/surface.go VideoSurface() Capability() = brand.name·logo.full·logo.mono·logo.favicon + 4 colours; Render emits video-brand.conf (name/logo/avatar/favicon + customCss :root over PeerTube --mainColor/etc). Golden corpus regenerated (all 7 snapshots carry the svc:video artifact + coverage). TestVideo_Boundary asserts the exact set; TestVideo_UnsupportedFacets asserts greeting/status Unsupported. 'logos'=full+mono ruled under ADR 0174 (issue comment).",
    "The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path; logo/avatar/banner/favicon uploads happen on apply (clan-side detail)": "surface.go DefaultRegistry() adds VideoSurface(); internal/clan/branddeploy.go brandConsumingSlugs[VideoSlug]; LogoBearingSurfaces derives svc:video via the logo tokens (TestLogoBearingSurfaces_ExcludesIdp +svc:video). internal/clan/video.go renderVideoBrand picks the logo onto header-wide/avatar/favicon slots (multipart) — clan-side detail.",
    "A kit apply lands via an admin-API reconciler oneshot with no restart": "internal/clan/video.go renderVideoBrand: systemd.services.video-brand oneshot (mkIf pathExists, restartTriggers) authenticates root over PeerTube OAuth, GET-merge-PUT /api/v1/config/custom (DB-held, hot-applied — no restart) + logo picks. TestRenderVideo_BrandConsumedOverAdminAPI asserts OAuth/PUT/logo/env/ordering/no-restart; rendered video.nix nix-parse clean.",
    "The card line derives \"Carries your name, logo & colours\"": "catalogue.go video row gains Surface: \"svc:video\"; controlapi catalogue read derives the line from Capability(). TestVideo_AdoptionLineNameLogoColours + catalogue_read_integration_test.go assert video.BrandLine == \"Carries your name, logo & colours\"."
  },
  "summary": "Registered svc:video (PeerTube) as a full-palette+favicon brandkit surface with a live admin-API reconciler oneshot that lands name, logos, favicon and colours on the running instance with no restart.",
  "blockers": []
}
**close-report** for #1262 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1262, "status": "success", "commits": [ "2d485a842be1869f99715b1192ca758cdb85aa51" ], "changed_files": [ "STATUS.md", "internal/brandkit/logoobject_test.go", "internal/brandkit/surface.go", "internal/brandkit/testdata/golden/contrast-shortfall.snapshot", "internal/brandkit/testdata/golden/extras-nextcloud.snapshot", "internal/brandkit/testdata/golden/palette-full.snapshot", "internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot", "internal/brandkit/testdata/golden/preset-matou-default.snapshot", "internal/brandkit/testdata/golden/preset-reef-service.snapshot", "internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot", "internal/brandkit/video_surface_test.go", "internal/catalogue/catalogue.go", "internal/clan/branddeploy.go", "internal/clan/video.go", "internal/clan/video_test.go", "internal/controlapi/catalogue_read_integration_test.go", "internal/founding/deploy_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/brandkit/ ./internal/clan/ ./internal/catalogue/ ./internal/controlapi/ ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l (touched files)", "exit_code": 0 }, { "command": "nix-instantiate --parse (rendered video.nix)", "exit_code": 0 } ], "criteria": { "A brandkit surface with capability exactly brand.name · logos · logo.favicon · the four colour tokens; pure Render emits the instance-customization CSS/config artifacts with golden tests; out-of-capability tokens report Unsupported": "internal/brandkit/surface.go VideoSurface() Capability() = brand.name·logo.full·logo.mono·logo.favicon + 4 colours; Render emits video-brand.conf (name/logo/avatar/favicon + customCss :root over PeerTube --mainColor/etc). Golden corpus regenerated (all 7 snapshots carry the svc:video artifact + coverage). TestVideo_Boundary asserts the exact set; TestVideo_UnsupportedFacets asserts greeting/status Unsupported. 'logos'=full+mono ruled under ADR 0174 (issue comment).", "The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path; logo/avatar/banner/favicon uploads happen on apply (clan-side detail)": "surface.go DefaultRegistry() adds VideoSurface(); internal/clan/branddeploy.go brandConsumingSlugs[VideoSlug]; LogoBearingSurfaces derives svc:video via the logo tokens (TestLogoBearingSurfaces_ExcludesIdp +svc:video). internal/clan/video.go renderVideoBrand picks the logo onto header-wide/avatar/favicon slots (multipart) — clan-side detail.", "A kit apply lands via an admin-API reconciler oneshot with no restart": "internal/clan/video.go renderVideoBrand: systemd.services.video-brand oneshot (mkIf pathExists, restartTriggers) authenticates root over PeerTube OAuth, GET-merge-PUT /api/v1/config/custom (DB-held, hot-applied — no restart) + logo picks. TestRenderVideo_BrandConsumedOverAdminAPI asserts OAuth/PUT/logo/env/ordering/no-restart; rendered video.nix nix-parse clean.", "The card line derives \"Carries your name, logo & colours\"": "catalogue.go video row gains Surface: \"svc:video\"; controlapi catalogue read derives the line from Capability(). TestVideo_AdoptionLineNameLogoColours + catalogue_read_integration_test.go assert video.BrandLine == \"Carries your name, logo & colours\"." }, "summary": "Registered svc:video (PeerTube) as a full-palette+favicon brandkit surface with a live admin-API reconciler oneshot that lands name, logos, favicon and colours on the running instance with no restart.", "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#1262
No description provided.