Skip to content

One shared, brandable HTML default for every plugin's rendered pages #16412

In review

Description

@kyle-sexton

Problem

Skills across the marketplace render HTML pages, and each family carries its own styling. One shared chrome exists (lib/html-chrome.html), registered in three plugins (scripts/shared-copies.txt:558-560). Beyond those, files with a prefers-color-scheme rule sit in 17 plugins and files defining the palette token --clay in 9 (grep over plugins/, 2026-11-14). A consumer cannot apply their own company or product branding: the rendered-views contract says "A page offers no other theme choice: no team or user theme override, no accent or palette picker" (docs/contracts/rendered-views/README.md:849-850).

Owner direction (2026-11-14)

One shared default template with styling that every plugin's HTML output reuses, extensible and configurable, so a downstream consumer can supply their branding once and have it apply everywhere; a page family keeps its own base only where its requirements differ (the shared interview surface may be one). Our defaults stay the shipped look and keep improving.

What a design round has to settle

  • Reversing the contract line above: what a consumer may override (palette, type, logo, layout) and where the setting lives (the convention home, user config, both).
  • One token layer over the shared chrome, and how each plugin takes it without importing a sibling plugin's files.
  • Which existing templates move to it, in what order, and which stay apart with a stated reason.
  • How the result is kept from drifting (a check, not prose).

Done when

A design is recorded through /planning:design, the contract is updated, and work items exist for the migration.

Related

Raised during the cohort-005 Codebase Design workshop review of architecture:improve's report.

Activity

  1. added
    needs-triage
    on Nov 15, 2026
  2. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: the rendered-views contract doc, a new design record, and migration work items. Later migration touches every plugin that renders HTML, and plugin authors and consumers read it.
    Reversible: yes; this issue adds docs and work items, which can be reverted or closed.
    Claims checked:

    1. The contract bars a team or user theme override and palette picker: held, but at docs/contracts/rendered-views/README.md:867-868, not the 849-850 the issue cites.
    2. lib/html-chrome.html is registered in three plugins: not held, scripts/shared-copies.txt:640-643 lists four (visualization, adhd, planning, architecture). The issue's line numbers (558-560) are stale too.
      Open questions: none
      I read this as a design-and-docs issue: record a design through /planning:design, update the contract to allow palette, type and logo overrides, and file migration work items. The owner's two recorded decisions settle the override scope, where the setting lives, how plugins take the token layer, and the migration order. That leaves no open owner question. The remaining steps are an attended /planning:design round, so the host-run label stays. The shared-copies listing now has four chrome plugins, so the design round should decide whether architecture migrates first with the other three.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 15, 2026
  4. melodic-automation-lanes commented on Nov 15, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  5. melodic-automation-lanes commented on Nov 15, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: A design recorded through /planning:design that reverses the contract's no-theme-override rule, defines one shared token layer over lib/html-chrome.html with a consumer branding setting, and lists migration work items plus a drift check.

    Related work

    Open questions

    1. Which overrides may a consumer set: palette tokens only, or also type, logo and layout?
      RECOMMENDED: Palette, type and logo only. Keep layout and the accessibility floor, the theme toggle and the comment box fixed. Basis: docs/contracts/rendered-views/README.md:854-859
    2. Where does the branding setting live: the convention home, user config, or both with a stated precedence?
      RECOMMENDED: The convention home as the primary source, with user config as an optional per-user override, and the convention home winning on conflict. Basis: judgment
    3. How does each plugin take the token layer without importing a sibling plugin's files?
      RECOMMENDED: Add one lib source for the token layer and register a copy per plugin in scripts/shared-copies.txt, as html-chrome.html is handled, with a check that the copies match. Basis: scripts/shared-copies.txt:560-562
    4. Which templates migrate first, and which stay apart? Is the shared interview surface the only exception?
      RECOMMENDED: Migrate the three plugins that already carry the chrome (visualization, adhd, planning) first, then the rest by the --clay and prefers-color-scheme inventory. Keep the interview surface apart only with a stated reason. Basis: scripts/shared-copies.txt:560-562
    5. Is the done-when a design plus work items only, with no implementation in this issue? It also has no task list, so what should the checkable items be?
      RECOMMENDED: Yes: three items: a design recorded via /planning:design, the contract line at docs/contracts/rendered-views/README.md:856 updated, and migration work items filed. Plan the design round as an attended step, since it needs owner decisions. Basis: judgment

    Sources read

    • docs/contracts/rendered-views/README.md:854-859: the chrome is one for every page family and a page offers no team or user theme override or accent or palette picker; built views copy the chrome verbatim
    • scripts/shared-copies.txt:560-562: lib/html-chrome.html is copied to the visualization, adhd and planning plugins' reference/html-chrome.html

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner chose that a consumer may override palette, type and logo in the shared HTML default.

    Question as put to the owner (Q45): one brandable HTML default for rendered pages.

    • A (recommended, chosen): a consumer may override palette, type and logo.
    • B: palette only.
    • C: a full design interview first.

    Owner's answer, 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."

    This settles the first item of "What a design round has to settle": a consumer may override palette, type and logo; layout, the accessibility floor, the theme toggle and the comment box stay fixed. It reverses the rendered-views contract line "no team or user theme override, no accent or palette picker" for those three. The refinement's recommendations for the other design questions (the setting in the convention home with an optional user-config override, the convention home winning; one lib/ token-layer source copied per plugin through scripts/shared-copies.txt; the three chrome plugins migrated first) are the design round's starting answers, not decided here.

    Acceptance criteria

    This is host work (an attended /planning:design round and filing work items).

    • A design is recorded through /planning:design, with palette, type and logo as the consumer overrides and layout, the accessibility floor, the theme toggle and the comment box fixed.
    • The design settles where the setting lives, the token layer over the shared chrome and how each plugin takes it without importing a sibling plugin's files, the migration order (and which templates stay apart, with a reason), and a check that keeps the result from drifting.
    • docs/contracts/rendered-views/README.md is updated to allow the palette, type and logo override and no other.
    • Work items exist for the migration, each linked from this issue.

    Posted by an agent session.

  7. added
    host-run
    on Nov 17, 2026
  8. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    A listed human released the issue's Work status hold, so it goes back to intake triage.

  9. kyle-sexton commented on Nov 24, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner accepted the refinement's recommendations for Q2-Q5 as written (owner, in session 2026-11-24, verbatim: "/session-flow:go-with-recommendations", accepting "accept the refinement's Q2-Q5 as written"):

    • Q2: the branding setting lives in the convention home, with user config as an optional per-user override; the convention home wins on conflict.
    • Q3: one lib/ source for the token layer, registered as a copy per plugin in scripts/shared-copies.txt (as html-chrome.html is), with a check that the copies match.
    • Q4: visualization, adhd and planning migrate first, then the rest by the --clay and prefers-color-scheme inventory. The shared interview surface stays apart only with a stated reason.
    • Q5: done means the recorded design, the contract edit (docs/contracts/rendered-views/README.md:867-868) and the filed migration work items, with no implementation in this issue.

    With Q1 already decided (palette, type and logo; layout, the accessibility floor, the theme toggle and the comment box fixed), the design round's choices are settled, and a host run can write the design record, the contract edit and the work items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    host-run

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions