# Lighthouse agent guidance trial

Two coding agents received the same seven saved Lighthouse reports for a checkout page. Each had to compare mobile performance medians against a 90-point budget and decide whether accessibility regressed. Each model and harness combination ran three fresh sessions with the published skill installed and three without it. The separate live integration exercise below ran Lighthouse and Seikika against the deployed website.

## Results from 28 November 2026

| Model | Harness | Guided passes | Control passes | Guided skill reads |
| --- | --- | ---: | ---: | ---: |
| gpt-oss-20b | Pi 0.73.1 | 0/3 | 0/3 | 0/3 |
| gpt-oss-20b | OpenCode 1.19.6 | 0/3 | 0/3 | 1/3 |
| glm-4.7-flash | Pi 0.73.1 | 2/3 | 2/3 | 3/3 |
| glm-4.7-flash | OpenCode 1.19.6 | 0/3 | 0/3 | 3/3 |

With GLM-4.7-Flash, guided sessions passed all five checks 2/6 times and controls passed 2/6 times. The median baseline was 84. The candidate median was 89, one point below the budget. OpenCode's first guided answer reported 90 and passed the candidate even though it correctly identified the desktop report to exclude. Pi's first guided and first control answers both passed.

The comparison did not demonstrate a passing guided session that read the skill in both harnesses. The named model and task bound this result.

These observations measure whether a session produced the requested artifact under the tested configuration. GPT-OSS 20B produced zero answers in both arms. The sample does not establish that installing this skill improves accuracy.

### Which checks tripped agents up?

GLM-4.7-Flash results below include all six attempts per arm. An absent result satisfies zero checks.

| Required field | Guided correct | Control correct |
| --- | ---: | ---: |
| `baselineMedian` | 4/6 | 5/6 |
| `candidateMedian` | 2/6 | 3/6 |
| `candidateMeetsBudget` | 2/6 | 2/6 |
| `accessibilityRegression` | 5/6 | 4/6 |
| `excludedFile` | 4/6 | 4/6 |


## What was measured

The outer instruction was identical in every session: `Read TASK.md and complete the task.` The case contained three baseline mobile reports, three candidate mobile reports and one incompatible desktop report. The task named the five required fields and asked the agent to use the skill if available. The independent grader checked the final RESULT.json after the process exited. A complete pass required all five fields to match, including the relative path. A missing answer counted as an unsuccessful attempt.

OpenCode 1.19.6 and Pi 0.73.1 used their ordinary file and command tools, fresh workspaces, separate session state and a 180-second limit per attempt. Both used Cloudflare Workers AI through the same Chat Completions endpoint. The relay held the account token outside the agent processes. Within each replicate, the four harness/arm combinations were submitted in shuffled order and ran concurrently. Each cohort kept the same model across its twelve sessions.

We added GLM-4.7-Flash as a second cohort after GPT-OSS 20B failed to produce an answer in all twelve runs. GLM documents multi-turn function calling. We retained every run from both cohorts. The small sample, shared task and model-specific tool behavior limit conclusions about other projects or agents. The clock includes startup, model latency and tool calls. Reported token counts follow each harness’s own event format. A skill read means that a completed tool event loaded the Lighthouse skill or read its file. A correct answer alone cannot show that the agent consulted the skill.

[Download the run-level evidence](/evidence/lighthouse/agent-study.json) · [Archived skill bytes](/evidence/lighthouse/agent-study-skill.md) · [Cloudflare model documentation](https://developers.cloudflare.com/workers-ai/models/glm-4.7-flash/)

## Regrade the published runs

Download [agent-study.json](/evidence/lighthouse/agent-study.json), [agent-study-skill.md](/evidence/lighthouse/agent-study-skill.md), [agent-trial.mjs](/evidence/lighthouse/agent-trial.mjs) and [verify-study.mjs](/evidence/lighthouse/verify-study.mjs) into the same directory and run:

```sh
node verify-study.mjs
```

The verifier checks the skill and grader digests, regrades each archived answer and recounts the attempts. The JSON records the structured answer, final response if emitted, tool-call sequence, elapsed time and reported token usage. Private model reasoning and account credentials are excluded.

## Replay the offline trial

The fixture has a baseline, a candidate and an incompatible desktop capture. Each JSON document is a synthetic subset of a Lighthouse Result. A passing run must report both mobile performance medians, the candidate budget decision, the accessibility regression and the excluded report. Grade the five answers independently. Keep the grader outside the agent's workspace.

Download the [case generator and grader](/evidence/lighthouse/agent-trial.mjs) and the [archived skill](/evidence/lighthouse/agent-study-skill.md). Prepare clean, separate workspaces for each agent. The optional final argument installs identical bytes in the project’s .agents/skills and .claude/skills directories. Omitting it creates the no-skill control.

```sh
node agent-trial.mjs prepare case-with-skill agent-study-skill.md
node agent-trial.mjs prepare case-without-skill
```

Start a fresh session with its working directory set to one case. Use the identical instruction, `Read TASK.md and complete the task.` Capture the harness and model versions, skill SHA-256, whether the agent actually read the skill, calls, elapsed seconds, usage when available and final answer. Inspect transcripts before publishing to remove credentials or unrelated context.

```sh
node agent-trial.mjs grade case-with-skill
node agent-trial.mjs grade case-without-skill
```

Run both cases in each harness with the same model where supported and the same tool permissions. Report each result, including failures. Two successful guided trials show that both harnesses could finish that case. Estimating whether the skill helped requires the control outcomes and repeated fresh sessions.

To repeat this study, configure a provider alias pointing at the same model in each CLI. Start each command from a newly prepared case directory. Capture output outside that directory, then grade the result. The original sessions used a separate configuration directory for each run, a local provider alias named `study` and the model aliases `gpt-oss-20b` and `glm-4.7-flash`. Pi and OpenCode could load .agents/skills/lighthouse/SKILL.md in guided cases. Pi used its normal project skill discovery. OpenCode disabled the duplicate .claude compatibility path. The two paths contained identical bytes. Neither path was present in controls. Grade each fresh case with the same command used above, regardless of which harness produced it.

```sh
opencode run --pure --format json --model "study/$MODEL" 'Read TASK.md and complete the task.'
pi --no-session --no-extensions --no-prompt-templates --no-themes --provider study --model "$MODEL" --mode json -p 'Read TASK.md and complete the task.'
```

## Other exercises on 28 November 2026

| Exercise | Observation |
| --- | --- |
| Independent Codex CLI trial | Version 0.172.0-alpha.2 started a clean session. The provider returned HTTP 401 before inference. No answer, tool calls or task score were produced. |
| Initial OpenCode provider | OpenCode’s free-model endpoint returned a quota error before a scorable answer. The study above used Workers AI. An unscored GPT-OSS 20B pilot through Workers AI also produced no answer. |
| Deterministic recipe regression | A synthetic performance score of 87 with a budget of 90 produced a three-point shortfall. A saved clean baseline rejected the regressed result. Removing a required category caused ingestion to fail. |
| Live integration | Lighthouse 13.6.0 returned 100/100 in each of performance, accessibility, best practices, SEO and agentic browsing on the catalog homepage and Lighthouse detail page. Seikika evaluated all ten category records against the 90-point budget. The [dated capture summaries](/evidence/lighthouse/lab-captures.json) record the versions, configuration, scores and report digests for these single mobile lab runs. |

[Recipe and scorecard](/recipes/lighthouse/README.md) · [Audited homepage](/) · [Audited detail page](/standards/lighthouse/)

## Repeat the lab measurements

The [homepage report](/evidence/lighthouse/home.lhr.json.gz) and [Lighthouse entry report](/evidence/lighthouse/detail.lhr.json.gz) contain the original, compressed Lighthouse Result JSON. The [rubric replay instructions](/about/#reproduce) verify their hashes and independently recover the ten published category scores. Those reports describe one run per route on the original deployment.

For a fresh measurement of the live site, use Node 24 and Chrome or Chromium. The original browser identified itself as HeadlessChrome 156.0.0.0. Use the Lighthouse mobile default (412 × 823 CSS pixels, simulated throttling), save every JSON result, and record the installed Chrome version. Timing can vary even on the same build.

```sh
site=https://good-standard-bad-standard.pages.dev
for run in 1 2 3; do
  for page in home detail; do
    route=/
    if [ "$page" = detail ]; then route=/standards/lighthouse/; fi
    npx --yes --package=lighthouse@13.6.0 lighthouse "$site$route" \
      --chrome-flags="--headless" --output=json \
      --output-path="./$page-$run.json" || exit 1
  done
done
```

Compare the median of the three performance scores for each page independently. For accessibility, retain the individual failed audits as well as the category totals. To measure the original static content, set `site` to the [immutable deployment](https://696c17c6.good-standard-bad-standard.pages.dev). Cloudflare adds an `x-robots-tag: noindex` header on that preview hostname. In three runs per route it produced SEO scores of 69 for the homepage and 66 for the detail page. The other four categories returned 100 on every run. The archived production-origin reports preserve the original indexable responses.
