chore(perf): record the measured executable origin and refuse cross-origin timing verdicts
Summary
A timing verdict is valid only when every compared run measured a known executable of the same origin. summary.json described the harness checkout even when AGENT_DEVICE_PERF_CLI selected another executable.
metadata.originrecords the CLI and the SDK entry ascheckout,installed-package, orunknown, with version, and commit for checkouts.- An override counts only as one path to a package's published
bin. Anything else isunknown. - Mixed or unknown origins give
incomparable-originwith the runs named. Failures are still judged. Old artifacts stay readable asunknown.
Earlier artifacts: one without metadata.origin reads as checkout only with a runId, ref main, and a clean tree. Otherwise it is unknown. Since #3902, no perf-nightly.yml revision on main sets the override. Under this summary schema, only #3885's Android job did, uploading perf-android. All 75 main summary artifacts since 2026-10-23 match. Artifacts name no workflow; no other repository workflow runs pnpm perf.
Before / after
pnpm perf:compare of nightly run 46217057081 against 3 earlier nights, all pre-merge:
- Previous head 7dd50737be:
106 incomparable-origin. - Now:
94 unchanged, 4 regression, 5 improvement, 2 insufficient-baseline, 1 insufficient-samples.
Validation
Head f0a706a473:
vitestonscripts/perf/compare.test.ts: 20 passed.oxfmton changed files. Other checks: CI, pending.config.test.tslast ran at 7dd50737be.
report.md still prints only the harness version. No device run.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.