Repository navigation
feat(patchy): repos hear when the company look changes, and publish warns when behind - #581
Conversation
|
Review round 1 (stack orchestration for #547): one Claude Opus 5.5 reviewer and three GPT-6.1 Sol reviewers (notice correctness, YAGNI + contract + tests, and an end-to-end read of every notice and warning through the bundled CLI against a dev instance), read-only against Agreed sound: every transition's wording (none → 1, 7 → 8, 8 → 7, 1 → none, the dropped-logo sentence) is exact and grammatical in text and Sent to the builder:
Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code. |
|
Review round 2: the orchestrator read the fix commits ( Verdict from the orchestrator: ready to merge after #579. Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code. |
49a2856 to
df2429c
Compare
When generation brings in a different look revision from the one the repo's index.json had, and the page's source names the generated look.css or logo, the CLI prints "Acme's look changed, rev 7 → 8 by Sam: darker green. Colours and fonts follow; to restyle this tool's components, ask your agent to update it to the current look." and puts it in --json warnings. Restores, a first look and a return to no look read the same way; a page whose new look dropped its logo is told the reference must go. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Publish never pulls a look revision. For a page that uses the look, it reads the company's current revision once, and when the repo's differs it publishes the repo's own revision unchanged, exits 0 and warns, naming patchy refresh. A page that doesn't use the look sends no look request. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…mand The scan now covers every HTML, CSS and script file outside dependencies, builds, dot folders and generated files, so a root stylesheet that imports the look counts, and it skips comment lines, so a commented-out import doesn't. Revisions compare by number and time, since numbers restart per company. The checks are advisory: a failed look read at publish becomes a warning and the publish goes ahead, before the build; a refresh without /api/me names "The company". Notices are remembered only once activation succeeds, so a rolled back refresh announces nothing, and publish remembers its warning when found. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… say Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
58f360a to
b449d5d
Compare
Release 8 of What's new, written for the deploy of the company look stack (#547, first build). It covers everything merged after release 7's `through`. - **New: Your tools can look like your company** — #577, #579 - **New: Preview a look before you publish it** — #578 - **New: Setting up Patchy sets up your look** — #598 (the rebased replacement for #582) - **Improved: Patches hear when the look changes** — #581 - **Improved: Static pages can use embedded fonts** — #576 - Behind the scenes: the personal style file retires (#598) Written by Claude Fable 5.1 in Claude Code, running in T3 Code. Co-authored-by: Claude Fable 5.1 <[email protected]>
Since #567, dev start and refresh quietly swap a repo's look files to the company's current revision. Nobody hears that the tool's colours just changed, and publish ships whatever revision the repo happens to have.
Now the CLI says so, but only to pages that use the look:
addandremove) brings in a different revision from the one in the repo'sindex.json, the CLI printsAcme Co's look changed, rev 1 → 2 by Ada Park: darker green. Colours and fonts follow; to restyle this tool's components, ask your agent to update it to the current look.Under--jsonit goes inwarnings. A restore readsrev 2 → 1, a first looknone → rev 1, and a return to no lookrev 1 → none, so the Patchy look stands in. If the new look has no logo and the page namespatchy/_generated/logo.svg, the notice adds one sentence: the reference must go, because the next build fails on it. A dev start that fails on that build still prints the notice first, and in the failure document'swarnings. The notice is remembered only once the new files are activated, so a rolled-back refresh announces nothing.GET /api/look) before building. When the repo's revision differs, it ships the repo's own revision unchanged, exits 0 and warns:This repo has Acme Co's look rev 3, but the current look is rev 4 by Ada Park: darker green again. This version keeps the repo's look; run patchy refresh to bring it up to date.Could not check whether this repo's look is current: …and goes ahead. If refresh can't read/api/me, the notice says "The company's look changed".patchy/_generated/look.cssorlogo.svg. Every.html,.cssand script file counts, outsidenode_modules/,dist/, dot folders andpatchy/_generated/. That covers the tier 1 and 2 import, the tier 0<link>, and a root stylesheet that@imports the look; tier 0 hears notices too. A commented-out import doesn't count. An alias, or a file nothing imports, is outside the rule. A page that names neither file hears nothing, and its publish sends no look request.This is a text check, not the build's import walk the ticket mentions. The walk is a Vite plugin and only runs inside a build. Dev start and refresh decide what to say before any build runs, and when a look drops its logo, the build fails. That is the case where the notice matters most. One check serves all three commands. Revisions compare by number and creation time, since numbers restart per company.
ADR-0004, the CLI README, the
patchy-loopskill anddocs/product.mddescribe the notice and the warning.Closes #568
Built by Claude Opus 5.5 in Claude Code, running in T3 Code.