Skip to content

feat(rendered-views): fail a page source that hardcodes palette or type tokens #19171

Backlog

Description

@kyle-sexton

Problem

ADR 0133 (docs/adr/0133-let-a-consumer-brand-rendered-pages-through-one-shared-token-layer.md,
Decision 7) needs two drift checks. The first already exists: the token layer's per-plugin copies
join scripts/sync-shared-copies.sh --check (CI, pr-require-checks.yml:2909-2911) once they are
registered in scripts/shared-copies.txt. The second does not: nothing stops a migrated page, or a
new one, from defining a palette role or a type stack with a literal value of its own, which would
silently ignore the consumer's branding.

Done when

  • A check fails a page source under plugins/ that defines a palette role or a type-stack custom property with a literal value outside the token layer copy, and names the file and line.
  • Pages not yet migrated are listed in an explicit allowlist the check reads, so the list shrinks as each migration slice lands and the check never passes a new page silently.
  • The check follows the check-script contract in scripts/README.md and is wired into CI and scripts/check-affected.sh.
  • A test proves the check fails on an injected literal palette value and passes once it is removed.

Related

Activity

  1. added
    session-owned
    on Nov 25, 2026
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

    session-owned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions