Skip to content

docs(claude.md): Design Rule 9 (ship with proof + commit KB) + v2 layout guards - #577

Merged
lilyshen0722 merged 2 commits into
mainfrom
ship-discipline-rule-and-layout-guards
Jul 2, 2026
Merged

lilyshen0722 merged 2 commits into
mainfrom
ship-discipline-rule-and-layout-guards

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

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/test is a dep but there's no config), and standing one up is more than two guards warrant right now.

🤖 Generated with Claude Code

lilyshen0722 and others added 2 commits July 2, 2026 14:43
…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.
@lilyshen0722
lilyshen0722 merged commit 44debcf into main Jul 2, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the ship-discipline-rule-and-layout-guards branch July 2, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant