You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(patchy): look preview shows the Patchy look when the company has none #593
With no company look, patchy look preview with no folder refuses and --compare shows the candidate alone, even though GET /api/look now returns patchyLook, which is what the company's tools actually render. Preview could show the stand-in labelled as the Patchy look so an admin compares against what people see today. Deferred from #569.
Found while building the company look (#547). Filed by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code, for Allison.
Category: enhancement Summary: With no company look, patchy look preview shows the Patchy look that GET /api/look already returns, instead of refusing or showing the candidate alone.
Current behavior: GET /api/look (CompanyLook) carries patchyLook (the Patchy look's look.css and LOOK.md, no logo) exactly when current is null. The preview command reads only current, so with no company look:
patchy look preview (no folder) is a local refusal, exit 1 ("The company has no look yet…").
patchy look preview <dir> --compare renders the candidate alone with the note "The company has no look yet."
The global skill tells an admin to screenshot each look alone (patchy look preview <dir>, then patchy look preview); the second command fails in a company with no look. #566's "candidate alone" criterion predates patchyLook reaching the wire (#598), so this supersedes it.
Desired behavior:
When the company has a look, nothing changes: the pane is "Revision N, the company's look".
When current is null, the company-side pane is the patchyLook files, labelled "The Patchy look", with the note "The company has no look yet. New tools start from this one." Don't add Patchy's logo; the specimen already falls back to the brief's heading as a wordmark.
patchy look preview with no folder renders that single pane, exit 0. The file still passes patchy validate, as single-look previews do.
patchy look preview <dir> --compare frames the candidate beside the Patchy look. The candidate pane no longer carries a "no look yet" note.
Unchanged: the --json success shape { ok, path, failures, warnings? }; failures lists only the candidate's publish failures (empty for a company or Patchy pane); a candidate alone previews offline with no request; --compare without a folder is local exit 1 before any request. Keep the existing local refusal for the case where the response has neither current nor patchyLook; the server never sends it, but the schema allows it.
Key interfaces:
CompanyLook.patchyLook: already on the wire; preview starts reading it. No API, server or generation change.
Pane ({ files, label, note? }) and previewPage(first, second?): reuse as-is; no renderer change.
Acceptance criteria:
With no company look, patchy look preview --json exits 0 with { ok: true, failures: [] }; the file shows "The Patchy look" and the note, has no data:image/svg+xml logo, and passes validateHtml.
With no company look, patchy look preview <dir> --compare writes two frames titled "Candidate" and "The Patchy look".
With a company look, both commands behave as today (existing CLI tests stay green).
A candidate alone sends no request; --compare with no folder is still exit 1 with no request.
Docs that describe the old behaviour are updated: the CLI README's look section (command table, the --compare paragraph and the exit-1 paragraph), ADR-0004's look preview contract, the product doc's specimen paragraph, the command's own help strings, and the comment on the browser-tier compare spec (comparison needs an instance, not "a current look").
The global patchy skill's "Changing the look" guidance says --compare shows the candidate beside the company's look, or the Patchy look when there is none, and the skills-lock.json hash matches.
Activity
allisonmahmood commentedon Oct 9, 2026
Agent Brief
Category: enhancement
Summary: With no company look,
patchy look previewshows the Patchy look thatGET /api/lookalready returns, instead of refusing or showing the candidate alone.Current behavior:
GET /api/look(CompanyLook) carriespatchyLook(the Patchy look'slook.cssandLOOK.md, no logo) exactly whencurrentis null. The preview command reads onlycurrent, so with no company look:patchy look preview(no folder) is a local refusal, exit 1 ("The company has no look yet…").patchy look preview <dir> --comparerenders the candidate alone with the note "The company has no look yet."The global skill tells an admin to screenshot each look alone (
patchy look preview <dir>, thenpatchy look preview); the second command fails in a company with no look. #566's "candidate alone" criterion predatespatchyLookreaching the wire (#598), so this supersedes it.Desired behavior:
currentis null, the company-side pane is thepatchyLookfiles, labelled "The Patchy look", with the note "The company has no look yet. New tools start from this one." Don't add Patchy's logo; the specimen already falls back to the brief's heading as a wordmark.patchy look previewwith no folder renders that single pane, exit 0. The file still passespatchy validate, as single-look previews do.patchy look preview <dir> --compareframes the candidate beside the Patchy look. The candidate pane no longer carries a "no look yet" note.--jsonsuccess shape{ ok, path, failures, warnings? };failureslists only the candidate's publish failures (empty for a company or Patchy pane); a candidate alone previews offline with no request;--comparewithout a folder is local exit 1 before any request. Keep the existing local refusal for the case where the response has neithercurrentnorpatchyLook; the server never sends it, but the schema allows it.Key interfaces:
CompanyLook.patchyLook: already on the wire; preview starts reading it. No API, server or generation change.Pane({ files, label, note? }) andpreviewPage(first, second?): reuse as-is; no renderer change.Acceptance criteria:
patchy look preview --jsonexits 0 with{ ok: true, failures: [] }; the file shows "The Patchy look" and the note, has nodata:image/svg+xmllogo, and passesvalidateHtml.patchy look preview <dir> --comparewrites two frames titled "Candidate" and "The Patchy look".--comparewith no folder is still exit 1 with no request.--compareparagraph and the exit-1 paragraph), ADR-0004's look preview contract, the product doc's specimen paragraph, the command's own help strings, and the comment on the browser-tier compare spec (comparison needs an instance, not "a current look").patchyskill's "Changing the look" guidance says--compareshows the candidate beside the company's look, or the Patchy look when there is none, and theskills-lock.jsonhash matches.Out of scope:
patchyLookfiles.--compare.GET /api/look, the Patchy look's files, or generation.