Skip to content

Map historical source modules to current bundles #67

Closed

Description

@morluto

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.

Activity

  1. added
    enhancement
    P1: high
    area: domain
    area: server
    roadmap
    on Jul 12, 2026
  2. morluto commented on Jul 20, 2026

    @morluto
    OwnerAuthor

    Split into focused child issues:

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

  3. morluto commented on Jul 25, 2026

    @morluto
    OwnerAuthor

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

  4. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: higharea: domainarea: serverenhancementroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions