feat(tools): add optional patch catalog metadata #11489
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11489"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by WhiteAssassins on 2026-10-26T17:10:43Z.
What
Add optional
id,name,category,description,tested,notes,contributors,source, andrevisionfields to format 1 patch catalog entries. The advisor validates the fields for matching entries and displays them only after the existing hash and relinker verification succeeds. Existing catalogs remain valid. Duplicate verified IDs for one title and version are rejected. This PR contains no game files or patch downloads. Multiple verified patch files remain alternatives and are not combined.This follows the patch advisor in #8900 and verified-entry listing in #10719, and supports the community catalog proposal in #8893.
revisionidentifies a patch definition but does not automatically supersede an older entry; a catalog maintainer must remove the old entry when replacing it.Tested
python3 -m unittest tools.tests.test_suggest_patches(33 passed).python3 core/relinker/relinker/tests/test_patch_advisor.py <relinker>passed with the real relinker, including optional metadata output.python3 tools/check_conventions.py --base origin/main,python3 tools/check_test_registration.py --scripts, andgit diff --check origin/main...HEADpassed.tools/pr_overlap.pycompleted. The hosted overlap check flagged 17 PRs whosedocs/user/USAGE.mdchanges could not be compared automatically because those PRs conflict withmain; I checked all 17 documentation hunks manually and found none in the patch catalog section.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (n/a: advisor metadata only).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T17:22:00Z.
Review: APPROVED
I reviewed the optional-field validation and output path, legacy format-1 behavior, per-entry error handling, duplicate verified-ID rejection, and the rule that metadata is shown only after hash and relinker verification. I found no issue.
Local checks on this exact head:
python3 -m unittest tools.tests.test_suggest_patches(33 passed); conventions, test registration, andgit diff --checkpassed. The synthetic patch-advisor integration script also passed with an available prebuilt relinker binary; this PR has no relinker runtime changes. Hosted conventions, eligibility, intake, labels, Linux/Windows/macOS relinker and ASan checks all pass. Product jobs were skipped by path policy. The reported title relinks are not gameplay compatibility tests.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T19:05:24Z.
Review: APPROVED
Reviewed
da40cf46b96db637b89cbc328e738042a022e3bf. Approve; no actionable finding in this focused review.Optional catalog metadata is validated per matching entry and displayed only after hashes and relinker verification succeed. Duplicate verified IDs are rejected without discarding unrelated valid entries; metadata remains contributor-provided evidence rather than proof of gameplay.
Validation: Windows/Python 3.11. Candidate: test_suggest_patches: 33 run, no skips; no failures. Comparison base: test_suggest_patches: 30 run, no skips. Old production fails fourteen metadata/display/entry-isolation subcases.
Scope: Relinker responses are mocked in the Python suite. No patch was applied or title launched. Current head and effective hosted checks are verified again before submission.