RepinDeltas computes the list of version-pin changes the repincommand would propose (or apply) against this graph.
Without promoteUnpinned, only outdated findings are returned —refs whose pin is strictly below the upstream's current version.Predated findings (pin strictly above upstream version) aresurfaced separately so the user can see them; repin neverauto-fixes a predated pin because it is a data integrity error,not a process error.
With promoteUnpinned=true, refs that have no pin at all(~N not present in the source) against a versioned upstreamalso produce a delta. This converts "no claim" into "claimed atcurrent version" — the caller is expected to opt in deliberately.
Rules shared with checkVersionPins:Skip synthetic nodes (result pseudo-requirements and future
synthesized test cases — they exist in memory only, so there is no
source file to rewrite). IsResult is kept for nodes built directly
in tests that predate the Synthetic document marker.Skip nodes that suppress the version-pin check.Skip refs whose target is external (versions out of our control).Skip refs whose target has no version (no ground truth).
Returns deltas sorted for stable output: by source file, thenrequirement ID, then source ref.