Repository navigation
fix: close the design pre-flight and the token collision that hid the legal disclosure - #39
Merged
Merged
Conversation
Inter's Google Fonts subset drops the `zero` feature this product depends on for 0/O disambiguation on a numbers-first calculator. Atkinson Hyperlegible Next carries the slash in its default zero glyph instead, so the swap keeps the guarantee without leaning on a feature the subsetter silently strips. The eleven type-ramp steps in `app/globals.css` are re-tuned (line-height, tracking) to Atkinson's metrics, and the Vitest font mock follows the same rename. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
lucide-react's default stroke width does not hold optically constant across the product's three icon sizes the way Tabler's does, and Tabler ships the fill/stroke variants the redesign's iconography section relies on. Every icon import and usage moves in the same commit because the two libraries cannot coexist mid-file without a component rendering an icon that no longer exists. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ement mode
lib/payroll.ts called R$ 8.475,55 the "teto de contribuição"; it is
the teto do salário de contribuição, and confusing the two misstates
which figure the discount actually caps at (Portaria Interministerial
MPS/MF nº 13/2026, art. 2º). The RPPS estatutário row made the same
mistake in reverse, naming the CLT ceiling "teto do INSS". Both are
now precise, and every affected disclosure string drops its em-dash
in favor of two sentences per copy.md's separator rule.
HeroPanel gains a statement mode so it can carry a non-numeric legal
disclosure ("Sem carga horária") without the numeral step's tabular
figures or forced single line, replacing a bare em-dash that a screen
reader announced inconsistently.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The app computes a single day's saldo (day-summary.tsx renders stats.balance for that day only); nothing in lib/ accumulates a balance across days, a settlement window, or a pactuação, which is what CLT art. 59 §§2º, 5º e 6º actually names a banco de horas. The claim appeared in the h1, both root alts, the JSON-LD name and the work view's heading — retired from all seven locations and replaced with "saldo do dia". PRODUCT.md gains an Evidence row for the single-day computation and a non-claims table recording why banco de horas may not be claimed until the accumulation is actually built. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Three costs sat in front of first paint: a spring-based mount fade on both hero columns, a min-h-screen that undercounts the mobile viewport during the address-bar animation, and two <link rel="preconnect"> handshakes to origins only ever contacted from a useEffect after cookie consent. None of the three ever renders before consent is granted, so the connection was speculative on every load. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Every fix this cycle made by hand (the banco de horas retirement, the INSS ceiling wording, the icon library, the viewport unit, the em-dash separators) is now also asserted by a regression suite that reads the shipped source directly, so a future edit that reintroduces any of them fails a test instead of waiting for the next audit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Records the Atkinson swap (including why the OpenType zero feature never worked and where the 0/O disambiguation actually comes from now), the re-tuned type ramp, the Tabler iconography section, the HeroPanel statement mode, and adds the Design Read and Dials section naming this product's variance/motion/density levels and why they depart from the 8/6/4 baseline. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… dev server preview.mjs and check-reduced-motion.mjs imported `playwright` instead of the installed `@playwright/test`, and preview.mjs's dialog-probing loop assumed a portfolio-squad UI (`#projects article button`) this project doesn't have — both silently broke every axe-core capture this repo's own gates depend on. @axe-core/playwright was never added to package.json despite the tool requiring it. route-js.mjs is vendored to read gzipped route JS from a production build now that Next 16 no longer prints "First Load JS". playwright.config.ts stops reusing a dev server this run did not start: a foreign server launched without NEXT_PUBLIC_ENABLE_ADS was silently serving pages with the ad markup missing, producing 21 false e2e failures blamed on the application. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Full spec artifacts for 0002 (spec, legal, design, copy, plan, STATUS, all G6/G7/G8 reports) plus the three follow-up specs it opened at triage (0003 citation registry, 0004 LCP render delay, 0005 Tailwind theme-collision and dark-hydration hotfix), the 17 lessons this cycle wrote, and the INDEX/template updates that keep the squad's own bookkeeping consistent with what actually happened. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…nd inward-collapse coverage pnpm dev hides two defects a production build does not: a next-themes hydration mismatch under a dark system scheme, and a disclosure that renders as an unreadable column. The suite now serves against `pnpm build && pnpm start` locally (matching CI), a fourth Playwright project runs the whole app under a dark colorScheme, and three new checks read the rendered result rather than the intent: disclosure legibility (characters per line box), dark-theme pageerror-free hydration, and a general floor against any long text block collapsing below 240px. All three are seen red against the unfixed tree; the fixes land in the commits that follow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…e numeric scale A named --spacing-* key in a Tailwind 4 @theme block also feeds the container scale: declaring --spacing-3xl silently redefined max-w-3xl, rendering the PRODUCT.md §4 legal disclosure footer as a 64px column at every viewport. Declaring the missing --container-* keys explicitly does not fix it either — compiled against Tailwind 4.3.3, the spacing key still wins. The only fix that cannot be re-armed is emptying the namespace: the eight named steps (--spacing-hair through --spacing-3xl) are deleted and every one of their ~204 call sites across app/ and components/ moves to Tailwind's numeric scale, which derives from the same 4px base multiplier and moves zero rendered pixels. A new guard, __tests__/spacing-guards.test.ts, fails the build if a non-numeric --spacing- suffix is ever declared again, read again, or reintroduced into DESIGN.md's prose or frontmatter. DESIGN.md's spacing section is rewritten to match: the Numeric Scale Rule replaces the retired mnemonics, and two pre-existing arithmetic slips in the density table are corrected in the same pass (the 1920px+ container is 1800px, not 1600px; the QHD/4K gutter is 36px, not 32px — both already true of the shipped CSS, only the prose was wrong). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The width fix alone left the two LGPD art. 8º §4º granular-consent rows (Essential cookies, Telemetry) at roughly 20 and 19 characters per rendered line at 390px — below legal.md's LR2 floor and, for a surface that records a stored consent choice, a stricter failure than an illegible informational disclosure. The row switches from a single line to a column below sm, so each caption gets the panel's full width instead of half of it shared with a toggle control. Zero delta at 1440 and up; no control, string, token or animation added. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
AppHeader picked its icon from next-themes' resolvedTheme, which is undefined on the server and resolves only on the client's first render. Under a dark system color scheme that mismatch (server: moon, client: sun) is a real React #418 hydration error in production, not just in dev. Both glyphs now render on the server; dark:hidden/dark:block toggle which one is visible, so the decision is CSS reading the .dark class next-themes already writes pre-paint, and there is nothing left for client state to correct after the fact. The click handler reads the class from the DOM instead of resolvedTheme, since with defaultTheme="system" the hook's updater form would otherwise hand a dark-system visitor's first click the literal string "system" and do nothing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…a test AGENTS.md §8 permitted a comment where the why was non-obvious, which in practice meant every author's judgment call on "obvious" was a silent exception nobody could grep for. The rule is now absolute: no comments in app/, components/, hooks/, lib/, scripts/, __tests__/, tests/ or the root config files, with exactly two exemptions a test can recognize — a tooling directive, or, in lib/ only, a citation of a Brazilian norm. __tests__/comment-free-code.test.ts parses every file with the TypeScript compiler and fails on anything else. The two comments this removes predate this rule and were never part of spec 0005: lib/utils.ts's tailwind-merge note and google-ad.tsx's try/catch rationale. Their reasoning had no norm to cite and no tooling directive to hide behind, so it had nowhere left to live — which is the intended effect: a comment that can't satisfy either exemption should not have been written, and the code should be clear enough not to need it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Full spec artifacts for 0005 (spec, design, plan, STATUS, the four G6 reports) plus the six lessons this cycle wrote (018-023), the LESSONS.md index update, and two reconciliations found while closing the docs gate: AGENTS.md's Icons row still named lucide-react after the swap to @tabler/icons-react, and .specs/INDEX.md's holder for 0005 still named product-designer after G6 closed pass on all four reviewers. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Written after the previous commit, since it records the verification of every commit in this stack including itself; keeping it a separate commit avoids rewriting an already-made one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
devRMA
marked this pull request as ready for review
September 15, 2026 16:34
Three confirmations each: state a prohibition over its whole boundary (006) and never name an unrun verification command (012) are now binding on every criterion-writer via AGENTS.md §5, "How a criterion is written". Lesson 008 is folded into 012 before promotion — same rule from the plan's side. Lesson 021 merges into 022, which now states the guard/payload boundary from both directions and applies to all agents. Confirmed but not yet promoted: 001, 005, 011, 013, 015, 016, 017, 019, 023. Active ledger: 23 -> 19. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Settled at 0005's G10 so it is not re-litigated every G9: a Vercel preview injects the vercel.live toolbar script and an x-robots-tag: noindex header that this app never ships and production never sees, sinking best-practices and seo on their own. .lighthouserc.js is unchanged; what changes is that those two categories are measured and reported at G9 but not scored against the budget on a *.vercel.app host, and only once the attribution is proved per failing audit item. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
G9 verified the fix against the deployed artifact rather than a local build: every G6 number reproduced, the payroll figures were re-derived by hand to the centavo, and axe, pageerror and LCP came back clean. Routes the three findings the preview surfaced to owners instead of leaving them in a report: the og:image host defect folds into 0004, the aggregator sourceUrl joins 0003's existing finding, and DS3 is already open as 0006. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
At every viewport, AlertBanner's icon sat inline with the body text, spending 66 CSS px of chrome (border, p-4, the 20px icon and its 12px gap) against a 32px legibility budget (LR2a). That collapsed the body column to 242px at 390 and 601.33px at 1440, rendering disclosure prose — including three compliance surfaces that quote CLT arts. 59/66/71 and TST súmulas 376/431 — at roughly 24-32 characters per line. The icon now shares the title row instead of indenting both rows of text, and horizontal padding tightens from p-4 to px-3 py-4. Spend drops to 26 of 32 at a 16px root and 29 of 32 at 18px (2560px and up), clearing the budget at every reference viewport. Vertical padding, border, icon size, radius, tone and role are unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extract the shared LR1/LR2/LR3 helpers out of disclosure-legibility into tests/e2e/support/legibility.ts (LR2 split into LR2a occupancy and LR2b measure, plus a driveUntil poller for controlled-input races), and add tests/e2e/alert-legibility.spec.ts driving all five AlertBanner consumers (C1-C5) through the states a user actually types into, at 390x844 and 1440x900, both themes. Every consumer satisfies LR2a (occupancy) at both viewports; LR2b (40 characters per line) binds and passes at 1440 for all five, and does not bind at 390 for body text above 12px — that residual is reported, not asserted, per the human's decision on the type ramp. wide-viewport.spec.ts gains one case sampling C5's chrome spend at 2560 and 3840, where the root-size ramp (16/18px) makes the spend grow even though the criteria bind at 390/1440. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The Alerts entry named a components/molecules/ path the file left some time ago and stated "16px padding" as a single figure; the alert-banner remedy makes that false (16px vertical, 12px horizontal, icon sharing the title's line). Both are corrected to match the shipped atom. Also note, at the point the root-size ramp is declared, that AlertBanner's chrome spend grows with the root (26px at 16px, 29px at 18px) against a fixed 32px budget, so a ramp step added above 18px would put the atom over budget without anyone touching it. No token, spacing step or type step changes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
spec.md, legal.md, design.md, plan.md, STATUS.md and reports/{qa,
audit,legal,ponytail}.md for 0006 — salary alert legibility. G2
splits the five AlertBanner consumers by disclosure domain (C2, C3,
C5 compliance; C1, C4 quality) and corrects LR2 into LR2a
(occupancy, binding everywhere) and LR2b (measure, binding at 1440
and at 390 only under 12px type); the human accepted the 390
residual (D-Q1) rather than shrink the disclosure type. G6 passed
after one bounce (a triplicated e2e drive helper, deduplicated).
INDEX.md's 0006 row and STATUS.md's own next-agent line brought
back in sync with the gate table now that G6 is fully closed.
Five new lessons (026-030) and four confirmation bumps (016, 017,
020, 022); active count 26/30. Carried forward, not fixed here: X1
(Súmula 431 over-extension), D3 (DESIGN.md's Motion list vs. the
atom's own lack of a transition), the 390 cpl residual (F2), and
DS2/Súmula 172's missing e2e assertion.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Written after push and CI, since it records the verification of the push itself; kept separate rather than folded into the prior commit to avoid rewriting one already made. Closes STATUS.md's release gate and updates its next-agent line to web-standards-auditor and labor-law-analyst for G9, now that CI is green and the preview is confirmed rendering. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Promote 001 and 019 (3 confirmations each) into product-manager.md § How a scope section is written; merge 025 into 024, which becomes applies-to: all, since both halves teach the same boundary from opposite sides; retire 009 as a restatement already mandated by AGENTS.md §5 with zero confirmations in three cycles. Bump confirmed counts on 010/011/013/014/015/018/023/026 with their cited applications, and record 031 (labor-law-analyst, spec 0006). Active set 26 -> 23. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Settled at 0006's G9 triage: performance and the Web Vitals stay scored on every host, including a *.vercel.app preview, because a carve-out would have hidden a real production regression. When one misses, attribute it with an A/B against a control build (the prior spec's frozen G9 deployment and production) in the same session and runner, before ruling whether the finding belongs to this diff. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
G9: web-standards-auditor's F1 (categories:performance under budget on the deployed preview) is triaged with a control-build A/B against three hosts and ruled not attributable to 0006's diff or to the preview host -- production fails the same budget with the same render-delay-equals-interactive shape. labor-law-analyst's G9 passes at 64/64 banner cells reproduced on the deployment. G10 closes the spec as done, records the four-bounce ledger, and hands four debts forward with owners and triggers (X1, D3, F2, DS2/F-G9-1). F1 is not this spec's: append it to 0004-lcp-render-delay/STATUS.md as a live production failure (0.91/0.76/0.75, LCP 3.26-5.61s against the 2500ms budget) with the instrument it needs -- the control-build A/B, the phase-equality criterion, and the real-browser LCP probe. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Append what commits 479d602/6bffb1b/fa73c2d actually landed, the attribution source, the recorded human approval, the PR #39 body additions (0006's verification numbers and the production performance-budget warning), and the CI result, so the report reflects what release-manager ran rather than what tech-lead intended. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>
This branch was successfully deployed
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.
Fecha o pre-flight da Section 14 do
design-taste-frontend(spec0002) e corrige os dois defeitos que esse pre-flight expôs (spec0005).Por que este PR bloqueava a pilha
O
#35introduziu um@themecom uma escala semântica--spacing-hair|xs|sm|…|3xl. No Tailwind 4 esse namespace também alimenta a escala de container, entãomax-w-3xlpassou a resolver contra--spacing-3xl. Medido em build de produção: o rodapé do aviso legal renderizava a 64px em 390 e em 1440. Invisível para todo check existente — não é overflow, então o Playwright passava; não é contraste, então o Lighthouse dava 1.0.mainnunca teve o defeito. Mergear a pilha sem este PR é exatamente o ato que colocaria o aviso legal de 64px em produção. Com este PR, a condição de bloqueio cai.O que muda
0002— pre-flight de design (9 commits)0/O,1/linequívocos.lucide-react→@tabler/icons-react(lista permitida da skill).min-h-screen→min-h-[100dvh].altde OG/Twitter e o JSON-LD.PRODUCT.md.0005— os dois defeitos (7 commits)--spacing-*colidente deletado, ~204 usos migrados para a escala numérica (hair→0.5, xs→2, sm→3, md→4, lg→6, xl→8, 2xl→12, 3xl→16— mapeamento 1:1, zero pixel movido). Guard test impede a redeclaração.sm: a escolha do art. 8º §4º da LGPD rendia ~20 caracteres por linha, o que a torna inoperável.Transversal: comentários removidos do código e a regra do
AGENTS.md§8 passa a ser aplicada por teste (__tests__/comment-free-code.test.ts), em commit separado.0006— legibilidade dos alertas (4 commits)AlertBannerindentava o corpo do texto sob o ícone em toda consumidora, gastando 66 CSS px de um orçamento de 32 (LR2a) — o corpo colapsava para 242px em 390 e 601,33px em 1440. O ícone passa a compartilhar a linha do título; o padding horizontal aperta dep-4parapx-3 py-4. O corpo passa a 282px em 390 e 641,33px em 1440, nas cinco consumidoras (salary-calculator.tsx×3,journey-form.tsx,day-summary.tsx), três das quais citam CLT arts. 59/66/71 e Súmulas 376/431 do TST. Verificado no deploy (G9), não só localmente: 48 de 48 células no domínio de LR2a (as cinco consumidoras × 4 larguras × 2 temas, mais as três superfícies que passam a satisfazer o piso) reproduzem os números do G6 dígito a dígito.tests/e2e/alert-legibility.spec.ts) mede LR2a/LR2b nas cinco consumidoras, em ambos os viewports e temas;tests/e2e/wide-viewport.spec.tsganha um caso em 2560/3840, onde a escala de root (16→18px) faz o gasto de chrome crescer mesmo com o orçamento fixo.DESIGN.md: entrada de Alerts corrigida (caminho e padding) e uma frase nova avisa que um novo degrau de escala acima de 18px estouraria o orçamento do atom sem que ninguém o tocasse.legal.md§13 Q1): reduzir a tipografia trocaria um defeito de legibilidade por outro nos mesmos usuários. O residual é reportado, não absorvido.Verificação
O gate jurídico é bloqueante neste repositório e mediu em browser real, build de produção, 390 e 1440, ambas as rotas, ambos os temas:
lib/ehooks/pageerrorem produção, nos dois temasDocumentação completa em
.specs/0002-design-taste-preflight/e.specs/0005-tailwind-theme-collision-and-dark-hydration-hotfix/.Dívida registrada, com dono
DS3 (— fechada pela specsalary-calculator.tsx:125) rende ≈24 caracteres por linha em 3900006acima (LR2a, todas as consumidoras). O residual de LR2b a 390 permanece por decisão humana e é reportado, não é dívida..agents/memory/archive/019-probe.mdé arquivo órfão de teste dolesson.mjs; sinalizado, não apagado.lib/salary-period.ts:40esalary-calculator.tsx:151atribuem a Súmula 431 do TST uma regra geral de divisor que o texto da súmula só cobre para 40h semanais. Os números (220/200) estão corretos; a citação está estendida além do que a súmula diz. Devida aoproduct-manager, numa spec com escopo para abrirlib/salary-period.ts.DESIGN.md§ Motion listaalertentre as superfícies que animam; o atom não tem transição e a spec0006não adiciona uma. Devida aoproduct-manager, na próxima spec com escopo sobreDESIGN.md§ Motion.categories:performanceabaixo do orçamento, medido no preview e em produção — ver o aviso no topo deste PR. Não é atribuível a nenhum commit desta pilha; devida aoproduct-manager, já registrada na spec0004com o instrumento de investigação.🤖 Generated with Claude Code