Repository navigation
feat(companies): a company look with revisions, and patchy look, look publish and look restore - #577
Conversation
|
Review round 1 (stack orchestration for #547): one Claude Opus 5.5 reviewer and three GPT-6.1 Sol reviewers (server, publish checks, YAGNI + CLI contract), each read-only against Agreed sound: revision numbering under the company row lock ( Sent to the builder, all in the checks module and fixtures:
Judged not worth a check (the look's author is an admin of the company whose patches it reaches, so the checks catch mistakes, not attacks on one's own company): logo Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code. |
|
Review round 2: a GPT-6.1 Sol verifier re-probed the fix commits in css-tree and Chromium. Every round-1 refusal probe now refuses; honest CSS (a leading Verdict from the orchestrator: ready to merge after #576. Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code. |
One pure module, @patchy/core/look, that the CLI and the instance both run: the 15 tokens declared once each as opaque #RRGGBB, no !important, everything inside @layer look, WCAG contrast for text on both grounds and accent-fg on accent, data: URLs only, and the two size caps from the limits registry. The four prototype looks, contrast-fixed, are its fixtures. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A company owns numbered look revisions, each with its author, time, note and three files, and a nullable pointer to the current one. GET /api/look is for any active member; POST /api/look/publish and /api/look/restore are admin-only and refuse members with the active admins' names. Publishing reruns the core look checks and serializes per company; restore moves the pointer only. Both report business events after commit. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
patchy look prints the company's current revision and history, with the files' contents under --json. look publish checks a look folder with the core look checks before sending it; look restore takes a revision number or none. A member's refusal relays the admins to ask in the failure document. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t map Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d commits Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Duolingo's lip, press and uppercase labels and Patchy's hover shadow and press move from plain elements into LOOK.md recipes; element styles keep to colours, fonts, borders, radius and spacing, as the verdict on #547 asks. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A token counts only in a :root rule directly inside @layer look, and @Property may not register one. Escaped names, string addresses in image-set() and src(), NUL characters, and a logo with script, handlers or foreignObject are refused. A leading @charset and the @layer look; statement are accepted. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…n_unavailable Looks.Revision and Current become plain interfaces; nothing decodes them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…mary Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…s colour only Refusing every @Property closes an escaped prelude registering a token; a look never needs one. The Linear fixture's plain button hover drops its brightness filter for a colour mix. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
04a396b to
bdbe5c2
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]>
A company has nowhere to keep its look: no revisions, no way for an admin to publish or roll one back, and nothing a member's agent can read. This is ticket 2 of the company-look stack (#547).
How
@patchy/core/look.checkLook(files)returns one line per failure: the 15 tokens each declared once, colours opaque#RRGGBB, no!important, everything but@font-faceinside@layer look, 4.5:1 for every text colour on bg and on surface and for accent-fg on accent, no@importand onlydata:URLs (the logo may use#fragmentlinks), and thelook.bytesandlook.brief.bytescaps from the limits registry. The CLI runs it before sending; the instance runs it again. The four prototype looks, with the contrast fixes and the two status tokens added, are its fixtures underpackages/core/fixtures/looks/.look_revisions(company, number, author, note, the three files inline) and a nullablecompanies.current_look_revision, with a composite foreign key so the pointer can only name the same company's revision. Publish locks the company row and takes the next number. Restore moves the pointer and copies nothing. No look is the starting state.lookAPI group.GET /api/lookfor any active member;POST /api/look/publishand/api/look/restorefor admins. A member gets 403admin_requiredwith the activeadmins. Publish and restore are business events (look.published,look.restored), reported after commit.patchy look(history, and the files' contents under--json),patchy look publish <dir> --note "…"andpatchy look restore <n|none>, with exit codes and--jsonper ADR-0004. The failure document now carriesadmins.docs/API.md, ADR-0004, the CLI README,docs/limits.md, the Companies glossary (Look, Look revision),docs/product.md, the context map and the operations event list.Seams for the next tickets. #566 (preview) imports
checkLookandLOOK_TOKENSfrom@patchy/core/look. #567 (generation) readsLooks.Looks→read(companyId).current, which carries the revision number, author, note and files.Closes #565
Built by Claude Opus 5.5 in Claude Code, running in T3 Code.