[GH-ISSUE #67] Map historical source modules to current bundles #54

Closed
opened 2026-10-15 18:20:33 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @morluto on GitHub (Jul 12, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/67

Problem

Historical source is only useful when mappings to current minified/bundled code are evidence-backed and uncertainty remains visible.

Outcome

Add compare_source_to_bundle with candidate scoring and unchanged/modified/removed/split/merged/duplicated/unknown classification.

Signals

Strings/constants, dependencies, AST/control-flow fingerprints, call neighborhoods, protocol/API usage, object keys/errors, export arity/invocation shape, runtime evidence, and duplicate/chunk relationships.

Output

Candidate locations, per-signal scores/evidence IDs, confidence/ambiguity, contradictions, unmatched regions, and recommended behavioral probes.

Acceptance criteria

Known mappings survive minification, renaming, chunking, and wrappers; modified/ambiguous cases cannot become unchanged; split/merged/duplicated modules are explicit; results are deterministic and auditable.

Dependencies

Parents #35 and #37. Requires historical import, bundle indexing, and bundles.

Verification

Fixtures cover unchanged/minified, wrappers, branch/constant changes, split/merge/duplication, shared-helper collisions, contradictions, insufficient evidence, and runtime-assisted disambiguation.

Non-goals

Recovering destroyed names/comments, copying old source into a reconstruction, or substituting for behavioral tests.

Originally created by @morluto on GitHub (Jul 12, 2026). Original GitHub issue: https://github.com/morluto/rea/issues/67 ## Problem Historical source is only useful when mappings to current minified/bundled code are evidence-backed and uncertainty remains visible. ## Outcome Add `compare_source_to_bundle` with candidate scoring and unchanged/modified/removed/split/merged/duplicated/unknown classification. ## Signals Strings/constants, dependencies, AST/control-flow fingerprints, call neighborhoods, protocol/API usage, object keys/errors, export arity/invocation shape, runtime evidence, and duplicate/chunk relationships. ## Output Candidate locations, per-signal scores/evidence IDs, confidence/ambiguity, contradictions, unmatched regions, and recommended behavioral probes. ## Acceptance criteria Known mappings survive minification, renaming, chunking, and wrappers; modified/ambiguous cases cannot become unchanged; split/merged/duplicated modules are explicit; results are deterministic and auditable. ## Dependencies Parents #35 and #37. Requires historical import, bundle indexing, and bundles. ## Verification Fixtures cover unchanged/minified, wrappers, branch/constant changes, split/merge/duplication, shared-helper collisions, contradictions, insufficient evidence, and runtime-assisted disambiguation. ## Non-goals Recovering destroyed names/comments, copying old source into a reconstruction, or substituting for behavioral tests.
Author
Owner

@morluto commented on GitHub (Jul 20, 2026):

Split into focused child issues:

These replace the broad remaining scope in this issue. Closing this parent can happen once all children are closed.

<!-- gh-comment-id:5023446117 --> @morluto commented on GitHub (Jul 20, 2026): Split into focused child issues: - [ ] #379 - [ ] #380 These replace the broad remaining scope in this issue. Closing this parent can happen once all children are closed.
Author
Owner

@morluto commented on GitHub (Jul 25, 2026):

The focused children #379 and #380 are closed by merged PR #433, which delivers the source-to-bundle contract, scoring, and classification pipeline.

<!-- gh-comment-id:5078381614 --> @morluto commented on GitHub (Jul 25, 2026): The focused children #379 and #380 are closed by merged PR #433, which delivers the source-to-bundle contract, scoring, and classification pipeline.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#54
No description provided.