Not quite the same -- a story
Anon to protect my employer, customer(s)/contract, and OEM supplier.
Scenario: $Army_vehicle contains a certain COTS-like $power_part that is part of DC power distribution. This $power_part and ones like it share a common base design yet highly configurable for the application (but not reconfigurable once made). The output power connectors are a $Power_co proprietary plug design using $Connector_co contacts.
For testing reasons, my company needs to mate with both sides of those connections. Plug to $power_part = easy: COTS available connectors and contacts. Receptacle-like mating to the proprietary plug: does not exist. $Power_co does have some designs in the works for such a thing, but they're holding their cards close so they can eventually bring it to market themselves.
Despite a multi-way non-disclosure (NDA) between us, $Power_co, and our customer(s), $Power_co isn't going to share the special connector design with us or even make some for us. However, they will share the design with the gov't-level customer, who is (surprisingly) happy to 3D-print us some. Since the application is a test bench in a lab -- possibly used on a garage vehicle, but nowhere close to a field of operations -- and it's costing us nothing, we're taking the deal.
How does this relate to the original article? Well, the gov't drawing for $power_part defines interfaces and function, but not enough info for us to reverse engineer and make our own special connector. This is how gov't and industry have worked together since Eisenhower ("military-industrial complex" -- his phrase, right?) -- protecting private engineering while giving the gov't enough info to be useful, but not enough to ruin their business model. Would "right to repair" upset that relationship a bit? Should it? Is reverse engineering -- to any degree -- allowed? Does analyzing and fixing a COTS generator (mentioned elsewhere in the comments) involve even a little reverse engineering to figure out how it works?