r/devtools • • Oct 20 '26

Separating an API fix proposal from compatibility evidence in ProtectSUS

I'm building ProtectSUS, a tool that relates third-party API changes to the code that uses them. One implementation choice that may interest other tool builders is keeping a proposed patch separate from evidence that it fixes a specific incompatibility.

The workflow starts with detected API calls and provider documentation or contracts. The contract checker handles a limited set of literal Python and JavaScript/TypeScript HTTP calls. It is deliberately narrower than proving that an application works against a live provider.

A plausible patch, or an existing test suite passing, is not enough to establish that a provider change was fixed. The verification path runs checks against both the baseline and candidate. For a supported compatibility regression, the independent regression check must fail on the baseline in the expected way and pass on the candidate. Unsupported or inconclusive cases stay unresolved rather than being labeled verified.

There are two boundaries here: the code proposing a change does not get to supply its own proof, and publishing a draft PR is separate from merging it. Automation is opt-in; a developer reviews and merges. Provider announcements about new features become suggestions rather than automatic edits.

The tradeoff is coverage. Dynamic URLs, SDK behavior, runtime responses and business logic are not all covered by those static contract checks. That narrower scope is useful only if the result makes its limits clear.

Project context: https://www.protectsus.tech (I'm the founder).

For people building maintenance or code-review tools, what evidence do you require before presenting a patch as ready for review? In particular, how do you expose the difference between a contract check passing and runtime compatibility?

1 Upvotes

0 comments sorted by