From 558c49e1a1031dbb41cf17a735635bf8bfd733ae Mon Sep 17 00:00:00 2001 From: bchanot Date: Sun, 18 Oct 2026 18:10:20 +0200 Subject: [PATCH 1/7] feat(guardrails): secure-by-default rule and /guardrails scanner Always-on rules/secure-by-default.md: hosting, a11y, Supabase RLS, SMS/email consent, cloud functions, API hygiene incl. password storage. Stdlib scanner (FAIL/WARN/MANUAL) + skill, 89-check suite, auditor gate wiring, profiles, routing row (plus Explore rows confirmed through the router dialog). --- CHANGELOG.md | 1 + CLAUDE.md | 2 +- README.md | 1 + USAGE.md | 2 + agents/interviewer.md | 1 + agents/security-auditor.md | 11 +- lib/profiles/audit.profile | 1 + lib/profiles/backend.profile | 1 + lib/profiles/dev.profile | 1 + lib/profiles/full.profile | 1 + lib/profiles/max.profile | 1 + lib/profiles/web-full.profile | 1 + .../fixtures/guardrails-good/.env.example | 2 + lib/tests/fixtures/guardrails-good/.gitignore | 2 + .../fixtures/guardrails-good/docs/DEPLOY.md | 6 + .../fixtures/guardrails-good/firebase.json | 1 + .../guardrails-good/functions/index.js | 8 + .../fixtures/guardrails-good/package.json | 1 + .../guardrails-good/src/app/routes/Home.tsx | 6 + .../src/components/ContactForm.tsx | 31 ++ .../fixtures/guardrails-good/src/lib/auth.ts | 11 + .../guardrails-good/src/middleware.ts | 5 + .../guardrails-good/src/pages/api/notes.ts | 7 + .../fixtures/guardrails-good/src/styles.css | 13 + .../guardrails-good/supabase/config.toml | 2 + .../supabase/functions/notify/index.ts | 22 ++ .../supabase/functions/sms/index.ts | 16 + .../supabase/migrations/0001_init.sql | 55 +++ .../fixtures/guardrails-good/vercel.json | 1 + lib/tests/guardrails-scan.test.sh | 281 +++++++++++++++ mods/model-router/routing.json | 7 +- rules/secure-by-default.md | 53 +++ skills/guardrails/SKILL.md | 82 +++++ skills/guardrails/references/checks.md | 155 ++++++++ skills/guardrails/scripts/checks/__init__.py | 1 + skills/guardrails/scripts/checks/a11y.py | 239 +++++++++++++ skills/guardrails/scripts/checks/apis.py | 173 +++++++++ skills/guardrails/scripts/checks/common.py | 163 +++++++++ skills/guardrails/scripts/checks/functions.py | 242 +++++++++++++ skills/guardrails/scripts/checks/hosting.py | 101 ++++++ skills/guardrails/scripts/checks/messaging.py | 164 +++++++++ skills/guardrails/scripts/checks/passwords.py | 137 ++++++++ skills/guardrails/scripts/checks/supabase.py | 332 ++++++++++++++++++ skills/guardrails/scripts/scan.py | 129 +++++++ skills/guardrails/test-prompts.json | 6 + 45 files changed, 2473 insertions(+), 5 deletions(-) create mode 100644 lib/tests/fixtures/guardrails-good/.env.example create mode 100644 lib/tests/fixtures/guardrails-good/.gitignore create mode 100644 lib/tests/fixtures/guardrails-good/docs/DEPLOY.md create mode 100644 lib/tests/fixtures/guardrails-good/firebase.json create mode 100644 lib/tests/fixtures/guardrails-good/functions/index.js create mode 100644 lib/tests/fixtures/guardrails-good/package.json create mode 100644 lib/tests/fixtures/guardrails-good/src/app/routes/Home.tsx create mode 100644 lib/tests/fixtures/guardrails-good/src/components/ContactForm.tsx create mode 100644 lib/tests/fixtures/guardrails-good/src/lib/auth.ts create mode 100644 lib/tests/fixtures/guardrails-good/src/middleware.ts create mode 100644 lib/tests/fixtures/guardrails-good/src/pages/api/notes.ts create mode 100644 lib/tests/fixtures/guardrails-good/src/styles.css create mode 100644 lib/tests/fixtures/guardrails-good/supabase/config.toml create mode 100644 lib/tests/fixtures/guardrails-good/supabase/functions/notify/index.ts create mode 100644 lib/tests/fixtures/guardrails-good/supabase/functions/sms/index.ts create mode 100644 lib/tests/fixtures/guardrails-good/supabase/migrations/0001_init.sql create mode 100644 lib/tests/fixtures/guardrails-good/vercel.json create mode 100644 lib/tests/guardrails-scan.test.sh create mode 100644 rules/secure-by-default.md create mode 100644 skills/guardrails/SKILL.md create mode 100644 skills/guardrails/references/checks.md create mode 100644 skills/guardrails/scripts/checks/__init__.py create mode 100644 skills/guardrails/scripts/checks/a11y.py create mode 100644 skills/guardrails/scripts/checks/apis.py create mode 100644 skills/guardrails/scripts/checks/common.py create mode 100644 skills/guardrails/scripts/checks/functions.py create mode 100644 skills/guardrails/scripts/checks/hosting.py create mode 100644 skills/guardrails/scripts/checks/messaging.py create mode 100644 skills/guardrails/scripts/checks/passwords.py create mode 100644 skills/guardrails/scripts/checks/supabase.py create mode 100644 skills/guardrails/scripts/scan.py create mode 100644 skills/guardrails/test-prompts.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 7288f3f..f6ea3c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/) and this project ## [Unreleased] ### Added +- **Secure-by-default guardrails**: `rules/secure-by-default.md` (always on) makes five domains baseline on every project, plus systematic API and access hygiene (auth on every route, CORS, secrets, passwords hashed with argon2id or bcrypt, never compared in clear, logged or hardcoded): hosting (rate limit, CDN and firewall, hard spend cap), accessibility (keyboard, visible focus, alt text, field labels), Supabase (RLS on every table, owner-scoped policies, no service role key client-side), SMS and email (recorded consent, unsubscribe, STOP), cloud functions (no self-trigger, instance cap, budget stop). `/guardrails` audits them: a stdlib Python scanner (`skills/guardrails/scripts/scan.py`, FAIL / WARN / MANUAL, exit 1 on FAIL) then judgment, report in `.claude/audits/GUARDRAILS.md`. The security-auditor gate runs the scanner's `api` and `supabase` domains and blocks on FAIL. Items only a provider dashboard can set stay MANUAL, never claimed done. Suite: `lib/tests/guardrails-scan.test.sh` (clean fixture plus one mutant per rule). - **model-router mod**: `mods/model-router/`, a Claude Code mod (function-hooks plugin), routes every repo skill and agent from phase rows (`plan`, `reflect`, `orchestrate`, `escalate`, `judge`, `implement`, `write`, `verify`, `explore`, `apply`, `mechanical`; built-ins Explore on sonnet/medium, Plan on opus/xhigh). A typed skill routes the main loop to its row, and a best-tier row holds across turns in a run slot until `/route clear`, `/route off`, a user `/model` or a typed skill on a non-best row. Agents get their row's model at spawn (within the tier, upward only) and its effort on every step; explicit Agent params win. Orchestrators declare their phases through the `mcp__model-router__route` tool. `ultrathink` in a prompt sets the turn's minimum effort and `/route effort=max` holds until `/route clear`; the built-in `/effort` is not a lever inside a run. `/route show` names the run slot (`main: run `), and a `null` row in the override drops a default row. The model gets a `route` tool and the user a `/route` command (`show|clear|off|on|reload|pending|ask on|off|forget ||model= effort=|switch on|off|verbose on|off`). Optional per-machine config `~/.claude/model-router.json`, where `"enabled": false` turns it off on that machine. The spinner suffix and the status line show the route in force. It loads in every session through the tracked symlink `skills/model-router` (`model-router@skills-dir`). `make doctor` gains a Mods section; suite `make test suite=lib/tests/mods.test.sh`. Known limits: a main-loop switch runs only while the cold read it costs (the context minus what the target model's prompt cache holds) fits `upgradeMaxTokens` (200000) or `downgradeMaxTokens` (120000), and a downgrade also needs `mainModelSwitch` (on by default, off on any non-boolean value); the hooks send full model ids, so the `models` table has to follow new versions. - **model-router first-use confirmation**: `mods/model-router/routing.json` (tracked) is the single source of the phase table and of every skill and agent row, and keeps the decisions: `confirmed`, `changed` (`from`/`to`), `projects` exceptions keyed by the origin remote reduced to `host/path` (credentials and local paths never stored), and `ask`. The first use of a rowed typed skill, a rowed agent spawn or a main-loop phase declared through the `route` tool opens a dialog with context: the skill's description (first sentence of its `SKILL.md` frontmatter) or the agent's, the phase with its `about` line (a new field on each of the 11 phases) and the model id and effort the next step really runs on. A row offers Later, Keep or Change; a main-loop phase Later or Keep. Change asks the model (fable, opus, sonnet, haiku with their tier), then the effort among those the phases of that model use (skipped when there is only one), then Everywhere or This project only; the pair maps to an existing phase (rows stay phase names, the same phase counts as Keep, a pair no phase offers is added by hand as a new phase). A skill-row change toasts the model and effort it now runs on, with the `/route switch on` hint when the main loop holds back a downgrade; a free-text answer counts as Later. One dialog at a time, never in headless (`-p`) runs or inside a sub-agent. Only a dialog answer, `/route ask on|off` or `/route forget` (which takes decisions back; a changed row returns to its shipped phase, the frontmatter floors stay yours to realign) writes the file (serialized, 64 KiB cap, never created when absent); each write asks you to commit it from the config repo. `/route pending` lists unconfirmed rows and phases. Layers: routing.json < `~/.claude/model-router.json` (its `ask` wins); a project's `.claude/model-router.json` is never read. Tests: `mods/model-router/hooks/register.test.ts`. - **Manual-push mode**: `git config gitflow.autopush false` (human-set) now stops every push the gitflow lib makes, not only the post-commit / post-merge hooks. `gitflow start` and `finish` branch, commit and merge locally and push nothing; `gitflow delete` leaves the `origin/` copy in place and prints `git push origin --delete
` for the user to run. `hooks/unpushed-guard.sh` stays silent at turn end in this mode and opens each session with one `ℹ manual push mode:` line counting the commits no remote holds across every local branch; an unparseable or unreadable `gitflow.autopush` value is treated as manual push mode too, and that line names it. `hooks/push-guard.sh` (PreToolUse, `Bash|Monitor`) refuses any `git push` Claude types while `gitflow.autopush` reads false in the session cwd or in a literal `-C`/`cd` directory the command names (global config counts outside a repo); the refusal tells the user to run it with `! git push`. It reads the mode through the same lib verb as every other reader and fails closed: an unparseable or unreadable value reads as manual, and an internal error, a missing `lib/gitflow.sh`, more than 20 distinct directory tokens in one command (capped before any token is classified), a `cd`/`-C` directory token mixing quoted and unquoted parts, or a payload jq cannot parse whose raw text looks like a push refuse the push (these pathological cases fire in auto mode too). Directory tokens are read as whole shell words, adjacent quoted segments and backslash escapes included. Once the text looks like a push, the command is split into simple commands (quotes, escapes, separators, heredoc bodies dropped) and a push must be git's own subcommand in one of them: `grep "git push"`, `git log -S "git push"`, `git config --get push.default`, `git stash push`, a heredoc quoting a push or a commit message naming one are allowed; `bash -c` scripts are re-checked, wrappers (`sudo`, `env`, `eval`, `xargs`, `timeout`, `git subtree`...) and assignments keep the text verdict. The misses listed in its header fall to a new `autoMode.soft_deny` rule that no request in the turn clears. The session banner adds `🔒 push : manual (autopush=false) — ! git push` when the key reads false, and `🔒 push : manual (autopush bad) — ! git push` when the value is invalid. Skills read the mode through a new lib verb, `bash ~/.claude/lib/gitflow.sh push-mode`: it prints `auto`, `manual` or `invalid` (rc 0) and names an invalid value on stderr (printable characters only, 64 at most). It is the one reader a skill may call, since the `git config` read of the key is denied to Claude. Skills push nothing on their own, except the `/release-candidate` tag in auto-push mode on an explicit go. Every "on origin" or "not pushed" line they print comes from `git rev-list --count origin/
..
` read after the fact, with the complete `! git …` command when something is left for the user to push. An invalid value (anything but unset, true or false, or a read that fails) is manual push mode for every reader and is named where it is read (see Fixed). Tests: `lib/gitflow-test.sh` T11b (push-mode verb), T18m and T18q blocks, `lib/tests/unpushed-guard.test.sh` T10-T16, `lib/tests/push-guard.test.sh` (98 checks). diff --git a/CLAUDE.md b/CLAUDE.md index aa8577a..25adfcd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -20,7 +20,7 @@ what can be path-scoped (the token win) or what is generated; always-on doctrine stays in CLAUDE.global.md. Exception: a standalone user-authored rule set that would bust the 320-line density budget may live here WITHOUT `paths:` (always-on load) — writing-style.md (BDR-085), default-language.md -(BDR-118). `paths:` globs match against the +(BDR-118), secure-by-default.md (BDR-120). `paths:` globs match against the CURRENT project's tree — a broad glob (e.g. `rules/**`) can fire in foreign projects; keep rule bodies tiny. Docs: https://code.claude.com/docs/en/memory.md#path-specific-rules diff --git a/README.md b/README.md index daf9aaa..affc7a5 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,7 @@ a different package, ships its own conflicting `graphify` bin) — see | `/reconcile` | Confront declared status (TODO, registries) against real git/fs state — surface stale items | | `/pdf-translate` | Translate a PDF to another language, output as HTML (via Vision) | | `/explain-diff` | Explain a diff, commit, branch or PR as one self-contained HTML page (background, intuition, code walkthrough, 5-question quiz), saved outside the repo | +| `/guardrails` | Audit the five baseline guardrails (hosting, a11y, Supabase RLS, SMS/email consent, cloud functions) plus API hygiene (auth, CORS, secrets, password storage): deterministic scanner, then judgment, report in `.claude/audits/GUARDRAILS.md` | | `/close` | End-of-session ritual — alias for `/capitalize --ritual` (dedup + TODO reconcile + 3-question reflection) | | `/harden` | Web hardening audit — HTTPS/TLS, HSTS, CSP, security headers | | `/web-validate` | W3C HTML/CSS validity + WCAG 2.1 accessibility audit | diff --git a/USAGE.md b/USAGE.md index 3942bd0..c97cfc9 100644 --- a/USAGE.md +++ b/USAGE.md @@ -120,6 +120,7 @@ Tu veux... | Livraison client finale | `/client-handover` | | Traduire un PDF | `/pdf-translate` | | Comprendre un changement pas suivi | `/explain-diff` | +| Auditer garde-fous (RLS, a11y, consentement, fonctions, mots de passe) | `/guardrails` | | Changer profil skills | `/profile` | | Audit/polish design (anti-slop) | `/impeccable` | | Sweep groupé tous axes (nettoyage + sécu + reconcile + doc) | `/tour` | @@ -163,6 +164,7 @@ Tu veux... | `/client-handover` | Livraison client | Audits finaux + livrable brandé | | `/pdf-translate` | Traduire un PDF vers une autre langue | Sortie HTML fidèle (images, layout, style préservés) | | `/explain-diff` | Comprendre un commit, une branche ou une PR qu'on n'a pas suivis | Page HTML autonome hors du repo : contexte, intuition, code, quiz de 5 questions | +| `/guardrails` | Vérifier hébergement, a11y, Supabase RLS, consentement SMS/email, fonctions cloud, stockage des mots de passe | Scanner déterministe puis jugement ; rapport `.claude/audits/GUARDRAILS.md` | | `/impeccable` | Audit/polish design + détecteur anti-slop déterministe | 23 verbes ; `npx impeccable detect` (exit 0/2) | | `/tour` | Sweep groupé sur un ou plusieurs projets | Sécu + nettoyage + reconcile + doc, boucle jusqu'à un pass propre | | `/route` | Voir ou fixer la route du mod model-router | show / clear / off / on / reload / pending / ask on\|off / / model=… effort=… / switch on\|off / classify on\|off (classifieur de prompt) / verbose on\|off (transitions seules) | diff --git a/agents/interviewer.md b/agents/interviewer.md index 8a6fbd8..0d5861b 100644 --- a/agents/interviewer.md +++ b/agents/interviewer.md @@ -24,6 +24,7 @@ Gather context. Produce complete PROJECT BRIEF as single source of truth. | "I don't know / you decide" | Propose ONE concrete default + why, ask yes/no | Take the default, mark `(assumed)`, list in OPEN DECISIONS | | Contradictory answers (e.g. embedded runtime + managed cloud DB) | Name the contradiction, ask which side wins | Put BOTH options in OPEN DECISIONS; do not silently pick one | | Language not stated (new project / from scratch / whole-project rewrite) | Propose Rust + why (`rules/default-language.md`); name the contraindication if another language fits better (browser frontend, mandated platform, missing ecosystem) | Rust, marked `(assumed)`, listed in OPEN DECISIONS | +| Project has an API, a database, messaging, cloud functions or a UI | Apply `rules/secure-by-default.md`: note under QUALITY which of the five guardrail domains apply, and list each dashboard-only item (spend cap, WAF, budget alert) in OPEN DECISIONS as manual | A domain applies and nothing is planned: list it in OPEN DECISIONS, never drop it silently | | Partial answer to the block | Re-ask ONLY the missing items in the follow-up round | Missing fields → `none stated` + OPEN DECISIONS entry | | Feature list balloons (>10) | Keep the 10 the user ranks first as V1 | Overflow goes to OUT OF SCOPE with a `(deferred by budget)` tag | diff --git a/agents/security-auditor.md b/agents/security-auditor.md index 01af0a3..ef9080d 100644 --- a/agents/security-auditor.md +++ b/agents/security-auditor.md @@ -13,8 +13,8 @@ classify by severity, and render a verdict. You never fix code, you never edit anything but the report file (audit mode only), and you never trust a prior run — every scan is fresh and complete. -Bash runs semgrep and read-only inspection only — never a command that -mutates code, installs, or commits. +Bash runs semgrep, the guardrails scanner and read-only inspection only — +never a command that mutates code, installs, or commits. Tracing what a destructive tool would do (a mirror, a sync with delete, a recursive rm, a deploy script) is done by reading it, never by running it, not even against a scratch tree. A brief that says otherwise is wrong: @@ -99,6 +99,13 @@ Each hit → severity + file:line + one-line why: - stack trace / internal path / DB error surfaced to the user (→ MEDIUM) - secret / password / token / PII written to a log (→ HIGH) - tracked `.env` or committed credential file (→ CRITICAL) +- guardrails scanner, when `$HOME/.claude/skills/guardrails/scripts/scan.py` + exists: `python3 -B --domain api,supabase`. + `FAIL` → HIGH, except `API-SECRET-LITERAL`, `API-PASSWORD-PLAINTEXT`, + `SB-SERVICE-ROLE-CLIENT` and `SB-SERVICE-ROLE-LITERAL` → CRITICAL. + `WARN` → MEDIUM. `MANUAL` is not reported here. In gate mode keep only + findings in files of the diff. + Scanner absent → say so on the checklist line, never a silent skip. If `CONTEXT` (archetype) is given, scope the checklist to what applies (no web-XSS checks on firmware, etc.). diff --git a/lib/profiles/audit.profile b/lib/profiles/audit.profile index 2dea2ba..7e15b9f 100644 --- a/lib/profiles/audit.profile +++ b/lib/profiles/audit.profile @@ -5,6 +5,7 @@ # Security cso harden personal +guardrails personal analyze personal # SEO / GEO / web standards diff --git a/lib/profiles/backend.profile b/lib/profiles/backend.profile index f6de8ca..a59697f 100644 --- a/lib/profiles/backend.profile +++ b/lib/profiles/backend.profile @@ -26,6 +26,7 @@ codex # Security + health (always relevant for backend) cso +guardrails personal health # Session hygiene diff --git a/lib/profiles/dev.profile b/lib/profiles/dev.profile index ca2ea17..cc07f11 100644 --- a/lib/profiles/dev.profile +++ b/lib/profiles/dev.profile @@ -18,6 +18,7 @@ refactor personal code-clean personal commit-change personal explain-diff personal +guardrails personal # Dev-lifecycle skills (agent-skills trio) observability-and-instrumentation external diff --git a/lib/profiles/full.profile b/lib/profiles/full.profile index 7e26963..55d18cc 100644 --- a/lib/profiles/full.profile +++ b/lib/profiles/full.profile @@ -45,6 +45,7 @@ seo personal geo personal web-validate personal harden personal +guardrails personal analyze personal cso diff --git a/lib/profiles/max.profile b/lib/profiles/max.profile index 055c28d..5060c45 100644 --- a/lib/profiles/max.profile +++ b/lib/profiles/max.profile @@ -46,6 +46,7 @@ seo personal geo personal web-validate personal harden personal +guardrails personal analyze personal cso diff --git a/lib/profiles/web-full.profile b/lib/profiles/web-full.profile index ed80e59..9376f75 100644 --- a/lib/profiles/web-full.profile +++ b/lib/profiles/web-full.profile @@ -33,6 +33,7 @@ seo personal geo personal web-validate personal harden personal +guardrails personal analyze personal # === Perf + canary =================================================== diff --git a/lib/tests/fixtures/guardrails-good/.env.example b/lib/tests/fixtures/guardrails-good/.env.example new file mode 100644 index 0000000..b779b70 --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/.env.example @@ -0,0 +1,2 @@ +SUPABASE_URL= +SUPABASE_ANON_KEY= diff --git a/lib/tests/fixtures/guardrails-good/.gitignore b/lib/tests/fixtures/guardrails-good/.gitignore new file mode 100644 index 0000000..6ed48a9 --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/.gitignore @@ -0,0 +1,2 @@ +.env +node_modules diff --git a/lib/tests/fixtures/guardrails-good/docs/DEPLOY.md b/lib/tests/fixtures/guardrails-good/docs/DEPLOY.md new file mode 100644 index 0000000..8806371 --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/docs/DEPLOY.md @@ -0,0 +1,6 @@ +# Deploy + +Traffic goes through Cloudflare, with WAF and DDoS rules on. +Rate limits live in the middleware. +Spend cap is set in the host dashboard, and a budget alert triggers the +kill switch described in the runbook. diff --git a/lib/tests/fixtures/guardrails-good/firebase.json b/lib/tests/fixtures/guardrails-good/firebase.json new file mode 100644 index 0000000..0b31e65 --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/firebase.json @@ -0,0 +1 @@ +{ "functions": { "source": "functions" } } diff --git a/lib/tests/fixtures/guardrails-good/functions/index.js b/lib/tests/fixtures/guardrails-good/functions/index.js new file mode 100644 index 0000000..1adfbce --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/functions/index.js @@ -0,0 +1,8 @@ +const { onDocumentCreated } = require("firebase-functions/v2/firestore"); +const { setGlobalOptions } = require("firebase-functions/v2"); + +setGlobalOptions({ maxInstances: 10 }); + +exports.onOrder = onDocumentCreated("orders/{id}", async (event) => { + await db.collection("receipts").add({ order: event.params.id }); +}); diff --git a/lib/tests/fixtures/guardrails-good/package.json b/lib/tests/fixtures/guardrails-good/package.json new file mode 100644 index 0000000..e2a655b --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/package.json @@ -0,0 +1 @@ +{ "name": "fixture", "dependencies": { "@supabase/supabase-js": "^2.0.0" } } diff --git a/lib/tests/fixtures/guardrails-good/src/app/routes/Home.tsx b/lib/tests/fixtures/guardrails-good/src/app/routes/Home.tsx new file mode 100644 index 0000000..709115f --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/src/app/routes/Home.tsx @@ -0,0 +1,6 @@ +import { useState } from "react"; + +export function Home() { + const [n] = useState(0); + return

{n}

; +} diff --git a/lib/tests/fixtures/guardrails-good/src/components/ContactForm.tsx b/lib/tests/fixtures/guardrails-good/src/components/ContactForm.tsx new file mode 100644 index 0000000..f8ddbc1 --- /dev/null +++ b/lib/tests/fixtures/guardrails-good/src/components/ContactForm.tsx @@ -0,0 +1,31 @@ +export function ContactForm({ go }: { go: () => void }) { + return ( +
+ + +