Code Break Detection · Contents
Code breaks, deprecations and auto-fix PRs
How Breaklytix finds the code a provider change affects, and when it can propose a reviewed pull request.
Code Break Detection answers one question: if this provider change reaches production, which lines of my code are exposed? It combines the usage map built by the Repository Scanner with the provider events collected by the changelog pipeline, then records a finding for every match it can ground in source code.
The three finding types
- Potential breaks: a provider announced a change that can alter or remove behaviour, and the scanner found code using the affected surface. This is the highest-signal list.
- Deprecated APIs: your code uses an endpoint, version, parameter or SDK method that the provider has marked for retirement. It may still work, but it has a deadline.
- SDK and reliability findings: an outdated client library, a call pattern the SDK now warns about, or a reliability issue such as a missing timeout or an unguarded retry.
From changelog entry to code finding
- The daily pipeline classifies a provider entry and extracts the affected surface: an endpoint, a field, an SDK method, an API version or an authentication scheme.
- The matcher compares that surface with the provider detections recorded for each repository: SDK imports, direct endpoint strings, environment variable names and package versions.
- A match becomes a finding with the file, line, symbol, severity and a link to the provider's published entry.
- A change with no detected usage is stored but not turned into a finding, because there is nothing in your code to act on.
Deprecated does not mean broken yet
A deprecation is an announcement with a horizon: the provider still serves the surface today and will stop at a published date, or after a migration window. Treat the deprecation list as a plan, not an outage. The most useful move is to schedule the migration while the old surface still works, so the shutdown date is not the first time the team looks at it.
A potential break is different. The provider has described behaviour that can fail on a version you may already be using, so severity depends on the API version your account and requests actually use. Stripe, for example, pins an account to a dated API version; an entry may describe behaviour that is only active on a newer version. Check the version before you assume the worst.
Severity and confidence
- Severity is the potential impact if the finding is real: critical, high, medium or low.
- Confidence reflects how strong the static evidence is, not how likely the provider is to ship the change.
- A critical finding with high confidence is the first thing to review. A medium finding with low confidence is a prompt to check, not a merge blocker.
- Every finding names the provider, the change type, the affected surface and the source entry, so the reasoning is inspectable.
Auto-fix pull requests
Some changes are mechanical: a renamed method, a moved argument, a retired call with a documented replacement. For those, Breaklytix can prepare a fix from a hand-curated rule and, after approval, open a real GitHub pull request.
- Rules are authored and versioned by hand. There is no language model generating code in the auto-fix path.
- A fix moves through pending, needs_review, pr_created, merged or rejected. Only needs_review and pending fixes can be approved.
- On approval, Breaklytix fetches the current file, applies a deterministic replacement, validates the resulting syntax and opens the pull request on a fresh branch. If validation fails, no PR is created.
- Nothing is merged automatically. The pull request is a normal reviewable diff that your team can change or close.
- Rules cover a deliberately small set of well-documented migrations. A finding with no matching rule still appears; it just needs a human fix.
Reviewing a finding well
- Open the provider's source entry before reading the code. Confirm what changed and on which version.
- Check the call site. A static match can point at a helper rather than the production path.
- Decide whether the code is actually exposed. A test-only or dead-code usage is lower priority than a request path.
- If a fix is proposed, read the diff and run your tests. Syntax validation is not a behavioural guarantee.
- Mark the finding resolved or ignored so the list reflects reality. An ignored finding is a decision, not a disappearance.
Does Breaklytix change my code automatically?
No. It can prepare a fix and, after you approve it, open a pull request. Nothing is written to your default branch and nothing is merged automatically.
Why does a deprecated API still work?
A deprecation is a retirement announcement with a future date or migration window. The surface keeps working until the provider removes it, which is why the finding is a planning item rather than an outage.
What is the difference between a potential break and a code break?
A potential break is a static match between a provider change and detected usage; it is a candidate. A confirmed break is one your team has verified at the call site or observed at runtime. Breaklytix labels the evidence it has and does not pretend a candidate is confirmed.
Can I disable auto-fix PRs?
There is no repository-level auto-fix switch. Auto-fix is approval-based: a proposed fix does nothing until you approve that specific fix from the dashboard. Dismissing or ignoring a fix means no branch or pull request is created.