Commit Graph
2220 Commits
Author SHA1 Message Date
safishamsiandClaude Opus 4.8 aa4564378a fix(scala): scope given...with members to the given instance (#4130)
A Scala 3 `given ... with` instance's `def`s leaked to file scope, where `show`
(cased to `_show`) collided with the trait TYPE node `Show`, so the given's
call/reference edges landed on the trait. Treat `given_definition` as a
class-like container with a `with_template_body`, and synthesize a stable name
for an anonymous given (`given Show[Int] with`) from its implemented type so its
members are scoped instead of dropped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 21:20:29 +01:00
safishamsiandClaude Opus 4.8 177d2071e5 fix(html): stop a node label from breaking out of the embedded script block (#4124)
Node data is embedded as JSON inside a <script> element, but the serializers
escaped only `</`. An unclosed `<!--` in one label followed by a later `<script`
drove the HTML tokenizer into script-data-double-escaped state, where the real
</script> no longer closed the tag and graph.html rendered blank. Escape every
`<` as < in both exporters/html.py and tree_html.py; labels still render
because `<` round-trips through JSON.parse.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 21:20:29 +01:00
safishamsiandClaude Opus 4.8 93de0d4aea fix(elixir): extract defdelegate as a function definition (#4132)
`defdelegate name(args), to: Mod` declares an invocable function with the same
`call` head shape as `def`, but was missing from the def-family recognizer, so no
node was minted and same-module calls to the delegated name dangled. Add
`defdelegate` to the def-family tuple and to the call-pass skip set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 21:20:29 +01:00
safishamsiandClaude Opus 4.8 a041facc84 fix(julia,fortran): extract where-clause funcs, parametric types, and named generic interfaces (#4126, #4128, #4141)
- Julia: a `where` clause wraps the call head in a `where_expression` and a
  parametric type name sits inside a `parametrized_type_expression`, so the
  name-lookup helpers missed both and dropped the method/type entirely. Unwrap
  the wrapper nodes in `_func_name_from_signature`, the short-function assignment
  branch, and `_type_head_names`. Declared type parameters (`value::T`) no longer
  leak as phantom field-type reference nodes (#4126, #4128).
- Fortran: a named generic `interface` had no walk branch, so the generic name
  was dropped and a call to it dangled. Emit a node for the generic name and
  defer-resolve a `generic_dispatch` edge to each listed specific procedure,
  mirroring the type-bound-procedure pattern; unnamed/operator interfaces are
  untouched and their bodies still extracted (#4141).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 21:20:29 +01:00
safishamsiandClaude Opus 4.8 1d1e03b4c8 docs(readme): regenerate all 31 translations from the trimmed English README
Each translation is rebuilt from the current English README (trim + docs.graphify.com
links + Graphify Cloud CTA). Prose is translated into the native script while code,
commands, URLs, relative link targets, badges, the language switcher, GitHub callout
markers, numbers/metrics, and structure are preserved verbatim. Relative links are
adjusted for the docs/translations/ location, and the Install heading is kept in
English so the in-page #install anchor resolves in every language.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 14:57:14 +01:00
safishamsiandClaude Opus 4.8 01d23d06a7 docs(readme): cost-led Graphify Cloud headline (80% fewer tokens)
Lead the top banner with the token-saving hook, add an '80% fewer tokens'
bullet to the Graphify Cloud section, and fold the figure into the mid-page tip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 14:34:39 +01:00
safishamsiandClaude Opus 4.8 565b22bca1 docs(readme): trim to the newcomer path and strengthen the Graphify Cloud CTA
- Move the heavy reference sections (full command reference, troubleshooting,
  env vars, team setup, querying, supported inputs, ignoring files, report) to
  short stubs that link to docs.graphify.com, and add a Documentation index near
  the top. README drops from ~939 to ~480 lines; nothing is lost, only relocated.
- Condense the install caveats and the per-platform "always use the graph" table
  into pointers.
- Replace the Smithery MCP badge with a Graphify Cloud (app.graphify.com) badge.
- Strengthen the app.graphify.com CTA: free 14-day trial, and surface the Cloud
  capabilities (monorepo and cross-repo, formal verification, code review with a
  bird's-eye SDLC view, Sentry/Jira connectors) in the top note, a mid-page tip,
  and the renamed Graphify Cloud section.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 14:30:48 +01:00
safishamsiandClaude Opus 4.8 e56e77a125 docs(readme): use GitHub callouts and add a Building on graphify note
- Promote the platform note and the official-package warning to GitHub
  [!NOTE] / [!IMPORTANT] callouts so they render as admonitions.
- Add a short 'Building on graphify' section asking community projects that
  use the graphify name to clarify they are unaffiliated (brand protection).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 14:18:12 +01:00
safishamsiandClaude Opus 4.8 2dbb80c44b docs(readme): reduce header logo size (480 -> 360, 25% smaller)
Applied to the English README and all 31 translated READMEs for consistency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 14:16:07 +01:00
safishamsiandClaude Opus 4.8 44560046be ci: add contributor label and PR-title standards automation
Adopt two lightweight OSS governance practices (metadata-only, never runs PR
code):

- contributor-label: tag a PR whose author_association is CONTRIBUTOR, so
  returning community contributions are visible at a glance. Works with our
  authorship-preserving cherry-pick flow (the author shows as CONTRIBUTOR once a
  prior commit of theirs has landed).
- pr-standards: a non-blocking nudge toward conventional-commit PR titles (the
  format the changelog and release notes are built from) via a one-time comment
  plus a `needs:title` label that clears when the title is fixed.

Both exempt maintainers listed in the new .github/TEAM_MEMBERS and all bots.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 14:06:14 +01:00
safishamsiandClaude Opus 4.8 2cb81c6fd5 docs(changelog): fold #4039/#4261/#4269/#4247/#4262 into 0.9.84
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v0.9.84
2026-10-10 01:34:41 +01:00
safishamsiandClaude Opus 4.8 2ca713fc86 test(python): lock in cross-module type-reference binding (#4262)
#4262 reported that a type defined exactly once never bound across modules,
leaving hundreds of per-file stubs. It no longer reproduces on v8: the
reference binds through the re-export chain (and, absent any import, through the
unique-stub rewire). Add regression coverage matching the reporter's node
layout (config/settings/_models.py -> config_settings_models_settings) plus an
import-free inheritance control, so the resolved behavior cannot silently
regress. No production change required.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:33:40 +01:00
safishamsiandClaude Opus 4.8 77276583e0 fix(csharp): coalesce an undeclared type onto one shared placeholder (#4247)
An external type the corpus references but never declares (`List<T>`,
`System.Type`, Unity's `VisualElement`) got a separate sourceless placeholder
in every file that mentioned it, with the file's name baked into the id
(`a_cs_list`, `b_cs_list`). Queries returned a dozen identical nodes and the
files sharing the type stayed unconnected.

`_resolve_csharp_type_references` minted/kept a per-file stub because the arbiter
short-circuited on whichever placeholder each edge already pointed at. It now
routes every undeclared same-name reference to a single canonical, name-keyed
stub (mirroring Go's external-type treatment), still shadowing no real or
differently-labelled node. The now-unreferenced per-file placeholders are pruned
by the existing sweep.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:31:15 +01:00
safishamsiandClaude Opus 4.8 162159dbd6 fix(python): stop a qualified external annotation binding to a private local class (#4269)
`def read_body(response: httpx.Response)` names an external type, but a private
`class _Response` in a test file absorbed the reference, producing a fabricated
EXTRACTED-confidence edge from production code to test code.

The stub-rewire key (`_node_label_key`) stripped ALL non-alphanumeric
characters, including underscores, so `_Response` and `Response` collapsed to
the same key and the lone local `_Response` was chosen as the unique match.
Underscores are significant identifier characters, so the key now preserves
them (only `()`, `<>`, `.`, and whitespace are dropped); `Foo()` still matches
`Foo`, but `_Response` no longer matches `Response`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:28:39 +01:00
safishamsiandClaude Opus 4.8 289aa41284 fix(python): stop a stdlib-named loose module from capturing a bare import (#4261)
A non-package directory with a file named like a stdlib module (e.g.
`scripts/logging.py`) wrongly captured a bare `import logging` from a
sibling, binding the import — and member calls like `logging.getLogger()` —
to the local file instead of the stdlib module.

The false binding arose at three independent layers, all now guarded by a
vendored, deterministic `_PYTHON_STDLIB_MODULE_NAMES` frozenset (union of
3.10 and 3.13 `sys.stdlib_module_names`, NOT the host's live set):

- `_resolve_python_module_path`: an absolute import whose top-level name is
  a stdlib module no longer resolves to a loose same-named `.py` file or
  namespace dir. A deliberate package shadow (`logging/__init__.py`) still
  resolves — only loose modules/namespaces are refused.
- `_repoint_python_sibling_imports`: stdlib-named loose siblings are no
  longer indexed as repoint targets.
- build.py #1504 pre-migration stem-alias index: a stdlib-named Python file
  no longer claims the collapsed bare-stem alias ("logging"), which would
  otherwise re-capture the external edge. The directory-scoped alias
  ("scripts_logging") is still registered, so genuine stale-id references to
  the file keep healing.

Adds a stdlib-shadow regression plus a non-stdlib positive control.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:24:41 +01:00
berce 652020e9db fix(opencode): load the plugin on OpenCode 2 and refresh installed copies (#3554, #3732)
`graphify opencode install` wrote a plugin with only a named export, the
OpenCode 1 shape. OpenCode 2 rejects it ("Plugin must export a default
definition with an id and an effect or setup function") and reads the bare
path registered in opencode.json as an npm package name, so it fails twice
on every start.

The plugin is now one default export with `id`, `setup()` for OpenCode 2
and `server()` for OpenCode 1 (1.3.4 and later). The installer no longer
writes the opencode.json entry, because both runtimes discover
.opencode/plugins/ on their own, and it removes the entry older releases
wrote.

OpenCode loads .opencode/plugins/ from the project and from every directory
above it, and OpenCode 2 fails a second plugin with the same id ("Duplicate
plugin ID"). An install in ~ and one in a project are both normal, so the id
carries the file's location and the copies share one record of who was
reminded: both load, and a command still gets a single reminder.

Upgrading graphify does not touch a plugin already on disk. So the CLI now
rewrites an old-shape plugin in the working directory or in the home
directory on its next run, and drops the stale entry there, next to the
stale-skill refresh from #1805. It does so only when the `opencode` on PATH
reports 1.3.4 or later, because older OpenCode 1 releases cannot load the
new plugin and the one they have still works. The rewrite takes the same
per-directory lock as the skill refresh and replaces both files atomically,
because OpenCode watches them. GRAPHIFY_NO_AUTO_REFRESH=1 turns it off.

(cherry picked from commit 0e539e1f7a)
2026-10-10 01:13:46 +01:00
safishamsiandClaude Opus 4.8 effee34d33 release: 0.9.84
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:01:40 +01:00
safishamsiandClaude Opus 4.8 e72af53c37 fix(path): fail closed on a file::symbol endpoint the file does not define (#4264)
A file-scoped path endpoint that matched no symbol in that file fell through to
bag-of-words scoring, which then answered from a same-named symbol in another
file. Refuse like explain does (listing the files that do define the symbol)
instead of guessing across files; fixes the CLI path and the MCP shortest_path
tool via the shared resolver. Native Rust/C++ :: labels resolve via the exact
tier and are unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:01:10 +01:00
safishamsiandClaude Opus 4.8 90d9245c6b fix(r): give every backtick-quoted binding a collision-free id (#4253)
A partially-symbolic backtick name (`%foo%`, S3 `[.cls`, dotted `my.op`)
normalized to the same _make_id suffix as an ordinary identifier, so the second
node was silently dropped by the seen_ids merge. Route every backtick-quoted
name through the reserved __operator__<hex> namespace, not only empty-suffix
operators; #4171's existing ids are unchanged. (The #4253 hang itself was
already fixed by #4171's resolve_local visited guard.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:01:10 +01:00
safishamsiandClaude Opus 4.8 da287edfb5 fix(powershell): extract functions inside file-scope begin/process/end blocks (#4270)
File-scope begin/process/end/dynamicparam/clean parse as pseudo-commands
(command_name 'begin'), not named_block, so the command branch returned before
the child walk and any function/class defined inside was dropped. Descend into
those five block keywords' children; ids stay name-based and stable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 01:01:10 +01:00
safishamsiandClaude Opus 4.8 cf5978e4fb release: 0.9.83 — include #4235, #4239
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v0.9.83
2026-10-09 19:48:34 +01:00
himanshupatro-334 8f029d28b7 fix(csharp): resolve nested types from using static
(cherry picked from commit b66040d902)
2026-10-09 19:48:13 +01:00
nothariharan 0778755e81 fix(cache): namespace AST cache by tree-sitter grammar versions (#4236)
(cherry picked from commit 90fadbd5e1)
2026-10-09 19:46:57 +01:00
safishamsiandClaude Opus 4.8 89db93508b release: 0.9.83
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 19:20:04 +01:00
YyunozorandClaude Opus 4.8 089939197f fix(extract): bind an unqualified call to the caller's own class in Java/C#/Scala/C++ (#4252)
An unqualified call fell through to a file-wide last-writer-wins label map, so
it bound to the last-declared same-named method. Walk the caller's class chain
(own class + in-file bases nearest-first, then enclosing classes) and bind a
single hit; fail-closed on a tie; free functions/constructors still resolve.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 19:19:15 +01:00
Mahaboob pashaandClaude Opus 4.8 0b94e3767f fix(csharp): resolve calls through member chains, element access and constructors (#4258, #4246)
Resolve a.b.C(), xs[i].M(), and calls inside constructor bodies: a fail-closed
chain/element-type resolver (one declared type per hop, collection element only
for T[]/List<T>, bail on ambiguity) plus a ctor-body walk attributing calls to
the type node. Reuses the existing C# scoping; avoids same-pair method/calls
duplicates.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 19:19:15 +01:00
ayushcodes10andClaude Opus 4.8 230bbd2d92 fix(csharp): never let a call bind to a same-named enum member (#4254)
Exclude case_of targets from the per-file label map and apply the cross-file
_member_nids exclusion to all C# calls (not only new X()), so a bare call like
Delegate(t) no longer binds to a same-named enum case. Methods are method/
contains targets, not defines, so real call targets survive; fail-closed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 19:19:01 +01:00
ayushcodes10andClaude Opus 4.8 41b2a7f6f9 fix(csharp): give a generic and a non-generic type distinct ids (#4255, #4249)
Fold the type-parameter arity into the C# type node id (Effect`1), so Effect
and Effect<T> no longer collapse to one node and Effect<T> : Effect stops
producing an inherits self-loop. Arity 0 keeps the current id (back-compat);
backtick is collision-free and deterministic.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 19:18:16 +01:00
SoloDrex52andClaude Opus 4.8 f949947003 fix: make the test suite pass on Windows (#4260)
Refuse a read-only destination in _atomic_replace on Windows (nt-only guard;
os.replace there raises PermissionError and the fallback would silently clobber
it), plus test-only guards: utf-8 encoding kwargs, posix-shape path assertions,
FIFO/AF_UNIX/symlink skips, and a replace-retry for AV/indexer locks. No POSIX
behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 19:18:06 +01:00
Deepanshu Pal 68e0e9bbac fix(skill): preserve persisted scan options across skill runs
Read existing CLI build-config options in fresh and incremental skill
scan fragments, keeping corpus boundaries consistent without changing
standalone detection API defaults. Regenerate all host artifacts and
snapshots. Add rendered-snippet regressions and explicit-override tests.

Fixes #4240.
AI-Assisted-By: AI coding assistant

(cherry picked from commit 3f68952d80)
2026-10-09 19:17:53 +01:00
Mahaboob Pasha 2250f205b9 fix(build): keep a method edge when a member constructs its own type
The default graph keeps one undirected edge per node pair. A factory
that returns new Report() also has a calls edge back to Report, and
that call was the one that survived. Report then had no method edge
to Fault, so anything that walks a type's members missed it.

A method or contains edge now wins over a calls edge in the opposite
direction. A directed graph still keeps both.

Fixes #4248

Co-Authored-By: Grok Bot <noreply@x.ai>
(cherry picked from commit 95546d6784)
2026-10-09 19:17:53 +01:00
何明林 a7040f53db fix(extract): make unresolved re-export IDs portable
AI assistance: implementation drafted with TRAE, reviewed and verified by the author.

(cherry picked from commit e06c5da8b8)
2026-10-09 19:17:53 +01:00
safishamsiandClaude Opus 4.8 5b74d7d749 release: 0.9.82
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v0.9.82
2026-10-09 02:51:25 +01:00
Yyunozor 5743c9a8cf fix(export): strip control characters from the id drawn for an unlabelled node
A node without a label is drawn under its id (`G.nodes[n].get("label", n)`),
a third path from text to graph.svg. The previous commit cleaned the labels
and left that fallback as it was, so an unlabelled node whose id holds a C0
control character still produced a graph.svg that a strict parser rejects.

Run the fallback through the same strip: one expression,
`_strip_xml_illegal(str(G.nodes[n].get("label", n)))`, now covers the label
and the id. A clean id is drawn as before.

Tests: for each control character the module already lists, an unlabelled
node whose id carries it; the file must parse and still show the cleaned id.

Assisted-by: assayer harness on Claude Code (https://github.com/Yyunozor/assayer-memory-mcp)
(cherry picked from commit 2e7e28ab32)
2026-10-09 02:51:03 +01:00
rohit-jsfreaky ad1dbc1e9b fix(rust): bind an in-file call to the type it names, not to any same-named function
extract_rust bound every in-file call through one bare-name index (last one wins),
so `Matcher::new()` reached `Printer::new()` when the file defined both, `Arc::new(x)`
reached the file's own `fn new`, `self.go()` another type's `go`, `drop(x)` the
`impl Drop` method and `x.total()` a free `fn total`, all EXTRACTED.

`Type::f()` / `Self::f()` / `self.f()` now bind only to that type's method in the file
(type = last path segment without generics, on the call and on the impl; `i32` and
other primitives count as types). With none, `Enum::Variant(x)` still gets its
constructor reference and `self.f()` falls through to the cross-file self pass. A bare
`f()` binds only to a free function or a type, `x.f()` only to a method.

Against rust-analyzer: wrong edges ripgrep 1232 -> 532, bat 138 -> 36, fd 29 -> 9;
correct edges 1852 -> 2236, 602 -> 655, 148 -> 154.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8gwEpjajiWHVW3c9smuKf
(cherry picked from commit de9b728ac6)
2026-10-09 02:48:23 +01:00
safishamsiandClaude Opus 4.8 223b376e9a feat(cli): nudge toward Graphify Cloud once after a local graph build
Print a precise, interactive-only CTA after `graphify extract` succeeds:
faster indexing, fewer tokens, cross-repo search, PR review, and an
always-current SDLC map at app.graphify.com. Shown once per project (marker
under graphify-out/), suppressed when stdout is not a TTY (CI, pipes, the
AI-assistant pipeline) and via GRAPHIFY_NO_TIPS/GRAPHIFY_NO_CTA.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-09 02:48:22 +01:00
safishamsiandClaude Opus 4.8 622474b8ec release: 0.9.81
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v0.9.81
2026-10-08 14:30:33 +01:00
xiehuanyi b50e1b3590 fix(python): preserve nested class identities by enclosing class
Co-authored-by: Codex <noreply@openai.com>
(cherry picked from commit e85a748445)
2026-10-08 14:29:19 +01:00
rohit-jsfreaky 86e3c1dc7a feat(python): resolve self/cls/super() calls to a base-class method in another file
The in-file pass walks only bases declared in the same file, so `Flask.__init__` ->
`App.__init__` (flask/app.py -> flask/sansio/app.py) and every other inherited call
across modules had no calls edge.

_resolve_python_member_calls now walks the caller's class up a single-inheritance
chain and binds the first class that owns the method, as the MRO does. It stops with
no edge at multiple inheritance, a base the inherits edges cannot show (marked
`python_opaque_bases` by the extractor: `mod.Base`, `Generic[T]`), a base outside
the corpus or a self-loop, a caller base its file neither defines nor imports, and
`super(Cls, obj)` with arguments. On a changed-files rebuild an unchanged base is
still a name stub, so the walk rewires copies of the inherits edges the way the full
build does; the opaque-base marker is forwarded with the other context metadata.
AST cache schema 6 -> 7.

flask: 66.7% -> 71.6% of jedi's call pairs found; 16 new edges on httpx/click/flask,
16 confirmed by jedi, 0 lost. Changed-files rebuilds match full builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8gwEpjajiWHVW3c9smuKf
(cherry picked from commit b241c3bc79)
2026-10-08 14:29:00 +01:00
rohit-jsfreaky ae2f11a0d7 fix(python): find a nested function's file in the typed-receiver visibility check
The typed-receiver arm of _resolve_python_member_calls checks that the receiver's
class is defined in or imported into the caller's file. _file_node returned the
caller's first contains/method parent, which is the file for a top-level function or
method but the enclosing function for a nested def and the outer class for a nested
class's method, so those calls (click's `def callback(ctx: Context, ...): ctx.abort()`)
never got an edge. Climb the parents to the top, which is always the file node.

0.9.80 vs this change: click +10, rich +4 call edges, all 14 confirmed by jedi at the
call site, 0 lost; httpx, flask and typer unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8gwEpjajiWHVW3c9smuKf
(cherry picked from commit 56634ac22d)
2026-10-08 14:28:54 +01:00
Raphael Malikian c36833d13f fix(elixir): emit calls edges for keyword-form def bodies
One-line definitions (`def a(x), do: b(x)`) have no do_block node: the
body is the value of the `do:` pair in the arguments keywords node. The
extractor only registered do_block bodies for the call-walk pass, so every
call inside a keyword-form body was silently dropped from the graph. When
there is no do_block, take the `do:` pair value as the body and walk it
the same way (Fixes #4207).

AI assistance: implementation drafted with Muse (Anthropic), reviewed and
verified by the author.

Signed-off-by: Raphael Malikian <rtmalikian@gmail.com>
(cherry picked from commit b00d3704db)
2026-10-08 14:28:54 +01:00
Mahaboob pasha e63386fc0c fix(elixir): resolve qualified and aliased remote calls (#4206)
Co-Authored-By: Grok Bot <noreply@x.ai>
(cherry picked from commit b834ec821f)
2026-10-08 14:28:27 +01:00
rohit-jsfreakyandClaude Opus 4.8 ab3c3553cc fix(python): never resolve an absolute import to the module that contains it (#4225)
A directory-qualified stem fallback could resolve an absolute import
(from werkzeug.wrappers import Request) onto a local wrappers.py, rewiring a
class to inherit from itself. Exclude the importing file's own stems; a
same-named module in another package still resolves by exact/suffix/bare stem.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-08 14:28:20 +01:00
Aditya Tiwari d719854a51 docs: add guidance for contributors using AI coding agents
Maintainers are seeing more AI-assisted pull requests. The rules for
them already exist across this guide (branch off v8, one concern per
PR, regression tests that fail before the fix, never hand-edit
generated skills, Co-Authored-By disclosure), but an agent or a new
contributor has to piece them together.

This adds a short "Working with AI Coding Agents" section under Pull
Requests that collects those existing rules in one place. It adds no
new policy. It also mentions ContribOS as an optional tool that reads
these rules and checks a branch against them; the maintainer agreed
to a PR for it on X.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d47b311588)
2026-10-08 14:28:20 +01:00
himanshupatro-334 8d3a6f5305 fix(csharp): resolve enclosing namespace types
(cherry picked from commit 6b6579077d)
2026-10-08 14:28:03 +01:00
rohit-jsfreaky 27df0f9a2c fix(ts): pick a same-named receiver type by the caller's import, never bind to a #private method
_resolve_typescript_member_calls required a receiver's type name to be unique in the
corpus before applying the #2553 origin gate, so hono's `c: Context` (a class plus two
interfaces and a type named Context) never resolved, though the caller's
`import type { Context } from '../../context'` names the exact one. Apply the origin
gate to the candidates first and emit only when exactly one is visible; one definition
behaves as before, an undecided import still emits nothing.

_key() also folds `#name` into `name`, so `c.newResponse()` could bind to a private
`#newResponse()`. Skip a match whose leading `#` disagrees with the call.

Against the TypeScript compiler, 0.9.80 vs this change: hono obj.method() 20.3% -> 47.3%
(+23 edges), NestJS +5, TypeORM +3, all 31 confirmed at the call site, 0 lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8gwEpjajiWHVW3c9smuKf
(cherry picked from commit 7935593eca)
2026-10-08 14:27:33 +01:00
rohit-jsfreaky 18682e8dce feat(ts): type this.field receivers from class field declarations
The TS receiver table behind `this.repo.findById()` held constructor parameter
properties, `new` locals and typed parameters, but no class fields, which is how most
NestJS, Angular and TypeORM classes hold their collaborators (`protected repo: Repo`,
`private logger = new Logger()`, `#root: Node`). Those calls got no edge.

_ts_receiver_type_table now records non-static class fields: `name: T`, `name?: T`,
`T | undefined` / `T | null`, an untyped `new T()` initializer, and `#private` names
keyed as the extractor records the receiver. Arrays, generics and two-class unions stay
untyped; the #2553 origin gate and first-binding-wins are unchanged. JS/TS files bypass
the AST cache, so no schema change.

Against the TypeScript compiler, 0.9.80 vs this change: NestJS this.x.method() 47.9% ->
77.0% (+102 edges), TypeORM 64.5% -> 79.6% (+91), all 193 confirmed at the call site,
0 lost; changed-files rebuild == full build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8gwEpjajiWHVW3c9smuKf
(cherry picked from commit e5fb5e3b95)
2026-10-08 14:27:06 +01:00
JunoLee 97f0dc197e fix(cluster,analyze,report): isolate AMBIGUOUS edges from top-N and modularity
AMBIGUOUS-tagged edges (confidence ≈ 0.35, often `conceptually_related_to`
from LLM semantic extraction) could glue otherwise-independent clusters
together through Leiden/Louvain modularity, and the resulting bridge
questions crowded `Suggested Questions` with low-signal entries. The
`AMBIGUOUS` flag was already correct — only downstream consumers
treated it identically to EXTRACTED/INFERRED.

Changes:
- `cluster()` gains `ambiguous_scale: float = 0.5` (overridable via
  `GRAPHIFY_AMBIGUOUS_SCALE`). Multiplier is applied to AMBIGUOUS edge
  `weight` in a graph copy before partitioning so the raw graph (and
  `/graphify path`/`explain` output) stays untouched. 1.0 restores
  legacy behavior.
- `suggest_questions()` tags each ambiguous_edge entry with
  `low_confidence=True`. Interleave + top_n contract from #3849 is
  preserved; the tag is purely metadata.
- `report.py` splits tagged entries into a new "Low-confidence Hints"
  section below the main Suggested Questions.

Tests:
- `test_cluster_ambiguous_scale.py` (new, 7 tests): default scale
  demotes AMBIGUOUS weight, scale=0.0 drops it entirely, scale=1.0
  is no-op, env override + malformed env fail-soft, raw graph not
  mutated, no copy when no AMBIGUOUS edges present.
- `test_suggest_questions_ambiguous.py` (new, 4 tests): tag present
  on every ambiguous_edge entry, never on other types.
- `test_analyze.py::test_suggest_questions_diversity_preserves_limit_and_candidates`
  relaxed to allow the optional `low_confidence` key.

Fixes #4199

---
한국어 요약: AMBIGUOUS edge (LLM 추론, 신뢰도 ~0.35) 가 Leiden 모듈러리티로 독립
클러스터를 묶거나 Suggested Questions top-N 을 잠식하던 문제 수정. cluster() 에
ambiguous_scale 파라미터 (default 0.5, env override) 추가, 원본 그래프는 복사 후
수정하여 /graphify path/explain 영향 없음. suggest_questions 는 low_confidence
플래그만 추가하고 interleave contract (#3849) 유지. report.py 가 분리 렌더링.
regression test 11 개 신규 + 기존 1 개 relax.

(cherry picked from commit ff52a29266)
2026-10-08 14:27:06 +01:00
nothariharan 4cf3dfba06 fix(analyze): exclude contains-only AST declarations from knowledge gap detection (#4205)
(cherry picked from commit bf55b069f8)
2026-10-08 14:27:06 +01:00
Mahaboob pasha b583288e95 fix(php): parse PHP 8.5 (void) casts and casted match expressions (#4202)
Co-Authored-By: Grok Bot <noreply@x.ai>
(cherry picked from commit 43dbd7457c)
2026-10-08 14:27:06 +01:00