Repository navigation
Conversation
There was a problem hiding this comment.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR introduces a cross-platform filesystem path adapter (in graphify.paths) and routes I/O operations throughout the codebase—build.py, cache.py, and various extractors, detection, watch, LLM, and security modules—through helper functions like resolve_path, read_text, path_exists, and io_path. The stated intent is to let Windows scans handle deeply nested local/UNC paths that exceed the legacy MAX_PATH limit by using extended-length paths at the I/O boundary while keeping ordinary paths in graph IDs, manifests, and cache keys. It also adds a new platform-paths CI job that runs a set of path-related tests across Ubuntu, macOS, and Windows, and adds an "Unreleased" entry to the CHANGELOG describing the change. The surface area is broad but mostly mechanical: swapping direct Path/os calls for the shared adapter wrappers across many files.
No blocking issues surfaced. 4 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4345 functions depend on the 1683 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 353 callers, 30 callees - worse:
_rebuild_code()— 55 callers, 57 callees - worse:
build_from_json()— 138 callers, 14 callees - worse:
detect()— 82 callers, 16 callees - worse:
load_cached()— 39 callers, 8 callees - worse:
extract_bash()— 34 callers, 9 callees - worse:
_extract_generic()— 18 callers, 16 callees - worse:
file_hash()— 39 callers, 7 callees - …and 112 more
Verification — 4345 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4284 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 86 more finding(s) on lines outside this diff (see the check run); 14 additional anchorable finding(s) not shown (cap).
| @@ -931,38 +952,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return paths | ||
|
|
||
|
|
||
| def introspect_cargo(root: str | Path) -> dict[str, Any]: |
There was a problem hiding this comment.
introspect_cargo()
11 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 16 callees (efferent coupling); 82 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.paths import read_bytes as _read_file_bytes | ||
|
|
||
|
|
||
| def extract_julia(path: Path) -> dict: |
There was a problem hiding this comment.
extract_julia()
16 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -51,9 +52,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
…h 0932] Removed GRAPHIFY_OUT_NAME constant and updated related logic to prevent treating the default output directory as source input. Added coverage artifact detection functionality.
…ith 0932] Refactor _git_head function to accept cwd parameter for better repo context. Update comments and logic to improve clarity on graph extraction and node preservation.
There was a problem hiding this comment.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR introduces a cross-platform filesystem path adapter (in graphify.paths) and threads its helpers (resolve_path, read_text, path_exists, io_path, logical_path, etc.) through build.py, cache.py, and the various language extractors, Google Workspace, and cargo-introspection modules, replacing direct Path/os filesystem calls. The stated intent is to let Windows scans handle deeply nested local and UNC paths that exceed the legacy MAX_PATH limit by using extended-length paths at I/O boundaries while keeping ordinary paths in graph IDs, manifests, and diagnostics. It also adds a new CI job matrix (Ubuntu/macOS/Windows) exercising long-path and related tests, plus a CHANGELOG entry. Surface area spans many extractor modules and rationale comment blocks in addition to the core build.py/cache.py changes and workflow/config files.
No blocking issues surfaced. 4 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4347 functions depend on the 1685 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 353 callers, 30 callees - worse:
_rebuild_code()— 55 callers, 57 callees - worse:
build_from_json()— 138 callers, 14 callees - worse:
detect()— 82 callers, 16 callees - worse:
load_cached()— 39 callers, 8 callees - worse:
extract_bash()— 34 callers, 9 callees - worse:
_extract_generic()— 18 callers, 16 callees - worse:
file_hash()— 39 callers, 7 callees - …and 112 more
Verification — 4347 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4286 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 86 more finding(s) on lines outside this diff (see the check run); 14 additional anchorable finding(s) not shown (cap).
| @@ -931,38 +952,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return paths | ||
|
|
||
|
|
||
| def introspect_cargo(root: str | Path) -> dict[str, Any]: |
There was a problem hiding this comment.
introspect_cargo()
11 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 16 callees (efferent coupling); 82 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.paths import read_bytes as _read_file_bytes | ||
|
|
||
|
|
||
| def extract_julia(path: Path) -> dict: |
There was a problem hiding this comment.
extract_julia()
16 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -51,9 +52,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR introduces a cross-platform filesystem path adapter (in graphify.paths) to handle Windows extended-length paths, wiring helper functions like resolve_path, path_exists, read_text, io_path, make_dirs, and others through call sites in build.py, cache.py, and across many extractors, watch, CLI, and LLM modules. The intent is to use extended-length paths only at the I/O boundary while keeping ordinary paths in graph IDs, manifests, cache keys, and diagnostics. It also adds a new platform-paths CI matrix job running path-related tests on Ubuntu/macOS/Windows and a corresponding changelog entry. The surface area is broad—touching path handling in build/merge logic, cache stat-indexing and cleanup, and numerous extractor and resolution modules—but the changes appear to be mechanical substitutions swapping direct Path/os filesystem calls for the shared adapter helpers.
No blocking issues surfaced. 3 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4347 functions depend on the 1685 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 353 callers, 30 callees - worse:
_rebuild_code()— 55 callers, 57 callees - worse:
build_from_json()— 138 callers, 14 callees - worse:
detect()— 82 callers, 16 callees - worse:
load_cached()— 39 callers, 8 callees - worse:
extract_bash()— 34 callers, 9 callees - worse:
_extract_generic()— 18 callers, 16 callees - worse:
file_hash()— 39 callers, 7 callees - …and 112 more
Verification — 4347 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4286 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 88 more finding(s) on lines outside this diff (see the check run); 12 additional anchorable finding(s) not shown (cap).
| @@ -931,38 +952,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return paths | ||
|
|
||
|
|
||
| def introspect_cargo(root: str | Path) -> dict[str, Any]: |
There was a problem hiding this comment.
introspect_cargo()
11 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 16 callees (efferent coupling); 82 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -51,9 +52,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return Path(logical_path(os.path.realpath(io_path(path)))) | ||
|
|
||
|
|
||
| def path_exists(path: PathLike) -> bool: |
There was a problem hiding this comment.
path_exists()
47 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return os.path.exists(io_path(path)) | ||
|
|
||
|
|
||
| def path_is_file(path: PathLike) -> bool: |
There was a problem hiding this comment.
path_is_file()
43 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR introduces a cross-platform filesystem path adapter (via graphify.paths helpers like _resolve_path, _read_text, _path_exists, _io_path, etc.) and routes build.py, cache.py, and other modules through it so that OS-level I/O uses extended-length paths on Windows while logical paths (graph IDs, manifests, cache keys) stay ordinary. It also adds a new platform-paths CI job running path-related tests across Ubuntu, macOS, and Windows, along with new/updated tests and a changelog entry describing the Windows long-path (MAX_PATH/UNC) fix. The surface area spans path handling across build, caching, extractors, detection, LLM helpers, and security modules, plus CI workflow and documentation changes.
No blocking issues surfaced. 3 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4421 functions depend on the 1696 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 361 callers, 31 callees - worse:
_rebuild_code()— 68 callers, 58 callees - worse:
build_from_json()— 142 callers, 15 callees - worse:
detect()— 84 callers, 16 callees - worse:
load_cached()— 39 callers, 8 callees - worse:
extract_bash()— 34 callers, 9 callees - worse:
build_merge()— 29 callers, 10 callees - worse:
_extract_generic()— 18 callers, 16 callees - …and 113 more
Verification — 4421 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4360 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 87 more finding(s) on lines outside this diff (see the check run); 14 additional anchorable finding(s) not shown (cap).
| @@ -931,38 +952,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return paths | ||
|
|
||
|
|
||
| def introspect_cargo(root: str | Path) -> dict[str, Any]: |
There was a problem hiding this comment.
introspect_cargo()
11 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 16 callees (efferent coupling); 84 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.paths import read_bytes as _read_file_bytes | ||
|
|
||
|
|
||
| def extract_julia(path: Path) -> dict: |
There was a problem hiding this comment.
extract_julia()
16 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -51,9 +52,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR introduces a cross-platform filesystem path adapter (in graphify.paths) and threads its helpers (resolve_path, path_exists, read_text, io_path, etc.) through modules including build.py, cache.py, and the various extractors, so that extended-length paths are used only at the I/O boundary while logical paths remain in graph IDs, manifests, cache keys, and diagnostics. It adds a new platform-paths CI job running a set of path/hashing/atomic-write tests across Ubuntu, macOS, and Windows, plus a new tests/test_windows_long_paths.py. Changelog entries are added describing the Windows long-path handling change. The surface area is broad, touching path handling across build, caching, symbol resolution, extraction, and many language/tooling extractors.
No blocking issues surfaced. 3 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4460 functions depend on the 1700 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 60 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 21 callees - worse:
build_merge()— 29 callers, 13 callees - …and 103 more
Verification — 4460 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4399 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 86 more finding(s) on lines outside this diff (see the check run); 5 additional anchorable finding(s) not shown (cap).
| @@ -931,38 +952,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling); 84 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return _nfc(str(_resolve_path(root) / p)) | ||
|
|
||
|
|
||
| def load_manifest( |
There was a problem hiding this comment.
load_manifest()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -31,31 +42,31 @@ | |||
| def _resolve_js_import_path(candidate: Path) -> Path: | |||
There was a problem hiding this comment.
_resolve_js_import_path()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -51,9 +52,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This pull request bumps the project to an in-progress 0.9.40 release, adding a large set of CHANGELOG entries documenting fixes across many areas (Windows long-path handling, TypeScript/Kotlin/Go/Python/Objective-C extraction, dedup, watch, and more). The primary functional change appears centered on cross-platform filesystem path handling, particularly Windows extended-length path support, touching path adapters, hashing, caching, ID normalization, and various extractors. It also adds a new platform-paths CI job that runs a subset of path- and filesystem-related tests across Ubuntu, macOS, and Windows. The changed symbols span a wide surface area including path utilities, dedup logic, extractors for multiple languages, security/IP checks, and CLI environment handling.
No blocking issues surfaced.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 5148 functions depend on the 2396 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 58 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
deduplicate_entities()— 51 callers, 18 callees - worse:
_extract_generic()— 35 callers, 21 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 35 callers, 14 callees - …and 159 more
Verification — 5148 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 5082 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 129 more finding(s) on lines outside this diff (see the check run); 18 additional anchorable finding(s) not shown (cap).
| items = enumerate(obj) | ||
| else: | ||
| return | ||
| for key, value in list(items): |
There was a problem hiding this comment.
convert_office_file()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| except Exception: | ||
| try: | ||
| os.close(fd) | ||
| except OSError: |
There was a problem hiding this comment.
_git_info_exclude()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| d = base / kind | ||
| if _path_is_dir(d): | ||
| for f in _glob_paths(d, "**/*.json"): | ||
| _unlink_path(f) |
There was a problem hiding this comment.
_load_dir_own_ignore()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| The sweep recurses into the per-prompt-fingerprint subdirs (#1939) for the | ||
| same reason it covers the deep namespace: a glob that stopped at the top | ||
| level would leave every fingerprinted entry permanently unprunable. Entries | ||
| under a fingerprint other than the current one are pruned by liveness only, |
There was a problem hiding this comment.
_load_graphifyignore()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| def group_skipped(fpath: str) -> bool: | ||
| """Mirror the write-loop skip condition for one source_file group.""" | ||
| p = resolved_source_path(fpath) | ||
| return not _path_is_file(p) or ( |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -275,7 +283,7 @@ def _read_dmi_description(data: bytes) -> str: | |||
| def extract_dmi(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmi()
6 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -364,9 +372,9 @@ def _dmm_type_path(entry: str) -> str: | |||
| def extract_dmm(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmm()
8 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -436,7 +444,7 @@ def extract_dmm(path: Path) -> dict: | |||
| def extract_dmf(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmf()
8 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return path.read_bytes() | ||
| return _read_file_bytes(path) | ||
|
|
||
| def extract_fortran(path: Path) -> dict: |
There was a problem hiding this comment.
extract_fortran()
fans out to 8 callees (efferent coupling); 16 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.paths import read_bytes as _read_file_bytes | ||
|
|
||
|
|
||
| def extract_julia(path: Path) -> dict: |
There was a problem hiding this comment.
extract_julia()
fans out to 8 callees (efferent coupling); 17 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Formal verification. 1 change(s) tested, no difference found (not proven).
Graphify review — findings
This pull request adds a new platform-paths CI job that runs a set of filesystem and path-related test files across Ubuntu, macOS, and Windows runners, with the stated intent of exercising logical and extended (long) path boundaries on each supported OS. Alongside the workflow change, it touches a broad set of symbols across the graphify extractors, path resolution, caching, dedup, and CLI modules. The CHANGELOG is also heavily rewritten. Note: the diff was truncated in the review prompt, so I can only see the CI workflow and the start of the CHANGELOG changes in detail; the ~40 changed symbols listed suggest wider surface area in the extractor/path/cache/dedup/CLI code that isn't visible here.
No blocking issues surfaced.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 5081 functions depend on the 2329 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 58 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
deduplicate_entities()— 53 callers, 18 callees - worse:
_extract_generic()— 35 callers, 21 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 35 callers, 14 callees - …and 162 more
Verification — 5081 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 5015 function(s) in the blast radius were not formally verified this run
Formal verification
Could not verify: Could not verify \_abs\_identity.
The verifier did not have enough to check \_abs\_identity, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: the input domain has 100 values but only 10 distinct were tested — a small finite domain must be EXHAUSTED, not sampled (an untested input could invert the result)
Could not verify: Could not verify \_infer\_merge\_root.
The verifier did not have enough to check \_infer\_merge\_root, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_load\_existing\_graph.
The verifier did not have enough to check \_load\_existing\_graph, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_norm\_source\_file.
The verifier did not have enough to check \_norm\_source\_file, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: the input domain has 100 values but only 10 distinct were tested — a small finite domain must be EXHAUSTED, not sampled (an untested input could invert the result)
Could not verify: Could not verify build\_from\_json.
The verifier did not have enough to check build\_from\_json, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 5 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly NameError — names the real obstacle, not a sampling gap)
Could not verify: Could not verify build\_merge.
The verifier did not have enough to check build\_merge, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `str | Path | None` — outside the synthesizable primitive/collection set
Could not verify: Could not verify merge\_raw\_extraction.
The verifier did not have enough to check merge\_raw\_extraction, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `str | Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_absolutize\_source\_files\_in.
The verifier did not have enough to check \_absolutize\_source\_files\_in, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_cleanup\_stale\_ast\_entries.
The verifier did not have enough to check \_cleanup\_stale\_ast\_entries, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `ast_base` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_ensure\_stat\_index.
The verifier did not have enough to check \_ensure\_stat\_index, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
No difference found (not proven): No behavior difference found in \_flush\_stat\_index (not a proof).
The verifier ran both versions of \_flush\_stat\_index on many inputs and saw identical behavior every time. Strong evidence the change is safe, but evidence, not a proof.
Guarantee: Empirical: differential testing (both versions run on many generated inputs). A divergence on an untested input remains possible, so this is 'no counterexample found', not 'proven equivalent'.
Note: An input the sampler did not try could still differ.
Could not verify: Could not verify \_normalize\_path.
The verifier did not have enough to check \_normalize\_path, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_portability\_anchors.
The verifier did not have enough to check \_portability\_anchors, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `'str | Path'` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_relativize\_source\_files\_in.
The verifier did not have enough to check \_relativize\_source\_files\_in, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_resolve\_prompt\_fp.
The verifier did not have enough to check \_resolve\_prompt\_fp, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `prompt` is annotated `'str | Path | None'` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_stat\_index\_file.
The verifier did not have enough to check \_stat\_index\_file, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify cache\_dir.
The verifier did not have enough to check cache\_dir, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify cached\_files.
The verifier did not have enough to check cached\_files, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify cached\_word\_count.
The verifier did not have enough to check cached\_word\_count, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify clear\_cache.
The verifier did not have enough to check clear\_cache, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify file\_hash.
The verifier did not have enough to check file\_hash, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify load\_cached.
The verifier did not have enough to check load\_cached, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify prompt\_fingerprint.
The verifier did not have enough to check prompt\_fingerprint, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `prompt` is annotated `'str | Path'` — outside the synthesizable primitive/collection set
Could not verify: Could not verify prune\_semantic\_cache.
The verifier did not have enough to check prune\_semantic\_cache, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify save\_cached.
The verifier did not have enough to check save\_cached, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
· 20 grounded finding(s) anchored inline below; 128 more finding(s) on lines outside this diff (see the check run); 22 additional anchorable finding(s) not shown (cap).
| return base / "cache" / "stat-index.json" | ||
|
|
||
|
|
||
| def _ensure_stat_index(root: Path, cache_root: "Path | None" = None) -> None: |
There was a problem hiding this comment.
_ensure_stat_index()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return Path(os.path.normcase(s)) | ||
|
|
||
|
|
||
| def file_hash(path: Path, root: Path = Path("."), cache_root: "Path | None" = None) -> str: |
There was a problem hiding this comment.
file_hash()
fans out to 10 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return digest | ||
|
|
||
|
|
||
| def cached_word_count(path: Path, root: Path, compute, cache_root: "Path | None" = None) -> int: |
There was a problem hiding this comment.
cached_word_count()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return d | ||
|
|
||
|
|
||
| def load_cached(path: Path, root: Path = Path("."), kind: str = "ast", |
There was a problem hiding this comment.
load_cached()
fans out to 8 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return None | ||
|
|
||
|
|
||
| def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "ast", |
There was a problem hiding this comment.
save_cached()
fans out to 8 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling); 84 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return _nfc(str(_resolve_path(root) / p)) | ||
|
|
||
|
|
||
| def load_manifest( |
There was a problem hiding this comment.
load_manifest()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -122,7 +127,7 @@ def _tuple_arity_from_annotation(line: str) -> int: | |||
| def scan_producer_suppression_sites(path: str | Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
scan_producer_suppression_sites()
high coupling complexity (Ca·Ce = 20).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -3813,7 +3823,7 @@ def _xaml_project_root(path: Path) -> Path: | |||
| def _xaml_csharp_class_nodes(path: Path) -> dict[str, list[dict]]: | |||
There was a problem hiding this comment.
_xaml_csharp_class_nodes()
fans out to 8 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -5913,7 +5922,7 @@ def _canon(nid: str) -> str: | |||
| def collect_files(target: Path, *, follow_symlinks: bool = False, root: Path | None = None) -> list[Path]: | |||
There was a problem hiding this comment.
collect_files()
fans out to 10 callees (efferent coupling); 19 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
Accidentally added files to wrong location.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR adds a new platform-paths CI job that runs a subset of the test suite (including new Windows long-path and filesystem boundary tests) across Ubuntu, macOS, and Windows runners. The changed symbols span path handling, extractors, and related helpers, alongside new/updated tests such as tests/test_windows_long_paths.py, suggesting work around cross-platform filesystem path handling (e.g., Windows drive/UNC and long/extended paths). The CHANGELOG is also being modified. Note: the diff was truncated, so the full extent of the source changes behind these symbols isn't visible here.
No blocking issues surfaced. 2 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4689 functions depend on the 1937 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 58 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
deduplicate_entities()— 53 callers, 18 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 21 callees - …and 120 more
Verification — 4689 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4623 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 91 more finding(s) on lines outside this diff (see the check run); 17 additional anchorable finding(s) not shown (cap).
| rel = Path(sf_norm) | ||
| if rel.is_absolute(): | ||
| continue # can't relativize (no/failed root) — leave id untouched | ||
| if _is_abs(sf_norm): |
There was a problem hiding this comment.
build_from_json()
fans out to 17 callees (efferent coupling); 142 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| ) | ||
| # Runs LAST, after the alias-competition above (which relies on file-node | ||
| # labels still being bare basenames): give colliding-basename file nodes a | ||
| # directory-qualified display label so lookup/discovery can disambiguate |
There was a problem hiding this comment.
merge_raw_extraction()
fans out to 8 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| end of that tick would have left mtime (and, for a same-length edit, size) | ||
| untouched, and the stored digest would describe content that is no longer | ||
| on disk. | ||
|
|
There was a problem hiding this comment.
_ensure_stat_index()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| or entry.get("size") != st.st_size | ||
| or entry.get("mtime_ns") != st.st_mtime_ns): | ||
| entry = {"size": st.st_size, "mtime_ns": st.st_mtime_ns} | ||
| _stat_index[abs_key] = entry |
There was a problem hiding this comment.
_flush_stat_index()
6 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -246,13 +341,13 @@ | |||
| # in-memory keys stay absolute, but the on-disk index stores in-anchor keys | |||
There was a problem hiding this comment.
file_hash()
fans out to 8 callees (efferent coupling); 39 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| # via the caller's own class's @property/ivar table. Checked before the | ||
| # capitalized arm so a capitalized field never reads as a class name. | ||
| cls = enclosing_type.get(caller) | ||
| type_name = field_types_by_class.get(cls, {}).get(receiver) if cls else None |
There was a problem hiding this comment.
extract_csproj()
fans out to 6 callees (efferent coupling); 12 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| ) | ||
|
|
||
|
|
||
| def extract_dart(path: Path) -> dict: |
There was a problem hiding this comment.
extract_dart()
fans out to 9 callees (efferent coupling); 8 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| ) | ||
|
|
||
|
|
||
| def extract_dm(path: Path) -> dict: |
There was a problem hiding this comment.
extract_dm()
fans out to 9 callees (efferent coupling); 15 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -275,7 +283,7 @@ def _read_dmi_description(data: bytes) -> str: | |||
| def extract_dmi(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmi()
high coupling complexity (Ca·Ce = 20).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -364,9 +372,9 @@ def _dmm_type_path(entry: str) -> str: | |||
| def extract_dmm(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmm()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Worth a look — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge.
Graphify review — findings
This pull request adds a new CI job called platform-paths that runs a set of filesystem/path-related test files across Ubuntu, macOS, and Windows to exercise long-path and path-boundary behavior on each OS. It also updates the CHANGELOG.md (including entries related to a disk-absence eviction sweep using regex vs. literal matching), and touches a broad set of internal symbols across extractors, caching, resolution, LLM, watch, and build modules. The changed symbol names suggest edits spanning many language extractors and supporting subsystems, but the truncated diff only shows the CI workflow and changelog contents in detail. Reviewers should look at the full diff for the non-workflow source changes, particularly around path handling and cache portability.
Worth a look
- New CI job uses mutable third-party GitHub Action tag —
.github/workflows/ci.yml:97· Escalate · medium- agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4319 functions depend on the 1541 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 58 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 21 callees - worse:
build_merge()— 29 callers, 13 callees - …and 103 more
Verification — 4319 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4253 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 75 more finding(s) on lines outside this diff (see the check run); 16 additional anchorable finding(s) not shown (cap).
| rel = Path(sf_norm) | ||
| if rel.is_absolute(): | ||
| continue # can't relativize (no/failed root) — leave id untouched | ||
| if _is_abs(sf_norm): |
There was a problem hiding this comment.
build_from_json()
fans out to 17 callees (efferent coupling); 142 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| ) | ||
| # Runs LAST, after the alias-competition above (which relies on file-node | ||
| # labels still being bare basenames): give colliding-basename file nodes a | ||
| # directory-qualified display label so lookup/discovery can disambiguate |
There was a problem hiding this comment.
merge_raw_extraction()
fans out to 8 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| end of that tick would have left mtime (and, for a same-length edit, size) | ||
| untouched, and the stored digest would describe content that is no longer | ||
| on disk. | ||
|
|
There was a problem hiding this comment.
_ensure_stat_index()
fans out to 7 callees (efferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| or entry.get("size") != st.st_size | ||
| or entry.get("mtime_ns") != st.st_mtime_ns): | ||
| entry = {"size": st.st_size, "mtime_ns": st.st_mtime_ns} | ||
| _stat_index[abs_key] = entry |
There was a problem hiding this comment.
_flush_stat_index()
6 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -246,13 +341,13 @@ | |||
| # in-memory keys stay absolute, but the on-disk index stores in-anchor keys | |||
There was a problem hiding this comment.
file_hash()
fans out to 8 callees (efferent coupling); 39 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| ) | ||
|
|
||
|
|
||
| def extract_dart(path: Path) -> dict: |
There was a problem hiding this comment.
extract_dart()
fans out to 9 callees (efferent coupling); 8 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| ) | ||
|
|
||
|
|
||
| def extract_dm(path: Path) -> dict: |
There was a problem hiding this comment.
extract_dm()
fans out to 9 callees (efferent coupling); 15 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -275,7 +283,7 @@ def _read_dmi_description(data: bytes) -> str: | |||
| def extract_dmi(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmi()
high coupling complexity (Ca·Ce = 20).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -364,9 +372,9 @@ def _dmm_type_path(entry: str) -> str: | |||
| def extract_dmm(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmm()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -436,7 +444,7 @@ def extract_dmm(path: Path) -> dict: | |||
| def extract_dmf(path: Path) -> dict: | |||
There was a problem hiding this comment.
extract_dmf()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This pull request adds a new platform-paths CI job that runs a subset of filesystem-related test files (long paths, hashing, atomic writes, etc.) across Ubuntu, macOS, and Windows runners. It also touches the CHANGELOG and a broad set of extractor, cache, watch, CLI, and path-handling modules across the codebase, with an apparent focus on Windows long-path and filesystem boundary handling. Note: the diff was truncated, so the exact source-code changes behind the listed symbols are not fully visible here—review of the actual graphify/* file changes is needed to assess the full surface area.
No blocking issues surfaced.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4314 functions depend on the 1536 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 58 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 21 callees - worse:
build_merge()— 29 callers, 13 callees - …and 103 more
Verification — 4314 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4248 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 87 more finding(s) on lines outside this diff (see the check run); 4 additional anchorable finding(s) not shown (cap).
| @@ -326,13 +341,13 @@ def _ensure_stat_index(root: Path, cache_root: "Path | None" = None) -> None: | |||
| # in-memory keys stay absolute, but the on-disk index stores in-anchor keys | |||
There was a problem hiding this comment.
file_hash()
fans out to 8 callees (efferent coupling); 39 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| """ | ||
| _out = Path(_GRAPHIFY_OUT) | ||
| base = _out if _out.is_absolute() else Path(root).resolve() / _out | ||
| base = _out if _out.is_absolute() else _resolve_path(root) / _out |
There was a problem hiding this comment.
save_cached()
fans out to 8 callees (efferent coupling); 24 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| if not _path_is_file(p): | ||
| return | ||
| # Relativize source_file fields against ``root`` before write so the | ||
| # cache file on disk is portable across machines and checkout |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| resolved = str(_resolve_path(path_str)) | ||
| return resolved in clear_set or _nfc(resolved) in clear_set | ||
| except (OSError, RuntimeError): | ||
| return False |
There was a problem hiding this comment.
detect_incremental()
fans out to 7 callees (efferent coupling); 17 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -122,7 +127,7 @@ def _tuple_arity_from_annotation(line: str) -> int: | |||
| def scan_producer_suppression_sites(path: str | Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
scan_producer_suppression_sites()
high coupling complexity (Ca·Ce = 20).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return os.scandir(io_path(path)) | ||
|
|
||
|
|
||
| def iterdir_path(path: PathLike) -> Iterator[Path]: |
There was a problem hiding this comment.
iterdir_path()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| yield logical_root / entry.name | ||
|
|
||
|
|
||
| def glob_paths(path: PathLike, pattern: str) -> Iterator[Path]: |
There was a problem hiding this comment.
glob_paths()
18 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| os.replace(io_path(source), io_path(destination)) | ||
|
|
||
|
|
||
| def walk_path( |
There was a problem hiding this comment.
walk_path()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR adds a new platform-paths CI job that runs a subset of filesystem/path-related tests across Ubuntu, macOS, and Windows, and updates the CHANGELOG with entries for versions 0.9.38 through 0.9.41. Alongside the changelog, it touches a broad set of extraction, resolution, and path-handling modules across languages (JS/TS, C#, Rust, Go, PHP, Dart, Pascal, Fortran/C++, Vue, Swift), plus symbol resolution, manifest ingestion (Cargo/pyproject), detection/ignore normalization, and security path validation. The changed surface spans extractors, cross-file/member call resolution, node id and path canonicalization, and related test helpers, consistent with the fixes described in the changelog.
No blocking issues surfaced. 2 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4485 functions depend on the 1707 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 58 callees - worse:
build_from_json()— 142 callers, 17 callees - worse:
detect()— 84 callers, 18 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 21 callees - worse:
build_merge()— 29 callers, 13 callees - …and 103 more
Verification — 4485 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4419 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 87 more finding(s) on lines outside this diff (see the check run); 4 additional anchorable finding(s) not shown (cap).
| @@ -326,13 +341,13 @@ def _ensure_stat_index(root: Path, cache_root: "Path | None" = None) -> None: | |||
| # in-memory keys stay absolute, but the on-disk index stores in-anchor keys | |||
There was a problem hiding this comment.
file_hash()
fans out to 8 callees (efferent coupling); 39 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| """ | ||
| _out = Path(_GRAPHIFY_OUT) | ||
| base = _out if _out.is_absolute() else Path(root).resolve() / _out | ||
| base = _out if _out.is_absolute() else _resolve_path(root) / _out |
There was a problem hiding this comment.
save_cached()
fans out to 8 callees (efferent coupling); 24 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| if not _path_is_file(p): | ||
| return | ||
| # Relativize source_file fields against ``root`` before write so the | ||
| # cache file on disk is portable across machines and checkout |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| resolved = str(_resolve_path(path_str)) | ||
| return resolved in clear_set or _nfc(resolved) in clear_set | ||
| except (OSError, RuntimeError): | ||
| return False |
There was a problem hiding this comment.
detect_incremental()
fans out to 7 callees (efferent coupling); 17 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -122,7 +127,7 @@ def _tuple_arity_from_annotation(line: str) -> int: | |||
| def scan_producer_suppression_sites(path: str | Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
scan_producer_suppression_sites()
high coupling complexity (Ca·Ce = 20).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
86 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return os.scandir(io_path(path)) | ||
|
|
||
|
|
||
| def iterdir_path(path: PathLike) -> Iterator[Path]: |
There was a problem hiding this comment.
iterdir_path()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| yield logical_root / entry.name | ||
|
|
||
|
|
||
| def glob_paths(path: PathLike, pattern: str) -> Iterator[Path]: |
There was a problem hiding this comment.
glob_paths()
18 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| os.replace(io_path(source), io_path(destination)) | ||
|
|
||
|
|
||
| def walk_path( |
There was a problem hiding this comment.
walk_path()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR adds a new platform-paths CI job that runs a set of filesystem/path-related test files across Ubuntu, macOS, and Windows runners. It also updates CHANGELOG.md with entries for several new versions (through 0.9.41), documenting a range of fixes across extractors (JS/TS, C#, Go, PHP, Swift, Kotlin, SQL, Objective-C), path/id normalization, caching, and CLI commands. The changed symbols span many extractor, resolution, LLM, and changelog areas consistent with these documented fixes.
No blocking issues surfaced.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4591 functions depend on the 1803 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 41 callees - worse:
_rebuild_code()— 87 callers, 60 callees - worse:
build_from_json()— 142 callers, 19 callees - worse:
detect()— 84 callers, 18 callees - worse:
deduplicate_entities()— 49 callers, 20 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
build_merge()— 29 callers, 15 callees - …and 113 more
Verification — 4591 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4525 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 97 more finding(s) on lines outside this diff (see the check run); 4 additional anchorable finding(s) not shown (cap).
| dir=_io_path(target_dir), | ||
| prefix=f"{h}.", | ||
| suffix=".tmp", | ||
| ) |
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| # have per-prompt-fingerprint subdirs alongside pre-fingerprint flat entries | ||
| # (#1939). | ||
| for kind in ("ast", "semantic", "semantic-deep"): | ||
| d = base / kind |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return exclude if _path_is_file(exclude) else None | ||
|
|
||
|
|
||
| def _load_dir_own_ignore(d: Path, *, gitignore: bool = True) -> list[tuple[Path, str]]: |
There was a problem hiding this comment.
_load_dir_own_ignore()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling); 84 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return _nfc(str(_resolve_path(root) / p)) | ||
|
|
||
|
|
||
| def load_manifest( |
There was a problem hiding this comment.
load_manifest()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -31,31 +42,31 @@ | |||
| def _resolve_js_import_path(candidate: Path) -> Path: | |||
There was a problem hiding this comment.
_resolve_js_import_path()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
93 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return os.scandir(io_path(path)) | ||
|
|
||
|
|
||
| def iterdir_path(path: PathLike) -> Iterator[Path]: |
There was a problem hiding this comment.
iterdir_path()
8 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This pull request adds a new platform-paths CI job that runs a subset of filesystem/path-related test files across Ubuntu, macOS, and Windows. It also updates CHANGELOG.md with entries for several new versions (through 0.9.41), and touches a broad set of extractor, resolution, caching, path, security, and watch modules referenced in the changelog fixes. The changes span many areas (JS/TS/PHP/Go/Swift/Kotlin/C#/etc. extraction and resolution, path canonicalization, cache anchoring, dedup, and ignore-pattern handling), so the surface area is wide. The diff shown is largely CI and changelog content, with the associated code symbols listed as changed.
No blocking issues surfaced. 1 lower-confidence candidate did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4600 functions depend on the 1812 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 367 callers, 43 callees - worse:
_rebuild_code()— 87 callers, 60 callees - worse:
build_from_json()— 142 callers, 19 callees - worse:
detect()— 84 callers, 18 callees - worse:
deduplicate_entities()— 49 callers, 20 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
build_merge()— 29 callers, 15 callees - …and 114 more
Verification — 4600 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4534 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 97 more finding(s) on lines outside this diff (see the check run); 5 additional anchorable finding(s) not shown (cap).
| dir=_io_path(target_dir), | ||
| prefix=f"{h}.", | ||
| suffix=".tmp", | ||
| ) |
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| # have per-prompt-fingerprint subdirs alongside pre-fingerprint flat entries | ||
| # (#1939). | ||
| for kind in ("ast", "semantic", "semantic-deep"): | ||
| d = base / kind |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return exclude if _path_is_file(exclude) else None | ||
|
|
||
|
|
||
| def _load_dir_own_ignore(d: Path, *, gitignore: bool = True) -> list[tuple[Path, str]]: |
There was a problem hiding this comment.
_load_dir_own_ignore()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling); 84 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return _nfc(str(_resolve_path(root) / p)) | ||
|
|
||
|
|
||
| def load_manifest( |
There was a problem hiding this comment.
load_manifest()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -31,31 +42,31 @@ | |||
| def _resolve_js_import_path(candidate: Path) -> Path: | |||
There was a problem hiding this comment.
_resolve_js_import_path()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| for f in _glob_paths(root, "**/*" + ext): | ||
| unit_map[f.stem.lower()] = _make_id(str(f)) | ||
| _pascal_unit_cache[root_key] = unit_map | ||
| return _pascal_unit_cache[root_key].get(unit_name.lower(), _make_id(unit_name)) |
There was a problem hiding this comment.
_pascal_resolve_class()
high coupling complexity (Ca·Ce = 20).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return value | ||
|
|
||
|
|
||
| def resolve_path(path: PathLike) -> Path: |
There was a problem hiding this comment.
resolve_path()
94 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR introduces a filesystem path abstraction layer (via helpers like resolve_path, read_text, path_exists, io_path, logical_path, etc. from graphify.paths) and routes existing direct Path/os filesystem calls in build.py and cache.py through it. The stated intent is to keep path handling consistent across platforms, particularly for Windows extended-length/long paths. It also adds a new platform-paths CI job that runs a set of path-related test suites on Ubuntu, macOS, and Windows. Surface area spans the paths abstraction imports/usages across build and cache modules, plus the many touched extractor/resolution/LLM/manifest symbols listed, and the CI workflow. I can't speak to correctness or whether the substitutions preserve prior behavior.
No blocking issues surfaced. 5 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4685 functions depend on the 1653 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 440 callers, 43 callees - worse:
_rebuild_code()— 95 callers, 60 callees - worse:
build_from_json()— 151 callers, 19 callees - worse:
detect()— 90 callers, 18 callees - worse:
build_merge()— 41 callers, 15 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 24 callees - …and 107 more
Verification — 4685 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4619 function(s) in the blast radius were not formally verified this run
· 20 grounded finding(s) anchored inline below; 88 more finding(s) on lines outside this diff (see the check run); 7 additional anchorable finding(s) not shown (cap).
| @@ -1023,38 +1044,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return exclude if _path_is_file(exclude) else None | ||
|
|
||
|
|
||
| def _load_dir_own_ignore(d: Path, *, gitignore: bool = True) -> list[tuple[Path, str]]: |
There was a problem hiding this comment.
_load_dir_own_ignore()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling); 90 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.paths import read_bytes as _read_file_bytes | ||
|
|
||
|
|
||
| def extract_julia(path: Path) -> dict: |
There was a problem hiding this comment.
extract_julia()
fans out to 8 callees (efferent coupling); 16 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -31,31 +42,31 @@ | |||
| def _resolve_js_import_path(candidate: Path) -> Path: | |||
There was a problem hiding this comment.
_resolve_js_import_path()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -52,9 +53,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
11 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Formal verification. 2 change(s) tested, no difference found (not proven).
Graphify review — findings
This pull request introduces a filesystem path abstraction layer (functions like path_exists, read_text, resolve_path, io_path, logical_path, etc. in graphify/paths.py) and refactors call sites across build.py, cache.py, and various extractor/support modules to route filesystem operations through these helpers instead of calling Path/os methods directly. It also adds a new platform-paths CI job that runs a set of path- and filesystem-related test files on Ubuntu, macOS, and Windows. The stated intent is to keep filesystem behavior (particularly Windows long/extended-length paths) consistent across platforms while remaining a no-op on Linux/macOS. The surface area touches path handling, atomic writes, caching, and multiple language extractors, plus associated tests.
No blocking issues surfaced. 4 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 4690 functions depend on the 1658 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 440 callers, 43 callees - worse:
_rebuild_code()— 95 callers, 60 callees - worse:
build_from_json()— 151 callers, 19 callees - worse:
detect()— 90 callers, 18 callees - worse:
build_merge()— 41 callers, 15 callees - worse:
save_semantic_cache()— 50 callers, 10 callees - worse:
extract_bash()— 34 callers, 14 callees - worse:
_extract_generic()— 18 callers, 24 callees - …and 107 more
Verification — 4690 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 4624 function(s) in the blast radius were not formally verified this run
Formal verification
Could not verify: Could not verify \_abs\_identity.
The verifier did not have enough to check \_abs\_identity, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: non-vacuity: domain too small (only 2 distinct inputs exercised, need 3) — 'no divergence' would be near-vacuous
Could not verify: Could not verify build\_from\_json.
The verifier did not have enough to check build\_from\_json, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 6 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly NameError — names the real obstacle, not a sampling gap)
Could not verify: Could not verify build\_merge.
The verifier did not have enough to check build\_merge, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `str | Path | None` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_infer\_merge\_root.
The verifier did not have enough to check \_infer\_merge\_root, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_load\_existing\_graph.
The verifier did not have enough to check \_load\_existing\_graph, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify merge\_raw\_extraction.
The verifier did not have enough to check merge\_raw\_extraction, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `graph_path` is annotated `str | Path` — outside the synthesizable primitive/collection set
No difference found (not proven): No behavior difference found in \_norm\_source\_file (not a proof).
The verifier ran both versions of \_norm\_source\_file on many inputs and saw identical behavior every time. Strong evidence the change is safe, but evidence, not a proof.
Guarantee: Empirical: differential testing (both versions run on many generated inputs). A divergence on an untested input remains possible, so this is 'no counterexample found', not 'proven equivalent'.
Note: An input the sampler did not try could still differ.
Could not verify: Could not verify \_absolutize\_source\_files\_in.
The verifier did not have enough to check \_absolutize\_source\_files\_in, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify cache\_dir.
The verifier did not have enough to check cache\_dir, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify cached\_files.
The verifier did not have enough to check cached\_files, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify cached\_word\_count.
The verifier did not have enough to check cached\_word\_count, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_cleanup\_stale\_ast\_entries.
The verifier did not have enough to check \_cleanup\_stale\_ast\_entries, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `ast_base` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify clear\_cache.
The verifier did not have enough to check clear\_cache, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_ensure\_stat\_index.
The verifier did not have enough to check \_ensure\_stat\_index, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify file\_hash.
The verifier did not have enough to check file\_hash, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
No difference found (not proven): No behavior difference found in \_flush\_stat\_index (not a proof).
The verifier ran both versions of \_flush\_stat\_index on many inputs and saw identical behavior every time. Strong evidence the change is safe, but evidence, not a proof.
Guarantee: Empirical: differential testing (both versions run on many generated inputs). A divergence on an untested input remains possible, so this is 'no counterexample found', not 'proven equivalent'.
Note: An input the sampler did not try could still differ.
Could not verify: Could not verify load\_cached.
The verifier did not have enough to check load\_cached, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_normalize\_path.
The verifier did not have enough to check \_normalize\_path, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_portability\_anchors.
The verifier did not have enough to check \_portability\_anchors, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `'str | Path'` — outside the synthesizable primitive/collection set
Could not verify: Could not verify prompt\_fingerprint.
The verifier did not have enough to check prompt\_fingerprint, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `prompt` is annotated `'str | Path'` — outside the synthesizable primitive/collection set
Could not verify: Could not verify prune\_semantic\_cache.
The verifier did not have enough to check prune\_semantic\_cache, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_relativize\_source\_files\_in.
The verifier did not have enough to check \_relativize\_source\_files\_in, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify \_resolve\_prompt\_fp.
The verifier did not have enough to check \_resolve\_prompt\_fp, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `prompt` is annotated `'str | Path | None'` — outside the synthesizable primitive/collection set
Could not verify: Could not verify save\_cached.
The verifier did not have enough to check save\_cached, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `path` is annotated `Path` — outside the synthesizable primitive/collection set
Could not verify: Could not verify save\_semantic\_cache.
The verifier did not have enough to check save\_semantic\_cache, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: parameter `root` is annotated `Path` — outside the synthesizable primitive/collection set
· 20 grounded finding(s) anchored inline below; 88 more finding(s) on lines outside this diff (see the check run); 7 additional anchorable finding(s) not shown (cap).
| @@ -1023,38 +1044,38 @@ def save_cached(path: Path, result: dict, root: Path = Path("."), kind: str = "a | |||
|
|
|||
| def cached_files(root: Path = Path(".")) -> set[str]: | |||
There was a problem hiding this comment.
cached_files()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return hashes | ||
|
|
||
|
|
||
| def clear_cache(root: Path = Path(".")) -> None: |
There was a problem hiding this comment.
clear_cache()
7 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| _unlink_path(f) | ||
|
|
||
|
|
||
| def prune_semantic_cache(root: Path, live_hashes: set[str]) -> int: |
There was a problem hiding this comment.
prune_semantic_cache()
9 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return exclude if _path_is_file(exclude) else None | ||
|
|
||
|
|
||
| def _load_dir_own_ignore(d: Path, *, gitignore: bool = True) -> list[tuple[Path, str]]: |
There was a problem hiding this comment.
_load_dir_own_ignore()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| return True | ||
|
|
||
|
|
||
| def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
There was a problem hiding this comment.
detect()
fans out to 18 callees (efferent coupling); 90 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.paths import read_bytes as _read_file_bytes | ||
|
|
||
|
|
||
| def extract_julia(path: Path) -> dict: |
There was a problem hiding this comment.
extract_julia()
fans out to 8 callees (efferent coupling); 16 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _file_stem, _make_id | ||
|
|
||
|
|
||
| def extract_razor(path: Path) -> dict: |
There was a problem hiding this comment.
extract_razor()
14 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -31,31 +42,31 @@ | |||
| def _resolve_js_import_path(candidate: Path) -> Path: | |||
There was a problem hiding this comment.
_resolve_js_import_path()
high coupling complexity (Ca·Ce = 12).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| from graphify.extractors.base import _make_id | ||
|
|
||
|
|
||
| def extract_sln(path: Path) -> dict: |
There was a problem hiding this comment.
extract_sln()
10 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
| @@ -52,9 +53,9 @@ def _pkg_id(name: str) -> str: | |||
| def extract_package_manifest(path: Path) -> dict[str, Any]: | |||
There was a problem hiding this comment.
extract_package_manifest()
11 callers depend on it (afferent coupling).
Grounded coupling-delta finding (deterministic), not an LLM guess.
Summary
Graphify 0.9.30 enters recursive corpus enumeration with ordinary Windows drive or UNC paths. A real descendant that crosses the legacy
MAX_PATHboundary can therefore fail before Graphify discovers it, producing a misleading[WinError 3] The system cannot find the path specifiedwarning and an incomplete graph.This change introduces a centralized, cross-platform filesystem I/O boundary in
graphify.pathsand applies it throughout the source-corpus pipeline. Windows filesystem calls use extended-length path spelling internally; Linux and macOS remain pass-through. Graph IDs, manifests, cache keys, ignore matching, diagnostics, and user-visible output continue to use ordinary logical paths.Representative UNC translation:
Problem and root cause
Selected late-stage reads already used a private Windows path helper, but recursive discovery began with an ordinary path:
On Windows,
os.walk()usesos.scandir()for recursive enumeration. When the ordinary path reaches the legacy boundary, enumeration can fail even though the directory exists. A directory just below 260 characters can also fail because native enumeration adds a search suffix.Changing only the first
os.walk()call would not close the defect. A deep file could be discovered and then fail during classification, hashing, cache access, structural extraction, semantic extraction, project resolution, incremental reconciliation, or document/media processing. This migration therefore covers the corpus from discovery through graph production.Design
Separate logical identity from filesystem transport
The implementation maintains two path representations:
Logical/public path
Filesystem I/O path
\\?\C:\...for local Windows paths.\\?\UNC\server\share\...for UNC paths.This prevents the same file from acquiring two Graphify identities and keeps generated artifacts portable.
Centralize the boundary
graphify.pathsnow owns the path translation and filesystem helpers used by the corpus pipeline, including:io_path()andlogical_path();The adapter normalizes and makes a Windows path absolute before adding the extended prefix. Already-extended paths and device paths remain unchanged. Off Windows, the helpers pass paths through unchanged.
Traversal reconstructs returned paths from the caller's logical root, so relative inputs remain relative even though Windows uses an absolute extended path internally.
Keep extended spelling away from external programs
The
\\?\spelling remains an internal filesystem transport detail. External tools receive ordinary absolute paths. Tests cover this rule for Google Workspace export and the C preprocessor.Preserve real errors
The change does not suppress traversal failures. Permission errors, disconnected shares, deletion races, broken links, and genuinely missing paths still flow to existing diagnostics. Only the transport-only prefix is removed before an error reaches user-facing code.
Implementation scope
The migration covers source-corpus filesystem boundaries used by:
collect_files()extraction;The extended prefix is removed immediately when traversal yields a path. It is not persisted in graph output, manifests, cache metadata, or diagnostics.
Graphify 0.9.30 baseline
This proposal is based directly on Graphify 0.9.30 commit:
The port preserves behavior introduced in 0.9.30, including TSX-specific parsing, portable AST cache anchors, fail-closed post-commit graph loading, and protected atomic graph replacement.
Tests and CI
tests/test_windows_long_paths.pyprovides host-neutral contract tests and native Windows integration coverage for:os.walk()receiving extended UNC spelling;walk_errors;\\?\never appears in returned or persisted logical artifacts.The focused GitHub Actions matrix runs the path suite on:
The Windows job creates and extracts a real 300-plus-character local path. UNC behavior is unit-tested at the conversion and traversal boundary because standard hosted runners do not provide a live SMB share.
Native Windows validation
Validation was performed against the 0.9.30 baseline above using Python 3.12 on Windows.
The focused suite validates:
\\?\prefixes;The one skip is the symlink-specific atomic-write test. The test host did not grant Windows symlink creation permission (
WinError 1314); it requires Developer Mode, administrator rights, orSeCreateSymbolicLinkPrivilege.Full-suite baseline comparison
An exploratory full Windows run before the final C-preprocessor follow-up produced:
The exact 42 failed node IDs were then rerun against untouched Graphify 0.9.30:
One shared C-preprocessor failure exposed an extended-path prefix crossing into an external executable. That issue was corrected and the test was added to the focused cross-platform gate.
After that correction, rerunning the cached failed set on the patched tree produced:
The remaining 40 failures reproduce on the untouched 0.9.30 baseline. They are existing Windows portability or test-environment issues, including unavailable symlink privileges, POSIX-only separator assertions, Windows current-directory deletion semantics, default text encoding, output filename limits, and installer/hook behavior outside this corpus-I/O change.
The one earlier non-baseline CodeBuddy directory-rename failure did not reproduce:
This PR therefore does not claim that the complete existing Windows suite is clean. It establishes a passing native gate for the source-corpus long-path pipeline and avoids broadening this change into unrelated Windows portability work.
Why not rely only on Windows policy?
Windows can opt applications into longer ordinary Win32 paths through
LongPathsEnabledand alongPathAwareexecutable manifest. That remains useful defense in depth, but it is not a sufficient Graphify contract:References:
Compatibility and risk
io_path()is a no-op and existing path behavior is retained.The broad call-site migration is intentional. Adapting only initial enumeration would allow a file to be discovered and then fail later during hashing or extraction, recreating the same incomplete-graph defect at another stage.
Scope and non-goals
This PR makes Graphify's source-corpus pipeline long-path-safe and closes a concrete Windows platform-parity gap. It does not claim that every external executable or third-party library accepts every possible path. It cannot prevent failures caused by permissions, share outages, authentication, invalid names, per-component filename limits, or network disconnections.
Unrelated installer, hook, exporter, and user-preference portability issues remain separate work. The watchdog subscription continues to receive the ordinary watch root so event paths retain Graphify's logical identity; a watch root that is itself already beyond the legacy boundary should receive separate native validation.
Reviewer guide
This submission is one commit created from the author-neutral 0.9.30 diff plus native-Windows test follow-ups.
Suggested review order:
graphify/paths.pyfor the logical-path versus filesystem-I/O-path contract.tests/test_windows_long_paths.py, the atomic-write/external-process tests, and the cross-platform CI matrix.Checklist