Assay
Watchwhat keeps it honest

Assay

Every output tested against a standard, so better is a number you can trust.

Terminal · Assay
studio · lumen · assay Tue 8 Dec · 07:39
>assay check drafts/beta-fix-email.md --send email
The output
beta-fix-email.md58 words · sha256 9c41e2a7
→ email to the 12 beta users stuck on step 3
Subject Step 3 is fixed: your mornings are back
  1. 1Hi, it's Sam from Lumen.
  2. 2Step 3 of onboarding is fixed. Imported calendars keep your real hours again, so Lumen can find your free mornings.
  3. 3Every imported calendar now works.judge ✗
  4. 4Open Lumen and pick up where you stopped.
  5. 5Thanks for waiting, Sam
Cheapest first

Each tier runs only what the one below it could not settle.

  • Code0.04 s
  • Judgment questions0.6 s
  • Judge7.8 s
1
Codecountable things, first and almost free · a fail always blocks
4 checks · 0.04 s
  • ✓No secret, key or private addressclean
  • ✓150 words or fewer58 words
  • ✓Says "step 3"found, line 2
  • ✓No internal ticket idsnone found
2
Judgment questionsone batch of typed questions · each answer is a probability
4 questions · 0.6 s
  • ✓ Does it open on the fix, not an apology? p 0.93 yes · earned, so it counts
  • ✓ Does it tell the reader what to do next? p 0.89 yes · earned, so it counts
  • ⚑ Does it sound like Sam, not a company? p 0.31 no · not earned yet: named, never blocks
  • ? Does it promise more than the fix did? p 0.56 too close to call · sent up to the judge
3
Judgethe hard call, scored on an anchored rubric
1 check · 7.8 s
✗Honest about what is still broken2 / 5 · needs 4
  1. 1Says everything is fixed
  2. 3Hints that some cases remain
  3. 5Names what is fixed, what is not, and when

Judge: Line 3 says every imported calendar works. Calendars that mix two zones in one file still fail (ISC-35).

earned: 34 of Sam's 38 labels agree

Receipt r-1208-0739 beta-fix-email.md · sha256 9c41e2a7 · against the ask (sha 4be03d11) · destination: send
  • Code4 of 4 pass
  • Judgment questions2 yes · 1 flag · 1 unsure
  • Judge2 of 5, needs 4
FAIL · held, not sent

An earned check said no, so the send stays shut. The flag on voice is named, not counted.

→ Juno rewrites line 3. New bytes get a new receipt.

One Assay run on a draft email to the 12 Lumen beta users stuck on step 3: code checks pass, the judgment questions split two yeses, a flag and one too close to call, and the judge, which 34 of Sam's 38 labels agree with, scores the draft 2 of 5 over line 3, so the receipt holds the send.

Assay is the eval system. To assay something is to test it against a standard and measure how much of it is good, the way a lab tests ore for gold. Assay does that to everything LifeOS produces: it checks the output against the ideal state it was made for, cheapest check first, and writes a receipt tied to the exact bytes it checked.

Why it exists

Without evals, a prompt change gets kept because it seems better. You can’t climb a hill you can’t see, and current state to ideal state only works when “better” is a number you can trust. The other half is honesty about limits. Some work can’t be reduced to assertions, like a piece of writing that has to land. Forcing fake tests onto it is worse than none, so every skill names how it is verified when it is created: a suite, a command that fails when the contract breaks, or a human review with the reason written down. A skill marked pending counts as uncovered.

How it works

Every check sits on the cheapest tier that can honestly answer it.

Four tierscheapest first
  • CodeAnything countable or literal: a word count, a forbidden phrase, a secret in the output. A code failure always blocks.
  • Judgment questionsThe judgment layer: typed questions that need a quick read, each answered with a probability.
  • JudgeThe hard calls: art critique, deploy review, regression suites, graded against written levels.
  • YouTaste. Your reaction to delivered work becomes a label that calibrates the tiers above.

A judged tier only gets to block once enough of your own right and wrong labels agree with it; until then it flags. Two models agreeing with each other earns nothing. Deterministic checks come first because they’re fast and free, and a judge’s disagreements with you get mined into new code checks over time. The approach follows the eval guidance Anthropic publishes for its own agents.

Evals are built slowly and run fast. The strongest model available writes them, and the strongest model from another lab reads what it wrote, looking for an output that would pass while missing the point. No model grades its own work, and reliability means passing all k trials (pass^k).

bun ~/.claude/skills/Assay/Tools/EvalRunner.ts -s <suite>

Suites grow from real failures: every skill run is logged, and a failure in that log becomes a new test case in one step.

Where you see it

The screen at the top is one Assay run on a draft email to the 12 Lumen beta users stuck on step 3. Code passes 4 of 4 checks in 0.04 s. Four judgment questions come back as probabilities in 0.6 s: two earned yeses, a flag on sounding like Sam that never blocks because it has not earned that yet, and one too close to call that goes up to the judge. The judge scores the draft 2 of 5 on honesty about what is still broken, where it needs 4: line 3 says every imported calendar works, and calendars that mix two zones in one file still fail. That judge has earned its say (34 of Sam’s 38 labels agree with it), so receipt R-1208-0739 reads FAIL, held, not sent.

In Pulse, eval results show on the Hillclimb page as each climb’s starting and best scores. The Assay skill builds suites, judges and comparisons, HillClimb runs the experiments, and Calibrate shows you real outputs to score so the judges learn your taste.

Where it fits

Every ISA criterion carries a check, and the judged ones run through Assay. Bunker’s row engine runs an app’s checks and hands the judged rows to Assay. A gate that errors or an output that slipped past every gate becomes an event for Vigil.

Full documentation LifeOS Testing Doctrine →