Repository navigation
chore(perf): record the measured executable origin and refuse cross-origin timing verdicts - #5204
Conversation
…rigin timing verdicts The harness recorded only its own checkout, while AGENT_DEVICE_PERF_CLI can select another executable. summary.json now records the origin of the CLI and the SDK entry, and the comparison gives no timing verdict for mixed or unknown origins. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 7dd5073. The verdict and the full list are in the summary comment.
Artifacts written before `metadata.origin` would withhold every timing verdict until the whole nightly baseline is rewritten. A clean CI run of `main` measured the checkout, so it reads as `checkout`. Every other summary without an origin record stays `unknown`. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Finding | Fixed by | Where |
|---|---|---|
| Origin gate withholds every timing verdict for the 7 nights after merge | thymikee | f0a706a and 4621705 · reply |
Reviewed with this repository's own Sentinel configuration (47e3fbe2758c).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This is ready at f0a706a: no blocking problems were found. Not blocking, take or leave: the checkout origin records the source commit and dirty flag, but the measured executables load the gitignored The earlier thread no longer applies and can be resolved, because a clean main CI artifact without an origin is now read as a checkout, with test coverage. All 22 checks pass. Not verified here: the claim of 75 matching main summaries and the before and after Nothing else needs to happen before merge. |
Summary
A timing verdict is valid only when every compared run measured a known executable of the same origin.
summary.jsondescribed the harness checkout even whenAGENT_DEVICE_PERF_CLIselected another executable.metadata.originrecords the CLI and the SDK entry ascheckout,installed-package, orunknown, with version, and commit for checkouts.bin. Anything else isunknown.incomparable-originwith the runs named. Failures are still judged. Old artifacts stay readable asunknown.Earlier artifacts: one without
metadata.originreads ascheckoutonly with arunId,refmain, and a clean tree. Otherwise it isunknown. Since #3902, noperf-nightly.ymlrevision onmainsets the override. Under this summary schema, only #3885's Android job did, uploadingperf-android. All 75mainsummary artifacts since 2026-10-23 match. Artifacts name no workflow; no other repository workflow runspnpm perf.Before / after
pnpm perf:compareof nightly run 46217057081 against 3 earlier nights, all pre-merge:106 incomparable-origin.94 unchanged, 4 regression, 5 improvement, 2 insufficient-baseline, 1 insufficient-samples.Validation
Head f0a706a:
vitestonscripts/perf/compare.test.ts: 20 passed.oxfmton changed files. Other checks: CI, pending.config.test.tslast ran at 7dd5073.report.mdstill prints only the harness version. No device run.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.