Rejected pull requests and their review discussions contain reasoning the final code cannot show: which abstraction was too brittle, where a security assumption failed, or why maintainers rejected a seemingly clean design. That is valuable material for newcomers. A GitHub PR can preserve line comments, review summaries, suggested edits, and request-changes decisions, so the path to the answer is often more educational than the answer itself.
But permanent searchability changes contributor behavior. Someone may be less willing to submit a rough experiment if an awkward first draft is attached to their name forever. I’d favor an educational archive separate from official project history, with author-controlled redaction, optional expiration, and administrator archiving for sensitive cases. Curated lessons could live in Discussions or documentation instead of every failed PR being treated as canonical.
Does preserving failure improve technical learning, or create an unfair reputational burden? Disagree, and share examples from real development communities.