See what else is changing before your change collides with it.
Many agents and people change one repository at once. A forge that shows each pull request alone lets them collide. Sailfork reads all of them together.
#431 Rework session token refresh
risk 54
sensitive_paths
+25
touches auth (2 files)
symbol_churn
+9
0 removed, 2 re-signed, 3 changed definitions
collisions
+20
collides by name with 2 other in-flight changes
A score to order attention, not a verdict. Each point has a reason you can read.
Two changes that merge cleanly can still break each other.
Sailfork flags it when another change removes or re-signs a name yours uses on a line you added or edited, or the reverse. It reads definitions, so nothing is built.
How collisions are foundCollisions for #431
sailfork inflight collisions
Calls refresh_session(token) on a line it added
broken_by
session.rs:88 with caisson c-9f2k removes the old signature
Re-signs charge(amount) that #437 calls on a line it edited
breaks
cart.rs:41 with #437 Apply store credit
Nothing was built. These are likely breaks, not proven ones.
#431 against everything else in flight
sailfork inflight conflicts
#437 Apply store credit
src/cart.rs, src/totals.rs
conflicts
caisson c-9f2k
src/session.rs
conflicts
#440 Add shipping rates
merges clean
Integration build: #431 with #437
Ran on a merge commit of the two, with no secrets. Counted as a break because both are green alone and so is main.
Conflicts are computed whenever a branch moves.
Each change is merged against every other open pull request and live caisson in the background, with the files that conflict. Push workflows marked # sailfork: integration can then build a merge commit of a pair, with no secrets.
Conflicts and integration buildsAn agent says what it will change before it starts.
Ask which open pull requests and live caissons already edit a symbol or its callers. Then declare the symbols you mean to change, and the other holders are told. A conflict is a reason to talk, not a lock.
Caisson intentsCaisson c-4m1x intends
caisson intend
refresh_session
Leased by caisson c-9f2k, which already changes it. The other holder was notified.
SessionStore::revoke
Changed by #431 already.
token_ttl
Nobody else has it.
Nothing is refused. A conflict is a reason to talk, not a lock.
Before an agent starts, from the terminal
Find who else is on the code, declare the symbols, then read the risk and the collisions.
~/acme/shop $ sailfork inflight touching refresh_session
caisson c-9f2k changes refresh_session
#437 Apply store credit calls refresh_session
~/acme/shop $ sailfork caisson intend c-4m1x refresh_session SessionStore::revoke token_ttl
refresh_session: leased by caisson c-9f2k
SessionStore::revoke: changed by #431
token_ttl: nobody else
~/acme/shop $ sailfork inflight risk --pull 431
risk 54
+25 sensitive_paths: touches auth (2 files)
+9 symbol_churn: 0 removed, 2 re-signed, 3 changed definitions
+20 collisions: collides by name with 2 other in-flight changes
~/acme/shop $ sailfork inflight collisions --pull 431
broken_by caisson c-9f2k: re-signs refresh_session, used at session.rs:88
breaks #437: re-signs charge, used at cart.rs:41
~/acme/shop $ Limits
- Sensitive paths add 25 points per name touched, up to 50. A repository replaces the defaults with up to 64 names in .sailfork/risk-paths, read from the pull request's base.
- Symbol churn adds 3 per removed or re-signed definition and 1 per other changed definition, up to 30.
- Collisions add 10 per other in-flight change, up to 30. A change that is only verified renames takes off 40.
- The score never goes below 0 and has no upper bound. It is read from your view, so paths you cannot read do not count, and complete: false means a factor could not be read in time.
- Touching looks at the newest 100 pull requests and the 100 most recently active caissons.
- A caisson declares up to 50 symbols to change.
- Integration builds run one pair at a time per repository, at most one run every 30 minutes.