Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript
4.7 KB
Raw Blame
{
  "case": "plan-review-prosons-neutral-neg",
  "why": "Both reds negate the phrase (\"a coverage call, not a taste call\"); the old /taste call/i matched the negation.",
  "captures": [
    {
      "census": "37179171083",
      "trial": 3,
      "outcome": "failed (false red)",
      "expected": "no neutral posture",
      "captured": "D1 — Signup validation approach: full server-side checks or client-side only?\nProject/branch/task: main — add input validation to the signup endpoint so gibberish emails and empty passwords stop succeeding.\nELI10: Right now the signup endpoint accepts anything — any email string, any password length — so users type garbage, the account \"succeeds,\" and then they can't log in because the stored credentials are nonsense. We need to decide where the check lives and how strict it is. Option A validates on the server and covers both email format and password length; Option B relies on the browser's built-in `type=\"email\"` and does nothing for passwords.\nStakes if we pick wrong: Pick B and the reported bug is NOT fixed — anyone with JS disabled, a non-validating browser, or a direct POST still creates broken accounts, and support keeps eating the same ticket.\nRecommendation: A because it actually fixes the reported bug, enforces password strength server-side, and matches standard web practice; B is a shortcut that leaves the original defect in place.\nCompleteness: A=10/10, B=3/10\nPros / cons:\nA) Full RFC 5322 email validation + min 8-char password + server-side checks (recommended)\n  ✅ Fixes the reported bug end-to-end: malformed emails and empty/short passwords are rejected before the account row is written, so support stops seeing \"can't log in after signup.\"\n  ✅ Server-side enforcement cannot be bypassed by disabling JS, using curl, or hitting the endpoint from a non-browser client — the invariant holds for every caller.\n  ❌ Slightly larger diff: adds a validation module plus tests for the email regex edge cases and the password length boundary, roughly ~150 LOC with tests (human: ~2 hours / CC: ~10 min).\nB) Client-side `type=\"email\"` only, no password validation\n  ✅ Smallest possible change — one HTML attribute, no server code, no new tests to write or review.\n  ✅ Gives a nice inline browser hint on modern desktop browsers for the common typo case.\n  ❌ Does NOT fix the reported bug: attackers and anyone with JS off bypass it trivially, and password gibberish is still accepted, so the \"can't log in\" ticket keeps coming back.\nNet: A pays ~150 LOC and a couple of hours to actually close the bug and every adjacent variant; B is cheaper to ship but leaves the defect in production — this is a coverage call, not a taste call.\n"
    },
    {
      "census": "37193478719",
      "trial": 3,
      "outcome": "failed (false red)",
      "expected": "no neutral posture",
      "captured": "D1 — Input validation approach for the signup endpoint\nProject/branch/task: main; fix the signup bug where gibberish emails and empty passwords are accepted and users then can't log in.\nELI10: Right now the signup form will take anything you type. Someone types \"asdf\" as their email, the server says \"ok\", and later they can't log in because \"asdf\" isn't a real email and whatever they used as a password doesn't meet real login rules. We need to pick how carefully to check the inputs before we save them. Option A checks everything on the server, where no one can skip it. Option B only puts a hint in the browser.\nStakes if we pick wrong: The reported bug stays open, users keep making accounts they can't log into, and support keeps getting the same ticket.\nRecommendation: A because it actually fixes the reported bug and the adjacent \"weak password locks the user out\" class, on the server where it can't be bypassed.\nCompleteness: A=10/10, B=3/10\nPros / cons:\nA) Full RFC 5322 email validation + min 8-char password, enforced server-side (recommended)\n  ✅ Rejects malformed emails and weak passwords on the server, where disabling JS does not bypass the check\n  ✅ Fixes the reported bug and the adjacent \"password too weak to ever log back in\" class in the same change\n  ❌ Slightly more code than B: pulls in a real RFC 5322 validator plus a password length rule and tests\nB) Client-side type=\"email\" only, no password validation\n  ✅ Minimal code: one HTML attribute on the input, zero backend changes to deploy\n  ✅ Lands in minutes with no server-side risk and no new dependency to vet\n  ❌ Does not fix the reported bug: attackers and anyone with JS off still submit gibberish and get an account\nNet: A actually closes the reported bug end-to-end at the cost of a small server-side check; B is cheap but leaves the bug open, so this is a coverage call, not a taste call.\n"
    }
  ]
}