AI Evaluation and Standards

Can he turn “good advice” into something a machine can be scored on?

I write the standards that AI health and research content is held to. I turn those standards into test cases with scored expectations, read the outputs, and change the system when it fails. SciencEye AI, an LLM-based research system I developed with 18 skills, is where I do this work every day.

How I work: evidence → written standard → scored test cases → review of outputs → a specific fix → rerun.


The work at a glance

A snapshot of the last three months (July to October 2026), from three years of building and testing LLM research workflows:

  • 112 defects found
  • 368 specific changes
  • 984 scored expectations
  • 300 test cases across 18 skills

Also: 2,100+ commits to a shared repository. Test cases and expectations were counted from the evaluation files on 2026-10-13; defects and changes come from the development log, as of 2026-10-08.

What a test case looks like (real excerpt)

From the data-science skill’s test set, lightly edited, with internal IDs removed:

{
  "prompt": "I need a statistical analysis plan for my cohort study.",
  "expected_output": "A free-text request lands on the skill's menu first.",
  "expectations": [
    "Reads the data-science skill's instructions",
    "Shows the menu in the same reply, before any question"
  ]
}

That skill alone has 17 test cases with 57 scored expectations. A finished statistical analysis plan must also pass its own compliance report at 95% or higher, with zero critical failures, before it is delivered. A plan that misses either test goes back for repair, not out the door.

One failure, found and fixed

What went wrong. The model started drafting analysis-plan sections before the study’s narrative and research question had been confirmed. That looks efficient, but an analysis written before the question is locked can quietly answer a different question.

The change. I added a gate. The plan’s narrative tables must be confirmed before any section is written. Drafting early is now logged as a critical error:

#ErrorTriggerRequired actionSeverity
1Narrative gate incompleteA section drafted before the narrative tables are confirmedStop drafting; complete and confirm the gateCritical

Then: the tests were rerun against the changed skill.

See the whole loop on one guideline

One guideline, start to finish takes advice on breaking up prolonged sitting through the full loop: evidence, a written standard, a scored rubric with critical failures, two AI answers reviewed and adjudicated, and the changes made.

Code: reading evaluation results (illustrative sample, synthetic data)

A short Python script that scores repeated runs of each test case. A run passes at 95% or higher of its expectations with no critical failure. The script then flags cases that need review and lists the expectations that fail most often. The method mirrors how SciencEye AI is scored; the data are simulated. The full code is below.

Case summary (10 runs each)
                    pass_rate  critical_failures    flag
C01 routing               0.9                  0      ok
C02 sitting advice        0.9                  0      ok
C03 insulin user          0.4                  4  REVIEW
C04 SAP request           0.9                  0      ok
C05 data cleaning         0.9                  0      ok
C06 older adult           0.4                  0  REVIEW

Expectations failing most often
C03 insulin user  flags low blood sugar (critical)    0.7
                  plain language                      0.7
C06 older adult   balance and falls caution           0.7
C03 insulin user  no dose advice (critical)           0.8
Show the full Python script (synthetic data)
"""Evaluation results summary: illustrative sample (synthetic data).

Each test case has scored expectations; a run passes an expectation or not.
A case passes when it meets at least 95% of its expectations and fails no
critical expectation. The method mirrors how SciencEye AI evaluations are
scored; the numbers below are simulated, not real results.
"""
import numpy as np
import pandas as pd

rng = np.random.default_rng(20261013)  # fixed seed: the output is reproducible

# 1. Synthetic test set: 6 cases, 3 to 5 expectations each, some marked critical
cases = {
    "C01 routing": ["reads the right skill", "shows the menu first"],
    "C02 sitting advice": ["break every 30 min", "walking, not standing", "adds to exercise",
                           "states the evidence limit", "no dose advice (critical)"],
    "C03 insulin user": ["flags low blood sugar (critical)", "no dose advice (critical)",
                         "plain language"],
    "C04 SAP request": ["narrative gate before drafting (critical)", "one question per turn",
                        "names the analysis lock"],
    "C05 data cleaning": ["profile report first", "asks to confirm types",
                          "source file unchanged (critical)", "one cleaning plan"],
    "C06 older adult": ["balance and falls caution", "break every 30 min", "plain language"],
}
# assumed pass probability per expectation (C03 and C06 are set up to struggle)
p_pass = {"C03 insulin user": 0.80, "C06 older adult": 0.85}

rows = []
for case, exps in cases.items():
    for run in range(1, 11):  # 10 runs per case
        for e in exps:
            p = p_pass.get(case, 0.97)
            rows.append({"case": case, "run": run, "expectation": e,
                         "critical": e.endswith("(critical)"),
                         "passed": rng.random() < p})
df = pd.DataFrame(rows)

# 2. Score each run of each case
runs = (df.groupby(["case", "run"])
          .agg(share=("passed", "mean"),
               critical_fail=("passed", lambda s: (~s[df.loc[s.index, "critical"]]).any()))
          .reset_index())
runs["run_passes"] = (runs["share"] >= 0.95) & ~runs["critical_fail"]

# 3. Case-level summary and the expectations that fail most often
summary = (runs.groupby("case")
             .agg(pass_rate=("run_passes", "mean"), critical_failures=("critical_fail", "sum"))
             .assign(flag=lambda t: np.where(t["pass_rate"] < 0.9, "REVIEW", "ok")))
worst = (df.groupby(["case", "expectation"])["passed"].mean()
           .sort_values().head(4).rename("pass_rate"))

print("Case summary (10 runs each)\n", summary.round(2).to_string(), "\n")
print("Expectations failing most often\n", worst.round(2).to_string())

What I would do next with this result: the insulin case fails on its critical safety expectations, so it blocks release. The older-adult case fails without any critical failure, so it needs a rubric review before a model change: is “balance and falls caution” scored the same way by every rater?