Cognition

Status

Codebase Audit

Where the three Distyl repos stand against Cognition v1.2 today. Run as a three-subagent parallel sweep against the canonical token set and hard-rule checklist.

Owner
Tony Yates · User Experience and Product Design
Scope
fe-distillery, distillery, distillery-platform
Method
Parallel subagent audit against the canonical Cognition v1.2 token set and hard-rule checklist.
344
Hardcoded hex in fe-distillery
2,061
Raw Tailwind color utilities
0
Cognition tokens defined
26
Rogue dark: classes

BLUF: the codebase is not yet ready to receive Cognition v1.2 values. The brand purple #5D4EE7 is already present, so a clean rename plus a dark-mode reshape preserves brand exactly — but the rename is full-stack.

Detailed findings

9 sections · detailed findings

  • Cognition v1.2 is not implemented. fe-distillery defines zero Cognition v1.2 tokens. No --color-background-*, --color-text-*, --color-border-*, --color-feedback-*, or --radius-{none,sm,md,lg,xl,full} exist anywhere. The repo is on the legacy shadcn NewYork HSL-triplet system: --primary, --background, --foreground, --secondary, --muted, --accent, --destructive, --border, --input, --radius, --success, --warning.
  • Dark mode is implemented incorrectly. fe-distillery uses Tailwind's darkMode: ['class'] strategy with a .dark selector, not [data-theme="dark"] on <html>. On top of that, 26 raw dark: Tailwind classes are scattered across impl code, bypassing tokens entirely. This is a structural fix.
  • Color and utility drift is at scale. fe-distillery has 344 hardcoded hex literals and 2,061 raw Tailwind palette utilities (bg-gray-*, text-red-*, etc.), including inside shadcn primitives: components/ui/badge.tsx bakes in 30+ raw palette variants and components/ui/toast.tsx uses text-red-300/50. The system is not being bypassed only by callers; the primitives themselves bypass the token system.
  • distillery is out of scope. It is a Python backend monorepo. The only FE surfaces are a Chrome-extension demo and a Flask eval dashboard, both off-spec and isolated. The expected customer-facing React surface does not live in this repo. Verify where it lives before drawing customer-rollout conclusions.
  • distillery-platform is not relevant. Pure Helm/IaC, no FE code, no token files.
  • The codebase is not ready to receive Cognition v1.2 token values. The brand purple #5D4EE7 is already present in fe-distillery as --primary (245.88 76.12% 60.59%), so a rename plus dark-mode reshape preserves brand exactly. But the rename is full-stack: tailwind.config.js, every file in components/ui/, two parallel token blocks, six parallel MUI theme files, and dozens of consumers.

Audit run 2026-06-04 · three-subagent parallel sweep · raw JSON in audit-output/.