Repository navigation
fix(proximity): resolve emitted module paths to TypeScript sources - #3977
Conversation
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 2 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 2 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 2 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 2 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
[Medium impact] The PR appears safe to merge; no actionable issues were found.
|
|
Could a maintainer approve the current CI runs below? This updates the existing approval request to include all ten open fixes; each current run reports
The latest review follow-up in #3963 is The scanner and regression evidence for #3979 and #3980 remains committed. Their Security Evidence results report success: #3979 evidence result and #3980 evidence result. These CI runs still need maintainer authorization before execution. Thank you! |
|
Thank you for mapping emitted module paths back to TypeScript sources. We merged your original commit history through #4048 so the related changes could be tested together. The resulting main commit |
What Changed
Add TypeScript source fallbacks for relative imports whose emitted JavaScript file is absent:
.jsto.ts/.tsx/.d.ts,.jsxto.tsx/.d.ts,.mjsto.mts/.d.mts, and.cjsto.cts/.d.cts. Scan.mtsand.ctssources as well. Both the filesystem and in-memory graph builders share the candidate list.Why This Change
A source checkout using
import { value } from './util.js'withutil.tscurrently has no dependency edge until emitted files exist. This causes the proximity scorer and coordination inventory to miss related edits across otherwise distant paths. The regression demonstrates a zero dependency channel before the fix and a positive channel afterward.The fallback follows the source-extension relationships documented in the TypeScript module reference. This remains ECC's lightweight static graph: existing literal files keep precedence, and the change does not claim to reproduce TypeScript's complete resolver or tsconfig/package resolution.
Testing Done
node tests/lib/agent-proximity.test.js: 25 passed, including real fixture files, both graph builders, module extensions, declaration fallback, literal-file precedence, and the resulting collision-risk channel.ECC_TEST_ONLY=agent-proximity,control-pane-proximity,coordination-inventory npm test: repository validators and all five selected suites passed.npm audit(zero reported vulnerabilities), andgit diff --checkpassed.Validation was performed on Linux. The complete repository suite and native Windows execution were not run.
Type of Change
fix:Restore missing source dependency edges.Security & Quality Checklist
Documentation