Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: sunerpy/codegraph-rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.54.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: sunerpy/codegraph-rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.55.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 2 commits
- 583 files changed
- 2 contributors
Commits on Oct 21, 2026
-
feat: port the colby v1.6.2 extraction, resolution and sync semantics (…
…#322) ## Summary The codegraph-rs v0.55.0 program, first of two pull requests (owner decision OD-18, 2026-10-16). It ports the portable behavior of colby `f4ddf508..b635dd46` that belongs to waves W0–W6 of the plan, fixes the Rust-only defects the audit found in those areas, and records every row of the range in `docs/upstream-sync/V1_6_2_AUDIT_2026-10-10.md` (`LANDED` with its commits, `KEEP-RUST`, `ALREADY-HAVE`, `N/A`, `OWNER-EXCLUDED`, or `PLANNED (follow-up PR)`). Waves W7–W9 — framework resolvers and synthesis, the VB.NET trial, `codegraph context`, Lua package loaders (#1617) and the 26 performance strategies — move to the follow-up pull request, which also moves the extraction version to 23. W10 adds the as-built docs and five memory and allocation fixes found by the final benchmark and its sync check (owner decisions OD-24 and OD-25), so every frozen benchmark cell is within budget and every single-file sync scenario stays within 1.02× of the build before W10. ## What changes - **Extraction (W2, W4):** class heritage (C# base lists, Python bases, PHP `extends`/`implements`, Objective-C supertypes, Go embedding, Dart mixins and `implements`); type-annotation references for Rust, Go, Java, Kotlin, Scala, C#, Swift, Dart and PHP; instantiations; same-file value references and static member reads; Vue, Svelte and Astro scripts folded into the component's file node; CommonJS requires; `@flow` files; C/C++ preParse round 2, typedefs in declarations and phantom macro functions; Kotlin, Lombok, Java enum bodies, C# accessors, CFML tags, Go aliases and docs. - **Resolution (W3, W4):** an import never binds its own statement and import statements are never name-match candidates (#2392, #2263); name matching stops for out-of-repo and namespace receivers, receivers with no project type, test suites, out-of-scope bindings and case rules the language does not have; per-language rules for JavaScript/TypeScript, Python, Rust, Go, C/C++, Java, Kotlin, Scala, C#, Swift, Objective-C, PHP, Ruby, Lua, R, Dart, CFML, Solidity and Erlang; overloads by argument fit; C# extension methods on outside types (kept beyond upstream, KEEP-RUST). - **Sync (W5):** parked imports and qualified references are retried when the file, module or name they need appears; dependents re-resolve when tsconfig paths, `package.json`, C# project files, Cargo manifests or `pubspec.yaml` change; resolved references are kept (schema 10) so a sync re-resolves dependents without re-extracting them; name resolution stays linear when a repository repeats a name many times. The sync-versus-fresh matrix runs 550 cases with none ignored. - **Watcher, daemon and MCP (W1, W6):** the watcher re-scans the project after a burst past 500 paths or a sign of lost events and reports RECOVERING until the catch-up commits; an older daemon is replaced; a cold-start session keeps the daemon it starts; MCP 2026-07-28 is answered through the daemon proxy (OD-21) and at a too-broad root (OD-23); the prompt hook skips agent-message prompts. - **Memory and allocation (W10):** a full index no longer memory-maps the database, whose pages the page cache already holds; the resolution snapshot's per-file and per-kind lists keep only their handles instead of the store query's node-sized buffers (17 MiB on this repository, 15 MiB on Newtonsoft.Json); the same-file value-reference scans reuse one tree cursor instead of allocating one per visited node, which serialized on musl's malloc lock (redis init was 25% slower than v0.54.0 at 32 threads); a full index on the musl builds turns transparent huge pages off for its process while it runs, so each worker's mimalloc heap no longer holds whole 2 MiB pages, and every other command keeps them; and JavaScript re-export scans strip comments without first copying each barrel file into characters (a typescript-large single-file sync is 7–13% faster). No graph output changes. - **Viewer and dead code (W6):** the Map collapses pass-through folders and opens on the whole repository, Flow finds its ends by exact names, lists are keyed by id, the port walk moves past a permission-denied port, unresolved decorators and lifecycle hooks count, and non-production folders are judged above `src/` (OD-22). ## Index upgrade The extraction version moves once, 21 → 22 (880ab84), and the schema goes 8 → 10 (9: `synthesis_inputs`; 10: `resolved_refs`). A v0.54.0 index reads as outdated and is rebuilt once by `codegraph sync`, a daemon's catch-up or the first MCP access; `upgrade_from_v054` replays a real v0.54.0 index through both paths. ## Golden impact 13 new corpora (C#, Java, Swift, Objective-C, PHP, Vue, Svelte, Python bases, CommonJS, routers, servers, mobile, synthesis), each captured at v0.54.0 behavior first so later diffs attribute to a commit. Against the v0.54.0 goldens, rows changed in arkts, cfml, cpp, dart, erlang, go, kotlin, mini, python, ruby, rust and typescript, and eight corpora changed only in schema; every change has a row in the regeneration log of `docs/equivalence.md`. The MCP fixture `initialize.json` gains one instructions sentence. The final parity run of upstream `b635dd46` on mini matches nodes, files and unresolved references; the remaining differences are recorded there as KEEP-RUST. ## Verification - `make pre-ci` on the head: 236 test suites, 6081 passed, 0 failed, 1 ignored (an existing `#[ignore]` large synthetic benchmark); vitest 574; committed viewer bundle byte-identical; release archive smoke. - `scripts/regen-goldens.sh --check`: 32 corpora identical. `sync_convergence`: 550 passed, 0 ignored. `upgrade_from_v054`: passed. `git diff --check`: clean (the generated viewer bundle is exempt from whitespace checks, c6068a2). - The W10 changes leave graphs unchanged: release builds of this head and of the head before them (50c87fe) give identical canonical graphs on the ten registry corpora and this repository; in a single-file sync check on the musl builds every scenario stays within 1.02× of the build before W10, and a typescript-large sync is 7–13% faster. - Every wave passed its kirocodex goal gate except W3, whose gate the owner ended after round 5 with its last fix (c762529) unreviewed; the full-diff gate covers it. - CI on the head: all 12 checks green on the first attempt, including `CI Success`. ## Owner decisions OD-1 squash merge; OD-2 COBOL `OWNER-EXCLUDED`; OD-4 mini's edges and references and the MCP fixtures follow Rust output, checked by a final upstream parity run; OD-5 node-id changes listed in `docs/equivalence.md`; OD-8 KEEP-RUST rows; OD-14 performance overruns fixed or accepted with data; OD-18 the split; OD-19 future-schema refusal in a later pull request; OD-21 to OD-23 the MCP 2026-07-28 and test-folder fixes; OD-24 investigate the final benchmark's RSS overruns in this pull request; OD-25 keep optimizing until every frozen benchmark cell is within budget. ## Known limits - G16 and G17 (C++ namespace-scope variables, function-local structs and unions) are recorded as existing gaps, not fixed (owner, 2026-10-12). - Windows `catch_up_absorbs_offline_edit` and `daemon_handover` have each failed once on CI and passed on re-run. The performance table and the changelog entries are in the PR #322 description.
Configuration menu - View commit details
-
Copy full SHA for 0796c8a - Browse repository at this point
Copy the full SHA 0796c8aView commit details -
Release CodeGraph 0.55.0 with the colby v1.6.2 extraction, resolution and sync semantics.
Configuration menu - View commit details
-
Copy full SHA for 5f96a74 - Browse repository at this point
Copy the full SHA 5f96a74View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.54.0...v0.55.0