docs(agents): allow the licence notice of code adapted from upstream #20002
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20002"
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 MarcZX10 on 2026-11-14T10:52:25Z.
What
AGENTS.md,
docs/dev/CONVENTIONS.mdand the pull request template all say that comments in code are allowed only for technical debt,#endifand 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.Overlap
AGENTS.md, on a different line (the debt-fragment rule). No text overlap with this change.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.mdfiles or images added to the repository (attach them to this PR)