Repository navigation
feat: ship an agent harness and split the docs for humans and AI agents - #210
Merged
Merged
Conversation
- Ship a harnesspm harness in @tenphi/cookbook. It extends the Tasty, Glaze and Tasty lint harnesses, adds a short Cookbook rule and a docs index (docs/llms.txt), and patches the upstream rules for a site. harness/dev.harnesspm/theme.mjs loads a site's docs.config.ts, so tasty:styles --setup and glaze:inspect see its tokens and palette. - Export createColorTheme() from @tenphi/docs and configureTastyTheme() from @tenphi/renderer for that module; both are moved code. - Use harnesspm in this repository: trust the upstream packages, patch their rules and Cookbook's rule for engine work, commit the lock and the workspace blocks, check them in CI and at prepack. - Split the docs into For humans and For AI agents tabs, with new For AI agents, Ask your agent and Agent harness pages, and the same agent path in the translated pages. - Generated sites point agents at the new start page and mention harnesspm; the upgrade skill syncs it. - Order the published llms.txt like the sidebar, one section per tab. - Bump Tasty to 3.19.1 and move the Tasty ESLint plugin to the catalog. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
This was referenced Nov 21, 2026
- harnesspm 0.9.2 skips links in code samples (tenphi/harnesspm#55), so the content-sources sample keeps its inline image. - Glaze 3.1.1 resolves a package path in glaze:inspect (tenphi/glaze#117), so the patches name @tenphi/cookbook/harness/dev.harnesspm/theme.mjs in every layout. - eslint-plugin-tasty 1.21.1 notes files in which tasty-lint:check found no styles (tenphi/eslint-plugin-tasty#167); the lint patch says so. - AGENTS.md keeps only the two workarounds whose upstream issues are open. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
…peq9hk # Conflicts: # package.json # packages/renderer/package.json # pnpm-lock.yaml # pnpm-workspace.yaml
- llms.txt builds its sections from the default language's sidebar, as pages do, so translations go under Other pages and a URL-prefixed default locale keeps its order. Tested with both kinds of site. - The lint advice works in sites from the project creator: build tasty.config.ts with createValidationConfig(docs.theme), so the site's palette names are known, and keep style modules in .js or .mjs files on TypeScript 7, which typescript-eslint does not support (tenphi/eslint-plugin-tasty#171). - Upgrades with "pin" trust: the skill, the upgrade guide and the agent guide say that sync --check fails until a person runs approve. - The agent guide says what to commit for a site in a folder of a larger repository (tenphi/harnesspm#62), and how "pin" trust works. - The managed block sits at the top of AGENTS.md, as harnesspm status asks; AGENTS.md records the two new upstream workarounds. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- llms.txt lists each page under the tab that pages select for it, so top-level items that overlap a tab no longer claim its pages, and a tab's own page leads its section even when its items leave it out. - One defaultLocaleKey() helper replaces five copies of the default-locale fallback. - Docs: the hand-set-up agent snippet starts at agents.md; migration links to "Keep it current" instead of repeating it; the lint hook is Claude Code only; Yarn setup commands; tasty:styles does not check color or token names (tenphi/tasty#473), also in both Tasty patches; publishing.md keeps the llms.txt facts in one paragraph. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- agent-harness.md says plainly that -C does not change the folder the theme module reads, and that a site using configFile gets the default theme; the module's notice says so too. - The command that finds the installed docs lives only in agents.md; customization-rules.md links to it. - The repository's Glaze patch points to the color-role rule under "Behavior layer", and its lint patch names every ignore AGENTS.md allows, including the legacy customization hooks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- harnesspm 0.10.0 leaves a built, git-ignored docs folder out of sync (tenphi/harnesspm#54), so harnesspm.json no longer excludes cookbook:docs and sync no longer warns before a build. - It replaces skills (tenphi/harnesspm#56): Cookbook's harness replaces Glaze's glaze-theme skill with the steps for a site's theme.brand and theme.palette, keeping the skill's name. The Glaze patch points at it, the repository's patch says it also holds for palette.ts, and a test checks that the upstream skill still exists under that name. - It writes per-machine excludes for a project in a subfolder of a git repository (tenphi/harnesspm#62), so the agent guide drops its note on which files to commit there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- The skill and the Glaze patch preview a brand with glaze:inspect and --color accent,focus, which shows what Cookbook derives from it; the glaze:color preview did not match any Cookbook role. - harnesspm counts the replaced skill as Cookbook's file, so the docs say that trusting @tenphi/cookbook lets Claude Code run it without asking, and that a pinned Cookbook upgrade waits for approve. - harnesspm applies a package's patches and replacements to every workspace that uses the patched package (tenphi/harnesspm#65). The facade's patches now keep the generic step and mark the Cookbook steps, the skill and the Glaze patch name Glaze's own skill for other Glaze code, and the monorepo paragraph and AGENTS.md record the workaround. - The repository's Glaze patch keeps only the skill's writing steps for palette.ts and points to "Checking a theme". - harnesspm before 0.10 warns on every sync; it does not keep Glaze's skill, as the docs said. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- A navigation tab whose items are all drafts, or empty, no longer shifts the sidebar of every later tab: pageSidebar() hides drafts in each group and keeps every group in its place, so a tab's sidebarGroup index still points at its own group. New navigation test. - The facade's Glaze patch keeps Glaze's generic guardrails unscoped (change the theme, not exported CSS; no hand-written dark or high-contrast values; fix every ✗ and warning), marks the Cookbook steps, and writes `npx harnesspm why`. - The upgrade skill asks for approve when `sync --check` names a pinned package, Cookbook included: `sync` never lists a package that has no tools. It also looks for harnesspm.json at the repository root. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
In this repository, the replaced glaze-theme skill sends other glaze() code to Glaze's own skill, which describes palette.ts, while the repository's Glaze patch says the skill's writing steps hold there. The patch now says the pointer does not apply to palette.ts, and that only the Cookbook pages the skill names are in docs/. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- The TypeScript 6 route for linting .ts style modules also needs @typescript-eslint/parser; the lint patch and the agent guide name it. - AGENTS.md's harnesspm#65 record lists the repository Glaze patch's note on the skill's pointer, so it is dropped together with the pointer. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
…size - docs/deployment.md links straight to "Page text for readers and agents" for how agents read the published site, instead of the rewritten page for people. - The eslint-plugin-tasty#171 record and the changeset say that npm sites on TypeScript 7 get a second nested copy of the lint plugin with TypeScript 6 (about 28 MB) under @tenphi/cookbook. The changeset also says the upgrade skill runs `sync --check`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
The lint rules never read theme.styles or theme.recipes in docs.config.ts, and neither cookbook doctor nor the build checks their values. The facade's lint patch and the agent guide now say so and point to tasty:styles and glaze:inspect --color for those objects, so an agent on TypeScript 7 does not ask for TypeScript 6 to lint a file the rules skip. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
theme.customStyles is also a Tasty style object in docs.config.ts that the lint rules never read and doctor checks only by name, so the lint patch and the agent guide name it next to theme.styles and theme.recipes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- harnesspm 0.10.1 keeps a package's patches in the workspaces that use it and keeps the original skill when workspaces disagree (tenphi/harnesspm#65). The pointers to Glaze's own skill are gone; the Glaze patch and the agent guide now say where a site's agent finds Cookbook's skill when harnesspm keeps Glaze's. harnesspm.json gives this repository the facade's skill, so sync does not warn. - Tasty 3.19.2's tasty:styles warns about color and token names the theme does not define (tenphi/tasty#473): the caveat in both Tasty patches and the agent guide is gone. - eslint-plugin-tasty 1.21.2 lints TypeScript 7 files and no longer pulls in TypeScript 6 (tenphi/eslint-plugin-tasty#171): the .js/.mjs advice, the TypeScript 6 route and the install-size note are gone. - AGENTS.md has no upstream workarounds left; the changesets name the new versions. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
- harnesspm keeps Glaze's own glaze-theme skill whenever another workspace gets Glaze's harness without Cookbook, also through a package such as UI Kit. The Glaze patch and the agent guide say so and give `npx harnesspm why glaze:skills/glaze-theme` as the check. - With eslint-plugin-tasty 1.21.2, the lint tool and hook need only tasty.config.ts, so the agent guide no longer sends agents through the site's own ESLint setup first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
Tasty 3.19.2's tasty:styles warns about color and token names the loaded config does not define. Cookbook's components define some documented names on their own roots, such as #callout-text or $copy-button-size, so checking a theme.styles override reported correct names as missing. - @tenphi/renderer lists those names in COMPONENT_TOKENS and exports declareComponentTokensForTools(), which adds them to Tasty's global styles with neutral values. A test keeps the list equal to the names the component style trees define. Builds never call it, so the CSS a site ships does not change. - The harness's theme.mjs calls it after configureTastyTheme(). A test runs Tasty's own tasty:styles script: component names stay quiet and a typo still warns. - The Tasty patches, the agent guide, AGENTS.md and the changeset say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
…peq9hk # Conflicts: # package.json # packages/renderer/package.json # pnpm-lock.yaml
Glaze 3.2.0 ships its docs as plain Markdown in harness/docs/ instead of MDX in docs/. pack-docs now names each package's docs folder, maps GitHub fallback links back to that folder, and keeps each Glaze page's link to its live version on the Glaze site instead of turning it into a link to itself. The customization guide and the changesets say so; the lint plugin's 1.21.2 bump is already announced by main's changeset. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
The agent guide said the lint tool and edit hook need only tasty.config.ts. They also need the eslint package, a peer of the lint plugin. npm and pnpm install it with Cookbook; Yarn 4 does not, so in a Yarn site tasty-lint:check stops and the edit hook lints nothing and says nothing. The guide and Cookbook's lint patch now tell agents to add eslint as a dev dependency in a Yarn site. The silent hook is reported upstream as tenphi/eslint-plugin-tasty#174. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
…s miss Round 15 review fixes: - The COMPONENT_TOKENS test matched only quoted keys, so it missed the 19 names Mermaid's style tree writes unquoted or with a leading underscore ($bg, $_line), and tasty:styles still warned on them. The test now matches both forms, the list has all 51 names, and the end-to-end test checks $bg and $_line. - tasty-lint:check and the edit hook find a site's lint config only when it names @tenphi/eslint-plugin-tasty, not one set up through @tenphi/cookbook/eslint-plugin or oxlint.config.mjs as Custom components shows. The lint patch and the agent guide now send agents to --strict and the site's lint script; AGENTS.md records the removal condition (tenphi/eslint-plugin-tasty#175). - docs/llms.txt points at Glaze's own docs index, new in Glaze 3.2.0. - pack-docs no longer maps GitHub fallback links to Glaze's harness/docs, which is built at pack time and not in the repository. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
Round 16 review fixes: - declareComponentTokensForTools() skips a $name whose #name is a built-in palette color. Mermaid's $surface and $border otherwise hid a $surface typed for #surface in any override, which renders a transparent fill. COMPONENT_TOKENS stays complete; the end-to-end test checks that $surface still warns. - The lint note told agents to run the site's lint script, which neither the creator nor Custom components adds. It now names the site's own lint command and warns that a bare oxlint skips oxlint.config.mjs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
Round 17 review fixes: - The AGENTS.md record of the eslint-plugin-tasty#175 workaround still said the notes send agents to "the site's lint script"; round 16 changed the notes to the site's own lint command. - The facade lint patch said tasty-lint:check notes each file it found no styles in. It notes only the files named on the command line, so the patch now says so and asks agents to name the files they changed, as the agent guide already did. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
Round 18 review fix: Cookbook's always-on Glaze patch said a new palette role is a Glaze declaration "with base, tone and contrast". Read literally, a decorative fill gets a floor too, and Glaze then moves it to a mid-tone that passes every check. The patch now matches the glaze-theme skill and the theme docs: an absolute tone or a base with a tone step, and a contrast floor only when the color must be read. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
Round 19 review fix: the reworded Glaze patch offered an absolute tone
or a base as alternatives and then a contrast floor, so an agent could
write a floor without a base, which Glaze rejects ("contrast" without
"base"). A color that must be read now names its base and gets a floor
against it, as the glaze-theme skill says.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
tenphi/eslint-plugin-tasty#176 (fixing #174 and #175) makes tasty-lint:check and the edit hook follow a lint config that loads the plugin through a package in importSources, such as @tenphi/cookbook/eslint-plugin, and oxlint.config.mjs; without eslint, the hook now tells the agent once per session that it did not lint the edit. Cookbook's validation config lists @tenphi/cookbook/styling in importSources, so sites need no change. Remove the --strict workaround from the lint patch, docs/agent-harness.md and its AGENTS.md record, and say what the hook does without eslint. These docs describe the plugin's next release; the next commit bumps @tenphi/eslint-plugin-tasty to it, and PR #210 is not merged before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
1.21.3 (tenphi/eslint-plugin-tasty#176) fixes #174 and #175: tasty-lint:check and the edit hook follow a lint config set up through @tenphi/cookbook/eslint-plugin or oxlint.config.mjs, and the hook tells the agent once per session when eslint is missing. The previous commit already dropped the --strict workaround; the harness changeset now says what the release brings to Cookbook sites. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cookbook now ships an agent harness for harnesspm, uses harnesspm itself, and splits its docs into For humans and For AI agents, as UI Kit and harnesspm do.
@tenphi/cookbookpasses on the Tasty, Glaze and Tasty lint harnesses, adapted so their tools read a site's own theme.🧩 Agent harness in
@tenphi/cookbookpackages/facade/harness/(plugincookbook):extends@tenphi/tasty,@tenphi/glaze,@tenphi/eslint-plugin-tasty. They became facade dependencies, at the versions the renderer already installs, because harnesspm resolvesextendsfrom the facade's folder.cookbook:rules/usagecookbook:docsdocs/llms.txt(the Tasty convention). It also helps agents without harnesspm.theme.brandandtheme.palette, checked withcookbook doctorandglaze:inspect. Tasty "Checking styles":tasty:styles --setupwith Cookbook's theme. Lint "After you change styles": the rules need atasty.config.tsbuilt withcreateValidationConfig(docs.theme), so they know Cookbook's helpers and the site's palette names (without it they check nothing in a site, andtasty-lint:checknotes such files when you name them); they never readtheme.styles,theme.customStylesortheme.recipesindocs.config.ts, so those go throughtasty:styles. Each patch keeps the upstream generic steps and guardrails and marks the steps for a Cookbook site.replaceglaze-themeskill →harness/skills/glaze-theme/: the same skill name, with the steps for a site'stheme.brandandtheme.palette(noglaze()call, no export step, checks withcookbook doctorand the theme module). Needs harnesspm 0.10.1 or later. In a monorepo where another workspace gets Glaze's harness without Cookbook (directly or through a package such as UI Kit), harnesspm keeps Glaze's own skill and warns; the patched Glaze rule then points the site's agent to Cookbook'sSKILL.md. harnesspm counts the skill as Cookbook's file, so Claude Code runs it without asking only when@tenphi/cookbookis trusted too; the docs say so.dev.harnesspm/theme.mjsdocs.config.tslike a build does: configures Tasty on import (fortasty:styles --setup) and exports the palette as one Glaze theme (forglaze:inspect). It also declares the names Cookbook's components define on their own roots, such as#callout-text, sotasty:stylesdoes not report them as undefined. Without adocs.config.*in the current folder it says so on stderr.To build the module without copying engine code:
@tenphi/docsexportscreateColorTheme(theme)(the Glaze part ofresolveColorTheme, split out unchanged).@tenphi/rendererexportsconfigureTastyTheme(theme)(moved out ofintegration.tsunchanged) anddeclareComponentTokensForTools(), which adds the component names inCOMPONENT_TOKENSto Tasty's global styles for agent tools only. A test keeps that list equal to the names the component style trees define; builds never call it, so shipped CSS does not change.Checked in a real consumer built from the packed tarballs, with
npx harnesspm init: the block lists Tasty, Glaze and lint "via @tenphi/cookbook", and with trusttasty:styles,glaze:inspectandtasty-lint:checkall see the site's custom#notecolor, units, presets and states.🛠️ harnesspm in this repository
@tenphi/harnesspm0.10.1 dev dependency;pnpm installrunsharnesspm sync(postinstall, asinitwrites it).harnesspm.jsontrusts the three upstream packages (as UI Kit does) and patches their rules and Cookbook's own rule for work on this repository (harnesspm/patches/), so the workspaces never get consumer-only steps such as avalidatescript. It also gives the whole repository the facade'sglaze-themeskill:packages/docsandpackages/rendereruse Glaze directly, so harnesspm would otherwise keep Glaze's skill and warn on every sync.@tenphi/eslint-plugin-tastymoved to the pnpm catalog, so the root, renderer and facade can't drift apart.AGENTS.mdblocks andCLAUDE.mdimports in the five workspaces;harnesspm.lock.json.harnesspm sync --checkafter install,pnpm check:harnessafter build. The facade'sprepackrunsharnesspm check..agents/skillswas a symlink to.claude/skills. It is now a folder with one link per skill, as in UI Kit, so a Windows checkout without symlinks still gives harnesspm a folder to link into.tasty:stylesresolves--setupfrom the current folder and warns about undefined color and token names), Glaze 3.2.0 (glaze:inspecttakes a package path since 3.1.1; its docs ship as plain Markdown inharness/docs/since 3.2.0), eslint-plugin-tasty 1.21.3 (notes files with no styles; lints TypeScript 7 files without installing TypeScript 6; follows a site's lint config set up through@tenphi/cookbook/eslint-pluginoroxlint.config.mjs; the edit hook tells the agent wheneslintis missing) and harnesspm 0.10.1 (checkskips links in code samples;syncleaves out a built, git-ignored docs folder;replaceworks on skills; subfolder projects get correct git excludes; patches stay in the workspaces that use them).📚 Docs: For humans / For AI agents
AGENTS.mdstarts agents atdocs/agents.mdand mentions harnesspm as an option; the upgrade skill runsharnesspm syncandsync --checkin sites that use it.🐛 Cookbook issues fixed here
llms.txtlisted every page alphabetically by file, with translations mixed in. It now follows the default language's sidebar, as pages build it: a Documentation section for top-level items, one section per tab with items, each page under the tab that pages show for it, pages in sidebar order, then Other pages (translations, pages hidden from the sidebar). Tested on single-language sites, a root locale with a translation, a URL-prefixed default locale, and top-level items that overlap a tab. OnedefaultLocaleKey()helper now replaces the four copies of the default-locale fallback onmain, and the new code uses it too.maintoo).pageSidebar()now hides drafts in each group and keeps every group in its place. New navigation test; changesetsidebar-hidden-tab.docs/custom-components.mdcould not run in a site from the project creator: typescript-eslint supports TypeScript below 6.1, and those sites use TypeScript 7. The guide now gives the.js/.mjsand oxlint paths for them.⚖️ Entropy
From a focused Entropy review (per
.claude/rules/entropy.md), updated after its findings were fixed:@tenphi/cookbookpackageharness/folder (a rule, three patches, one replacement skill, the theme module) and three direct dependencies that the renderer already installs at the same versions (now one catalog entry each). No new JS exports. Justified: consumers' agents get Cookbook's rule and tools that read their theme.@tenphi/docs/@tenphi/rendererexportscreateColorTheme()andconfigureTastyTheme()are code moved behind an export, unchanged; the harness module can only reach them through exports.declareComponentTokensForTools()adds one list of 51 names, kept honest by a test.AGENTS.mdpoints at one start page and mentions harnesspm in one optional line.tasty.config.ts. In return the Tasty and Glaze tools use the site's own tokens and palette.docs/llms.txt(every new English page needs a line, which a test enforces), the component token list (a test enforces it too), and a longer rootAGENTS.md. Justified by the request;AGENTS.mddocuments each part.llms.txt, renderer maintainerspageSidebar(),localizedNavigation()andactiveNavigationTab(), so the file matches what readers see without a second navigation model. Partly offset: onedefaultLocaleKey()replaces the four copies of the locale fallback onmain.llms.txt, agents reading itExceptions: none. All upstream workarounds this PR needed along the way are gone, including the last one (tenphi/eslint-plugin-tasty#175): every fix is released and used here. The Yarn step to add
eslintstays, becauseeslintis a required peer that Yarn does not install.✅ Verification
Run locally (Linux, Node 22.23, pnpm 11.24):
format:check,lint(0 warnings),typecheck,test(incl. the newharness.test.tsandllms.txttests),knip,check:boundaries,check:changelog,check:typescheck:development,check:locales,check:theming,check:plugins,check:publishing-site,check:authoring,check:recipescheck:packages,check:publishing(publint + attw),check:installwith npm (packed and generated) and pnpm (packed); it now also imports the harness module in the installed site and checks that it reads the site's own configbuild:reference, reference budgets,cookbook doctorandcheck-buildon the reference sitecheck:browser: 126 passedharnesspm sync --check(with and without a build) andharnesspm check packages/facadenpx harnesspm init, trust, thentasty:styles,glaze:inspectandtasty-lint:checkthroughnpx -y @tenphi/harnesspm runAfter the upstream releases, I re-ran
harnesspm sync --check, format, lint, typecheck, tests, knip,check:harness,check:types,check:theming,check:recipes,check:publishing-site,check:packages,check:publishing, the reference build, budgets andcheck-build, andcheck:installwith npm and pnpm: all pass. The Glaze and lint releases change only their agent tools.harnesspm 0.10.0 upgrade: format, lint, typecheck, 479 tests (one new: the replaced skill still exists upstream under its name), knip,
check:harness,sync --checkwith and without a build (no warning now),harnesspm doctor,check:packagesandcheck:install. By hand, a site in adocs-site/subfolder of a git repository, installed from the packed tarballs with harnesspm 0.10.0:initlinks Cookbook'sglaze-themeskill,git statuslists only the files to commit, and after trustglaze:inspectreads the site's palette. In a consumer monorepo where another workspace uses Glaze directly, that workspace'shelp @tenphi/glazeandhelp @tenphi/tastynow show the generic steps, with Cookbook's steps marked for a site.Upstream fixes (Tasty 3.19.2, eslint-plugin-tasty 1.21.2, harnesspm 0.10.1): format, lint, typecheck, 480 tests, knip,
check:harness,sync --check,check:theming,check:changelog,check:packages,check:install, the reference build, budgets, doctor,check-buildandcheck:browser(126) pass. By hand: with Cookbook's module,tasty:styleswarns about#surfceand$gappand stays quiet on valid names (#surface-2.5,#current,#clear,$margin-block-start); in an npm site from the creator on TypeScript 7.0.2,tasty-lint:checkand the edit hook lint a.tsstyle module, and no nested TypeScript 6 is installed; in a consumer monorepo on harnesspm 0.10.1, the site's workspace gets Cookbook's patched rules, another Glaze workspace gets Glaze's own, and the pointer to Cookbook'sSKILL.mdresolves.Component tokens: 482 tests (two new: the token list matches the style trees, and Tasty's own
tasty:stylesscript stays quiet on#callout-textand$copy-button-sizebut warns on#surfce; the second fails without the fix), format, lint, typecheck, knip,check:boundaries,check:types,check:harness,sync --check,check:changelog,check:packages,check:install(it imports the module from the packed renderer),check:theming, the reference build (largest CSS unchanged, 182 497 bytes), budgets, doctor andcheck-build.Merge with
mainand Glaze 3.2.0: format, lint, typecheck, 482 tests (thepack-docstest now checks the Markdown pages and the kept site link), knip,check:harness,sync --check,check:boundaries,check:changelog,check:types, the reference build (largest CSS unchanged, 182 497 bytes), budgets, doctor,check-build,check:theming,check:packages,check:installandcheck:browser(126) pass.Rounds 14 and 15: format, lint, typecheck, 482 tests (the end-to-end token test fails on the old 32-name list and passes on the new one), knip,
check:harness,sync --check,check:boundaries,check:types,check:packages,check:install, the reference build, budgets andcheck-buildpass. By hand, in a Yarn 4 site and an npm site built from the packed tarballs: afteryarn add -D eslint, the lint tool and the edit hook report a file's problems; with the guide's strict ESLint config,tasty-lint:check --strictreports what the site's ESLint reports.Round 16: format, lint, typecheck, 482 tests (the end-to-end token test now also checks that
$surfacestill warns; it fails on the previous build), knip,check:harness,sync --check,check:boundaries,check:types,check:packages,check:install, the reference build, budgets andcheck-buildpass.Round 17: a text-only change; format, the harness tests,
check:harnessandsync --checkpass.Round 18: a text-only change; format, the harness tests,
check:harnessandsync --checkpass.Round 19: a text-only change; format, the harness tests,
check:harnessandsync --checkpass.eslint-plugin-tasty 1.21.3: format, lint, typecheck, 482 tests, knip,
check:harness,sync --check,check:changelog,check:packagesandcheck:installpass; the lockfile and the harness resolve only 1.21.3.CI passed all 12 jobs on each push so far, including the Windows, macOS and Yarn consumers. Each round's fixes also pass format, lint, typecheck, the full test suite, knip,
check:harness,sync --check, the reference build (itsllms.txtis unchanged), budgets, doctor,check-build,check:locales,check:publishing-site,check:developmentandcheck:packages.🔗 Upstream issues
checkreports links inside code samples as missing filesapproveturns the tools on, but trust already doesglaze:inspectcannot take a module inside an installed packagetasty-lint:checksays "No problems" when it recognized no stylesexcludeis gonereplaceworks on rules only, though the spec says any unitglaze-themeskilltasty-lint:checkand the edit hook cannot lint.tsfiles in a TypeScript 7 projecttasty:stylesdoes not flag#coloror$tokennames that the loaded config does not defineeslintis missing, so an agent never learns its edits went unlintedtasty-lint:checkand the edit hook miss a lint config that loads the plugin through a re-export or anoxlint.config.mjs--strictworkaround is goneRelated: tenphi/harnesspm#52 (
checkjudges docs by the tarball), fixed by the owner in 0.9.1. Tasty 3.19.0 resolved--setupfrom the project root; 3.19.1 fixed it, so this PR bumps Tasty instead of filing an issue.🔁 Review rounds
After the first push, review rounds run until one finds nothing to fix; rounds 4 and 20 did. Each round: five independent reviewers (repository rules, Entropy, correctness, docs, a consumer agent's view from packed tarballs), then skeptics who try to refute every finding. Round 1 fixed the multilingual
llms.txt, the TypeScript 7 lint path, lint config for the site's palette names, theapprovestep after upgrades with pinned trust, the"pin"wording, and the managed block's position inAGENTS.md(now at the top, asharnesspm statusasks). Round 2 found only nits:llms.txtsections when top-level items overlap a tab, the hand-set-up snippet now starts atagents.md, the edit hook is Claude Code only, Yarn setup commands, thetasty:stylesname check (filed as tenphi/tasty#473), and one fact repeated in two pages. In round 3 the correctness, rules and Entropy reviewers found nothing. The docs and consumer reviewers found five wording issues:-Cand the theme module, sites that useconfigFile(they get the default theme, and the notice now says so), a second copy of the resolve-docs command, and two pointers in this repository's patches. Round 4 found nothing to fix: the correctness, rules and consumer reviewers found no problems, and the skeptics rejected the three remaining nits (a duplicated@tenphi/harnesspmrange, a translated heading that still says "guide", and loose wording about where the rule text lives) as style.Round 5 (after the harnesspm 0.10.0 upgrade) confirmed 8 findings in the new skill and its docs, all fixed: the skill's brand preview now uses
glaze:inspect --color accent,focus(theglaze:colorpreview matched no Cookbook role); the docs say the replaced skill needs@tenphi/cookbooktrusted to run without asking; Cookbook's patches and skill reach every workspace in a monorepo (filed as tenphi/harnesspm#65, so the text now marks site-only steps and points other Glaze code to Glaze's own skill); this repository's Glaze patch keeps only the skill's writing steps; and harnesspm before 0.10 warns rather than keeping Glaze's skill.Round 6 confirmed 4 findings, all fixed: a sidebar bug on
main(a tab with only drafts or no items shifted later tabs' sidebars; fixed with a test, see above); the facade Glaze patch now keeps Glaze's generic guardrails unscoped and writesnpx harnesspm why; and the upgrade skill asks forapprovewhensync --checknames a pinned package, becausesyncnever lists@tenphi/cookbook, which has no tools. These fixes also passcheck:browser(126) andcheck:development.Rounds 7 and 8 found only nits, all fixed: this repository's Glaze patch says the skill's pointer to Glaze's own skill does not apply to
palette.ts; the harnesspm#65 record inAGENTS.mdlists that note; and the TypeScript 6 lint route names@typescript-eslint/parsertoo.Round 9 found 2 nits, both fixed:
docs/deployment.mdnow links straight to "Page text for readers and agents", and the install cost of the facade's lint-plugin dependency in npm sites on TypeScript 7 is recorded (also added to tenphi/eslint-plugin-tasty#171).Round 10 found 1 nit, fixed: the lint patch and the agent guide now say that the rules never read
theme.styles,theme.customStylesortheme.recipesindocs.config.ts(and doctor does not check their values), and point totasty:stylesandglaze:inspect --colorfor those objects.Round 11 found 1 nit, fixed: that note now names
theme.customStylestoo. Round 12 found that harnesspm 0.10.1, released that day, made the monorepo text out of date; the upgrade below fixes it.Upgrade to the upstream fixes: Tasty 3.19.2, eslint-plugin-tasty 1.21.2 and harnesspm 0.10.1 fix the last three open issues, so their workarounds are removed and no exceptions remain. Tasty 3.19.2 then reported component names such as
#callout-textas undefined when an agent checked atheme.stylesoverride; the theme module now declares them (a test runs Tasty's owntasty:stylesscript to check it).Round 13 found 2 issues, fixed: the skill pointer now also covers a workspace that gets Glaze through another package, such as UI Kit, with
npx harnesspm whyas the check, and the agent guide says the lint tools need onlytasty.config.ts.Merge with
mainand Glaze 3.2.0:mainbrought the 0.33.2 release (#204) and eslint-plugin-tasty 1.21.2 (#212). The conflicts inpackage.json,packages/renderer/package.jsonandpnpm-lock.yamlkeepmain's versions plus this PR's catalog entries and harnesspm.main's changeset already announces the lint plugin bump, so this PR's changeset no longer repeats it. Glaze 3.2.0 ships its docs as plain Markdown inharness/docs/instead of MDX indocs/, and each example now prints its code and a table of resolved colors. Sopack-docsnames each package's docs folder and keeps each Glaze page's "built from the Glaze site" link on the live page (it had become a link to the page itself). The customization guide no longer says Glaze's examples need the website. Glaze's rule andglaze-themeskill did not change, so the patches and the replaced skill stay as they are, and the skill's Glaze page names still resolve.Round 14 (on
4bcc7e8): the correctness, rules, Entropy and docs reviewers found nothing. The consumer reviewer found 1 issue, fixed: the agent guide said the lint tool and edit hook need onlytasty.config.ts, but they also need theeslintpackage, a peer of the lint plugin. npm and pnpm install it with Cookbook; Yarn 4 does not, so in a Yarn sitetasty-lint:checkstops and the edit hook lints nothing and says nothing. The guide and Cookbook's lint patch now tell Yarn sites to addeslintas a dev dependency. Checked in a Yarn 4 site built from the packed tarballs: afteryarn add -D eslint, the tool and the hook both report the file's 3 problems. The silent hook is reported upstream as tenphi/eslint-plugin-tasty#174.Round 15 (on
ae48198): the Entropy reviewer found nothing, and the skeptics confirmed 4 issues, all fixed:COMPONENT_TOKENSmissed 19 names that Mermaid's style tree defines, because Prettier writes single-word keys without quotes and some names start with_($bg,$_line…). The test only matched quoted keys, so it passed, andtasty:stylesstill warned on those names. The test now matches quoted and unquoted keys, the list has all 51 names, and the end-to-end test checks$bgand$_line(it fails on the old list).@tenphi/eslint-plugin-tasty. A config set up as "Custom components" shows, through@tenphi/cookbook/eslint-pluginoroxlint.config.mjs, is not found, so they run the recommended rules and miss what a strict config reports. The lint patch and the agent guide now say so and send agents to--strictand the site's lint script. Checked in a site: the site's ESLint reports an unknown$card-gap; the tool says "No tasty/* problems (recommended rules)", and with--strictreports it. Filed upstream as tasty-lint:check and the edit hook miss a lint config that loads the plugin through a re-export or an oxlint.config.mjs eslint-plugin-tasty#175.docs/llms.txtnow points at Glaze's own docs index, which Glaze 3.2.0 ships, instead of its API reference, so an agent without harnesspm also finds "Designing a palette".pack-docsno longer maps GitHub fallback links to Glaze'sharness/docs/, which Glaze builds when it packs and does not commit; at the release tag the sources are indocs/. No current link used that path.Round 16 (on
b37fa3b): the rules, Entropy and consumer reviewers found nothing; the skeptics confirmed 2 nits from the correctness and docs reviewers, both fixed in886198a:$surfaceand$bordershare their names with the palette colors#surfaceand#border. Declaring them hid a$surfacetyped for#surfacein any override, which renders a transparent fill.declareComponentTokensForTools()now skips any$namewhose#nameis inCOOKBOOK_PALETTE_NAMES, so the list stays complete and the tool keeps reporting those two. The end-to-end test checks that$surfacestill warns (it fails on the previous build).lintscript if it has one, else theeslintoroxlint --config oxlint.config.mjscommand from that page (a bareoxlintskipsoxlint.config.mjs).Round 17 (on
886198a): the correctness reviewer found nothing; the skeptics confirmed 2 wording nits, both fixed in7fbd88a: theAGENTS.mdrecord of the #175 workaround still said "the site's lint script", and Cookbook's lint patch saidtasty-lint:checknotes every file without styles, while it notes only the files you name (a folder run stays quiet). The patch now says so and asks agents to name the files they changed, as the agent guide already did.Round 18 (on
7fbd88a): the correctness, rules, Entropy and docs reviewers found nothing; the skeptics confirmed 1 nit from the consumer reviewer, fixed ina1c5a2d: Cookbook's always-on Glaze patch said a new palette role is a declaration "withbase,toneandcontrast". Read literally, a decorative fill gets a contrast floor too, and Glaze then moves it to a mid-tone that passes every check. The patch now matches theglaze-themeskill and the theme docs: an absolutetoneor abasewith a tone step, and acontrastfloor only when the color must be read.Round 19 (on
a1c5a2d): the correctness, rules, Entropy and consumer reviewers found nothing; the skeptics confirmed 1 nit from the docs reviewer, fixed ind3fa355: round 18's wording offered an absolutetoneor abaseand then acontrastfloor, so an agent could write a floor without a base, which Glaze 3.2.0 rejects ("contrast" without "base"). A color that must be read now names itsbaseand gets a floor against it. Checked against the built@tenphi/docs: an absolute tone, a base with a step, and both readable forms resolve; a floor without a base fails.Round 20 found nothing to fix (on
d3fa355): the correctness, rules, docs and consumer reviewers found no problems, and the Entropy review passed with the table above unchanged. The skeptics rejected the two remaining candidates as style: the always-on Glaze patch summarizes the skill's declaration rules (accurate, and Glaze's own rule does the same), and a request to say that component-root names such as#callout-texthave values only inside their component (the patch already scopes them, and custom properties inherit).eslint-plugin-tasty 1.21.3: a separate session fixed tenphi/eslint-plugin-tasty#174 and #175 in tenphi/eslint-plugin-tasty#176. The tools now treat the packages in
importSourcesoftasty.config.*as possible re-exporters of the plugin, and findoxlint.config.mjs. Withouteslint, the edit hook tells the agent once per session, throughPostToolUseadditionalContext, without blocking. Cookbook's validation config already lists@tenphi/cookbook/stylinginimportSources, so sites need no change. Reviewed with the PR build in a Yarn site set up as "Custom components" shows: the strict ESLint config through@tenphi/cookbook/eslint-pluginis followed without--strict, the edit hook reports the same problem,oxlint.config.mjsthrough the re-export is followed, and withouteslintthe hook tells the agent once and then stays quiet. This PR now uses 1.21.3 and drops the--strictworkaround from the lint patch,docs/agent-harness.mdandAGENTS.md.👀 For reviewers
harnesspm.jsontrusts Tasty, Glaze and the Tasty lint plugin, so their tools and the edit hook run in this repository, as in UI Kit.npx harnesspm approve(or the default branch records them).🤖 Generated with Claude Code
https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3