docs(agents): allow the licence notice of code adapted from upstream #20002

Merged
MarcZX10 merged 3 commits from upstream-pr/20002 into main 2026-11-14 20:58:04 +00:00
MarcZX10 commented 2026-11-14 10:52:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:52:25Z.


What

AGENTS.md, docs/dev/CONVENTIONS.md and the pull request template all say that comments in code are allowed only for technical debt, #endif and namespace ends. Several libSceIcu pull requests adapt code from ICU, whose licence (the Unicode licence) asks that its copyright and licence notice stay with copies of the code. Those PRs are blocked on this rule.

This PR adds one exception to the three places that state the rule: the licence and copyright notice of code adapted from an upstream source, kept verbatim at the top of the file with a link to the pinned upstream commit. Attribution facts and known gaps still go in docs/dev/debt/<library>.md. No other comment is allowed.

One commit per file: AGENTS.md, docs/dev/CONVENTIONS.md, and .github/pull_request_template.md. The template line is changed so that the checklist matches the rule.

This is a rule change. The author of this PR asks for it; the maintainers decide whether to merge it.

Tested

  • python3 tools/check_conventions.py --base upstream/main: passed.
  • git diff --check upstream/main...HEAD: empty.
  • No code, build or test change in this PR.

Overlap

  • PR #17217 also changes AGENTS.md, on a different line (the debt-fragment rule). No text overlap with this change.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • 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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: the libSceIcu pull requests that adapt ICU code, #19951, #19955, #19972, #19985 and #19998
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5310451559 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20002). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T10:52:25Z. --- ### What AGENTS.md, `docs/dev/CONVENTIONS.md` and the pull request template all say that comments in code are allowed only for technical debt, `#endif` and namespace ends. Several libSceIcu pull requests adapt code from ICU, whose licence (the Unicode licence) asks that its copyright and licence notice stay with copies of the code. Those PRs are blocked on this rule. This PR adds one exception to the three places that state the rule: the licence and copyright notice of code adapted from an upstream source, kept verbatim at the top of the file with a link to the pinned upstream commit. Attribution facts and known gaps still go in `docs/dev/debt/<library>.md`. No other comment is allowed. One commit per file: `AGENTS.md`, `docs/dev/CONVENTIONS.md`, and `.github/pull_request_template.md`. The template line is changed so that the checklist matches the rule. This is a rule change. The author of this PR asks for it; the maintainers decide whether to merge it. ### Tested - `python3 tools/check_conventions.py --base upstream/main`: passed. - `git diff --check upstream/main...HEAD`: empty. - No code, build or test change in this PR. ### Overlap - PR #17217 also changes `AGENTS.md`, on a different line (the debt-fragment rule). No text overlap with this change. ### Checklist - [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) and the licence notice of code adapted from upstream (see AGENTS.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 - [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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: the libSceIcu pull requests that adapt ICU code, #19951, #19955, #19972, #19985 and #19998 - [x] GPUs tested: n/a - [x] AI-assisted: yes
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!20002
No description provided.