Repository navigation
docs(claude.md): Design Rule 9 (ship with proof + commit KB) + v2 layout guards - #577
Merged
Merged
Conversation
…layout guards - CLAUDE.md Rule 9: code lands with a test at the right tier; v2 layout/CSS changes need a real-browser check (jsdom is layout-blind); git-commit KB the same session it's written. - frontend/src/v2/__tests__/v2-layout-invariants.test.ts: CSS-rule-presence guards for the two invariants that regressed in prod — the Your-Team card name owning its line (#568) and the showcase being its own scroll container (#575), plus the agent-profile sibling. A stand-in until a browser-layout test tier exists; it guards the exact failure mode (an override rule going missing). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9
Make the deferral a tracked decision (repo's paused-with-trigger pattern): stand up a browser-layout CI tier only when a 2nd person is regularly shipping UI or the shell has real users — until then, presence test + in-browser habit.
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.
Codifies the two gaps from today's discussion.
CLAUDE.md Design Rule 9 — "Ship with proof, and commit what you learned": code lands with a test at the right tier; v2 layout/CSS changes need a real-browser (MCP Playwright) check because jsdom has no layout engine (the showcase clip #575 and the card-name crush #568 are invisible to render tests); git-commit the memory/KB the same session (the 2026-07-02 backlog of 14 uncommitted entries was the real failure, not a missing rule).
v2-layout-invariants.test.ts: CSS-rule-presence guards for the two invariants that regressed in production — card name owns its line (#568, which regressed twice via a stale-base revert) and showcase is its own scroll container (#575), plus the agent-profile sibling. Verified passing against the current CSS. This is a deliberate stand-in until a browser-layout test tier exists — no committed Playwright harness exists yet (@playwright/testis a dep but there's no config), and standing one up is more than two guards warrant right now.🤖 Generated with Claude Code