#3354·GitNexus

impact returns an identical result for every target; target name is echoed but unused (1.6.12)

Author: cferber2341Created Sep 23, 2026Updated Sep 24, 2026

Summary

impact returns an identical result body for every target. The target.name field is echoed back; the analysis does not use it.

Environment

  • gitnexus 1.6.12
  • TypeScript monorepo, pnpm workspaces
  • Index freshly built: 58,279 nodes / 99,065 edges / 387 clusters / 512 flows
  • Invoked via MCP: impact({target: "<name>", direction: "upstream"})

Reproduction

Three targets, two different packages:

Target Defined in
runSweep packages/ticket-worker/src/sweep/index.ts:74
runPass1 packages/ticket-worker/src/sweep/pass1-sweep.ts
extractLeadingNumber packages/workspace-core/src/eapis/jira.ts:79
$ diff impact-runSweep.txt impact-extractLeadingNumber.txt
3c3
<     "name": "runSweep",
---
>     "name": "extractLeadingNumber",

$ diff impact-runSweep.txt impact-runPass1.txt
3c3
<     "name": "runSweep",
---
>     "name": "runPass1",

Two differing lines in each case. Byte sizes: 102,905 / 102,905 / 102,887.

Actual

Every target returns:

impactedCount   1037
direct          758
risk            CRITICAL
riskSharedAxes  CRITICAL
epistemic       exact
partial         true
summary         { direct: 758, processes_affected: 18, modules_affected: 16 }
byDepthCounts   { "1": 758, "2": 161, "3": 118 }

Expected

runSweep has one definition and two call sites, all inside packages/ticket-worker:

$ rg -n "runSweep" --glob '!node_modules' --glob '!docs' --glob '!prompts'
packages/ticket-worker/src/sweep/index.ts:74:export async function runSweep(env: Env)
packages/ticket-worker/src/index.ts:7:      import { runSweep } from './sweep'
packages/ticket-worker/src/index.ts:41:     const sweep = env.__sweep ?? runSweep
packages/ticket-worker/src/routes/admin.ts:4:  import { runSweep } from '../sweep'
packages/ticket-worker/src/routes/admin.ts:32: const result = await runSweep(c.env)

Expected impactedCount ≈ 3, risk low. Actual is 1037 / CRITICAL.

Two further defects visible in the same output

1. The result names none of the target's own package.

$ grep -c "ticket.worker" impact-runSweep.txt
0

Zero occurrences across 102,875 characters.

2. Generated .d.ts files are counted as callers. Most frequent filePath values:

68  packages/dev-portal-ui/worker-configuration.d.ts
18  packages/dev-portal-old-ui/worker-configuration.d.ts
14  packages/dev-portal-api/worker-configuration.d.ts
 2  packages/sync-app-api/src/workflows/reservation-edit.ts
 2  packages/sync-app-api/src/durable-objects/location-provisioning.ts

100 of the reported hits are ambient type declarations, which contain no call sites.

affected_processes[0] is fetch in packages/sync-app-api/src/durable-objects/location-provisioning.ts — unrelated to all three targets.

Impact

risk: CRITICAL on a symbol with two call sites is a false positive that cannot be distinguished from a true one by the caller. Workflows that gate edits on impact risk are blocked, and the documented UNKNOWN handling does not apply because the result claims epistemic: "exact".

Analyzer warnings from the same run

[processes] 512 flows reported, but whole flows are MISSING:
  1844 of 2044 candidate entry point(s) never ranked in,
  1779 callee(s) skipped at maxBranching,
  30 walk(s) cut by the per-entry trace budget
[scope-resolution] 274 property read/write site(s) name a field defined in this
  workspace but only in another language; per-language inference declined to link them

Source: abhigyanpatwari/GitNexus