Skip to content

Code and API impact

These files changed. These pages describe them, and here is why.

Impact answers one question: something changed in the product, so which pages describe it?

When an OpenAPI document changes between syncs, Staleless diffs it and grades every change:

ClassMeaning
AdditiveA new operation, a new optional field.
Potentially breakingA changed parameter, a changed response.
BreakingA removed operation, a new required field, a changed auth scheme.

Then it finds the pages affected:

PR #284 added POST /teams/:id/invite
High confidence documentation impact:
- Teams > Members
Medium confidence:
- Getting Started > Collaboration

Four rules. Each either matched or did not, and the text it matched travels with it as evidence:

RuleWhat it matched
exact-pathThe page names the exact path.
operation-idThe page names the operationId.
tagThe page covers the operation’s tag.
resourceThe page names the resource noun.

A page naming /teams/{id}/invite is more affected than one naming “teams”, and the rule names say so. You can disagree with the rule rather than only with the result.

In your build, on every pull request:

Terminal window
npx staleless impact --changed src/api/teams.ts,src/api/members.ts

It reads the relationship graph and answers with the pages that describe anything in those files, and the line on each page that matched. See impact.

In CI, on every pull request. This works today, and it is why impact shipped before the rest.

From a connected repository. Where a code repository is connected, the workspace compares what it last saw on a scan.

An impact finding becomes an inbox item and, where a page is clearly affected, a Pulse outdated signal on that page. It is evidence, so it reaches outdated rather than only review.

A page written by staleless document records the commit and the exact files and lines it came from. When those files change, the page is marked for review.

Documentation generated from code that knows when the code moved is the point. Without the provenance it is a plausible page nobody can trust.