@riley I like iFixit and I think repairing over replacing has much to recommend it but really generalizing it involves way more structural change than is generally recognized.
A general right-to-repair is inconsistent with individuals as primary economic actors; nigh-all purchases would need to be made the way some militaries do, which purchase the thing and lifetime spare parts for the thing together and keeps the spares in a supply system thereafter. It runs up the sticker price.