Blast-radius triage
What a pull request changes that other code can feel, and whether it is contained, coordinated or needs a human.
Triage answers the reviewer's question for each pull request: does this need my eyes? Lanekeeper reads what the pull request changes as code, finds every known use of the APIs it changes, on the base branch and in the other open pull requests, and gives it one of three tiers. Like the clash rules, it is deterministic: no model is involved, and the same changes always get the same tier.
It appears in the GitHub Action's pull request comment under Blast radius, in the dashboard's PR checks on the Team plan, from lk triage on your machine, and from the MCP tool lanekeeper_triage.
Tiers
- contained
- Safe to land on green CI.
- coordinated
- It changes things other code can feel; a quick look is enough.
- needs a human
- Review this one before it lands.
A pull request's tier is the most cautious of its reasons. Contained needs all of these: no exported API change that others can feel, no migration, route, environment, dependency or lockfile change, no clash with another open pull request, and every changed file fully analyzed. Files Lanekeeper reads only by name (Go, Rust, Java, Kotlin, Swift, Ruby, C# and PHP), configuration read at runtime and other files the rules don't model make a change at least coordinated, so "contained" never rests on what Lanekeeper can't see.
Reasons
| Reason | At least |
|---|---|
No API that other code uses changes. no_api_change | contained |
Changes an API; every known use is updated in the same change. api_change_users_updated | coordinated |
Changes an API that nothing else uses yet. api_change_unused_elsewhere | coordinated |
Changes a dependency. special_change_dependency | coordinated |
Changes a lockfile. special_change_lockfile | coordinated |
Adds or changes an HTTP route. special_change_route | coordinated |
Adds or changes an environment variable. special_change_env | coordinated |
Has warn-level clashes with other lanes or pull requests. warn_clash | coordinated |
Includes files Lanekeeper can't fully analyze. analysis_shallow | coordinated |
Breaks an API that other code still uses. breaking_api_change_with_users_elsewhere | needs a human |
Adds or edits a database migration. special_change_migration | needs a human |
Has a high-severity clash with another lane or pull request. high_clash | needs a human |
Touches paths your policy marks for review. policy_requires_review | needs a human |
What it looks at
- Exported functions, classes, types and constants whose signature or shape changes, or that are removed, renamed or moved, with the uses this pull request updates and the uses it leaves elsewhere.
- A use counts as updated only when this pull request edits that line. An existing caller on the base branch that it doesn't touch, even in a file it edits, keeps the change at "needs a human".
- Added functions and optional fields don't count as API changes: nothing that already exists can break.
- Paths your policies mark for review.
From your machine and your agents
lk triage triages the lane you're in against the base branch and the other lanes. It prints the tier, the reasons, and each changed API with up to five of its uses; --json prints the full report. It exits 0, or 2 outside a lane.
$ lk triage
Blast radius: needs a human Review this one before it lands.
- Breaks an API that other code still uses: ts:src/auth.ts#login
- Has a high-severity clash with another lane or pull request: 1 high-severity clash
API changes
ts:src/auth.ts#login (signature changed): 0 updated here, 2 elsewhere
main: src/profile.ts:4
berlin: src/report.ts:4Agents get the same answer from the MCP tool lanekeeper_triage (no arguments): the tier, the reasons, and each changed API's uses on the base branch. Uses in other lanes are given as a count, so a teammate's file paths never reach your agent, as with clashes.
Privacy
Triage runs on your machine and in your CI, like the rest of the analysis. With Team sync, the report the Action sends to the dashboard holds symbol names, paths and line numbers, never code; in hashed mode those are hashed first.