Lean · Agile · Agentic
← All plays

Play · Corrected once

A review comment fixes one PR. A check fixes every PR after it.

Agents repeat what they see, and reviewers get tired. Four pillars turn each correction into something that runs.

PR review & autonomyHooks, not rulesValidation gatesClean code & comments

The team, files and PRs on this page are invented to illustrate.

The mistake

An agent computes a total inside a useEffect. Does it happen again?

Same mistake, same team, same reviewer. One team fixes it in review each time. The other fixes it once, as a check.

  1. 1Week 1

    Fixed in review
    PR #301  src/cart/Total.tsx
      reviewer: "derive it in render,
                 no effect needed"
    

    Fixed, in this PR only.

    Caught without a person: 0 / 4

    Fixed as a check
    PR #301  same comment, then
    PR #302  eslint.config.js
      useEffect: restricted
      message: the reason + the fix
    

    The comment becomes a rule, reviewed once.

    Caught without a person: 1 / 4

  2. 2Week 3

    Fixed in review
    PR #318  src/orders/Count.tsx
      useEffect(() => setCount(…))
    reviewer: the same comment
    

    A new session, the same mistake.

    Caught without a person: 0 / 4

    Fixed as a check
    Edit(src/orders/Count.tsx)
      Blocked: no raw useEffect
      outside src/hooks/. Derive it
      during render instead.
    

    Stopped at the write, with the fix.

    Caught without a person: 2 / 4

  3. 3Week 6

    Fixed in review
    // HACK: effect for now, fix later
    useEffect(() => setTotal(…))
    # three more files copy it
    

    The hack becomes the pattern.

    Caught without a person: 0 / 4

    Fixed as a check
    $ pnpm validate
      lint: no raw effects, no HACK
      types · test · arch
      all passed
    

    The verdict is a command, not a person.

    Caught without a person: 3 / 4

  4. 4Month 3

    Fixed in review
    reviewer: 40 comments this month
      26 of them said before
    # the auth change got a skim
    

    Review time goes on repeats.

    Caught without a person: 0 / 4

    Fixed as a check
    reviewer reads src/auth/session.ts
      and PR #344: one new rule
    

    People review rules and risk.

    Caught without a person: 4 / 4

The chain

Each pillar turns a correction into a check

  1. PR review & autonomyReview by impacta repeat comment is a missing checkWithout it: the same comment, every week
  2. Hooks, not rulesA lint rule and a hookthe reason, at the moment of writingWithout it: a review comment it never saw
  3. Validation gatesOne commandthe rule runs on every PRWithout it: a reviewer who has to notice
  4. Clean code & commentsNo hack markersnothing bad left to copyWithout it: "HACK: for now", copied five times

The gains

For the agent

  • The fix, at the moment it slips
  • Fewer bad examples to copy
  • A red it can fix alone, before review

For the team

  • A correction is reviewed once, as a rule
  • Review time goes to risk, not repeats
  • Checks scale with the PRs, reviewers do not

Try it on your repo

Read your last 30 review comments. Which ones were said before?

Each repeat is a check waiting to be written. Count how many a lint rule, a test or a hook could make.