2948 Commits
Author SHA1 Message Date
safishamsiandClaude Opus 4.8 739f34d8ce chore: bump AST cache schema to 35 for the rust call-resolution and case-preserving cache fixes
#4944 resolves Rust module-qualified calls, #4945 links calls inside
expression-macro arguments, and #4937 keeps cache keys case-preserving
(which also shifts the POSIX salt digest for uppercase-bearing paths).
All three change cached output, so warm caches must re-run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 18:02:45 +00:00
Deepjyoti-Sarmah ff8ddf5458 fix(cache): open word-count files through os_long_path (#4925)
cached_word_count() had the same key-path-as-file-path mistake. Stat the raw long-path-safe file, key the index by the case-preserving identity, and pass the caller path to compute().

(cherry picked from commit 002d31e3d6)
2026-11-02 18:02:14 +00:00
Deepjyoti-Sarmah 99b8da78be fix(cache): open hashed files through os_long_path (#4925)
A cache key is not a file handle. Keep the raw caller path for is_file(), stat() and read_bytes(), and add the Windows long-path prefix only on that I/O path. The stat-index key comes from the normalized identity.

(cherry picked from commit 54e6ba2343)
2026-11-02 18:02:14 +00:00
Deepjyoti-Sarmah 5c4a858940 fix(cache): keep Windows cache keys case-preserving (#4925)
os.path.normcase lowercases a path on Windows, but case sensitivity belongs to the volume. A Windows process can reach a case-sensitive WSL share, where README.md and readme.md are two files. Normalize separators and strip the extended-length prefix, then keep the caller case in the key and salt.

(cherry picked from commit 78448a0405)
2026-11-02 18:02:14 +00:00
Deepjyoti-Sarmah 4d678b4ab9 test(cache): pin Windows case-sensitive path handling (#4925)
The regression needs Windows normalization and a case-sensitive filesystem. The fixture takes the win32 branch on a case-sensitive temp dir, then checks hashing, semantic cache round trips, case-variant siblings, aliases and the word-count stat index.

(cherry picked from commit bcd81af5b6)
2026-11-02 18:02:14 +00:00
nothariharan bce0d5624e fix(rust): scan only expression macros, and let a parsed call win the dedupe
Review follow-ups to the previous commit.

Any `name(...)` inside any macro was taken as a call, so DSL macros
(diesel `table!`, `quote!` with `#name(...)`, `html!`) produced calls the
code never makes. Scan only the std and log macros whose arguments are
plain expressions, and skip a name after `#`.

The in-file macro edge took the (caller, target) pair first, so a real
`compute(2)` later in the same function was deduped behind the INFERRED
token-pattern edge. Macro edges are now added after the function bodies
are walked, only for pairs no parsed call produced.

(cherry picked from commit f92f62e16f)
2026-11-02 18:02:14 +00:00
nothariharan fdb288fd5b fix(rust): link calls written inside macro arguments
Tree-sitter keeps a macro's arguments as a flat token tree, so
`println!("{}", f(x))`, `assert_eq!(f(), 1)` and `vec![f()]` had no
call_expression and the call produced no edge: `explain f` showed no
callers for a function used only inside formatting or assert macros.

Scan each macro invocation's token tree for an identifier followed by a
`(` group and treat it as a bare call. A name after `.` or `::`, a name
followed by `!`, uppercase names (constructors and variants) and the
builtin/trait-method blocklists are skipped. An in-file match is INFERRED,
since a token pattern is weaker evidence than a parsed call; anything else
goes to the cross-file pass like any other bare call. macro_rules! bodies
are macro_definition nodes and are not scanned.

(cherry picked from commit 309f9b1341)
2026-11-02 18:02:14 +00:00
nothariharan afb177911f fix(rust): keep module-path calls inside the caller's crate and out of local names
Review follow-ups on the rebased #2135.

- `crate::util::f()` stopped matching at `crate` without checking which
  crate the candidate is in, so in a workspace it bound to another crate's
  util.rs. A candidate must now share the caller's crate root (nearest
  Cargo.toml, else the directory above `src`).
- `crate::b::helper()` in a.rs went through the in-file bare-name lookup
  first and bound to a.rs's own helper. A module-path call binds in-file only
  for `self::f()` or an inline `mod m { .. }` declared in that file.
- Module names starting with `_` were rejected (`'_'.islower()` is False);
  only an UpperCamelCase segment means a type.
- Methods are skipped as candidates: a module path names a free function.

(cherry picked from commit ef748fd9f0)
2026-11-02 18:02:13 +00:00
Nicolas Cristobal 07f61e1bdd fix(rust): resolve module-qualified calls via qualifier-verified cross-file resolution
Unresolved scoped calls (module::function()) were dropped at extraction,
making the dominant idiomatic intra-crate call form invisible to the graph
(a real production caller showed 0 dependents while grep found it).

Keep the #908 bare-name guard, but stop discarding the qualifier — use it
as the verification key. The qualifier is verified right-to-left against
the candidate's file path: the last segment must BE the defining module
(<seg>.rs or <seg>/mod.rs), every remaining segment must match the
successive parent directory, stopping at crate/super/self. Candidates are
restricted to Rust sources, and a qualifier bound by a use from outside
the crate (use std::fs; fs::read()) is skipped at extraction via the
file's use roots. Exactly one survivor or bail. Uppercase qualifiers
(Type::method / Enum::Variant) keep their existing skipped behavior.
Emitted as EXTRACTED (confidence 1.0): the module is named explicitly in
source — the same reasoning as the qualified-class-method passes
(#1446/#1533). The verification lives in one shared helper
(rust_scoped_call_survivors) used by both cross-file passes, so scoped
entries can never reach bare-name resolution in either.

Real-world Rust crate (~200 files, 14k edges): +138 EXTRACTED,
-388 INFERRED (the #908 class shrinking), no regressions on
bare-name-called control symbols.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 9cb9d5824f)
2026-11-02 18:02:13 +00:00
azizur100389 3d772b9778 fix(watch): evict excluded linked-worktree source records
Refs #4912.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
(cherry picked from commit 237840b578)
2026-11-02 18:02:08 +00:00
AndresDiagoM 7750ba8cef fix(watch): don't wait forever when msvcrt.locking is unsupported
On Windows, _rebuild_lock treated every OSError from msvcrt.locking as
"another rebuild holds the lock". On a filesystem that cannot byte-range
lock at all (the WSL share \wsl.localhost raises EINVAL on every call),
the blocking `graphify update` CLI slept in a `while True` forever, and
the non-blocking git hooks queued their change and returned, with no lock
holder ever left to drain the queue.

Only EACCES/EDEADLK now count as contention. Any other errno is treated
as "locking unsupported": the rebuild proceeds without a lock and a
warning on stderr names the lock file. That path does not take over
.rebuild.lock (no PID write, no unlink on release), because a WSL-side
flock holder may own it and unlinking it would let a second WSL-side
caller in on a fresh inode (#4273). An empty lock file this call created
only to probe the lock is removed again before the rebuild.

Fixes #4924

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f91cc874d1)
2026-11-02 18:02:07 +00:00
Deepjyoti-Sarmah 93b7a9c1e3 feat(extract): a flagless extract that ingests docs clears the code-only scope (#4923)
Running `extract` without --code-only on a corpus with docs, past the API-key
check, is an explicit move back to a full graph, so the recorded scope is cleared.
An aborted run (no key) and a corpus with no docs leave it alone, so a plain
`extract` cannot silently drop the scope.

(cherry picked from commit e0b76cdac3)
2026-11-02 18:02:02 +00:00
Deepjyoti-Sarmah b80cd8384b fix(rebuild): include the code-only scope in the no-change skip key (#4923)
The #4740 gate skips a rebuild when inputs and build state match. The scope
changes what a rebuild writes, so it has to be part of that state; otherwise
flipping the scope with unchanged files would be skipped as "No relevant changes".

(cherry picked from commit bfb5b86b56)
2026-11-02 18:02:02 +00:00
Deepjyoti-Sarmah 2207cf2265 fix(rebuild): keep a --code-only graph code-only on hook/update/watch rebuilds (#4923)
_rebuild_code now reads the recorded scope and skips the .md/.mdx/.qmd AST
quick-scan for a code-only graph. Doc nodes already in the graph are left as they
are, matching how --code-only already treats the semantic layer (#2923). No new
parameter: the hooks, `graphify update` and `graphify watch` all go through
_rebuild_code, so every entry point is covered.

(cherry picked from commit 1ddd8f103b)
2026-11-02 18:02:02 +00:00
Deepjyoti-Sarmah 9e6f271ae9 feat(extract): record the --code-only scope in .graphify_build.json (#4923)
Persist `code_only` beside `excludes` and `gitignore` (the #1886/#1971 pattern)
so a later rebuild can tell a code-only graph from a full one. Nothing reads it
yet; this commit changes no rebuild behaviour.

test_explicit_exclude_replaces_persisted_setting_with_custom_out asserted the
whole file equals {"excludes": [...]} after a --code-only run; the file now also
carries code_only, so the expectation includes it.

(cherry picked from commit a504674847)
2026-11-02 18:02:02 +00:00
Deepjyoti-Sarmah f3421ff133 test(rebuild): pin that a --code-only graph stays code-only across rebuilds (#4923)
A graph built with `extract --code-only` grew .md/.mdx/.qmd nodes on the next
hook, `graphify update` or full rebuild, because the rebuild has no CLI flag and
nothing recorded the scope. These tests drive the real CLI and a real post-commit
hook and assert on the resulting graph only, with controls proving a rebuild still
tracks new and deleted code and that a default graph still gets doc nodes.

They fail on this commit by design; the following commits make them pass.

(cherry picked from commit 6ee4c59e22)
2026-11-02 18:02:02 +00:00
nothariharan f3cdf6b651 fix(llm): write a held sliced file in chunk order, not completion order
Review follow-up. With max_concurrency > 1, slices finish in any order, and
the held results were joined in that order, so the cached entry's node
order changed from run to run and a cache-served build churned graph.json
(the #1632 problem). Join them by chunk index.

(cherry picked from commit 299fc1a36f)
2026-11-02 18:02:01 +00:00
nothariharan f2ef7024fe fix(llm): cache a sliced file only once every slice has succeeded (#4943)
An oversized document is split into FileSlice units, and each slice's
checkpoint saved under the parent file with merge_existing=True. Nothing
recorded that sibling slices were still pending, so after the first slice
the parent had a complete-looking entry. A run interrupted at that point
served the head of the file as the whole file, and check_semantic_cache
reported nothing left to extract.

Hold a sliced parent's results in memory until its last slice returns, then
write them in one save. A whole file in the same chunk is still checkpointed
right away. A slice that raises leaves its parent unsaved, and the parent is
added to the result's _partial_files, so the caller's final save stamps it
partial instead of writing the other slices' nodes as the complete file.

Entries written by earlier interrupted runs still look complete; a semantic
cache prompt or schema bump would be needed to invalidate them.

(cherry picked from commit dad35d8143)
2026-11-02 18:02:01 +00:00
Andre Brait dea2e695bc fix(hook): drop the self-claimed exemption from the search nudge
The search nudge ended with 'Grep works best once the graph or an earlier
read has pointed to the exact file and lines.' An agent can claim the
'earlier read' half for any grep, including the first exploratory one, so
the nudge excused the very search it fires on. Say instead what each tool
is for: the graph finds where something lives, and grep finds exact text
in files the graph has already named.

(cherry picked from commit 757737f684)
2026-11-02 18:02:01 +00:00
Andre Brait 049c8647df fix(hook): leave sed/awk flag clusters, continued pipes and stdin programs quiet
Review follow-up: `sed -Ei`/`-ni` edit in place, a pipe continued on the
next line or written `|&` still feeds the next command, and an awk or sed
program with no file operand reads stdin. None of them searches the
codebase. Quoted spans become one placeholder word, so a quoted program
still counts as an operand.

(cherry picked from commit 5ce9bfb04b)
2026-11-02 18:02:00 +00:00
Andre Brait c6040bdbd3 fix(hook): count sed and awk run on files as searches
The Bash search guard matched grep, rg, find and friends, so an agent that
had already been nudged could keep searching with `sed -n 40,80p file` or
`awk '/x/' file` and never be nudged again. Run on files, those are a grep
or a read of the codebase by another name.

They count only when they open files themselves: on the receiving end of a
pipe they reshape another command's output, and `-i` edits in place, so
neither case fires.

(cherry picked from commit 227b76acd2)
2026-11-02 18:02:00 +00:00
safishamsiandClaude Opus 4.8 32e5efe935 chore: bump AST cache schema to 34 for the merged go/python extractor fixes
#4933 (python bare-call), #4931 (go method-value via field) and #4932 (go
var-init type refs) were merged on GitHub but each changes AST-cached
output and deferred its schema bump; one combined 33->34 bump so cached
Python/Go extractions re-run. #4929 (namespace packages) is a post-cache
pass and needs none. Opens the unreleased 0.9.101 changelog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 16:01:28 +00:00
Safi 96fa042152 Merge pull request #4932 from nothariharan/fix/go-package-var-type-references
fix(go): reference the types a package-level var initialiser names (#2360)
2026-11-01 16:00:28 +00:00
Safi 5f7d7e80ac Merge pull request #4931 from nothariharan/fix/go-field-method-value
fix(go): link a method value reached through a receiver field (#1566)
2026-11-01 16:00:24 +00:00
Safi 87fa551c57 Merge pull request #4933 from nothariharan/fix/python-bare-call-not-enclosing-method
fix(python): don't resolve a bare call in a method to a method
2026-11-01 16:00:20 +00:00
Safi 2fcbdc020d Merge pull request #4929 from nothariharan/fix/python-pep420-src-namespace
fix(python): resolve imports across PEP 420 namespace packages under src/
2026-11-01 16:00:16 +00:00
nothariharan 590c77d89c fix(go): reference the types a package-level var initialiser names (#2360)
#2360 walks a package-level `var` initialiser for calls owned by the file,
but the types named there were still dropped: `new(T)`, `new(*pkg.T)`, a
composite literal `pkg.T{}` / `&T{}`, and the declared `var x pkg.T`. A file
holding only a google/wire set, `wire.Bind(new(Iface), new(*Impl))`, then
referenced nothing and was reported as yielding no symbols.

The file now gets a `references` edge (context `variable_type`) to each such
type, collected with the same _go_collect_type_refs and ensure_named_node a
struct field uses, so `pkg.T` resolves through the import and an external
type is parked on its import path exactly as a field type is. A closure body
inside the initialiser is function code and is left alone.
2026-11-01 18:24:02 +05:30
nothariharan f3e50225ed fix(python): don't resolve a bare call in a method to a method
A bare `f()` in a Python method body reads locals, enclosing functions,
module globals, then builtins; methods are only reachable through
self/cls/the class. The call walk's bare-call fallback used the file-wide
label_to_nid map, which also holds method names, so a method calling an
imported or module-level function of its own name (`AsyncTemplate.get_build_status`
calling the imported `get_build_status`) got a false EXTRACTED self-loop.

When that fallback lands on a method and the call is not in the body of
that method's class, look the name up in a method-free map instead; with no in-file hit the call
goes to raw_calls and the cross-file resolver binds it through the import.
Module-function recursion and self/cls calls are unchanged.
2026-11-01 18:22:23 +05:30
nothariharan 6bb5913dac fix(go): link a method value reached through a receiver field (#1566)
61e864a7 records a method value passed as an argument (`routing.Wrap(s.Health)`)
as an indirect raw call, but only when its operand is a plain identifier. A
handler held as a field of the receiver, `m.UseMiddleware(hs.ContextHandler.Middleware)`,
has a selector operand, so it was skipped and the method got no edge.

The argument walk now also accepts `self.field.M` when `self` is the method's
own receiver, and records it the way the direct-call branch records
`self.field.M()`: the field as `member_receiver`, the receiver's type as
`field_owner`. _resolve_go_member_calls then types it through the caller's
table or the owner struct's fields in a sibling file (#3368) and emits the
INFERRED `indirect_call`. A field whose type is declared nowhere links and
parks nothing, as before.
2026-11-01 18:22:15 +05:30
nothariharan eaa4aba022 fix(python): resolve imports across PEP 420 namespace packages under src/
In a monorepo of namespace distributions (pkgsql/src/airflow/..., pkgpresto/src/airflow/...,
no __init__.py anywhere), the package-root pass skipped every file because it found no
initializer, so an absolute import across distributions dangled. The importing class lost
its base, its inherited self.method() calls were dropped, and imported functions fell back
to INFERRED name matches.

When no initializer is found, take the nearest src/ ancestor as the import root. Modules
directly under src/ and stdlib-named namespaces are left alone, and the existing guard still
leaves a module claimed by two src roots unresolved.
2026-11-01 17:15:08 +05:30
safishamsiandClaude Opus 4.8 f5155baddd chore: bump version to 0.9.100
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v0.9.100
2026-11-01 00:43:59 +00:00
safishamsiandClaude Opus 4.8 24f342adfe chore: bump AST cache schema to 33 (scala + terraform); changelog for the second 0.9.100 batch
#4856 (scala extension-method scoping) and #4861 (terraform portable ids)
change per-file AST output and are AST-cached, so one combined 32->33 bump.
Fixes the stale 'schema 30' in ARCHITECTURE.md that #4861 introduced. Adds
the 0.9.100 changelog for the second batch; #4794 landed Concern A only
(parallel-edge preservation); its TS tagged-template masking is held pending
a real failing fixture.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 00:29:31 +00:00
ensell-yes 1954192a8c fix: preserve graph relations and tagged templates
(cherry picked from commit 016d9d6ad1)
2026-11-01 00:28:31 +00:00
yUm1k4 50e812321f fix(terraform): discard scope metadata outside scan root (#4858)
(cherry picked from commit 88fe59718c)
2026-11-01 00:25:03 +00:00
yUm1k4 14d1f4d2bd fix(terraform): preserve cached IDs across project moves (#4858)
Co-Authored-By: OpenAI Codex <noreply@openai.com>
(cherry picked from commit 0335efb73f)
2026-11-01 00:25:03 +00:00
berce 20b002a518 fix(install): remove every platform's user skill on uninstall
(cherry picked from commit 253a6f2303)
2026-11-01 00:24:27 +00:00
safishamsiandClaude Opus 4.8 6667a491e8 fix(prompt): escape the backslash in the [^\\W] node-id rule (for #4799)
#4799's new wording put `[^\W]` in the non-raw _EXTRACTION_SYSTEM
string, which raises SyntaxWarning: invalid escape sequence '\W' (a
SyntaxError in a future Python). Escape it to `[^\\W]`; the rendered
runtime prompt is byte-identical (`[^\W]`) and the markdown fragments are
unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 00:23:31 +00:00
dupeisen 8dd649952c fix(prompt): describe the node-ID class ids.py actually produces
The extraction prompt told the model "Node ID format: lowercase, only
`[a-z0-9_]`", but `ids.normalize_id` keeps every word character after
casefolding, so a non-ASCII path keeps its letters:

    docs/tz/ЛЗ4_обоснование.md  ->  docs_tz_лз4_обоснование
    文档/中文名.md               ->  文档_中文名

Nothing can satisfy both halves of that instruction. For a non-ASCII path the
model improvised a stem — differently per chunk and per run — and
`_semantic_id_remap` had no canonical id to remap onto, so the AST node and the
semantic nodes for one file landed under different ids. #3103 reported this and
was closed without a fix; the wording is unchanged on v8 and lives in three
places, not one.

All three now state the rule the code implements: word characters only, which
is `[a-z0-9_]` for ASCII input while non-ASCII letters and digits are kept.
The ASCII half is unchanged, so no ASCII corpus produces different ids.

The rule text is in two skillgen fragments, so the committed skill artifacts are
regenerated with `python -m tools.skillgen` rather than edited by hand, per the
contributing guide. `tools/skillgen/expected/` is refreshed with `--bless`.
`--check` reports all 134 artifacts in sync.

Tests: tests/test_prompt_id_rule_matches_ids.py (5 tests) asserts that no prompt
surface claims ASCII-only ids, that `make_id` keeps Cyrillic and CJK, and that
ASCII input is still lowercased ASCII (the rule was not relaxed). The three
"no ASCII-only claim" assertions fail on unmodified v8; the two behaviour
assertions pass both ways, since `ids.py` was already correct — only the prompt
lied about it.

Fixes #4432

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit bf29da0292)
2026-11-01 00:22:31 +00:00
Divakant Pandey 8dff9e380c fix(scala): scope extension methods to their receiver type (#2044)
extension_definition has no name of its own, so the walk fell through to
the default recursion and every extension method became a file-level
function with no edge to the type it extends.

Handle it in _scala_extra_walk: take the receiver from the first
non-using parameter clause (head of a generic, last segment of a
qualified type; none for the extension's own type parameter) and walk
each body member under it. The receiver id comes from ensure_named_node,
so a same-file class keeps its one node and a type from another file gets
the sourceless stub the corpus rewire collapses onto its definition,
never a sourced duplicate (#1402). body is a repeated field, which is
why this doesn't go through the class branch.

The enum-case half of #2044 already landed in 35207e9b.

(cherry picked from commit e07794aa00)
2026-11-01 00:22:14 +00:00
akash kalita 611ea9e2dd test(llm): cover Claude prompt cache overrides and unsupported endpoints
Cover enabled, disabled, invalid, and unsupported caching scenarios in normal and deep modes. Isolate the override from ambient environment. Follow-up to Graphify-Labs/graphify#4855 and #4835.

Co-Authored-By: Codex <codex@openai.com>
(cherry picked from commit 1cb5830668)
2026-11-01 00:21:52 +00:00
akash kalita 1b35dc4c8e feat(llm): allow disabling Claude prompt caching
Build on Graphify-Labs/graphify#4855 for #4835. Preserve caching defaults, endpoint routing, and token accounting.

Co-Authored-By: Codex <codex@openai.com>
(cherry picked from commit 3e91ac2009)
2026-11-01 00:21:52 +00:00
akash kalita 40536ee77e docs(llm): document Claude prompt cache override
Follow-up to Graphify-Labs/graphify#4855 and #4835.

Co-Authored-By: Codex <codex@openai.com>
(cherry picked from commit 73779b8ccd)
2026-11-01 00:21:52 +00:00
Sfahad7 08af9b6aa8 docs: update language count and model backend wording in how-it-works
(cherry picked from commit ec03418b74)
2026-11-01 00:21:14 +00:00
dupeisen 35bf28a14f fix(affected): resolve the reference forms explain already accepts
`explain` resolves a `path::Symbol` reference (#3485) and a dotted Python name
(`pkg.mod.func`, #4366) to a single node. `affected` and `query --seed` answered
"No unique node match" for the very same string, so following the README's own
advice ("use the precise ID returned by the graph") forced a caller through
`explain` first merely to obtain an id.

`affected` also exited 0 on an ambiguous or unmatched seed, so a script could
not branch on the outcome the README documents (3 = ambiguous name, 4 = no
matching node) even though `explain` already follows it.

Both commands share `resolve_seed`, so the fix is one resolution path:

- `resolve_seed` now tries the qualified forms first, by delegating to the
  tiered matcher `explain` uses (`serve._find_node_tiers`). Only the two
  path-qualified forms are delegated: they carry their own disambiguating
  context, so a match is never a guess. A bare name keeps going through the
  existing tiers, where an exact-name tie must stay unresolved rather than be
  broken by graph-iteration order (test_resolve_seed_bare_name_tie_still_returns_none).
- New `resolve_seed_outcome` reports whether a failure was ambiguity or a miss,
  so the CLI can pick the documented exit code. The ambiguous case reuses
  `serve._ambiguity_message`, so the same name reads identically in `explain`
  and `affected`.
- `format_affected` takes an optional pre-resolved `seed`, so the CLI does not
  resolve the same query twice.

Tests: new tests/test_affected_seed_reference_forms.py (8 tests) covers both
resolved forms, the bare-name tie that must stay unresolved, and the three exit
codes. I verified the resolution assertions fail on unmodified v8. One existing
test asserted the old exit 0 for an unmatched absolute seed; its intent (#2706:
never resolve to a wrong node) is preserved and only the exit-code assertion
changed.

Fixes #4792

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 8537a59402)
2026-11-01 00:21:12 +00:00
Deepjyoti-Sarmah 992428e6d8 test(extract): drop unused helper from the #4874 fixture
(cherry picked from commit e360f14b8a)
2026-11-01 00:21:10 +00:00
Deepjyoti-Sarmah 5945b5a538 fix(extract): let JVM member calls bind across Java and Kotlin (#4874)
(cherry picked from commit cbb24a10bf)
2026-11-01 00:21:10 +00:00
Deepjyoti-Sarmah 128f08c3f4 test(extract): pin Kotlin member calls into Java (#4874)
(cherry picked from commit 986eb17c26)
2026-11-01 00:21:10 +00:00
Deepjyoti-Sarmah e4f02657f8 fix(extract): resolve Java/Kotlin imports through one JVM index (#4874)
(cherry picked from commit cc108a48c6)
2026-11-01 00:21:10 +00:00
Deepjyoti-Sarmah 4412039f53 test(extract): pin Java/Kotlin import and inheritance resolution (#4874)
(cherry picked from commit 4d0f82f95f)
2026-11-01 00:21:10 +00:00
Jason Daniel 0fff3d8e06 fix(llm): count cached prompt tokens in claude input_tokens (#4835)
With the system prompt cached, Anthropic reports those tokens in
cache_read_input_tokens and cache_creation_input_tokens, not in
input_tokens. _call_claude() read only input_tokens, so cost.json
under-counted every call by the whole system prompt (graphify review
on #4855).

Add both cache fields back into input_tokens, the same way the
claude-cli path already does. Token totals match what they were before
caching was turned on.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 2d4a579590)
2026-11-01 00:21:07 +00:00