Skip to content

fix(domain): treat source-map extension case-insensitively in artifact edge mapping #195

Closed

Description

@morluto

Problem

When building artifact edges, createArtifactEdges and relationFor identify source-map files with case-sensitive checks.

  • src/application/ArtifactGraphConstruction.ts:206 checks occurrence.logical_path.endsWith(".map").
  • src/application/ArtifactGraphConstruction.ts:340 checks if (lower.endsWith(".map")) where lower is precomputed as path.toLowerCase(), but that helper is not used for the .endsWith(".map") checks above.

Files named MAIN.JS.MAP (or mixed-case .Map) are currently treated as generic contains edges, and mapped-source lookup for the parent artifact fails because it slices logical_path using the same case-sensitive suffix.

Repro

  1. Produce an artifact containing a source map with upper/mixed-case suffix (for example main.js.MAP) and its source file main.js.
  2. Run inventory_artifact and inspect edges.items in the returned graph.
  3. The source-map edge is not reported as maps-source and parent-child inference is lost.

Expected

Source-map relation inference should be case-insensitive and consistent with file classification (which already lowercases paths for extension checks), so .map variants still map to their source file.

Activity

  1. added
    bug
    area: evidence
    on Oct 12, 2026
  2. added
    area: domain
    on Nov 23, 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

    area: domainarea: evidencebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions