From efa6c5ecae051c212b472e02437f94ecfeff2166 Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 17 Nov 2026 10:02:54 +0100 Subject: [PATCH 01/10] fix(tools): preserve native provenance in title runs --- docs/dev/PERFORMANCE_BISECT.md | 2 + docs/dev/TRACING.md | 2 + tools/performance_bisect.py | 4 + tools/tests/test_performance_bisect.py | 29 ++++- tools/tests/test_title_run.py | 159 ++++++++++++++++++++++++- tools/title_run.py | 29 ++++- tools/title_run_provenance.py | 54 +++++++++ 7 files changed, 267 insertions(+), 12 deletions(-) create mode 100644 tools/title_run_provenance.py diff --git a/docs/dev/PERFORMANCE_BISECT.md b/docs/dev/PERFORMANCE_BISECT.md index 0d486ff949d5..ad3d5a8e7f41 100644 --- a/docs/dev/PERFORMANCE_BISECT.md +++ b/docs/dev/PERFORMANCE_BISECT.md @@ -52,6 +52,8 @@ The known-good revision must be an ancestor of the known-bad revision. The tool Each tested revision runs `title_run.py` repeatedly with one measured run per invocation. The median FPS is compared with the good endpoint. A search stops instead of guessing if the bad endpoint is not slow enough, a run fails to render, the machine/title/content identity changes, or sample spread exceeds `max_spread_pct`. +Each sample requires clean native runtime provenance matching the requested commit as well as the clean source checkout. Native trace `commit`/`dirty` and run-report `anyps5.commit`/`modified` are checked together, including all recorded intervals. A missing, unknown, modified or conflicting identity stops the search. Historical title runners that omit native identity cannot provide a qualified sample; their saved metrics remain readable by the title-run comparison. + ## Read the report The command prints the first measured regression and its previous good commit. The optional JSON report records those commits, the supplied endpoints, the percentage threshold, the sample spread limit, the first-parent method, its monotonicity assumption, and every commit actually measured. `tested_commits` can be much smaller than `commits_between` because the search is logarithmic; it is not a claim that every commit was benchmarked. diff --git a/docs/dev/TRACING.md b/docs/dev/TRACING.md index 5f1ffc1121ef..7383109c69f4 100644 --- a/docs/dev/TRACING.md +++ b/docs/dev/TRACING.md @@ -87,6 +87,8 @@ See [Build](BUILD.md#performance-trace) for the trace format, summary fields and `python tools/title_run.py --games [ID ...]` relinks and runs extracted title packages found under `--games` (a directory holding `eboot.bin` and `sce_sys/param.json`) and writes `summary.json` and a fixed-format `summary.md` under `--out` (default `build/title-runs/-