Repository navigation
fix(comparison): account for unpaired records after explicit bundle pairing - #603
Merged
morluto merged 3 commits intoOct 5, 2026
Merged
Conversation
added 2 commits
October 5, 2026 13:18
…airing Signed-off-by: Rudy Celekli <[email protected]>
Signed-off-by: Rudy Celekli <[email protected]>
Author
|
Update: the maintainer independently corrected the shared source-map fixture in #609 while the repair was being verified. I merged that upstream change and kept the owner's exact fixture, so the final diff against that upstream parent contains only this PR's comparison correction. Production source-map semantics are unchanged. At signed head fbcc337, all 30 focused tests pass (the original comparison regressions plus 23 source-map boundary tests), as do build:cached, check, and pre-push check:fast. Remote CI is rerunning; pending checks are not claimed passing. |
Signed-off-by: Rudy Celekli <[email protected]>
Owner
|
Thanks, @rudycelekli, for your work on “fix(comparison): account for unpaired records after explicit bundle pairing.” I appreciate your contribution to REA. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…airing (morluto#603) * fix(comparison): account for unpaired records after explicit bundle pairing Signed-off-by: Rudy Celekli <[email protected]> * test(browser): preserve unknown with-scope loader bindings Signed-off-by: Rudy Celekli <[email protected]> --------- Signed-off-by: Rudy Celekli <[email protected]>
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.
Summary
Explicit cross-record pairs no longer discard leftover opposite-side occurrences; one-sided membership stays unknown, without inferred additions or removals.
No issue is linked: this is a narrow, reproduced correction to an existing comparison invariant discovered while reviewing current code, with no new feature, architectural change, or public contract requiring a proposal.
Problem and expected behavior
For two bundles both containing A, B, C, an explicit A-left to B-right pair produced one changed pair and one unchanged C but silently dropped leftover B-left and A-right. Every input-side record must be accounted for after caller-selected one-to-one pairing.
Change and scope
Preserve remaining opposite-side occurrences when that same ID has already been consumed by an explicit pair. Keep the current upstream contract: one-sided membership remains unknown with unresolved_branch conclusions, and records_added/records_removed remain zero. Existing pair validation and Evidence identities are preserved.
Contract and boundary impact
docs/product-catalog.json), package, or installation impact: none; relevant metadata checks remain enforced.Evidence and regression coverage
{"status":"unknown","summary":{"records_unchanged":1,"records_changed":1,"records_removed":0,"records_added":0,"unresolved":2}}For evidence-bearing changes:
Validation performed
npm run test:focused -- src/domain/bundleComparison.test.ts— pass: 1 files, 7 tests.npm run check— pass on final signed head.Existing upstream lint/TypeDoc warnings remain; passing gates are not claimed warning-free.
Compatibility, safety, and release
Review checklist
type(scope): outcome.AI assistance was used for investigation, implementation and testing. The commit is signed and includes DCO sign-off.
CI baseline fixture follow-up
CI exposed an upstream source-map recovery fixture expecting a require inside dynamic with scope to be a known unbound loader. The lexical producer correctly keeps that binding unknown. The maintainer independently corrected the fixture in #609. I merged that upstream change and preserved the owner's exact fixture; the final diff against that upstream parent contains only this comparison correction. No production source-map extraction was weakened.
At final signed merge head
fbcc337221745a18c79c0684af0ae4082f5dcf2e,npm run build:cached,npm run check, and the pre-pushnpm run check:fastpass; 30 focused tests across 2 files pass, including the original comparison regressions and all 23 source-map boundary tests. Remote CI reruns are not claimed complete while pending.