feat(tools): add optional patch catalog metadata #11489

Merged
WhiteAssassins merged 2 commits from upstream-pr/11489 into main 2026-10-27 23:58:26 +00:00
WhiteAssassins commented 2026-10-26 17:10:43 +00:00 (Migrated from github.com)

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, and revision fields 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. revision identifies a patch definition but does not automatically supersede an older entry; a catalog maintainer must remove the old entry when replacing it.

Tested

  • CachyOS Linux: python3 -m unittest tools.tests.test_suggest_patches (33 passed).
  • Synthetic ELF: 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, and git diff --check origin/main...HEAD passed.
  • tools/pr_overlap.py completed. The hosted overlap check flagged 17 PRs whose docs/user/USAGE.md changes could not be compared automatically because those PRs conflict with main; I checked all 17 documentation hunks manually and found none in the patch catalog section.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (n/a: advisor metadata only)
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (n/a: no third-party code)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5021569018 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11489). Originally posted by [WhiteAssassins](https://github.com/WhiteAssassins) on 2026-10-26T17:10:43Z. --- ### What Add optional `id`, `name`, `category`, `description`, `tested`, `notes`, `contributors`, `source`, and `revision` fields 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. `revision` identifies a patch definition but does not automatically supersede an older entry; a catalog maintainer must remove the old entry when replacing it. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - CachyOS Linux: `python3 -m unittest tools.tests.test_suggest_patches` (33 passed). - Synthetic ELF: `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`, and `git diff --check origin/main...HEAD` passed. - `tools/pr_overlap.py` completed. The hosted overlap check flagged 17 PRs whose `docs/user/USAGE.md` changes could not be compared automatically because those PRs conflict with `main`; I checked all 17 documentation hunks manually and found none in the patch catalog section. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (n/a: advisor metadata only) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (n/a: no third-party code) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-26 17:22:00 +00:00 (Migrated from github.com)

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, and git diff --check passed. 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656190229 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11489#pullrequestreview-5656190229). Originally posted by [MarcZX10](https://github.com/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, and `git diff --check` passed. 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.
THEMANnt commented 2026-10-26 19:05:24 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5657526754 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11489#pullrequestreview-5657526754). Originally posted by [THEMANnt](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11489
No description provided.