100 Commits
Author SHA1 Message Date
safishamsiandClaude Opus 4.8 5eedffa874 chore(release): bump version to 0.9.105
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 16:49:51 +00:00
safishamsiandClaude Opus 4.8 4067e31a88 docs(changelog): add the export/build/llm/perf/skillgen/deps/markdown/csharp batch to 0.9.105
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 16:47:24 +00:00
safishamsiandClaude Opus 4.8 6021290cf2 chore(cache): combine the schema-42 bump for markdown (#4806) and csharp (#4849)
Both change per-file extractor output (Markdown bare free-function mention
citation; C# extension-method facts + primitive receiver typing) and land in one
release window, so they share a single bump to 42 chained over prior (41).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 16:46:54 +00:00
safishamsiandClaude Opus 4.8 130e072b8d fix(deps): raise the pypdf floor to 6.21.4 and refresh the lock (#5015)
Picks up the pypdf 6.21.3/6.21.4 security fixes in both the pdf and all extras.
Regenerated uv.lock on current v8 so the graphifyy self-entry reads 0.9.104 and
the pypdf bump lands on a clean lock (the PR's lock carried a stale self-version
from its fork). pdf extraction tests pass on 6.21.4.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 16:45:30 +00:00
safishamsiandClaude Opus 4.8 caa6a0783b fix(llm): keep .yaml/.yml out of the splittable-document set (#5078 follow-up)
The doc-bisect fix added .yaml/.yml to _SPLITTABLE_TEXT_SUFFIXES, but those are
code, not documents (reclassified document->code in #2214), and never reach the
semantic pass, so slicing them at prose boundaries is meaningless. Drop the two
suffixes and their test parametrization; the core truncation-bisect fix stands.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 16:45:05 +00:00
safishamsiandClaude Opus 4.8 177b35e6a5 chore(cache,query): combine the schema-41 bump and clarify the qualified-tail doc
Fold the Markdown mention change (#5093) into #5098's AST schema-41 comment with a
chained prior (40), since both change per-file extractor output and share one
release window. Correct the _qualified_tail docstring example (a dotted tail is
one token, not CamelCase-split) and note the CamelCase fallback only fires on
cased input the lowercased-norm_label callers never pass (#5095 tweak).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 14:21:57 +00:00
safishamsiandClaude Opus 4.8 98dc02b1a1 docs(changelog): open 0.9.105 for the watch/cpp/markdown/wiki/build/query batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 14:21:45 +00:00
safishamsiandClaude Opus 4.8 d51dce6164 fix(cpp): park a typed cross-repo local member call from the chain resolver (#5098 follow-up)
#5098's receiver-chain resolver dropped a single-element chain (`Greeter g;
g.greet()`) when the receiver's class is declared in no local file, where the
pre-chain path parked it by type name for the cross-repo merge to finish (#3152).
Restore that parking for a single-element chain with a known-but-local-absent
receiver type, so a typed local calling into another repo is parked, not lost.
Fixes test_cross_repo_member_calls[cpp-typed-local].

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-09 14:21:09 +00:00
safishamsiandClaude Opus 4.8 6c8002eca4 docs(changelog): cite the correct per-PR issues for the 0.9.104 robustness batch
The @azizur100389 cluster fixes #5016/#5017/#5018/#5019/#5020 (one each), not a
shared #5020, and the fresh-subfolder query fix references #2603. Correct the
thanks/issue refs and add the PR numbers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-08 00:50:14 +00:00
safishamsiandClaude Opus 4.8 433a57a002 test(install): allow the lean-core line budget for the #4762 per-block reads
The scan-path injection fix reads graphify-out/.graphify_root once per Python
block, so the lean claude core grew from ~795 to 807 lines. Raise the ceiling to
820 — still far under the ~1156-line pre-split monolith the guard exists to catch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 23:19:08 +00:00
safishamsiandClaude Opus 4.8 cb5106e861 chore(release): bump version to 0.9.104
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 23:13:24 +00:00
safishamsiandClaude Opus 4.8 c3d5305eb2 security(skill): read the scan root from .graphify_root, never substitute it (#4762)
The generated /graphify runbook substituted the agent-supplied scan path straight
into Python string literals across every code block: detect(Path('INPUT_PATH')),
extract(cache_root=Path('INPUT_PATH'), root=Path('INPUT_PATH')), the semantic
cache check/save, build_from_json/generate/diagnose, the manifest write, and the
--update detect_incremental + merge. A scan root whose NAME carried a single
quote or a $(...) / backtick broke out of the literal and ran as arbitrary code
the moment the block ran (e.g. a cloned repo with a subdirectory named
$(...) ). The shell transport was already hardened (#3642/#3844 write the path
to graphify-out/.graphify_root through a quoted heredoc); this extends the same
trust boundary to the Python blocks.

Each block now reads the resolved root from graphify-out/.graphify_root (the file
Step 1 writes) into an INPUT_PATH variable and passes the value, so the path is
always inert data, never code. The prose no longer tells the agent to substitute
a path. Applied to the assembled hosts (core.md, references/shared/update.md) and
to the Aider and Devin monoliths; a new _is_input_path_sidecar_fix_line sanctions
the monolith diff and --monolith-roundtrip / --check / --audit-coverage stay
green. A fast regression guard asserts no generated skill body carries a quoted
'INPUT_PATH' code literal.

SPEC_PATH (the skill's own extraction-spec install path, not attacker-controlled)
is left substituted and tracked as a follow-up.

Reported and first proposed by @danikdanik in #4762.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 23:13:09 +00:00
safishamsiandClaude Opus 4.8 1a6c252195 docs(changelog): add the extractor/watch/ingest/query/cli batch to 0.9.104
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 22:36:35 +00:00
safishamsiandClaude Opus 4.8 cd9634832c fix(cli): reject non-finite or negative provider pricing (#5031 follow-up)
The landed fix caught a non-numeric price but still accepted nan, inf and
negative values, which parse as floats and then flow into cost estimation as
NaN/inf/negative. Validate each --pricing-input/--pricing-output through
_valid_price (finite and >= 0) with the same clean error + exit(1), and test
that nan/inf/-inf/1e999/-5 are rejected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 22:36:00 +00:00
safishamsiandClaude Opus 4.8 6ee8e2258e fix(tree): align node-alias precedence with the graph build (#5030 follow-up)
tree_html.build_tree folded aliases in a different order (src first) than
build._fold_node_aliases (src last), so a node carrying two conflicting file
aliases could key on different paths in the viewer vs the built graph. Use the
same order and pop the consumed alias, as the build-side fold does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 22:36:00 +00:00
safishamsiandClaude Opus 4.8 2ce70ce17d fix(global): isolate a malformed repo entry instead of discarding all (#5020)
Follow-up to #5025. The landed guard raised on any non-dict repo value, so a
single malformed entry backed up the whole manifest and dropped every tracked
repo. Keep the whole-file backup only for an unrecoverable shape (non-dict root
or repos map); when repos is a dict, drop just the malformed entries, keep the
valid repos, and report which went. Matches the per-entry isolation of #5024.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 22:33:44 +00:00
safishamsiandClaude Opus 4.8 b81d8e51da docs(changelog): open 0.9.104 for the Solidity/C#/query/watch/cache batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 17:23:05 +00:00
safishamsiandClaude Opus 4.8 6271f3ed40 chore(cache): combine the batch into one AST schema bump to 40
#5058, #5060, #5062, #5054 and #5056 each change per-file Solidity or C#
extraction output and each bumped _AST_CACHE_SCHEMA to 40 on their own. Landed
together in one release window they share a single bump; this folds their
descriptions into one chained schema-40 comment over the prior 39 so a warm
cache re-runs the affected Solidity and C# extractions exactly once.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-07 17:22:22 +00:00
safishamsiandClaude Opus 4.8 16218bfc80 test(install): serialise the second wheel builder with an inline lock (#4603)
#4664 locked the test_wheel_packaging builder but not _build_wheel_names in
test_install_references, which also runs python -m build against the shared
build/ dir. Add an inline per-checkout flock (same mechanism) so two concurrent
runs on one checkout cannot collide; a cross-module import does not resolve
under pytest's import mode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-05 13:02:18 +00:00
safishamsiandClaude Opus 4.8 c051a96ff3 chore: bump AST cache schema to 39 for the markdown namespace/member mentions (#4695)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-05 12:16:47 +00:00
safishamsiandClaude Opus 4.8 79cfb37fe0 test(install): serialise the second wheel builder under the shared lock (#4603)
#4664 locked the test_wheel_packaging builder but not _build_wheel_names in
test_install_references, which also runs python -m build against the shared
build/ dir. Reuse the same _wheel_build_lock so two concurrent runs on one
checkout cannot collide.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-05 12:14:38 +00:00
safishamsiandClaude Opus 4.8 2b955d3b68 test: cold-start the stat index before every test (autouse)
#4801 made _rebuild_code's no-change gate read the process-wide stat index, so
across the full suite a warm index left by an earlier test (thousands of roots
hashed in one process) could serve a stale hash and make a rebuild skip
re-extraction - failing watch/reconcile tests nondeterministically depending on
ordering. Add an autouse conftest fixture that resets the stat index to its cold
init state before each test (#3989: cross-root callers in one process must use a
fresh process; a real update/extract always does). Product behavior unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-04 23:09:50 +00:00
safishamsiandClaude Opus 4.8 80b9a4caf4 chore: release 0.9.103 with the extractor, resolution, hooks and perf batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-04 20:51:08 +00:00
safishamsiandClaude Opus 4.8 d944c3f074 chore: combined AST cache schema 38 for the C#, Solidity and YAML extractor fixes
#5003 (C# preprocessor blanking), #5005/#5001 (Solidity library + emit/revert/
require linking) and #4995 (YAML << merge precedence) each change per-file
extractor output; fold them into one schema-38 entry so warm caches re-run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-04 20:50:20 +00:00
safishamsiandClaude Opus 4.8 92622867d1 fix(resolution): scope the #4994 collision match to the 6-hex salt shape
#4997's _collision_aware matched any alphanumeric id suffix, which also matches
a class member id (classid_methodname), so a type-annotated field following a
method had its reference stolen onto the method in TS/JS/C#. Restrict the
sibling match to the actual underscore-collision salt (a 6-char sha1 hex, per
_underscore_salted_nid) and add a method-then-field regression test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-04 20:48:30 +00:00
safishamsiandClaude Opus 4.8 59b5ab1151 fix(skillgen): use single-quoted encoding in the --update partial-list read
#4816's _partial line used escaped double quotes (encoding=\"utf-8\"), which
work in the bash-wrapped runbook but break test_update_manifest_preservation,
which execs the manifest block as raw Python. Match the single-quote style the
rest of the file already uses so the line is valid in both contexts, and
regenerate the skill artifacts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 22:34:27 +00:00
safishamsiandClaude Opus 4.8 e3d7877c9b chore: consolidate the unpublished work into the 0.9.102 release
Fold the hooks/perf/TypeScript and this query/skill/install/watch batch into
a single 0.9.102 CHANGELOG section (0.9.102 and 0.9.103 were never published),
and keep the version at 0.9.102.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 22:26:30 +00:00
safishamsiandClaude Opus 4.8 0696dfbf86 test(js): pin the actual external-require CJS/ESM asymmetry (#4688)
The PR's parity test asserted an external CJS require emits no calls/inherits
edge, matching ESM. On the current tree an external require binding is a real
local node that new/extends resolve to, while an external ESM default mints
none - a pre-existing asymmetry outside #4688's intra-project ./ require fix.
Pin the real behavior so a future change is deliberate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 22:23:45 +00:00
safishamsiandClaude Opus 4.8 b8ba9eb366 chore: release 0.9.103 with the hooks, perf and TypeScript batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 21:42:17 +00:00
safishamsiandClaude Opus 4.8 1c0d3d853c test(ts): replace the flaky timing assertion with an absolute backtracking bound (#4976)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 21:40:13 +00:00
safishamsiandClaude Opus 4.8 123da822a5 chore: release 0.9.102 with the go/kotlin/python/solidity/js, build-guard and perf batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 19:47:52 +00:00
safishamsiandClaude Opus 4.8 924be16018 chore: combined AST cache schema 37 for the solidity/python/kotlin/go extractor fixes
#4985, #4972, #4956 (#4935) and the Go cluster #4966/#4853/#4934 each change
per-file extractor output; fold them into one schema-37 entry (#4956 shipped
without its own bump) so warm caches re-run the affected extractions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 19:47:02 +00:00
safishamsiandClaude Opus 4.8 ddf0c08bc1 chore: translate #4967 comments to English and restore the default-export docstring
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 19:41:16 +00:00
safishamsiandClaude Opus 4.8 2460bab3b9 chore: translate the ignored-paths pruning comment to English (#4969)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-03 19:40:30 +00:00
safishamsiandClaude Opus 4.8 8e6a6d2129 docs: date the 0.9.101 changelog section
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 19:16:39 +00:00
safishamsiandClaude Opus 4.8 197db0140b docs: changelog for the build-guard, semantic-evidence and C++ extractor batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 19:08:43 +00:00
safishamsiandClaude Opus 4.8 0a4408b177 chore: bump AST cache schema to 36 for the C++ extractor fixes
#4951 (type-alias exact-spelling binding + salted alias contains edge),
#4946 (receiver typing from parameters and fields), #4920 (split-header
owner binding via _cpp_qualified), and #4921 (local-callable suppression)
all change per-file C++ extractor output, so warm caches must re-run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 19:08:04 +00:00
safishamsiandClaude Opus 4.8 cfd9846667 fix(build): narrow independent-evidence test to genuine provenance (#4896)
#4927's _has_independent_semantic_evidence counted metadata and captured_at
as evidence, but extract.py attaches both to ordinary INFERRED mention
ghosts, so those ghosts would stop folding into their AST file-self twin and
proliferate as duplicates on real graphs. Keep only rationale, source_url,
author and contributor. Add a regression test that a metadata-only ghost
still folds.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 19:04:58 +00:00
safishamsiandClaude Opus 4.8 2ab621790f test(cache): update order-independence salt test for case-preserving keys
#4937 made the file_hash salt case-preserving (dropped the .lower() on the
absolute-path fallback), but the existing order-independence test still
asserted the lowercased salt. Update its exp_abs to match the written-case
salt so it pins the new behavior instead of the retired one (#4925, #4937).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 18:10:44 +00:00
safishamsiandClaude Opus 4.8 cd1400f25f chore: release 0.9.101 with the hook, rust, llm, rebuild, watch and cache batch
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 18:03:31 +00:00
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
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
safishamsiandClaude Opus 4.8 f5155baddd chore: bump version to 0.9.100
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
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
safishamsiandClaude Opus 4.8 35bfdd6166 chore: extend schema 32 comment for R/elixir/dart/fortran; changelog for video + extractors
The four @ayushcodes10 extractor fixes (#4902 R, #4900 elixir, #4899 dart,
#4897 fortran) change per-file AST output and are AST-cached; they share
the global 31->32 bump already landed via #4908/#4895. Extend the comment
to credit them, and add the 0.9.100 changelog entries for #4842 and the four.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-31 23:50:43 +00:00
safishamsiandClaude Opus 4.8 6629497fd1 chore: relock after the av<19 cap (#4842)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-31 23:48:22 +00:00
safishamsiandClaude Opus 4.8 16f18aff33 chore: extend AST cache schema 32 comment for PHP const-refs; changelog for 0.9.100
#4908 (case-collision ids) carried the 31->32 bump; #4895 (PHP class-level
initializer const refs) also changes AST output and shares that global bump,
so extend the comment to credit it. Opens the unreleased 0.9.100 section.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-31 23:45:51 +00:00
safishamsiandClaude Opus 4.8 a0946f962a chore: bump version to 0.9.99
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 23:36:41 +00:00
safishamsiandClaude Opus 4.8 b2dfe474e2 docs(changelog): 0.9.99 - confidence_score in path/explain/neighbors (#4888)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 23:34:36 +00:00
safishamsiandClaude Opus 4.8 19b9e0fd6e test: reconcile confidence-score output tests with #4881/#4889 (for #4888)
#4888 was built on 0.9.97, before #4881 (path weakest-hop refactor),
#4889 (qualified C# method labels) and #4891 (also_seen) landed. Its
cherry-pick dropped the merge commit that reconciled expectations. Update
the per-hop confidence assertions to carry scores ([INFERRED 0.85]) and
the C# path/explain/neighbor labels to their owner-qualified form
(Exporter.Run, IReport.Build) - the correct composed output of all four
features. Resolved the serve.py conflict by keeping #4881's _path_weakest/
_path_confidence_line and adding only #4888's _confidence_tag, applied over
edge_evidence so parallel/also_seen evidence keeps its scores.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 23:34:21 +00:00
safishamsiandClaude Opus 4.8 f68ad40378 chore: bump AST cache schema to 31; changelog for the hari batch
Go (#4867/#4868/#4866) and Python (#4773) extractor changes alter
per-file AST output and are AST-cached, so one combined _AST_CACHE_SCHEMA
bump 30->31 forces stale caches to re-extract. Install (#4770/#4771) and
the skill reword (#4721) need no bump. Folded into the unreleased 0.9.99.
Each PR omitted its own bump / carried a stale number; the single combined
bump lands here.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 23:28:53 +00:00
safishamsiandClaude Opus 4.8 193c9f36b3 feat(path): report the weakest of several equal-length routes (#4881)
Second half of #4881. 'path'/shortest_path returned an arbitrary route
among equal-length shortest paths (nx.shortest_path), so the reported
confidence could reflect a strong route while a weaker route of the same
length existed. Among all shortest paths (bounded at 256 to avoid
exponential enumeration), choose the one whose weakest hop is weakest and
note it was the weakest of N equal-length routes, so the confidence never
overstates the connection.

Factors _path_weakest out of _path_confidence_line and adds
_path_hop_datas / _path_confidence_key / _weakest_shortest_path in
serve.py, used by both the CLI path command and the MCP tool. No cache
bump (path rendering is post-extraction).

Refs #4881. Idea/report by @SyedFahad7.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 23:06:18 +00:00
safishamsiandClaude Opus 4.8 26818d0857 chore: bump version to 0.9.98
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 22:51:05 +00:00
safishamsiandClaude Opus 4.8 7e7556f09e docs(changelog): 0.9.98 - second batch (file/decl ids, dedup, cycles, js imports, extractors, serve/export/pdf)
13 PRs folded into the unreleased 0.9.98; dups #4869/#4852/#4871 to close
at release. One combined _AST_CACHE_SCHEMA bump (29->30) covers the
output-changing extractors and the file/declaration id change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 22:47:13 +00:00
safishamsiandClaude Opus 4.8 e71d5ed63e fix(powershell): strip only a known module/assembly extension from a using name
Follow-up to #4847. Its fix stripped any trailing dotted segment, so a
dotted module name with no file extension (using module Az.Accounts)
resolved to 'az' (dropping .Accounts). Restrict the strip to real
module/assembly suffixes (.psm1/.psd1/.ps1/.dll/.exe) so file names like
Helpers.psm1 still resolve to 'helpers' while Az.Accounts keeps its full
name. Adds a regression test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 22:46:30 +00:00
safishamsiandClaude Opus 4.8 e56cdb56b0 docs(changelog): 0.9.98 - also_seen weaker evidence, csharp owner labels, path weakest-hop confidence, Type.Member path endpoints
Covers the SyedFahad7 batch: #4891 and #4889 merged on GitHub; #4892 and
#4893 landed via authorship-preserving cherry-pick (their CI matrix was
gated pending first-contributor approval, so brought in through the local
gate instead). Credit by GitHub PR-author login @SyedFahad7.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-30 22:31:50 +00:00
Safi 2daf6874ae Merge pull request #4889 from SyedFahad7/cursor/csharp-method-owner-labels-5c23
fix(csharp): label C# methods with their owning type (#4883)
2026-10-30 22:29:52 +00:00
Safi 3801e527f4 Merge pull request #4891 from SyedFahad7/fix/4881-keep-weaker-evidence
fix(build): keep a collapsed edge's weaker evidence in also_seen (#4881)
2026-10-30 22:29:49 +00:00
safishamsiandClaude Opus 4.8 0a8cd4e1e3 chore: bump version to 0.9.97
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 18:08:07 +00:00
safishamsiandClaude Opus 4.8 e97582681f chore: bump AST cache schema to 29; changelog for the second 0.9.97 batch
OCaml and-chained bindings (#4822) and SystemVerilog task methods (#4774)
change per-file AST output and are AST-cached, so one combined
_AST_CACHE_SCHEMA bump 28->29 forces stale caches to re-extract. The
other PRs in this batch (js, build, detect, resolution, report, wiki,
query) operate on JS-bypassed suffixes or post-extraction, so they need
no bump. Folded into the still-unreleased 0.9.97.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 18:01:39 +00:00
safishamsiandClaude Opus 4.8 ef51a3837a fix(wiki): unlink the stale twin on case-sensitive filesystems, don't rename over the fresh file
Follow-up to #4798. Its case-only-relabel sweep ran the two-step rename
unconditionally whenever the on-disk name differed from the produced name
by case. That is right on a case-INSENSITIVE filesystem (APFS, NTFS)
where the two are the same inode, but on a case-SENSITIVE filesystem
(ext4, most Linux CI and production hosts) the run already wrote the
correct content to a distinct file, so renaming the stale lower-case twin
over it silently restored the old body: no missing file, no dangling
link, just wrong content. #4508 never existed on case-sensitive hosts, so
the PR turned a non-bug into a silent corruption there.

Guard the rename with target.exists() and not target.samefile(old): a
distinct inode is a stale twin and is unlinked; the same inode takes the
rename. Adds a content-level regression test (the PR's existence/link
tests pass on both filesystems even with the bug, so they could not catch
this); it fails on a case-sensitive host without the guard.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 18:00:50 +00:00
safishamsiandClaude Opus 4.8 20dbabb47e chore: add anyio floor to the [all] extra too
The anyio>=4.14.2 security floor added to [mcp] must also appear in
[all], which is the union of every other extra (enforced by
test_all_extra_is_the_union_of_every_other_extra). Keeps [all]
installable with the same floor.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 17:33:05 +00:00
safishamsiandClaude Opus 4.8 d8764b4903 docs(changelog): 0.9.97 - security redaction + anyio floor, CommonMark markdown, yaml keys, razor/terraform/cobol/blade/pascal/vbnet/fortran extractor fixes, cli help
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 17:27:04 +00:00
safishamsiandClaude Opus 4.8 cc22523c03 chore: bump AST cache schema to 28 for the 0.9.97 batch; floor anyio
The 0.9.97 extractor batch changes per-file AST output for Markdown
(#4790/#4787), YAML (#4784), rationale redaction (#4647), Razor (#4820),
Terraform (#4819), COBOL (#4824), Blade (#4823), Pascal (#4825), VB.NET
(#4821) and Fortran (#4795). Those files are AST-cached, so one combined
_AST_CACHE_SCHEMA bump 27->28 forces stale caches to re-extract. Each PR
omitted its own bump by design, leaving the single combined bump to land
here.

Also floor anyio>=4.14.2 in the mcp extra, above CVE-2026-63374 (the
IDNA 2003/2008 hostname-validation bypass, CVSS 9.3). anyio is only
transitive today and the lock already resolves 4.15.1, but the direct
floor stops a future re-resolution from regressing below the fix. This is
why PR #4780 (a stale, conflicting lock-only rewrite) is not needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 17:26:16 +00:00
safishamsiandClaude Opus 4.8 a0cea18ddc fix(cli): show usage for a lone 'explain --help/-h' too
Follow-up to #4830, which fixed the same papercut for 'query'. 'explain'
is also a free-text command exempt from the generic --help intercept, so
'graphify explain --help' ran a literal node lookup for the string
'--help' ("No node matching '--help' found") instead of printing usage.
Intercept the exact standalone '--help'/'-h' the same way; a longer
target that merely contains '--help' as a substring still runs as a
lookup. Adds two regression tests mirroring the query ones.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 17:24:24 +00:00
safishamsiandClaude Opus 4.8 dac063456b fix(watch): fall back to Timer timeout when watch() runs off the main thread
#4724 wrapped each watch-loop rebuild in _rebuild_timeout(), which arms
SIGALRM. signal.signal() only works on the main thread and raises
ValueError('signal only works in main thread') anywhere else. watch()'s
dispatch loop is run in a worker thread both under test
(test_watch_handler_honors_graphifyignore, gh-928) and when embedded, so
that ValueError escaped the loop's 'except TimeoutError' guard and tore
the watcher down before _rebuild_code ran: a non-ignored .py write never
triggered a rebuild.

Gate the SIGALRM path on threading.current_thread() is main_thread();
off the main thread, use the existing signal-free Timer fallback, which
bounds the rebuild just the same. Adds a behavioral regression test that
runs _rebuild_timeout() off the main thread and asserts it yields without
raising.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-26 12:50:53 +00:00
safishamsiandClaude Opus 4.8 290b7f0b30 chore: bump version to 0.9.96
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-25 19:25:41 +00:00
safishamsiandClaude Opus 4.8 27bc17b5aa docs(changelog): 0.9.96 — add the 18-PR backlog batch (llm/extract/dedup/python/rust/vbnet/ts/js/watch/robot/perf)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-25 18:41:21 +00:00
safishamsiandClaude Opus 4.8 830de39f94 fix: schema 27 + adapt #4726 to _method_of + close #4748 false-skip
- Bump _AST_CACHE_SCHEMA 26 -> 27 for the VB.NET (#4725), Python injected-field
  (#4726), and Rust use-crate-scope (#4699) extraction-output changes; each PR
  shipped a stale 25->26 bump.
- #4726: its method-result block passed the list-valued method_index.get(...)
  straight to _emit_call, which silently dropped the edge since #4734 made
  method_index list-valued; route it through _method_of for the exact method.
- #4748: _inputs_unchanged now treats a scanned file with no manifest row as
  changed (unstamped_is_changed=True). A file whose extraction previously failed
  was otherwise skipped forever once fixed, shipping a stale graph; inverted the
  test that pinned the old behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-25 18:40:19 +00:00
safishamsiandClaude Opus 4.8 79fce4dd94 docs(changelog): 0.9.96 — add the llm/watch/prs/export/build/python/zig/dart fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-25 16:55:24 +00:00
safishamsiandClaude Opus 4.8 7b5036662a build(cache): bump schema to 26 for the Zig and Dart extraction changes (#4755, #4741)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-25 16:53:54 +00:00
safishamsiandClaude Opus 4.8 34b96bcb31 security(deps): raise pillow/pypdf floors and refresh the lock to patched transitive deps
Triage of the 87 open Dependabot advisories: the real user-reachable
exposure is pillow (image parsing on untrusted files; 4 critical + 22
high, fixed in 13.0.0) and pypdf (PDF DoS, fixed in 6.19.0). The rest are
transitive/dev-tree (pyjwt, virtualenv, certifi, urllib3, anyio, fsspec,
soupsieve, cryptography) and clear with a lock refresh.

- pillow >=13.0.0 on Python 3.11+, >=12.3.0 on 3.10 (Pillow 13 drops 3.10;
  no upstream fix exists for 3.10).
- pypdf >=6.16.1 -> >=6.19.0.
- uv lock --upgrade pulled patched transitive versions (pyjwt 2.15.1,
  cryptography 50.0.2, certifi 2026.10.23, urllib3 2.8.0, virtualenv
  21.14.13, anyio 4.15.1, fsspec 2026.9.0, soupsieve 3.0.4).

Full suite green (8725 passed, 1 pre-existing macOS-only failure).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 23:04:49 +01:00
safishamsiandClaude Opus 4.8 b111c5cea9 docs(changelog): fold the batch into the still-unreleased 0.9.95 (now 21 PRs)
0.9.95 was gated but never shipped, so the follow-on batch belongs in it,
not a separate 0.9.96. pyproject stays at 0.9.95.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 18:20:00 +01:00
safishamsiandClaude Opus 4.8 2a0cacb60c docs(changelog): open 0.9.96 with the install-security, type-alias, csharp-overload, tree, and other fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 18:16:39 +01:00
safishamsiandClaude Opus 4.8 18e52c4bb8 build(cache): bump schema to 25 for the type-alias, C# overload, and package.json-link extraction changes
Covers #4578/#4579/#4580/#4581 (Python/Go/C++/Rust aliases + Rust union),
#4591 (#4584, C# overload nodes), and #4572 (#4569, package.json dep link).
Each PR shipped a stale 20->21 bump against an older base; this is the single
reconciled bump on top of HEAD's 24.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 18:15:41 +01:00
safishamsiandClaude Opus 4.8 53d3d80346 fix(deps): declare pyyaml as a base dependency
The 0.9.95 YAML structural extractor (#4706) imports PyYAML, but it was
only a transitive dependency, so a fresh `pip install graphifyy` produced
zero nodes from .yaml/.yml files (the extractor degrades gracefully but
silently). manifest_ingest and markdown also use it via guarded imports.
Declare it like tree-sitter-json so the feature works out of the box.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 16:16:07 +01:00
safishamsiandClaude Opus 4.8 ae2b453b7d chore: bump version to 0.9.95
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 16:14:52 +01:00
safishamsiandClaude Opus 4.8 4f99094579 docs(changelog): 0.9.95 — add the security, affected, build, cross-repo, hooks, objc, and sql fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 16:13:31 +01:00
safishamsiandClaude Opus 4.8 3b213769f0 fix: bump cache schema to 24 (#4705, #4677), clean recovered SQL labels, add security tests
- Bump _AST_CACHE_SCHEMA 23 -> 24: #4705 (ObjC NS_CLOSED_ENUM) and #4677 (SQL
  CREATE TABLE ERROR-node recovery) both change extraction output, and neither
  PR included the bump, so a warm ObjC/SQL cache would serve stale results.
- #4677: display the recovered table label through _clean_ident (consistent
  with the routine/trigger recoveries) while keeping the id keyed off the raw
  name so FK edges still resolve to it.
- Add regression tests the #4708/#4709/#4710 security PRs shipped without
  (multicast/unspecified SSRF block, Obsidian tag injection, Google shortcut
  frontmatter escaping).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 16:12:55 +01:00
safishamsiandClaude Opus 4.8 d67b5a0faf docs(changelog): 0.9.95 — add the YAML structural extraction feature (#4706)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 15:55:13 +01:00
safishamsiandClaude Opus 4.8 1834b3e703 fix(yaml): handle multi-document streams, gate data YAML, bump cache schema (#4706)
Three fixes on top of #4706's YAML extractor:
- Multi-document YAML (`---` separators) returned zero nodes because it used
  yaml.safe_load, which accepts only one document; k8s manifests, Helm output,
  and CI pipelines (the headline use cases) were silently empty. Use
  safe_load_all and give each document a distinct node (labelled by kind+name
  for k8s) so two docs in one file do not merge their keys.
- Add a _is_config_yaml gate mirroring extract_json's _is_config_json: a
  top-level data array, an OpenAPI/Swagger spec, a JSON-schema-in-YAML, and a
  flat all-scalar bundle (i18n) are skipped as data instead of minting up to
  500 orphan nodes. A mapping with any nested value, a recognized config name,
  or a .github/workflows path is still walked.
- Bump _AST_CACHE_SCHEMA 22 -> 23 (the PR reclassifies .yaml/.yml and adds a
  new extractor, so cached YAML must re-extract).
- Tests: multi-doc, data/OpenAPI/array skip, the safe_load ACE guard, and caps.
- Clearer missing-PyYAML hint (pip install pyyaml).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 15:54:58 +01:00
safishamsiandClaude Opus 4.8 d4f3cf7f51 docs(changelog): open 0.9.95 with the module-import over-promotion fix (#4707)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-23 15:39:02 +01:00
safishamsiandClaude Opus 4.8 c588b72d93 chore: bump version to 0.9.94
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-22 17:06:40 +01:00
safishamsiandClaude Opus 4.8 c3dad319ee docs(changelog): 0.9.94 — add the SQL, markdown, mcp, cross-repo, and ObjC fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-22 13:50:44 +01:00
safishamsiandClaude Opus 4.8 7a0b031088 docs(serve): correct _resolve_single_node docstring to name explain (#4618)
The landed docstring listed only the get_node/get_neighbors MCP tools,
but the CLI `explain` command also routes node lookup through this
resolver (cli.py), so a substring-only near-miss now refuses there too.
Name explain in the docstring so the shared surface is accurate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-22 13:47:19 +01:00
safishamsiandClaude Opus 4.8 b19eefa8f0 docs(changelog): 0.9.94 — add the ObjC-id, hook-quoting, IPv6, ingest-symlink, and --help fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-22 13:17:22 +01:00
safishamsiandClaude Opus 4.8 de35292406 fix(cli): derive the --help platform list from _PLATFORM_CONFIG + add a drift guard (#4655)
#4655 added amp/copilot/kilo/kimi to the hand-maintained --help install
line but still omitted antigravity-windows, so it disagreed with
_print_install_usage. Derive the list from the same
[*_PLATFORM_CONFIG, "gemini", "cursor"] expression the install usage
uses so the two cannot drift, and add test_help_lists_every_install_platform
to catch any future platform that is not advertised.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-22 13:16:25 +01:00
safishamsiandClaude Opus 4.8 c7f16f9426 docs(changelog): open 0.9.94 with the URL-security and extraction fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-21 19:35:13 +01:00
safishamsiandClaude Opus 4.8 0e7cf1ec4b fix(js): narrow the require-binding guard to literal require callees (#4634)
#4634 suppressed the module-scope node for a require binding so it no
longer shadows the required class. But its guard used
_find_require_call(value), which matches ANY identifier(...) call, so it
also dropped real `const x = factory()` nodes (e.g. express(), NextAuth(),
wrapper()) and regressed #2604/#2552 (10 test failures). Add
_js_value_is_require, which name-checks the callee is literally `require`
the same way _require_imports_js already does, and gate the binding on it.

Bump _AST_CACHE_SCHEMA 20 -> 21: the require-binding change alters
extraction output (drops the shadow node, redirects the calls edge).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-21 19:34:27 +01:00
safishamsiandClaude Opus 4.8 b90b9df794 test: account for #3987 Step B3.5 block in the B3-merge skill tests
The partial-read coverage check (#3987) adds a python block between the
Step B3 merge and Part C. Two skill-path tests that landed separately in
the 0.9.9x skill work hard-code the block count in that range (3) and
then execute every block in it. Bump the expected count to 4; the
behavioral assertions (token sums, merged node sets, stale-chunk
clearing) still hold because B3.5 only writes an empty
.graphify_partial.txt on the all-cached and codex-merge paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-20 16:56:09 +01:00
safishamsiandClaude Opus 4.8 5942ff8281 chore: bump version to 0.9.93
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-20 15:56:54 +01:00
safishamsiandClaude Opus 4.8 2f4d9af25d docs(changelog): 0.9.93 — add the skill partial-read recovery (#3987)
Land #3987 (@nothariharan, reported by @Ryanm218): on the skill
extraction path a long file a subagent only skimmed was cached as
complete and its unread tail silently dropped on the next replace-on-
re-extract. The chunk coverage self-report is now checked against each
file's real line count; a short file is cached partial and left
unstamped so --update retries it, reusing the library's existing
partial_source_files contract (#933, #1950).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-20 15:43:03 +01:00
safishamsiandClaude Opus 4.8 b667aa9aa1 docs(changelog): 0.9.93 — add the query ambiguity-refusal fix (#4517)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-20 14:57:31 +01:00
56a0329b31 fix(query): only refuse an EXACT-name ambiguity, not a search keyword (#4517)
The ambiguous-name refusal added in #4517 routed through _resolve_single_node,
whose winning tier can be a prefix or substring match, so a bare search keyword
that merely substring-matched several labels was wrongly refused: `query "client"`
returned EXIT 3 because it is a substring of `AlphaClient`/`BetaClient`. That
narrowed query's keyword-search semantics.

Adds _query_name_refusal, which refuses only when the term EXACTLY names several
nodes (the source_exact/exact tiers) -- #4511's `.nonce()` case -- and otherwise
falls through to scoring. The `query` and `--seed` paths use it; explain/path/
get_node keep _resolve_single_node, whose prefix/substring tiers are correct for a
direct node lookup. Adds a regression test that a substring keyword still searches.

Co-Authored-By: shivampal46011 <shivampal46011@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-20 14:57:06 +01:00
safishamsiandClaude Opus 4.8 8379689697 docs(changelog): 0.9.93 — five more community fixes (detect, markdown, cli, serve)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-20 11:33:26 +01:00