Skip to content

Reach MVP: precision and soundness fixes of the link step and the reach query - #60

Merged
abhisek merged 74 commits into
mainfrom
claude/reach-mvp-precision
Nov 15, 2026
Merged

abhisek merged 74 commits into
mainfrom
claude/reach-mvp-precision

Conversation

@abhisek

@abhisek abhisek commented Nov 14, 2026

Copy link
Copy Markdown
Member

Summary

This PR holds the safedep/code issues of the Linear milestone "v2.2a Reachability MVP". vet reads the reach query to say whether a project calls a vulnerable function. On main, global uncertainties made almost every Go and Rust target uncertain, so vet could not say called or not called for most findings. This PR removes the global causes that are unsound to keep, and it adds records where code outside the graph can call back into it, so no change turns a reachable target into not-found.

Issue Change
FOU-557 An ambiguous site keeps its method name in Go, and in Rust for a call on a receiver. Python, JavaScript, TypeScript, Ruby and PHP keep the old global scope, because a call by name there can run code of another name.
FOU-558 The Go index records struct fields, constants and package variables as data. A read of one makes no record. Promoted methods and type aliases resolve.
FOU-559 Not done, on purpose. docs/projectgraph.md shows why a unit scope is unsound without the declared dependencies of the unit, and a guard case holds the argument.
FOU-560 A Go call of a function value names no target in a search from the roots, because the index records a reference for each form of function value. A search with sources keeps the old global record.
FOU-556 The Rust ? is recorded in the index and replaces the method table. The builtin skip of the first version is gone: a builtin can return its argument.
FOU-561 The method measure links the Go standard library as go:std@<release>.
FOU-562 Rust extern crate, pub use of a crate, use of an item, and type aliases resolve.
FOU-563 The method measure compares each Go answer with govulncheck v1.9.0, with no network, and fails on a false negative.
FOU-575 The indexer stores the finished files of a batch when the context ends. A partial skeleton index or a late artifact never reaches the store (this also fixes FOU-595).
FOU-576 The indexer reads .jsx and the scripts of .vue, .svelte and .astro. The markup gets a record, <script src> gets an import, and a JSX element name gets a reference.
FOU-578 A Rust method call on a boxed trait object links to each implementation. A declared type binds a receiver only where no binder or local item shadows it.

New soundness rules, each argued in docs/projectgraph.md and guarded by cases:

  • Code outside the graph. A Go module with no unit, or the standard library with no unit, can call back into the graph. Such a call gets a no-dependency-source record. Without this rule, the FOU-558 change exposed false negatives in vet's mode, because vet gives no unit to the standard library.
  • The span of a scope. A scope counts the records of the code it reaches, not only its edges.
  • Load code. A search with sources enters the load code of each package that it reaches.

The versions move once for the branch: fileindex 16, projectgraph 18, reach 5, summary 3.

Verification

  • go test ./...: all pass. The only failure is modgraph TestBuildHoldsEachEdgeOfGoList, which fails on main in the same container too.
  • Other checks:
    • CGO-free tests pass.
    • -race tests of the indexer, parser, lang and reach pass.
    • scripts/run_examples.sh passes.
    • golangci-lint run ./... gives 0 issues.
  • The public sets pass their gates. pycg-micro precision-high-medium is 0.954. govulncheck found and stack are both 1.000.
  • Method measure, 30 projects, compared with govulncheck. "Without" is how vet runs today, with no standard library unit.
Run govulncheck reaches reach found false negative Go targets with a definite answer that govulncheck does not reach
main 115 60 not measured 0
branch, without std 115 71 0 7
branch, with std 115 71 0 0

test/projectgraph/report.md has the counts per cause.

Each fix has a hand-written case or a receiver row that failed before the fix.

Reviews

  • Two adversarial reviews and one clean-code review ran on the branch.
  • The adversarial reviews found 9 false negatives against main, and the PR fixes all of them.
  • Their remaining findings are false negatives that main has too. The follow-up issues hold them, among them:
    • a Go source whose parameter is a function value;
    • inner-block shadowing in Go;
    • several Rust use forms;
    • assembly functions;
    • Vue routes with no static import.

Notes for vet

  • vet gives no unit to the Go standard library, and a unit only to modules with a symbol record. So most Go answers in vet now read uncertain · no-dependency-source. That answer is sound. vet gets the precision back when it links GOROOT and every module with source in the module cache.
  • vet can remove the miss line of test/reach/cases/rust/trait-object.txtar once it takes this version.

Generated by Claude Code

… files (FOU-576)

The JavaScript language read .js, .mjs and .cjs files only. A React
project of .jsx files gave no file to the index, so vet marked its npm
packages unknown with no source files. The script blocks of .vue,
.svelte and .astro files hold imports too, and the index missed them.

The JavaScript language now lists .jsx, .vue, .svelte and .astro. Its
grammar parses JSX. .tsx files already parse with the TSX grammar.

A new optional interface, core.SourceSelector, picks the language of a
file from its bytes. The JavaScript language implements it for the
component files. It replaces each byte outside the script blocks with a
space and keeps the line ends. Each import and call then keeps its line
and column in the file. A block with lang="ts" or lang="typescript" makes
the file TypeScript, and lang="tsx" makes it TSX. Astro reads the code
between the two --- lines at the top, and every script, as TypeScript.
A block with a src attribute holds no code. A block that does not close
runs to the end of the file.

The parser parses the source that the selector gives, and the tree keeps
the bytes of the file, so the index keeps the hash of the file. The
indexer picks the language before it makes the store key, so the key and
the index agree and a warm run serves a TypeScript component file from
the store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…ds (FOU-575)

When the parse of a batch returned the error of the context, run.flush
skipped Store.Put and Store.PutArtifacts for the whole batch. The files
that finished before the deadline were lost too. A scan with the same time
budget parsed the same partial batch again and never warmed the store past
it.

flush now stores the indexes and the artifacts of the files that finished,
and then returns the error of the context. The store write ignores the end
of the context, because a done context fails the write.

A file that the deadline cut keeps no index and no artifact. A cut index
has a deadline truncation and fails its file, as before. Two paths could
still give a partial result as whole, so the change closes them:

- skeletonIndex returned the skeleton index of a generated Go table with a
  deadline truncation and no error. It now fails the file, as the index
  plugin does.
- A cached plugin can stop at the end of the context and return a partial
  artifact with no error. The run now stores an artifact only when the
  context is still live after the plugin returns. The next run parses that
  file again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…e (FOU-561)

The method measure gave the Go modules of each project as units, but not
the standard library. So a receiver of a standard library type had no
known type, and a call on it was an unknown-receiver record. vet passes
GOROOT as a unit, so the measure did not show what vet gives.

scripts/fetch_method_corpus.sh now reads the go line of the go.mod of
each Go project, fetches the src tree of that Go release from go.dev,
and records the release in gostd/releases.txt. The measure links the
tree as the unit go:std@<release>. PROJECTGRAPH_METHOD_NO_STD=1 leaves
the unit out, so a run shows its effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…t govulncheck (FOU-563)

The method measure counted the answers of reach, but nothing checked
that a not-found answer is true. A false not-found hides a real
vulnerability.

With govulncheck v1.9.0 on the PATH, the measure now writes the Go
advisories of advisories.json as a local vulnerability database, and runs
govulncheck -mode source -json on a copy of each Go project with
GOPROXY=off. The fetch script fills the module cache of the corpus with
the build list of each Go project, so the run needs no network. The
measure compares the answer of each target with the symbols that
govulncheck reaches. A target that govulncheck reaches and that reach
gives as not-found or no-such-target is a false negative, and the test
fails. A target that reach finds and govulncheck does not is a review
row. A listed symbol that govulncheck reaches and that is no target is an
unmatched row, so a key that the two tools write in two ways cannot hide
a false negative. TestVulnAgreement checks the comparison on fixed
answers, and the CI job of the public sets runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…-call record (FOU-556)

The Rust link step guessed a ? from a table of the methods of Option and
Result. A name that the table did not hold took the type inside, so
dep::try_thing().inspect(..) made an edge to Thing::inspect. The check
also matched the whole path of the wrapper, so std::io::Result<T> and
anyhow::Result<T> wrapped nothing.

The Rust index now records each ? in the receiver of a method call as the
name ? in the target, as dep//load//?//run for dep::load()?.run() and for
t.run() after let t = dep::load()?. The walk of the link step reads ?,
unwrap and expect as the value inside, and any other name on a wrapped
result as a method of the wrapper, with no type. The table is gone. A
wrapper type matches by the last name of its path.

A call on the result of a call whose package no unit gives is a
no-dependency-source record. The record also came for the builtins of a
language, as Promise.resolve().then. The runtime calls other code only
through a value that the call passes, and a reference edge holds it. So
the record now skips the builtins of the language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The reach query answered not-found for dep::Html::write when main called
w.write() on a Box<dyn dep::Write> that held a dep::Html. The call graph
took Box::new as a constructor method of Box. So w became an instance of
Box, and the call linked to Box//write with high confidence and no
record. The declared type of the let never reached the link step,
because the index typed a Rust receiver only from a parameter.

The call graph now takes the value of Box::new, Rc::new and Arc::new as
the value of a call, as these pointers hold their argument. A call on
such a value keeps an unknown-receiver record. The index of a Rust file
now gives such a call the key of the name in its scope when a parameter
or a typed let declares the name. The link step then reads the trait of
the unit and adds a cha edge to each impl of the method. A value that
the call graph makes, as String::new(), keeps its target.

The declared type types the call only when the function binds the name
once, before the call. A let, a match arm, an if let, a for or a closure
can bind the name again with another type. Without that check, a call
on the new value took the method of the old type and lost its record,
and the case trait-object-shadowed read dep::Plain::write as not-found.

The cases trait-object, glob-use and macro-import copy the cases of the
vet reach corpus. trait-object is now found. glob-use and macro-import
stay uncertain with an unresolved-call at the call site, as before.

Method measure, PROJECTGRAPH_METHOD_LANGUAGES=rust, before and after:
function targets=13 found=1 found/low=3 uncertain/no-definition=9
method targets=38 found/low=16 uncertain/budget=9 uncertain/no-definition=13
other targets=5 no-such-target=5
The corpus has no call on a boxed trait object on a target path, so no
count changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…eck agreement (FOU-561, FOU-563)

The report gives the Go rows of the method measure with and without the
unit go:std@<release>, the top sites of the targets that stay
unknown-receiver, and the agreement of each Go target with govulncheck in
each direction. The run gives 0 false negatives, because reach gives no
Go target as not-found or no-such-target yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
linkFields cleared the method name of a site with more than 20 name
candidates. The reach query scopes a record by its method name, and a
record with no method name concerns every target. So one ambiguous call,
as x.Len(), made every target of the project uncertain.

An ambiguous call can run only a method of its name. The site now keeps
the method name, so the reach query applies it to the targets with that
last segment and to the targets that a definition of the name reaches.
The name-ambiguous case adds a function of another name that no root
calls. Its target is now not-found and was uncertain before the change.

The Go method measure (PROJECTGRAPH_METHOD_LANGUAGES=go) gives:

  kind=method before: ambiguous=416 computed-name=213 no-definition=71
                      unknown-receiver=154 no-such-target=0
  kind=method after:  ambiguous=0 computed-name=579 no-definition=110
                      unknown-receiver=156 no-such-target=9
  kind=function before: ambiguous=106 computed-name=50 no-definition=5
  kind=function after:  ambiguous=0 computed-name=139 no-definition=21
                        no-such-target=1

No target carries an ambiguous site any more. The targets fall to the
next uncertainty that concerns every target, mostly computed-name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The Go index recorded functions, methods and types, but not struct
fields, constants or package variables. A read of n.Data or
pgx.ErrNoRows in dependency code walked into the unit, found no
definition and gave a no-definition record on the external node. That
record made every target of the unit uncertain. A read of a field or a
constant runs no code.

The index now records each named struct field as a field, each constant
as a constant and each package variable as a variable. A variable holds
the target of a value that names a function, as run in var Run = run.
The index marks a variable as data when its declared type or its value
shows that it is no function. The link step gives a field, a constant
and a data variable no node. A read of one gives no edge and no record.
A call of any other variable keeps its edge or its unknown-receiver
record, so a call of var Handler = func() {...} stays uncertain.

A method that an embedded interface declares, as ssh.Client.Close
through ssh.Conn, now resolves as a call on a value of the interface. The
walk of an external key into a unit that ends at a method of an interface
gives an interface-receiver record.

The case go/dependency-data-reads covers a field, a constant, a data
variable, a function value in a variable, a promoted method of an
embedded struct and of an embedded interface.

Method measure, Go only, against main:
  no-definition: function 5 -> 0, method 71 -> 19
  not-found: 0 -> 19, all in melody. Its constant reads hid a gap of the
  missing GOROOT unit (FOU-561), as ioutil.ReadAll calls messageReader.Read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
A Go type alias, as type Context = context.Context in
golang.org/x/net/context, names its target type as a base. The link step
did not resolve that base, so a call of netctx.Context.Done gave a
no-definition record. The scope bound the name of an import only when the
alias differed from the module. A Go import of context, io or sync has
the alias context, io or sync, so it bound no name, and no declared type,
embedded type or alias of such a package resolved.

The Go profile now binds the alias of every import. The alias base gives
the external key context//Context, and a unit of the standard library
gives it on. The case go/dependency-data-reads gains the alias.

This change also resolves each declared type of a package with a one
element path, as io.Reader or context.Context. Without a GOROOT unit
such a type is an external key with no package edge, as net/http types
already were, so a call on it gives no record.

Method measure, Go only, against main:
  no-definition: function 5 -> 0, method 71 -> 16
  not-found: function 0 -> 58, method 0 -> 215
  ambiguous: function 106 -> 32, method 416 -> 154
The not-found answers need the GOROOT unit of FOU-561 and the check of
FOU-563 before vet trusts them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…-560)

A call of a function value, as BackoffLinearWithJitter(d, j)(attempt) or
route.Handlers[0](c), was a computed-name record. Such a record concerns
every target, so one site made most targets of a project uncertain.

A Go function value is a function that some code uses as a value, a
function literal, or a value that reflection gives. The link step now
gives such a call the reason function-value, and the reach query applies
it to no target. The soundness argument is in docs/projectgraph.md. The
change makes each source of a function value reach the search:

- The index records a function that a send statement holds as a
  reference.
- A reference to a method that the link step cannot name, as h.Handle on
  a value of an interface, is a record with the method name. Before, the
  link step dropped it.
- A Go file that imports a package that runs code at load runs code at
  load too, also when the package is in a unit of dependency code. Before,
  the search did not reach the init functions and the package-level values
  of a unit that the project imports through another unit.
- An external key has an import edge to each module top level of its
  package that runs code at load, so the search of a summary reaches the
  package-level values.
- A call or a reference of Call, CallSlice, Method or MethodByName in a
  file that imports reflect is a computed-name record, unless each target
  resolves outside package reflect. Before, reflect.Value.Call concerned
  no target at all.

The Rust index does not record a function that the tail expression of a
block or a match arm holds, so a Rust call of a function value stays a
computed-name record.

The new cases function-value-call, function-value-reflect and
dependency-function-table fail before the change. The reflect case gave
not-found before.

The Go method measure (PROJECTGRAPH_METHOD_LANGUAGES=go), after FOU-557
and after this change:

  kind=method   computed-name 579 -> 2, no-definition 110 -> 509,
                unknown-receiver 156 -> 183, no-such-target 9 -> 144,
                found 82 -> 78, found/low 249 -> 267, not-found 0 -> 0
  kind=function computed-name 139 -> 6, no-definition 21 -> 115,
                no-such-target 1 -> 19, not-found 0 -> 0

Four sftp targets go from found to found/low, because a shorter path now
goes through a reference of a package-level value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…d cases (FOU-559)

FOU-559 asks to scope a failed or truncated file of a unit, and a record
with no method name in the code of a unit, by the code that the unit
reaches (unitReaches). This commit does not make that change, because the
argument does not hold:

- A failed file has no index, so its imports are not known. The closure of
  the edges of the unit, and the import closure of its packages, read the
  same indexed files, so neither bounds the packages that the failed file
  can call. Only the manifest of the unit bounds them, and the link step
  does not record it.
- The project can give the unit a value of an interface. Unknown code of
  the unit can call a method of that value, and the method can call any
  code. Known code of the unit records such a call with its method name,
  which concerns every target of the name. Unknown code can hold such a
  call for any name.

docs/projectgraph.md now holds the argument. Two cases guard the rules:

- go/dependency-callback: the project gives the unit a named function, a
  function literal, a value of an interface and a method value of an
  interface. Each target that a callback reaches is found or uncertain. The
  case fails on the code before FOU-560: fs[0]() was a computed-name record
  then, and the method value c.Close had no record.
- go/dependency-failed-callback: a failed file of a unit calls a method of
  a value that the project gives. The target stays uncertain only through
  the budget of the failed file, so a scope by the unit would make it
  not-found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
# Conflicts:
#	projectgraph/golang.go
#	projectgraph/resolve.go
…FOU-560

The two changes meet in two cases.

FOU-558 indexes package variables, so node.go of dependency-data-reads
runs code at load (errors.New). The load rule of FOU-560 then adds an
import edge from each external key of the package to node.go, and the
summaries of the unit reach errors.New and the calls in the func literal
of Handler. The literal does not run at load, so this reach is wider
than the truth. It can add a reach and never hide one.

FOU-558 binds an import with one path element, as reflect. A chained call
on reflect.ValueOf then has a callee package with no unit, so its record
reads no-dependency-source in place of unknown-receiver. The record
stays, and the computed-name records of the reflect rule stay too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…e aliases (FOU-562)

Four forms of Rust module paths gave a global no-definition record, so
every target of the project was uncertain: extern crate in a submodule,
a path through a crate that is not a unit, pub use of a whole crate
under a name, and a type alias.

extern crate x, extern crate x as y, use x and pub use x as y now bind the
name in their module to the crate. A path through that binding is a path
of the crate, as rand::thread_rng for crate::secure::rand::thread_rng.
A call gets the external key that a plain path of the crate gets. A use
of such a path into a crate that no unit gives is a no-dependency-source
record with the crate as its import prefix, so only a target of that
crate sees it. The route reads each binding of a name in the file,
because an inline test module can bind the name again. A first name
that names no module that the file sees names a crate, also when a file
of the project has the name, as extern crate schannel in
src/imp/schannel.rs. The route of an outer lookup stays for the build,
because each walk asks for the route of each glob use again.

The Rust index records type A = B as a definition of the kind alias, with
B in the new field Alias. The link step binds the alias to the type that
the file of the alias names when a walk first reads it. A type of another
crate is its external key with no node, so a type target does not turn
from no-such-target into not-found.

Rust method measure, before and after this branch (FOU-556 and FOU-562):
function (13): found 1, found/low 3, no-definition 9
            -> found 2, found/low 2, ambiguous 2, no-definition 1,
               unknown-receiver 6
method (38):   found/low 16, budget 9, no-definition 13
            -> found/low 16, ambiguous 4, budget 9, no-definition 1,
               unknown-receiver 8
other (5):     no-such-target 5 -> no-such-target 5
Cookie finds rand::thread_rng through crate::secure::rand::thread_rng()
at src/secure/key.rs:164 with a high hop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
# Conflicts:
#	docs/projectgraph.md
#	fileindex/index.go
#	plugin/indexer/calls.go
#	plugin/indexer/rust.go
…ternal key (FOU-563)

The link step gave no external key to a definition of a package under an
internal directory of a unit, because no importer outside the module can
name it. An advisory names a symbol of such a package by its import path,
as google.golang.org/grpc/internal/transport.NewServerTransport. A target
of that key matched no definition, so reach could not find it, and the
answer was no-such-target. The method measure without a unit of the
standard library gave this answer for three grpc targets that govulncheck
reaches in grpc-middleware.

goImportPath now gives the path of an internal package. A main package
still gets none, because no program imports it. The surface of a unit,
which a summary reads, still leaves out an internal package.

FOU-560 exposed the defect. Before it, the computed-name record of a call
of a function value in retry/options.go made every target uncertain.

The case go/dependency-internal-package fails without the change: each of
its three targets is no-such-target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…k into it (FOU-563)

A Go call of an external key whose package no unit gives runs code that
the graph does not hold. That code can call back into the graph, and no
edge showed it. gorilla/websocket passes its reader to io.ReadAll, and
io.ReadAll calls Read of the reader. With no unit of the standard library,
as vet links a project, the search stopped at io//ReadAll, and
messageReader.Read and flateReadWrapper.Read of melody were not-found,
which govulncheck reaches. Before FOU-558 (b9adbc6), the no-definition
records of the constant reads TextMessage and BinaryMessage made every
target of the unit uncertain and hid the gap.

The link step now gives each such key a record with the reason
no-dependency-source:

- A key of the standard library gets a callback record. The standard
  library imports no package outside it, so it calls into the graph only
  through a function value, which a reference edge already joins, or
  through a method of an exported name of a value that it holds. The
  record concerns the targets that a Go method of an exported name
  reaches. The reach query counts it once per search, and a summary keeps
  one entry for it.
- A key of another module, and a key of C, gets a record that concerns
  every target. A summary links one unit alone, so it gets no record for
  another module.
- The builtin panic gets a record for the methods Error and String, which
  the runtime calls to print the value.

docs/projectgraph.md gives the argument and the gaps that stay. The new
cases stdlib-callback, stdlib-callback-scope, dependency-no-unit and
panic-value fail before the change: each target that the change makes
uncertain was not-found. stdlib-callback-scope keeps three targets
not-found that no method of an exported name reaches.

Method measure, Go only, govulncheck agreement:

  no std unit:  false-negative 5 -> 0 (with the internal key fix)
                not-found: function 69 -> 8, method 302 -> 1
                no-such-target: function 19 -> 1, method 155 -> 10
                uncertain/no-dependency-source: function 2 -> 113,
                method 7 -> 571
                govulncheck-not-reached answered not-found 540 -> 20
  std unit:     false-negative 0 -> 0, not-found 0 -> 0

The callback alone gives not-found 540 -> 233 for the targets that
govulncheck does not reach. The records of other modules give the rest,
because the corpus gives no unit for most modules of a project, as
golang.org/x/sys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The fixes of this branch change the index, the graph, the reach results
and the summaries. A store must not serve data of the old rules, and the
version tests need one row per version. So this commit bumps each
version once for the whole branch: fileindex.Version 16,
projectgraph.Version 18, reach.Version 5 and summary.Version 3. It adds
the hash rows and the version fields of the test data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…in (FOU-556)

The record of a call on a call result skipped the builtins of the
language. The skip assumed that runtime code calls back only through a
value that the call passes. Some builtins give back a value that the call
passes, or an element of it: new(thing) in Go, max(t, t) and
next(iter(ts)) in Python, Object.assign(p, o) in JavaScript. The method
then runs on a value of the project or of a dependency. With no record,
a target of that method was no-such-target, and a target that the method
reaches was not-found.

The record now comes for a builtin too. In Go, the name edges of the
site come back too, because linkFields makes them from the method-named
record. So new(thing).vuln() finds what thing.vuln calls again.

The FOU-556 item "Promise.resolve().then gives no no-dependency-source
record" goes. The case references-argument has the record again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The indexer picked the language of a component file from its bytes to
make the store key. The parse then picked the language and the code again
from the same bytes, so each component file got two passes. The indexer
also set the language of each file twice.

core.SourceSelector now returns a core.Source, which holds the language
and the code. The indexer keeps the source in the pending file and gives
it to the new parser.ParseSource, so the parse does not pick it again.
ParseContent and Parse pick the source and call ParseSource. The indexer
sets the language of a file once: from the extension when the read
fails, and from the source after the read. A Go file that the indexer
excludes after the read gets no language, as the doc of
Result.Languages says.

The scan of a component file returns its script element as a struct, and
it uses strings.ToLower and isSpace where it repeated them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The index read the script blocks of a .vue, .svelte or .astro file and
nothing else. Before FOU-576 an import of such a file was a no-definition
record, so each target was uncertain. After it, the import resolved, but
the markup of the file stayed unread. A function that only the markup
calls, as danger in @click="danger(item)", or as a handler that the
markup names, had no caller. A method of a Vue options object, which Vue
calls, had none too. So such a target read not-found or no-such-target.
A <script src> element also gave no edge to the file that it loads.

core.Source now holds the markup of a component file: the offset of its
first byte that is no space, and each script element with a src
attribute. The parse keeps the markup on the tree, and the index reads it
through core.MarkupTree. Each such script element is an import of its
file. The rest of the markup is one record with the new reason markup at
the top level of the file. The record has no method name, so it concerns
every target of a search that reaches the file. docs/projectgraph.md
argues why no narrower scope is sound. A file with no template gets the
record too, because Vue calls the hooks of its options object.

A case for each form of the review guards the fix: template calls, a
Svelte event handler, an Astro expression, a script setup handler, the
options API with and without a template, and a script src.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
A JSX element renders the component that its name holds, as Child in
<Child />. The index gave the name no reference, so a component that only
an element renders had no caller. A target that only such a component
calls read not-found. FOU-576 made the index read .jsx files, and .tsx
files had the same gap before.

The name of a JSX opening or self-closing element and the value of a JSX
expression are now references, as an argument is. So <Child />,
<table.Row /> and onClick={handle} give a reference edge. A lower case
name, as div, is a tag of the host, which JSX gives as a string. It gives
no reference, also when an import binds the same name.

The index also dropped each name in an export statement, to keep the
exported name of export default parse from being a reference. That rule
dropped each reference in the body of an exported function too, as
export default function App() { return <Child /> }. It now drops only a
name at the top level of the file.

The cases javascript/jsx-elements and typescript/tsx-elements guard each
form and the lower case tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…e (FOU-562)

A use path can start with a name that another use of the module binds,
as helpers::run after use crate::deep::helpers. The walk read the binding
of helpers, but the walk of a module binding with no names after it ended
on a unit, and a walk that ends on a unit fails. So the path read as the
crate helpers, the call got the edge helpers//run, and what run calls was
not-found. unitMember now gives the unit of such a binding.

A path through a use of a module of another crate, as sub::f after use
dep::sub, also read as the crate sub. The crate route now reads the uses
of the module of the file too. A use that binds its own path, as use rand
or use smallvec::smallvec, routes nothing, because Rust never reads the
binding of a use in its own path.

A use that a route names can bind an item, as fl of use crate::ffi::flush
as fl after pub use dep as ffi. A call of fl linked the routed key, which
had no node, so the edge reached nothing and the target was not-found.
The resolver now makes the node of a routed key, as it does for a key of
a use with no route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…e (C1, FOU-560)

A Go function-value record concerned no target in every search. The
rule holds only when the search reaches each code that can store a
function value. A search from the roots that the rules mark does. A
search with a source does not, in either source mode. The program can run
code before the source that no root reaches, as the init of a package
that only main imports and that fills a registry, or a setup that main
calls before serve. The load step enters only the load code of the
packages that the search reaches, so it does not find that code. So
registry.D2 with handlers["rm"]("x") and serve with fs[0]("x") gave
os//Remove not-found from a source, where main gave uncertain.

A search whose roots hold a root of kind query now counts a
function-value record for every target, as a computed-name record does.
A summary counts it for every target too. A search of any kind reads a
summary, and the value can come from the project, from another unit, or
from a package of the unit that the symbol does not import. summarytest
now checks a summary against a search from the symbol as a root of kind
query, which has the same rule.

The load step stays. It finds a call in the load code of the package of
a source, and a value that the load code stores in an attribute, as
python/source-module-load shows.

The case go/source-function-value holds both inputs of the review. It
gave not-found for four results before the change. The summaries of
go/dependency-callback and go/dependency-function-table now hold their
function-value records. The source Run of go/source-package-load gives
os.RemoveAll uncertain, because Run calls steps[0]. A search from the
roots keeps the rule, so the method measure does not move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…re a call runs a method (C3, FOU-557)

An ambiguous site kept its method name in every language, and the reach
query counted only what the candidates of the name reach. A Python call
of a name can run code that no definition of the name holds: an object
with __call__ in a class attribute, a value that __getattr__ gives, a
function that a module binds by an import, or code of a module that no
unit gives. So os.remove read as not-found or no-such-target, where main
gave uncertain. A Rust call of a parameter, as handle(s), can run a
function value that the Rust index does not record, as the tail
expression of a function. It read as not-found too.

The profile now decides. A Go site keeps the name, because a Go call of
a name runs a method of the name or a function value, and a reference
edge leads to each function value. A Rust call on a receiver keeps the
name, because a Rust field that holds a function needs the form (x.f)().
Every other site, and every site of Python, JavaScript, TypeScript, Ruby
and PHP, concerns every target, as on main.

A Go call of a field of a function type can run a value that code before
a source stores. So a search with a source, and a summary, count an
ambiguous site for every target, as they count a function-value record.

The cases python/name-ambiguous-callable, -getattr, -module and -nounit
hold the review inputs, and rust/name-ambiguous-param holds the Rust
form. Each gave not-found or no-such-target before the change.
go/name-ambiguous gave os.Chdir and os.Remove not-found from the source
serve before the change. It and rust/name-ambiguous-method guard the
precision of a search from the roots: a target that only uncalled code
reaches stays not-found. python/name-ambiguous,
python/name-ambiguous-record and javascript/field-ambiguous move back to
the answers of main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The fixes of the second review change graphs, results and summaries of
the cases. The rows of the versions of this branch take the new hashes in
place, because no release holds these versions yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The fixes of the second review move the cause labels of some uncertain
answers. An ambiguous site of Python concerns every target again, as on
main. The found counts and the agreement with govulncheck do not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
@safedep

safedep Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

⚠️ Scan Failed: Pull Request Too Large

This pull request exceeds GitHub's diff limits and cannot be scanned.

GitHub Limits:

  • Maximum 300 files per diff
  • Maximum 1 MB total diff size

Recommendations:

  • Split this PR into smaller, focused changes
  • Review critical dependency changes manually
  • Contact your team if this is blocking your workflow
    This report is generated by SafeDep GitHub App

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T05:42:21.255700Z 3e3539d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 523 files, which is 423 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 300 files.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 07d24ea1-6d5f-46af-81be-d619b5c7cf9c
Commits

Reviewing files that changed from the base of the PR and between 39cf1e2 and 3e3539d.

Files ignored due to path filters: 2

  • test/projectgraph/cases/javascript/builtin-chain/project/node_modules/plug/index.js is excluded by !**/node_modules/**
  • test/projectgraph/cases/javascript/builtin-chain/project/node_modules/plug/package.json is excluded by !**/node_modules/**
Files selected for processing: 523

  • .github/workflows/ci.yml
  • core/language.go
  • docs/projectgraph.md
  • examples/projectgraph/main_test.go
  • fileindex/index.go
  • fileindex/testdata/index.json
  • lang/component.go
  • lang/component_test.go
  • lang/factory_test.go
  • lang/javascript.go
  • langcode/builtins.go
  • langcode/builtins_rust.go
  • parser/parser.go
  • parser/parser_test.go
  • plugin/callgraph/shapes.go
  • plugin/indexer/cache.go
  • plugin/indexer/cache_test.go
  • plugin/indexer/calls.go
  • plugin/indexer/ecmascript.go
  • plugin/indexer/golang.go
  • plugin/indexer/golang_test.go
  • plugin/indexer/gounit.go
  • plugin/indexer/gounit_test.go
  • plugin/indexer/govalues.go
  • plugin/indexer/indexer.go
  • plugin/indexer/indexer_pool.go
  • plugin/indexer/indexer_test.go
  • plugin/indexer/languages.go
  • plugin/indexer/markup.go
  • plugin/indexer/plugin.go
  • plugin/indexer/plugin_test.go
  • plugin/indexer/project.go
  • plugin/indexer/references.go
  • plugin/indexer/rust.go
  • plugin/indexer/rust_test.go
  • plugin/indexer/testdata/golden/App.cs.json
  • plugin/indexer/testdata/golden/App.java.json
  • plugin/indexer/testdata/golden/App.kt.json
  • plugin/indexer/testdata/golden/app.go.json
  • plugin/indexer/testdata/golden/app.js.json
  • plugin/indexer/testdata/golden/app.php.json
  • plugin/indexer/testdata/golden/app.py.json
  • plugin/indexer/testdata/golden/app.rb.json
  • plugin/indexer/testdata/golden/app.rs.json
  • plugin/indexer/testdata/golden/app.ts.json
  • plugin/indexer/testdata/golden/exports.js.json
  • plugin/indexer/testdata/golden/exports.py.json
  • plugin/indexer/testdata/golden/exports.ts.json
  • plugin/indexer/testdata/golden/flags.js.json
  • plugin/indexer/testdata/golden/flags.py.json
  • plugin/indexer/testdata/golden/flags.ts.json
  • plugin/indexer/types.go
  • projectgraph/definitions.go
  • projectgraph/edges.go
  • projectgraph/field.go
  • projectgraph/golang.go
  • projectgraph/graph.go
  • projectgraph/imports.go
  • projectgraph/link.go
  • projectgraph/names.go
  • projectgraph/namespaces.go
  • projectgraph/packages.go
  • projectgraph/profile.go
  • projectgraph/profile_test.go
  • projectgraph/reach/load.go
  • projectgraph/reach/reach.go
  • projectgraph/reach/reach_test.go
  • projectgraph/reach/sets.go
  • projectgraph/reach/source_test.go
  • projectgraph/reach/span.go
  • projectgraph/reach/uncertainty.go
  • projectgraph/resolve.go
  • projectgraph/results.go
  • projectgraph/rootmatch/match.go
  • projectgraph/roots.go
  • projectgraph/rules.go
  • projectgraph/rust.go
  • projectgraph/scope.go
  • projectgraph/summary/summary.go
  • projectgraph/summary/summarytest/summarytest.go
  • projectgraph/testdata/javascript/barrel-chain/graph.golden.json
  • projectgraph/testdata/javascript/barrel-chain/indexes.json
  • projectgraph/testdata/javascript/commonjs-require/graph.golden.json
  • projectgraph/testdata/javascript/commonjs-require/indexes.json
  • projectgraph/testdata/javascript/default-import/graph.golden.json
  • projectgraph/testdata/javascript/default-import/indexes.json
  • projectgraph/testdata/javascript/esm-named-import/graph.golden.json
  • projectgraph/testdata/javascript/esm-named-import/indexes.json
  • projectgraph/testdata/javascript/export-star/graph.golden.json
  • projectgraph/testdata/javascript/export-star/indexes.json
  • projectgraph/testdata/javascript/exports-conditions/graph.golden.json
  • projectgraph/testdata/javascript/exports-conditions/indexes.json
  • projectgraph/testdata/javascript/unknown-receiver/graph.golden.json
  • projectgraph/testdata/javascript/unknown-receiver/indexes.json
  • projectgraph/testdata/javascript/workspaces/graph.golden.json
  • projectgraph/testdata/javascript/workspaces/indexes.json
  • projectgraph/testdata/python/all-hides/graph.golden.json
  • projectgraph/testdata/python/all-hides/indexes.json
  • projectgraph/testdata/python/assignment/graph.golden.json
  • projectgraph/testdata/python/assignment/indexes.json
  • projectgraph/testdata/python/class-body/graph.golden.json
  • projectgraph/testdata/python/class-body/indexes.json
  • projectgraph/testdata/python/decorators/graph.golden.json
  • projectgraph/testdata/python/decorators/indexes.json
  • projectgraph/testdata/python/external/graph.golden.json
  • projectgraph/testdata/python/external/indexes.json
  • projectgraph/testdata/python/local-receiver/graph.golden.json
  • projectgraph/testdata/python/local-receiver/indexes.json
  • projectgraph/testdata/python/member-call/graph.golden.json
  • projectgraph/testdata/python/member-call/indexes.json
  • projectgraph/testdata/python/missing-file/graph.golden.json
  • projectgraph/testdata/python/missing-file/indexes.json
  • projectgraph/testdata/python/package-init/graph.golden.json
  • projectgraph/testdata/python/package-init/indexes.json
  • projectgraph/testdata/python/reexport-cycle/graph.golden.json
  • projectgraph/testdata/python/reexport-cycle/indexes.json
  • projectgraph/testdata/python/relative-imports/graph.golden.json
  • projectgraph/testdata/python/relative-imports/indexes.json
  • projectgraph/testdata/python/sibling-import/graph.golden.json
  • projectgraph/testdata/python/sibling-import/indexes.json
  • projectgraph/testdata/python/src-layout/graph.golden.json
  • projectgraph/testdata/python/src-layout/indexes.json
  • projectgraph/testdata/python/sys-path/graph.golden.json
  • projectgraph/testdata/python/sys-path/indexes.json
  • projectgraph/testdata/python/wildcard/graph.golden.json
  • projectgraph/testdata/python/wildcard/indexes.json
  • projectgraph/testdata/roots/extra-rules/graph.golden.json
  • projectgraph/testdata/roots/extra-rules/indexes.json
  • projectgraph/testdata/roots/library-surface/graph.golden.json
  • projectgraph/testdata/roots/library-surface/indexes.json
  • projectgraph/testdata/roots/main-guard/graph.golden.json
  • projectgraph/testdata/roots/main-guard/indexes.json
  • projectgraph/testdata/roots/package-json-bin/graph.golden.json
  • projectgraph/testdata/roots/package-json-bin/indexes.json
  • projectgraph/testdata/roots/package-json-main/graph.golden.json
  • projectgraph/testdata/roots/package-json-main/indexes.json
  • projectgraph/testdata/roots/procfile-dockerfile/graph.golden.json
  • projectgraph/testdata/roots/procfile-dockerfile/indexes.json
  • projectgraph/testdata/roots/pyproject-scripts/graph.golden.json
  • projectgraph/testdata/roots/pyproject-scripts/indexes.json
  • projectgraph/testdata/roots/setup-py/graph.golden.json
  • projectgraph/testdata/roots/setup-py/indexes.json
  • projectgraph/testdata/roots/test-file/graph.golden.json
  • projectgraph/testdata/roots/test-file/indexes.json
  • projectgraph/testdata/typescript/js-specifier/graph.golden.json
  • projectgraph/testdata/typescript/js-specifier/indexes.json
  • projectgraph/testdata/typescript/tsconfig-paths/graph.golden.json
  • projectgraph/testdata/typescript/tsconfig-paths/indexes.json
  • projectgraph/testdata/typescript/type-only/graph.golden.json
  • projectgraph/testdata/typescript/type-only/indexes.json
  • projectgraph/values.go
  • projectgraph/walk.go
  • scripts/fetch_method_corpus.sh
  • test/projectgraph/README.md
  • test/projectgraph/cases/go/chained-external-call/expect.yaml
  • test/projectgraph/cases/go/cross-package/expect.yaml
  • test/projectgraph/cases/go/dependency-build-files/expect.yaml
  • test/projectgraph/cases/go/dependency-build-files/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-callback/expect.yaml
  • test/projectgraph/cases/go/dependency-callback/project/go.mod
  • test/projectgraph/cases/go/dependency-callback/project/gomod/github.com/acme/srv@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-callback/project/gomod/github.com/acme/srv@v1.0.0/srv.go
  • test/projectgraph/cases/go/dependency-callback/project/main.go
  • test/projectgraph/cases/go/dependency-callback/summaries/go_github.com_acme_srv_v1.0.0.json
  • test/projectgraph/cases/go/dependency-data-reads/expect.yaml
  • test/projectgraph/cases/go/dependency-data-reads/project/go.mod
  • test/projectgraph/cases/go/dependency-data-reads/project/gomod/example.com/markup@v1.0.0/client.go
  • test/projectgraph/cases/go/dependency-data-reads/project/gomod/example.com/markup@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-data-reads/project/gomod/example.com/markup@v1.0.0/netctx/ctx.go
  • test/projectgraph/cases/go/dependency-data-reads/project/gomod/example.com/markup@v1.0.0/node.go
  • test/projectgraph/cases/go/dependency-data-reads/project/goroot/src/context/context.go
  • test/projectgraph/cases/go/dependency-data-reads/project/goroot/src/errors/errors.go
  • test/projectgraph/cases/go/dependency-data-reads/project/goroot/src/go.mod
  • test/projectgraph/cases/go/dependency-data-reads/project/goroot/src/os/exec/exec.go
  • test/projectgraph/cases/go/dependency-data-reads/project/goroot/src/os/file.go
  • test/projectgraph/cases/go/dependency-data-reads/project/main.go
  • test/projectgraph/cases/go/dependency-data-reads/summaries/go_example.com_markup_v1.0.0.json
  • test/projectgraph/cases/go/dependency-data-reads/summaries/go_std_go1.25.1.json
  • test/projectgraph/cases/go/dependency-failed-callback/expect.yaml
  • test/projectgraph/cases/go/dependency-failed-callback/project/go.mod
  • test/projectgraph/cases/go/dependency-failed-callback/project/gomod/github.com/acme/srv@v1.0.0/big.go
  • test/projectgraph/cases/go/dependency-failed-callback/project/gomod/github.com/acme/srv@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-failed-callback/project/gomod/github.com/acme/srv@v1.0.0/srv.go
  • test/projectgraph/cases/go/dependency-failed-callback/project/main.go
  • test/projectgraph/cases/go/dependency-failed-callback/summaries/go_github.com_acme_srv_v1.0.0.json
  • test/projectgraph/cases/go/dependency-function-table/expect.yaml
  • test/projectgraph/cases/go/dependency-function-table/project/go.mod
  • test/projectgraph/cases/go/dependency-function-table/project/gomod/github.com/acme/a@v1.0.0/a.go
  • test/projectgraph/cases/go/dependency-function-table/project/gomod/github.com/acme/a@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-function-table/project/gomod/github.com/acme/b@v1.0.0/b.go
  • test/projectgraph/cases/go/dependency-function-table/project/gomod/github.com/acme/b@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-function-table/project/main.go
  • test/projectgraph/cases/go/dependency-function-table/summaries/go_github.com_acme_a_v1.0.0.json
  • test/projectgraph/cases/go/dependency-function-table/summaries/go_github.com_acme_b_v1.0.0.json
  • test/projectgraph/cases/go/dependency-generated-code/expect.yaml
  • test/projectgraph/cases/go/dependency-generated-code/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-generated-table/expect.yaml
  • test/projectgraph/cases/go/dependency-generated-table/project/go.mod
  • test/projectgraph/cases/go/dependency-generated-table/project/gomod/github.com/acme/kit@v1.0.0/gen.go
  • test/projectgraph/cases/go/dependency-generated-table/project/gomod/github.com/acme/kit@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-generated-table/project/gomod/github.com/acme/kit@v1.0.0/kit.go
  • test/projectgraph/cases/go/dependency-generated-table/project/main.go
  • test/projectgraph/cases/go/dependency-generated-table/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-implements-interface/expect.yaml
  • test/projectgraph/cases/go/dependency-implements-interface/summaries/go_github.com_acme_dep_v1.0.0.json
  • test/projectgraph/cases/go/dependency-internal-call/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-internal-package/expect.yaml
  • test/projectgraph/cases/go/dependency-internal-package/project/go.mod
  • test/projectgraph/cases/go/dependency-internal-package/project/gomod/github.com/acme/kit@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-internal-package/project/gomod/github.com/acme/kit@v1.0.0/internal/wire/wire.go
  • test/projectgraph/cases/go/dependency-internal-package/project/gomod/github.com/acme/kit@v1.0.0/kit.go
  • test/projectgraph/cases/go/dependency-internal-package/project/main.go
  • test/projectgraph/cases/go/dependency-internal-package/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-module/expect.yaml
  • test/projectgraph/cases/go/dependency-module/summaries/go_github.com_acme_yamlish_v1.2.0.json
  • test/projectgraph/cases/go/dependency-no-unit-method/expect.yaml
  • test/projectgraph/cases/go/dependency-no-unit-method/project/go.mod
  • test/projectgraph/cases/go/dependency-no-unit-method/project/main.go
  • test/projectgraph/cases/go/dependency-no-unit/expect.yaml
  • test/projectgraph/cases/go/dependency-no-unit/project/go.mod
  • test/projectgraph/cases/go/dependency-no-unit/project/gomod/github.com/acme/kit@v1.0.0/go.mod
  • test/projectgraph/cases/go/dependency-no-unit/project/gomod/github.com/acme/kit@v1.0.0/kit.go
  • test/projectgraph/cases/go/dependency-no-unit/project/main.go
  • test/projectgraph/cases/go/dependency-no-unit/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-platform-files/expect.yaml
  • test/projectgraph/cases/go/dependency-platform-files/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-platform-results/expect.yaml
  • test/projectgraph/cases/go/dependency-platform-results/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/dependency-result-types/summaries/go_example.com_markup_v1.0.0.json
  • test/projectgraph/cases/go/dependency-result-types/summaries/go_std_go1.25.1.json
  • test/projectgraph/cases/go/dot-import/expect.yaml
  • test/projectgraph/cases/go/function-value-call/expect.yaml
  • test/projectgraph/cases/go/function-value-call/project/backoff/backoff.go
  • test/projectgraph/cases/go/function-value-call/project/go.mod
  • test/projectgraph/cases/go/function-value-call/project/main.go
  • test/projectgraph/cases/go/function-value-reflect/expect.yaml
  • test/projectgraph/cases/go/function-value-reflect/project/go.mod
  • test/projectgraph/cases/go/function-value-reflect/project/main.go
  • test/projectgraph/cases/go/interface-method-set/expect.yaml
  • test/projectgraph/cases/go/interface-two-implementations/expect.yaml
  • test/projectgraph/cases/go/main-root/expect.yaml
  • test/projectgraph/cases/go/name-ambiguous/expect.yaml
  • test/projectgraph/cases/go/name-ambiguous/project/go.mod
  • test/projectgraph/cases/go/name-ambiguous/project/handlers/handlers.go
  • test/projectgraph/cases/go/name-ambiguous/project/main.go
  • test/projectgraph/cases/go/panic-value/expect.yaml
  • test/projectgraph/cases/go/panic-value/project/go.mod
  • test/projectgraph/cases/go/panic-value/project/gomod/github.com/acme/kit@v1.0.0/go.mod
  • test/projectgraph/cases/go/panic-value/project/gomod/github.com/acme/kit@v1.0.0/kit.go
  • test/projectgraph/cases/go/panic-value/project/main.go
  • test/projectgraph/cases/go/panic-value/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/plugin-lookup-std/expect.yaml
  • test/projectgraph/cases/go/plugin-lookup-std/project/go.mod
  • test/projectgraph/cases/go/plugin-lookup-std/project/goroot/src/go.mod
  • test/projectgraph/cases/go/plugin-lookup-std/project/goroot/src/os/file.go
  • test/projectgraph/cases/go/plugin-lookup-std/project/goroot/src/plugin/plugin.go
  • test/projectgraph/cases/go/plugin-lookup-std/project/main.go
  • test/projectgraph/cases/go/plugin-lookup-std/project/plugins/hook/hook.go
  • test/projectgraph/cases/go/plugin-lookup-std/summaries/go_std_go1.25.1.json
  • test/projectgraph/cases/go/plugin-lookup/expect.yaml
  • test/projectgraph/cases/go/plugin-lookup/project/go.mod
  • test/projectgraph/cases/go/plugin-lookup/project/main.go
  • test/projectgraph/cases/go/plugin-lookup/project/plugins/hook/hook.go
  • test/projectgraph/cases/go/predeclared-shadow/expect.yaml
  • test/projectgraph/cases/go/predeclared-shadow/project/go.mod
  • test/projectgraph/cases/go/predeclared-shadow/project/main.go
  • test/projectgraph/cases/go/predeclared-shadow/project/other.go
  • test/projectgraph/cases/go/source-field-func/expect.yaml
  • test/projectgraph/cases/go/source-field-func/project/go.mod
  • test/projectgraph/cases/go/source-field-func/project/main.go
  • test/projectgraph/cases/go/source-field-func/project/run.go
  • test/projectgraph/cases/go/source-function-value/expect.yaml
  • test/projectgraph/cases/go/source-function-value/project/go.mod
  • test/projectgraph/cases/go/source-function-value/project/main.go
  • test/projectgraph/cases/go/source-function-value/project/plugins/plugins.go
  • test/projectgraph/cases/go/source-function-value/project/registry/registry.go
  • test/projectgraph/cases/go/source-package-load/expect.yaml
  • test/projectgraph/cases/go/source-package-load/project/extra/extra.go
  • test/projectgraph/cases/go/source-package-load/project/extra/extra_test.go
  • test/projectgraph/cases/go/source-package-load/project/go.mod
  • test/projectgraph/cases/go/source-package-load/project/impl/impl.go
  • test/projectgraph/cases/go/source-package-load/project/lib/lib.go
  • test/projectgraph/cases/go/source-package-load/project/main.go
  • test/projectgraph/cases/go/stdlib-callback-method-record/expect.yaml
  • test/projectgraph/cases/go/stdlib-callback-method-record/project/dot.go
  • test/projectgraph/cases/go/stdlib-callback-method-record/project/go.mod
  • test/projectgraph/cases/go/stdlib-callback-method-record/project/main.go
  • test/projectgraph/cases/go/stdlib-callback-method-record/project/quiet/quiet.go
  • test/projectgraph/cases/go/stdlib-callback-record/expect.yaml
  • test/projectgraph/cases/go/stdlib-callback-record/project/go.mod
  • test/projectgraph/cases/go/stdlib-callback-record/project/main.go
  • test/projectgraph/cases/go/stdlib-callback-scope/expect.yaml
  • test/projectgraph/cases/go/stdlib-callback-scope/project/go.mod
  • test/projectgraph/cases/go/stdlib-callback-scope/project/gomod/github.com/acme/kit@v1.0.0/go.mod
  • test/projectgraph/cases/go/stdlib-callback-scope/project/gomod/github.com/acme/kit@v1.0.0/kit.go
  • test/projectgraph/cases/go/stdlib-callback-scope/project/main.go
  • test/projectgraph/cases/go/stdlib-callback-scope/summaries/go_github.com_acme_kit_v1.0.0.json
  • test/projectgraph/cases/go/stdlib-callback/expect.yaml
  • test/projectgraph/cases/go/stdlib-callback/project/go.mod
  • test/projectgraph/cases/go/stdlib-callback/project/gomod/github.com/acme/ws@v1.0.0/conn.go
  • test/projectgraph/cases/go/stdlib-callback/project/gomod/github.com/acme/ws@v1.0.0/go.mod
  • test/projectgraph/cases/go/stdlib-callback/project/main.go
  • test/projectgraph/cases/go/stdlib-callback/summaries/go_github.com_acme_ws_v1.0.0.json
  • test/projectgraph/cases/go/struct-method/expect.yaml
  • test/projectgraph/cases/go/transitive-init/expect.yaml
  • test/projectgraph/cases/go/two-package-clauses/expect.yaml
  • test/projectgraph/cases/go/typed-local-block/expect.yaml
  • test/projectgraph/cases/go/typed-local-block/project/go.mod
  • test/projectgraph/cases/go/typed-local-block/project/main.go
  • test/projectgraph/cases/go/typed-local-block/project/other.go
  • test/projectgraph/cases/javascript/astro-markup/expect.yaml
  • test/projectgraph/cases/javascript/astro-markup/project/package.json
  • test/projectgraph/cases/javascript/astro-markup/project/src/Page.astro
  • test/projectgraph/cases/javascript/astro-markup/project/src/main.js
  • test/projectgraph/cases/javascript/builtin-chain/expect.yaml
  • test/projectgraph/cases/javascript/builtin-chain/project/main.js
  • test/projectgraph/cases/javascript/builtin-chain/project/package.json
  • test/projectgraph/cases/javascript/builtin-chain/summaries/npm_plug_1.0.0.json
  • test/projectgraph/cases/javascript/dependency-candidates/summaries/npm_store-kit_1.0.0.json
  • test/projectgraph/cases/javascript/dependency-exports-import/summaries/npm_kit_1.0.0.json
  • test/projectgraph/cases/javascript/dependency-exports-require/summaries/npm_kit_1.0.0.json
  • test/projectgraph/cases/javascript/dependency-method-name/summaries/npm_plug_1.0.0.json
  • test/projectgraph/cases/javascript/dependency-same-path/summaries/npm_util-kit_1.0.0.json
  • test/projectgraph/cases/javascript/dependency-transitive/summaries/npm_lodash._reinterpolate_3.0.0.json
  • test/projectgraph/cases/javascript/dependency-transitive/summaries/npm_lodash_4.17.21.json
  • test/projectgraph/cases/javascript/jsx-elements/expect.yaml
  • test/projectgraph/cases/javascript/jsx-elements/project/package.json
  • test/projectgraph/cases/javascript/jsx-elements/project/src/App.jsx
  • test/projectgraph/cases/javascript/jsx-elements/project/src/Other.jsx
  • test/projectgraph/cases/javascript/jsx-elements/project/src/main.js
  • test/projectgraph/cases/javascript/jsx-spread-attributes/expect.yaml
  • test/projectgraph/cases/javascript/jsx-spread-attributes/project/package.json
  • test/projectgraph/cases/javascript/jsx-spread-attributes/project/src/App.jsx
  • test/projectgraph/cases/javascript/jsx-spread-attributes/project/src/main.js
  • test/projectgraph/cases/javascript/jsx-spread-unknown-object/expect.yaml
  • test/projectgraph/cases/javascript/jsx-spread-unknown-object/project/package.json
  • test/projectgraph/cases/javascript/jsx-spread-unknown-object/project/src/App.jsx
  • test/projectgraph/cases/javascript/jsx-spread-unknown-object/project/src/main.js
  • test/projectgraph/cases/javascript/source-module-load/expect.yaml
  • test/projectgraph/cases/javascript/source-module-load/project/handlers.js
  • test/projectgraph/cases/javascript/source-module-load/project/main.js
  • test/projectgraph/cases/javascript/source-module-load/project/package.json
  • test/projectgraph/cases/javascript/svelte-markup/expect.yaml
  • test/projectgraph/cases/javascript/svelte-markup/project/package.json
  • test/projectgraph/cases/javascript/svelte-markup/project/src/Other.svelte
  • test/projectgraph/cases/javascript/svelte-markup/project/src/main.js
  • test/projectgraph/cases/javascript/vue-options-api/expect.yaml
  • test/projectgraph/cases/javascript/vue-options-api/project/package.json
  • test/projectgraph/cases/javascript/vue-options-api/project/src/Hooks.vue
  • test/projectgraph/cases/javascript/vue-options-api/project/src/Opt.vue
  • test/projectgraph/cases/javascript/vue-options-api/project/src/main.js
  • test/projectgraph/cases/javascript/vue-script-src/expect.yaml
  • test/projectgraph/cases/javascript/vue-script-src/project/package.json
  • test/projectgraph/cases/javascript/vue-script-src/project/src/Ext.vue
  • test/projectgraph/cases/javascript/vue-script-src/project/src/logic.js
  • test/projectgraph/cases/javascript/vue-script-src/project/src/main.js
  • test/projectgraph/cases/javascript/vue-setup-handler/expect.yaml
  • test/projectgraph/cases/javascript/vue-setup-handler/project/package.json
  • test/projectgraph/cases/javascript/vue-setup-handler/project/src/App.vue
  • test/projectgraph/cases/javascript/vue-setup-handler/project/src/main.js
  • test/projectgraph/cases/javascript/vue-template-markup/expect.yaml
  • test/projectgraph/cases/javascript/vue-template-markup/project/package.json
  • test/projectgraph/cases/javascript/vue-template-markup/project/src/App.vue
  • test/projectgraph/cases/javascript/vue-template-markup/project/src/main.js
  • test/projectgraph/cases/python/dependency-compiled-module/summaries/pypi_speedy_1.0.0.json
  • test/projectgraph/cases/python/dependency-dark-unit-record/expect.yaml
  • test/projectgraph/cases/python/dependency-dark-unit-record/project/main.py
  • test/projectgraph/cases/python/dependency-dark-unit-record/project/venv/site-packages/yaml/__init__.py
  • test/projectgraph/cases/python/dependency-dark-unit-record/summaries/pypi_PyYAML_6.0.1.json
  • test/projectgraph/cases/python/dependency-dark-unit/summaries/pypi_PyYAML_6.0.1.json
  • test/projectgraph/cases/python/dependency-failed-reached/summaries/pypi_badpkg_1.0.0.json
  • test/projectgraph/cases/python/dependency-failed-reached/summaries/pypi_okpkg_1.0.0.json
  • test/projectgraph/cases/python/dependency-failed-unreached/summaries/pypi_badpkg_1.0.0.json
  • test/projectgraph/cases/python/dependency-failed-unreached/summaries/pypi_okpkg_1.0.0.json
  • test/projectgraph/cases/python/dependency-namespace-two-dists/summaries/pypi_google-auth_2.0.0.json
  • test/projectgraph/cases/python/dependency-namespace-two-dists/summaries/pypi_google-cloud-storage_2.1.0.json
  • test/projectgraph/cases/python/dependency-package-dir/summaries/pypi_outer_1.0.0.json
  • test/projectgraph/cases/python/dependency-record-import-name/summaries/pypi_PyYAML_6.0.1.json
  • test/projectgraph/cases/python/dependency-site-packages/summaries/pypi_requests_2.31.0.json
  • test/projectgraph/cases/python/dependency-site-packages/summaries/pypi_urllib3_2.0.7.json
  • test/projectgraph/cases/python/dependency-stdlib/summaries/python_std_3.12.3.json
  • test/projectgraph/cases/python/dependency-typed-return/summaries/pypi_dep_1.0.0.json
  • test/projectgraph/cases/python/name-ambiguous-callable/expect.yaml
  • test/projectgraph/cases/python/name-ambiguous-callable/project/Procfile
  • test/projectgraph/cases/python/name-ambiguous-callable/project/handlers.py
  • test/projectgraph/cases/python/name-ambiguous-callable/project/main.py
  • test/projectgraph/cases/python/name-ambiguous-getattr/expect.yaml
  • test/projectgraph/cases/python/name-ambiguous-getattr/project/Procfile
  • test/projectgraph/cases/python/name-ambiguous-getattr/project/handlers.py
  • test/projectgraph/cases/python/name-ambiguous-getattr/project/main.py
  • test/projectgraph/cases/python/name-ambiguous-module/expect.yaml
  • test/projectgraph/cases/python/name-ambiguous-module/project/Procfile
  • test/projectgraph/cases/python/name-ambiguous-module/project/handlers.py
  • test/projectgraph/cases/python/name-ambiguous-module/project/main.py
  • test/projectgraph/cases/python/name-ambiguous-module/project/plug.py
  • test/projectgraph/cases/python/name-ambiguous-nounit/expect.yaml
  • test/projectgraph/cases/python/name-ambiguous-nounit/project/Procfile
  • test/projectgraph/cases/python/name-ambiguous-nounit/project/handlers.py
  • test/projectgraph/cases/python/name-ambiguous-nounit/project/main.py
  • test/projectgraph/cases/python/name-ambiguous-record/expect.yaml
  • test/projectgraph/cases/python/name-ambiguous-record/project/Procfile
  • test/projectgraph/cases/python/name-ambiguous-record/project/handlers.py
  • test/projectgraph/cases/python/name-ambiguous-record/project/main.py
  • test/projectgraph/cases/python/name-ambiguous/expect.yaml
  • test/projectgraph/cases/python/name-ambiguous/project/handlers.py
  • test/projectgraph/cases/python/source-module-load/expect.yaml
  • test/projectgraph/cases/python/source-module-load/project/Procfile
  • test/projectgraph/cases/python/source-module-load/project/handlers.py
  • test/projectgraph/cases/python/source-module-load/project/main.py
  • test/projectgraph/cases/python/typed-base-subclass/summaries/pypi_dep_1.0.0.json
  • test/projectgraph/cases/rust/alias-cfg-struct/expect.yaml
  • test/projectgraph/cases/rust/alias-cfg-struct/project/Cargo.toml
  • test/projectgraph/cases/rust/alias-cfg-struct/project/src/main.rs
  • test/projectgraph/cases/rust/alias-cfg-two/expect.yaml
  • test/projectgraph/cases/rust/alias-cfg-two/project/Cargo.toml
  • test/projectgraph/cases/rust/alias-cfg-two/project/src/main.rs
  • test/projectgraph/cases/rust/crate-bindings/expect.yaml
  • test/projectgraph/cases/rust/crate-bindings/project/Cargo.toml
  • test/projectgraph/cases/rust/crate-bindings/project/src/defs.rs
  • test/projectgraph/cases/rust/crate-bindings/project/src/main.rs
  • test/projectgraph/cases/rust/crate-bindings/project/src/secure/aes.rs
  • test/projectgraph/cases/rust/crate-bindings/project/src/secure/mod.rs
  • test/projectgraph/cases/rust/crate-bindings/project/src/store.rs
  • test/projectgraph/cases/rust/crate-bindings/project/vendor/kit/Cargo.toml
  • test/projectgraph/cases/rust/crate-bindings/project/vendor/kit/src/lib.rs
  • test/projectgraph/cases/rust/crate-bindings/summaries/cargo_kit_1.0.0.json
  • test/projectgraph/cases/rust/dependency-crate/summaries/cargo_kit_1.0.0.json
  • test/projectgraph/cases/rust/dependency-internal-call/summaries/cargo_kit_1.0.0.json
  • test/projectgraph/cases/rust/dependency-renamed/summaries/cargo_kit_1.0.0.json
  • test/projectgraph/cases/rust/glob-use-crate-module/expect.yaml
  • test/projectgraph/cases/rust/glob-use-crate-module/project/Cargo.toml
  • test/projectgraph/cases/rust/glob-use-crate-module/project/src/deep/helpers.rs
  • test/projectgraph/cases/rust/glob-use-crate-module/project/src/deep/mod.rs
  • test/projectgraph/cases/rust/glob-use-crate-module/project/src/main.rs
  • test/projectgraph/cases/rust/glob-use-inline-module/expect.yaml
  • test/projectgraph/cases/rust/glob-use-inline-module/project/Cargo.toml
  • test/projectgraph/cases/rust/glob-use-inline-module/project/src/log.rs
  • test/projectgraph/cases/rust/glob-use-inline-module/project/src/main.rs
  • test/projectgraph/cases/rust/glob-use-inline-module/project/src/worker.rs
  • test/projectgraph/cases/rust/glob-use-module/expect.yaml
  • test/projectgraph/cases/rust/glob-use-module/project/Cargo.toml
  • test/projectgraph/cases/rust/glob-use-module/project/src/deep/helpers.rs
  • test/projectgraph/cases/rust/glob-use-module/project/src/deep/mod.rs
  • test/projectgraph/cases/rust/glob-use-module/project/src/deep/worker.rs
  • test/projectgraph/cases/rust/glob-use-module/project/src/main.rs
  • test/projectgraph/cases/rust/glob-use/expect.yaml
  • test/projectgraph/cases/rust/glob-use/project/Cargo.toml
  • test/projectgraph/cases/rust/glob-use/project/src/main.rs
  • test/projectgraph/cases/rust/glob-use/project/vendor/dep/Cargo.toml
  • test/projectgraph/cases/rust/glob-use/project/vendor/dep/src/html.rs
  • test/projectgraph/cases/rust/glob-use/project/vendor/dep/src/lib.rs
  • test/projectgraph/cases/rust/glob-use/summaries/cargo_dep_1.2.0.json
  • test/projectgraph/cases/rust/into-ambiguous/expect.yaml
  • test/projectgraph/cases/rust/into-ambiguous/project/Cargo.toml
  • test/projectgraph/cases/rust/into-ambiguous/project/src/convert.rs
  • test/projectgraph/cases/rust/into-ambiguous/project/src/main.rs
  • test/projectgraph/cases/rust/into-dependency/expect.yaml
  • test/projectgraph/cases/rust/into-dependency/project/Cargo.toml
  • test/projectgraph/cases/rust/into-dependency/project/src/main.rs
  • test/projectgraph/cases/rust/into-dependency/project/vendor/kit/Cargo.toml
  • test/projectgraph/cases/rust/into-dependency/project/vendor/kit/src/lib.rs
  • test/projectgraph/cases/rust/into-dependency/summaries/cargo_kit_1.0.0.json
  • test/projectgraph/cases/rust/library-build-script/summaries/cargo_kit_1.0.0.json
  • test/projectgraph/cases/rust/macro-import/expect.yaml
  • test/projectgraph/cases/rust/macro-import/project/Cargo.toml
  • test/projectgraph/cases/rust/macro-import/project/src/main.rs
  • test/projectgraph/cases/rust/macro-import/project/vendor/dep/Cargo.toml
  • test/projectgraph/cases/rust/macro-import/project/vendor/dep/src/lib.rs
  • test/projectgraph/cases/rust/macro-import/summaries/cargo_dep_1.2.0.json
  • test/projectgraph/cases/rust/name-ambiguous-method/expect.yaml
  • test/projectgraph/cases/rust/name-ambiguous-method/project/Cargo.toml
  • test/projectgraph/cases/rust/name-ambiguous-method/project/src/handlers.rs
  • test/projectgraph/cases/rust/name-ambiguous-method/project/src/main.rs
  • test/projectgraph/cases/rust/name-ambiguous-param/expect.yaml
  • test/projectgraph/cases/rust/name-ambiguous-param/project/Cargo.toml
  • test/projectgraph/cases/rust/name-ambiguous-param/project/src/handlers.rs
  • test/projectgraph/cases/rust/name-ambiguous-param/project/src/main.rs
  • test/projectgraph/cases/rust/trait-object-shadowed/expect.yaml
  • test/projectgraph/cases/rust/trait-object-shadowed/project/Cargo.toml
  • test/projectgraph/cases/rust/trait-object-shadowed/project/src/main.rs
  • test/projectgraph/cases/rust/trait-object-shadowed/project/vendor/dep/Cargo.toml
  • test/projectgraph/cases/rust/trait-object-shadowed/project/vendor/dep/src/lib.rs
  • test/projectgraph/cases/rust/trait-object-shadowed/summaries/cargo_dep_1.2.0.json
  • test/projectgraph/cases/rust/trait-object/expect.yaml
  • test/projectgraph/cases/rust/trait-object/project/Cargo.toml
  • test/projectgraph/cases/rust/trait-object/project/src/main.rs
  • test/projectgraph/cases/rust/trait-object/project/vendor/dep/Cargo.toml
  • test/projectgraph/cases/rust/trait-object/project/vendor/dep/src/lib.rs
  • test/projectgraph/cases/rust/trait-object/summaries/cargo_dep_1.2.0.json
  • test/projectgraph/cases/rust/use-binding-path/expect.yaml
  • test/projectgraph/cases/rust/use-binding-path/project/Cargo.toml
  • test/projectgraph/cases/rust/use-binding-path/project/src/a.rs
  • test/projectgraph/cases/rust/use-binding-path/project/src/b.rs
  • test/projectgraph/cases/rust/use-binding-path/project/src/c.rs
  • test/projectgraph/cases/rust/use-binding-path/project/src/deep/helpers.rs
  • test/projectgraph/cases/rust/use-binding-path/project/src/deep/mod.rs
  • test/projectgraph/cases/rust/use-binding-path/project/src/main.rs
  • test/projectgraph/cases/rust/use-binding-path/project/vendor/dep/Cargo.toml
  • test/projectgraph/cases/rust/use-binding-path/project/vendor/dep/src/lib.rs
  • test/projectgraph/cases/rust/use-binding-path/project/vendor/dep/src/sub.rs
  • test/projectgraph/cases/rust/use-binding-path/summaries/cargo_dep_1.0.0.json
  • test/projectgraph/cases/rust/use-dependency-item/expect.yaml
  • test/projectgraph/cases/rust/use-dependency-item/project/Cargo.toml
  • test/projectgraph/cases/rust/use-dependency-item/project/src/main.rs
  • test/projectgraph/cases/rust/use-dependency-item/project/vendor/dep/Cargo.toml
  • test/projectgraph/cases/rust/use-dependency-item/project/vendor/dep/src/hidden.rs
  • test/projectgraph/cases/rust/use-dependency-item/project/vendor/dep/src/lib.rs
  • test/projectgraph/cases/rust/use-dependency-item/project/vendor/dep/src/sub.rs
  • test/projectgraph/cases/rust/use-dependency-item/summaries/cargo_dep_1.0.0.json
  • test/projectgraph/cases/typescript/tsx-elements/expect.yaml
  • test/projectgraph/cases/typescript/tsx-elements/project/package.json
  • test/projectgraph/cases/typescript/tsx-elements/project/src/App.tsx
  • test/projectgraph/cases/typescript/tsx-elements/project/src/Other.tsx
  • test/projectgraph/cases/typescript/tsx-elements/project/src/main.ts
  • test/projectgraph/cases_test.go
  • test/projectgraph/methods_govulncheck_test.go
  • test/projectgraph/methods_test.go
  • test/projectgraph/receivers_test.go
  • test/projectgraph/report.md
  • test/projectgraph/testdata/receivers/go/dep/values.go
  • test/projectgraph/testdata/receivers/rust/dep/src/lib.rs
  • test/projectgraph/values_test.go
  • test/projectgraph/version_test.go

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

vet Summary Report

This report is generated by vet

Policy Checks

  • ✅ Vulnerability
  • ✅ Malware
  • ✅ License
  • ✅ Popularity
  • ✅ Maintenance
  • ✅ Security Posture
  • ✅ Threats

Malicious Package Analysis

Packages were checked against SafeDep's known malicious packages database

Malicious Package Analysis Report
Ecosystem Package Version Status Report
  • ℹ️ 0 packages have been checked against the known malicious packages database.
  • ✅ No malicious packages found.

Note: Only known malicious packages were reported. Packages not yet present in the threat intelligence database are not flagged.

Changed Packages

Changed Packages

  • ✅ [Go] github.com/acme/srv@1.0.0
  • ✅ [Go] stdlib@1.25
  • ✅ [Go] github.com/acme/a@1.0.0
  • ✅ [Go] github.com/acme/b@1.0.0
  • ✅ [Go] github.com/acme/kit@1.0.0
  • ✅ [Go] example.com/legacy@1.0.0
  • ✅ [Go] github.com/acme/ws@1.0.0
  • ✅ [Go] stdlib@1.22
  • ✅ [Go] example.com/markup@1.0.0

abhisek commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

The SafeDep supply chain scan fails because the diff is over the limit of GitHub (459 files). It does not report a finding. This PR changes no dependency: go.mod and go.sum do not change. The only package manifests in the diff are synthetic fixtures under test/projectgraph/cases. Most of the files are test cases and their expected output.

CodeRabbit skipped the review for the same reason. The PR description lists the reviews that ran on the branch before it was opened.


Generated by Claude Code

@codecov-commenter

codecov-commenter commented Nov 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.41078% with 461 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.64%. Comparing base (39cf1e2) to head (3e3539d).

Files with missing lines Patch % Lines
plugin/indexer/govalues.go 43.87% 82 Missing and 5 partials ⚠️
projectgraph/rust.go 63.88% 48 Missing and 4 partials ⚠️
plugin/indexer/rust.go 80.40% 32 Missing and 17 partials ⚠️
plugin/indexer/references.go 25.92% 39 Missing and 1 partial ⚠️
projectgraph/golang.go 53.24% 31 Missing and 5 partials ⚠️
projectgraph/values.go 32.55% 27 Missing and 2 partials ⚠️
projectgraph/names.go 32.35% 21 Missing and 2 partials ⚠️
plugin/indexer/golang.go 82.56% 16 Missing and 3 partials ⚠️
lang/javascript.go 36.84% 10 Missing and 2 partials ⚠️
projectgraph/link.go 26.66% 10 Missing and 1 partial ⚠️
... and 24 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
- Coverage   77.18%   76.64%   -0.55%     
==========================================
  Files         180      186       +6     
  Lines       18163    19449    +1286     
==========================================
+ Hits        14019    14906     +887     
- Misses       3300     3654     +354     
- Partials      844      889      +45     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f6516eb8a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread projectgraph/golang.go Resolved
Comment thread plugin/indexer/govalues.go Resolved
Comment thread projectgraph/field.go Resolved
…557)

A Rust call of into runs the from of an impl of From. The link step
adds name edges to the from candidates of the project. But the record
of the site keeps only the method name into. When the site has more
than 20 candidates, it is ambiguous and gets no edge. Then the reach
query starts the scope only from the definitions of into, and a target
that one from reaches reads as not-found. The same holds for a from of
a dependency, which is never a candidate.

The span of a method scope now enters the scope of each alias of the
name, as the profiles give them. MethodAliases takes the aliases of
every language, because the reach query does not read the language of
a site. The cases rust/into-ambiguous and rust/into-dependency fail
without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The index dropped a reference to a predeclared name, as clear, unless
the file itself declared the name. A declaration of another file of
the package shadows the name in every file of the package. So
[]func(){clear} in main.go gave no reference to the clear of other.go.
The call of the element is a function-value record, which concerns no
target in a search from the roots, and the target of clear read as
not-found.

goName now keeps a predeclared name as a name. The link step resolves
it in the package, or drops it when no declaration binds it, as it
does for other names that the file does not bind. The case
go/predeclared-shadow fails without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
A Go program can load a plugin with plugin.Open, get a function of it
with Lookup, and call it as sym.(func())(). The plugin is code of
another build, so no reference edge names that function. The call is a
function-value record, which concerns no target in a search from the
roots. So a target that only the plugin calls read as not-found, and a
target that no code of the graph names read as no-such-target. A unit
of the standard library does not help, because its plugin code fills
the symbols from code of another build.

The reflection rule of the Go profile now holds a list of packages. A
call or a reference of Open or Lookup in a file that imports plugin
gets a computed-name record, as Call or MethodByName in a file that
imports reflect does. docs/projectgraph.md argues why no other package
of the standard library gives a function that no reference names. The
cases go/plugin-lookup and go/plugin-lookup-std fail without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The fixes of the Codex review add cases, references of predeclared Go
names and plugin records. The rows of the versions of this branch take
the new hashes in place, because no release holds these versions yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06577dadbc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugin/indexer/govalues.go Resolved
The index records the typed locals of a Go function with no extent. So a
typed local of a closed block hid a package function with the same name.
In `{ var helper T; _ = helper }; fs := []func(){helper}`, the index gave
no reference to the function helper of another file. The call fs[0]() is a
function-value record that concerns no target in a search from the roots.
So a dependency that only helper calls read not-found.

goReference now skips a typed name only when goLocal finds the declaration
in scope at the node. goName keeps the raw name of a typed local that is
out of scope, and the link step resolves it in the package or drops it.
The case go/typed-local-block fails without the fix. Its typed local
cleanup is in scope, so it guards that a typed value still gives no
reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c642d32edb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread projectgraph/resolve.go Resolved
…ction value

The link step skipped a call that resolved to a definition of data, as a
field or a variable. In Go such a call runs the function value that the
field or the variable holds, as s.cfg.Remove("x") for a field of a
function type. No edge names that function. A search from the roots
reaches the code that stores the value, but a search from a source does
not. From run alone, os.Remove read not-found, where main gave uncertain.

A call of data in a language with function values now gets a record with
the reason function-value. A search from the roots lets it concern no
target, so its answers do not change. A search from a source lets it
concern every target. The case go/source-field-func fails without the
fix. Four cases and the summary of dependency-generated-table gain the
record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…he same name

A file declares Client as a struct under one cfg and as a type alias
under the other cfg. The index lets the alias replace the definition of
the struct. A call of send on a parameter of the type Client then gets
only the edge to the method of the type that the alias names. So
std::fs::remove_file, which the send of the struct calls, reads
not-found. origin/main gives found.

The case expects found, so it fails on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
App spreads an object of handlers into a button, as
<button {...handlers}>. The index reads no value of a spread attribute,
so the function onClick of the object gets no reference and no record,
and plug.danger reads not-found. origin/main does not read .jsx files.
Its record of the import of ./App.jsx concerns every target, so it gives
uncertain.

The case expects found, so it fails on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…o scope

worker.rs has use super::*, and go calls helpers::cleanup of the sibling
module helpers. The link step does not resolve a module through a glob
use. origin/main reads helpers as a possible module of the project,
because a file has that name, and records the call with the reason
no-definition, so std::fs::remove_file is uncertain. This branch reads
helpers as another crate, because it is no child module and no module of
the root. The call gets the key helpers//cleanup and no record, so
std::fs::remove_file reads not-found.

The case expects found, so it fails on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
…ation (FOU-562)

A scope can declare one name more than once under cfg attributes, as a
struct and an alias, or two aliases of other types. The index holds one
definition per key. So the last alias replaced the struct or the other
alias, and the link step sent each walk through that alias. A call then
got only the method of one declaration. A target that only the other
declaration calls read not-found. The case alias-cfg-struct showed this
for std::fs::remove_file.

The index does not know which cfg the build sets. Now an alias with
another meaning in its scope names no type. A typed call through the name
gets the record unknown-receiver, and the name edges reach the method of
each declaration. The methods of the struct stay under the key of the
alias. So the link step also gives the record for a path to one of them,
as Client::new, and not a single edge to the method of the struct. An
alias that the scope declares once, or two aliases of one type, still
bind the type, as FOU-562 asks.

The case alias-cfg-struct now also checks a target that only the type of
the alias calls through Client::new. The new case alias-cfg-two checks
two aliases with a path call and a typed call. Both cases read not-found
before the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The index dropped the value of a spread attribute, as {...handlers} in
<button {...handlers}>. jsx_expression is a holder, but its value is a
spread_element, and reference gives no target for it. The visitor thus
added no reference and no record. React makes each property of the
object a prop of the element and can call each function of it. Since
the index parses .jsx files, a function that only such a spread passes
read not-found. The case javascript/jsx-spread-attributes shows it.

Now the visitor reads the operand of a spread in a JSX expression. When
the operand names a definition of the file, the element gets a reference
to each function and method that the definition holds, as the member
reference handlers.onClick does. The index cannot name the functions of
any other object, as a parameter, the result of a call or an import. So
such a spread gets a computed-name record, which concerns every target.
That answer is uncertain, never not-found. The new case
javascript/jsx-spread-unknown-object guards it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
A Rust path can start with a name that a glob use brings into the module,
as helpers::cleanup after use super::* in src/deep/worker.rs. The link
step did not read glob uses for the first name of a path. The path went
to the external key helpers//cleanup as a path of another crate.
rustLocalRoot saw no child module and no module of the root with the
name, so FirstPartyFrom gave no record for the use of the path. The
target std::fs::remove_file under cleanup read not-found. origin/main
gave uncertain, because FirstParty took any file of the name as first
party.

rustScopePaths now adds the path under the module of each glob use of
the file to the candidates of rustPaths. It puts them after the child
item and before a crate of the project, as Rust reads them. resolveRust
and rustModuleUnit read these candidates. So the call resolves to
src/deep/helpers.rs//cleanup, and rustLocalRoot sees the module when the
walk under it fails, which keeps the no-definition record. A first name
that a glob use brings as a module thus never reads as another crate.

A glob use in an inline module, as use super::* in mod tests, stays out.
Read from the module of the file, its super names a sibling module, and a
path of a crate with the name of that sibling would lose its edge to the
crate.

The cases rust/glob-use-module and rust/glob-use-crate-module fail
without the change. The case rust/glob-use-inline-module fails when the
inline glob uses count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
functionsOf read the definitions from a map. So the targets of the
reference of a spread came in a random order, and the index of a file
could differ between two runs. The function now sorts the keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
The cases of the alias, JSX spread and glob use fixes change the graphs
and the reach results of the cases. The versions of the branch stay the
same, so the rows 16/18 and 16/18/5 take the new hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
Signed-off-by: Claude <noreply@anthropic.com>
@abhisek
abhisek merged commit cd00c65 into main Nov 15, 2026
8 of 9 checks passed
@abhisek
abhisek deleted the claude/reach-mvp-precision branch November 15, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants