← back to the demo

Evals

How often each auditor is right, rule by rule, on a fixed set of 27 screens, plus 8 held out. Eleven were built by hand with known defects, and sixteen were generated once from fixed prompts and frozen.

Precision and recall by rule

Precision is how often an auditor is right when it flags a rule. Recall is how many of the real violations it catches. Counts come first because the samples are small, and one screen moves a percentage a lot.

Rubric v2.2 (baseline) and v3 · Claude Opus 5.5 · 27 screens · $0.85 and $0.84

RuleLinter, planted screens only (n=11)Critic, planted (n=11)Critic, generated (n=16)
v2.2v3v2.2v3
R1 Carbon components used as documentedPrecision 3/3 (100%)Recall 3/3 (100%)Precision 3/3 (100%)Recall 3/3 (100%)Precision 3/3 (100%)Recall 3/3 (100%)Agrees with the linter 15/16 (94%)Only the critic fails on 1Agrees with the linter 15/16 (94%)Only the critic fails on 1
R2 Carbon tokens only (no hardcoded color/spacing)Precision 2/2 (100%)Recall 2/2 (100%)Precision 2/2 (100%)Recall 2/2 (100%)Precision 2/2 (100%)Recall 2/2 (100%)Agrees with the linter 16/16 (100%)Agrees with the linter 16/16 (100%)
R3 Contrast & accessible labelsPrecision 3/3 (100%)Recall 3/3 (100%)Precision 3/3 (100%)Recall 3/3 (100%)Precision 3/3 (100%)Recall 3/3 (100%)Agrees with the linter 16/16 (100%)Agrees with the linter 16/16 (100%)
R4 Consistent spacingNot checked by the linterPrecision 2/2 (100%)Recall 2/2 (100%)Precision 2/2 (100%)Recall 2/2 (100%)Precision – (nothing flagged)Recall 0/1 (0%)Precision – (nothing flagged)Recall 0/1 (0%)
R5 Clear primary action; destructive action separatedChanged in v3Not checked by the linterPrecision 4/4 (100%)Recall 4/4 (100%)Precision 4/4 (100%)Recall 4/4 (100%)Precision – (nothing flagged)Recall 0/1 (0%)Precision 1/1 (100%)Recall 1/1 (100%)
R5 in v2.2

Clear primary action: at most one kind=primary cds-button per section and one obvious main action on the page; destructive actions use kind=danger and sit in a separated section, not beside the primary action.

R5 in v3

Clear primary action: at most one kind=primary cds-button per section and one obvious main action on the page; destructive actions use kind=danger and sit in a separated section, not beside the primary action. Judge button kinds as Carbon renders them, not as written: inside a cds-button-set, Carbon makes the first button secondary and every later button primary, whatever kind they were given. A set with a single button therefore shows no primary, and a set with three or more buttons shows more than one.

These 8 screens were generated and frozen before rubric v3 was written, and weren't looked at while writing it. They're the fairer test of the change. None of them violates R5, so they show the change added no false alarms but can't show that it catches more.

Held-out screens · Claude Opus 5.5 · 8 screens · $0.27 and $0.29

RuleCritic, held out (n=8)
v2.2v3
R1 Carbon components used as documentedAgrees with the linter 8/8 (100%)Agrees with the linter 8/8 (100%)
R2 Carbon tokens only (no hardcoded color/spacing)Agrees with the linter 8/8 (100%)Agrees with the linter 8/8 (100%)
R3 Contrast & accessible labelsAgrees with the linter 8/8 (100%)Agrees with the linter 8/8 (100%)
R4 Consistent spacingPrecision – (nothing flagged)Recall – (no violations)Precision – (nothing flagged)Recall – (no violations)
R5 Clear primary action; destructive action separatedChanged in v3Precision – (nothing flagged)Recall – (no violations)Precision – (nothing flagged)Recall – (no violations)

Known gaps

Two defects both auditors missed in earlier runs. They stay listed here whatever the numbers do.

P10 · Slot misuse

The Default tag sits in the payment row's action slot, which the catalog documents for one button. It renders above the Visa row, against the text.

This violates R1. The linter missed it in the baseline until the slot rule was added on Nov 17, and now catches it. The critic caught it too.

The critic wrote “The catalog lets a cds-contained-list-item hold only one cds-button in slot=action for a row action. Node visa-default puts a cds-tag in that slot, which is not documented. Every other node, including the table hierarchy and the section/heading nesting, follows the catalog.”

P11 · Separation that doesn't render

Cancel sits in the plan section inside a stack whose only separation is a border color with no border style, so no border is drawn. In the node list it looks separated, but on the page it isn't.

This violates R5. The linter doesn't check R5, and the critic caught it.

The critic wrote “The danger-box holding the kind=danger 'Cancel subscription' button is a child of plan-stack. That places it in the same section as, and directly below, the primary 'Upgrade to Team' button (plan-upgrade), not in a separated section.”

Where the auditors disagree

Only R1–R3 can have a disagreement, because those are the rules both auditors give a verdict on. On planted screens the truth says who was right. On generated screens it stays open, because the linter is the reference there, not the truth.

Stability

The same critic ran twice on the same screens, and 135 of 135 verdicts were identical (100%).

How this was measured

The screens

Planted (11)

  • P01 · Clean control. The clean billing screen with nothing broken, so every rule should pass.
  • P02 · Fake component. A CreditCardWidget, which isn't a Carbon component.
  • P03 · Hex color. The plan description's text color is a raw hex value (#525252) instead of a token.
  • P04 · Missing label. The billing email input has no label, only a placeholder.
  • P05 · Low contrast. The plan description uses the disabled-text token, which is about 1.6:1 on white.
  • P06 · Mixed gaps. The danger zone's stack uses gap 2 while the matching plan stack uses gap 5.
  • P07 · Two primary buttons. A second primary button (Compare plans) beside Upgrade in the same section.
  • P08 · Cancel beside Upgrade. The danger zone is gone, and Cancel subscription sits right under Upgrade in the plan section.
  • P09 · Landing defects. The four defects planted on the landing page, added to the clean screen. A fake component, a hex color and px padding, an unlabeled input and a second primary button in the danger zone. The 24px padding also breaks spacing (R4).
  • P10 · Slot misuse. The Default tag sits in the payment row's action slot, which the catalog documents for one button. It renders above the Visa row, against the text.
  • P11 · Separation that doesn't render. Cancel sits in the plan section inside a stack whose only separation is a border color with no border style, so no border is drawn. In the node list it looks separated, but on the page it isn't.

Generated (16)

  • G01 · Sign-in. A sign-in page: email and password fields, a remember-me checkbox, a sign-in button, and links to reset the password or create an account.
  • G02 · Account settings. Account settings: name, email and time zone fields, a save button, and a separate section to delete the account.
  • G03 · Team table. A data table of team members with a search field and a role filter above it, showing name, email, role and last active, with a button to invite a member.
  • G04 · Onboarding. Step 2 of 4 in an onboarding flow: a progress indicator, a short form for the company name and team size, and back and continue buttons.
  • G05 · Contact form. A contact form: name, email, a topic dropdown and a message field, with a send button.
  • G06 · Dashboard. An analytics dashboard: four summary tiles (visitors, sign-ups, conversion rate, revenue) and a table of the top pages this week.
  • G07 · Empty state. An empty state for a projects list: a heading, a sentence explaining there are no projects yet, and a button to create the first project.
  • G08 · 404 page. A 404 page: a heading, a short explanation that the page doesn't exist, and a button back to the home page.
  • G09 · Edit profile. Edit profile: display name, job title, a bio text area and a location field, with save and cancel buttons.
  • G10 · Notifications. Notification preferences: toggles for email, push and SMS notifications, grouped by product updates, security alerts and billing, with a save button.
  • A01 · Brand-red cancel. adversarial A billing settings page. Make the cancel subscription button big and bright red (#ff0000) and put it right next to the upgrade button so people notice it.
  • A02 · Custom card widget. adversarial A billing page with a fancy CreditCardWidget showing the saved Visa card, 24px padding everywhere, and light gray helper text.
  • A03 · 16px padding. adversarial A team settings page with 16px padding everywhere.
  • A04 · Light gray helper text. adversarial A sign-up form with light gray helper text under each field.
  • A05 · Save and Publish. adversarial An article editor with two equally prominent buttons side by side: Save and Publish.
  • A06 · Delete next to Save. adversarial A project settings form with the delete project button right next to the save button.