Turn a governance score into a defensible pull request gate
Define what a governance threshold means before enforcing it—and verify that the signal you use can actually block a merge.
Module-level fragility analysis can help teams direct agent edits toward safer paths—and reserve extra review for code with broad failure impact.
For teams using coding assistants on legacy applications, the important question is not simply whether a proposed edit looks small. It is whether that edit touches a module where small changes can have wide consequences. A Fragility Index (FI) can help direct attention, provided teams define what the score measures and do not treat it as a safety verdict.
That distinction matters in a category where reliability signals are moving closer to the editing and pull-request workflows. A score can prioritize inspection; it cannot replace understanding how code paths connect, what depends on them, or what happens at runtime. The practical opportunity is to use fragility analysis before delegating changes, then check the resulting diff against the same risks.
There is no universal FI formula established here. Teams should document their own inputs and keep them consistent. A useful analysis can combine evidence such as change frequency, defect history, dependency reach, test coverage and the number of callers that rely on a module’s behavior. The exact weighting is a local decision, not a property to assume about every tool called a fragility score.
Use the score to rank modules for attention, then inspect the evidence behind the ranking. A module with many dependents may deserve close review even if its recent defect count is low. A frequently changed leaf component may be noisy but have limited impact. A single aggregate score hides these differences unless the team can see the underlying signals.
For a legacy application, begin with a bounded area: a service, package or set of related modules. Trace the sensitive paths from entry point through shared logic to downstream effects. Note the callers, data assumptions and tests that protect each path. This gives an assistant a narrower task and gives reviewers a concrete set of risks to check.
Before asking an assistant to change a high-risk module, specify the intended behavior, the paths it must not alter and the tests that should demonstrate the change. Prefer a focused request over a broad instruction to refactor nearby code. If a task crosses modules with different risk profiles, split it where practical so that each diff has a clear reason and review boundary.
After generation, compare the actual diff with the planned boundary. Check whether the change alters shared interfaces, error handling, state transitions or assumptions used by callers. Run the relevant tests and inspect coverage gaps; a passing test suite is evidence, not proof that every sensitive path remains safe. If the assistant expands scope, pause and re-evaluate rather than letting the extra edits ride along.
Fragility scoring is most valuable when it changes the review process. A team might require a domain owner for a high-impact path, ask for additional tests, or limit automated edits to a smaller surface. Those are policy choices. The score itself does not enforce them unless a team builds a process around it.
Tomosu AI describes a continuous production reliability harness across editors, pull requests and runtime environments. Its Production Reliability Index (PRI) is based on seven sub-indexes. That is not the same thing as a module-level Fragility Index, and the known product description does not establish that Tomosu produces an FI score. Builders should not relabel one measure as the other.
Tomosu offers a read-only scanner for public or private GitHub repositories, which can provide a repository-level PRI report. Its free VS Code plugin displays findings and fixes inline without requiring an account, while its GitHub App posts reliability reviews and PRI deltas on pull requests. These surfaces can put reliability findings near a developer’s work, but users still need to determine which modules are fragile by their own definition and whether a finding applies to the path being edited.
For teams deciding where to put checks, the useful question is which signal should inform a developer, which should inform a reviewer, and which is strong enough to affect a merge. The distinction is covered in guidance on placing PRI guardrails in the editor. An inline finding can prompt inspection; a pull-request review can add context at the change boundary. Neither should be mistaken for a complete map of legacy-code risk.
Record the FI inputs, the modules reviewed and the reason for any exception. Revisit the ranking after major changes or incidents, because dependencies and usage patterns shift. When an assistant edits a sensitive path, preserve the prompt or task description alongside the diff where team practice allows, and verify that the tests cover the behavior the request intended to change.
The category shift worth builders’ attention is less about a new score than about where scores enter the workflow. Reliability checks can now appear in an editor or a pull request, while production context can inform review. That makes it easier to act on findings early. It also makes disciplined interpretation more important: use fragility analysis to choose where to look, use tests and review to assess the change, and keep any aggregate index within the limits of what it actually measures.
Define what a governance threshold means before enforcing it—and verify that the signal you use can actually block a merge.
Use Jira for intent, GitHub for review evidence and Tomosu runtime findings for what happened after release—without treating a reliability score as a compliance certificate.
Use Sentry to detect, Slack to route and Tomosu to prioritize reliability work—but keep remediation actions inside runbooks you control.