feat(impact): prototype MergeField change consequence calculus - #122
Merged
Conversation
CodeWithJuber
marked this pull request as ready for review
August 10, 2026 04:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Experiment
Prototype a new change-centric merge-impact algorithm and benchmark it against real ForgeKit history before wiring it into
forge impactorforge precommit.Why this is different from the current blast radius
The current impact engine is intentionally scalar and graph-centric: max-product reverse propagation plus SCC and hazard-aware thresholds. MergeField starts from the semantic meaning of each changed atom and propagates a 7-dimensional consequence vector:
Relations use sparse transfer matrices, so a
verified_byrelation creates a test obligation while adocumented_byrelation creates documentation drift without pretending either is a runtime dependency.For one changed root, max-path propagation prevents cycle inflation. Across independent changed roots, noisy-OR combines evidence so multi-file interactions can be stronger than any one edit.
Real-history probes
98ce7ece: one-file formatting-only test change stays low-risk.d0f11aa: docs renderer/check changes fan out to generated MDX surfaces and the regression test.src/atlas.jssurface reaches its real consumers, test, and docs when those relations are supplied.Safety boundary
This PR does not replace the existing impact engine yet. It is deliberately an isolated pure module plus tests and research documentation. The next step, only if this survives CI and historical evaluation, is an adapter from existing Forge evidence channels (atlas, docs impact, git diff, test prediction, package/workflow metadata, rank/history) into MergeField.
Validation