Skip to content
Permalink

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.55.2
Choose a base ref
...
head repository: sunerpy/codegraph-rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.56.0
Choose a head ref
  • 3 commits
  • 421 files changed
  • 2 contributors

Commits on Oct 23, 2026

  1. docs(upstream): audit b635dd46..e8ddc4e2 and record v0.55.2 (#337)

    A new dated audit file, docs/upstream-sync/POST_V1_6_2_MAIN_2026-10-22.md,
    classifies the 225 colby `main` commits after `b635dd46` (to `e8ddc4e2`,
    2026-10-22; no new upstream tag) against v0.55.1: 147 PORT, 36 PARTIAL,
    21 DEFER, 10 ALREADY-HAVE, 10 N/A and one KEEP-RUST, with the owner's
    decisions of 2026-10-22 (the follow-up pull request takes the DEFER rows; the
    older gaps become G18 to G25; the C lone-macro KEEP-RUST rule is reopened;
    W7-14 builds jsx-render on the tree-based JSX references). Two rows marked
    ALREADY-HAVE failed part of their upstream test's own fixture and are
    PARTIAL.
    
    UPSTREAM.md gains the audit entry, the #335 entry and the v0.55.2 release
    record with its black-box acceptance, and its Current alignment moves the
    discovery boundary to `e8ddc4e2`; docs-check follows the new boundary.
    sunerpy authored Oct 23, 2026
    Configuration menu
    Copy the full SHA
    8c18a34 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2026

  1. feat: framework resolvers, synthesis and codegraph context (#338)

    ## Summary
    
    The second pull request of the codegraph-rs v0.55 program (owner decision
    OD-18, 2026-10-16), released as v0.56.0. It carries what the split moved out of
    v0.55: the framework families and synthesis stage (W7), `codegraph context` and
    custom Lua module loaders (W9-01, W9-02), the 26 deferred v1.5.0 performance
    strategies (W9-00), and OD-19's refusal of an index a newer schema wrote. It
    also takes the 21 `DEFER` rows of the 2026-10-22 upstream audit with their
    prerequisites. The extraction version moves once, 22 → 23, in the first commit.
    
    VB.NET (W8) is not in it. Its trial of `tree-sitter-vb-dotnet =0.1.0` parsed
    59.7% of upstream's VB.NET test sources without an error, against a 95% bar, so
    VB.NET and its upstream rows are `OWNER-EXCLUDED` (OD-3, pre-authorized
    2026-10-10). The trial commit never joined this branch.
    
    ## Behaviour boundary
    
    What changes:
    
    - **Graph meaning** (hence extraction version 23): framework route and screen
      nodes; `navigates` edges; edges a framework resolver made name it in
      `metadata.framework`; synthesized edges marked by `metadata.synthesizedBy`
      (with `via`, `registeredAt` and the like), written by a synthesis stage after
      resolution on every path that publishes an index and at the end of a sync.
      Extraction: every Go `var` and `const` spec is a node; Vue store collections
      and RTK Query endpoints and hooks are nodes; Play routes files, `.escript`,
      `.app` and `.app.src` files are indexed; JSX tags in `.js` files render their
      component; C++ calls through a local function pointer reach the bound
      functions. KEEP-RUST choices are in `docs/upstream-sync/KNOWN_DIFFS.md`, item
      by item.
    - **Sync:** new lanes keep a sync equal to a fresh index for what the new
      passes read across files: route modules and navigation (#2422, #2425),
      Angular's `angular.json` and `nx.json`, files that are added, removed or cross
      `indexing.max_file_size` (#2392's resolved counterpart, C macro visibility),
      calls through an imported value (W7-31), Terraform module wiring, the
      non-indexed `#include` files and Angular templates the stage reads, and each
      framework's own lane. The sync-convergence matrix grew from 550 to more than
      1,200 cases, none ignored.
    - **Watcher:** a directory that arrives whole is walked and its files go to the
      incremental sync; past 500 files it escalates like a lost event (W7-29).
    - **MCP and CLI output:** `codegraph_explore` opens with the Flow, lists
      dynamic-dispatch links among the named symbols, gathers and ranks the
      subgraph as upstream does (three-hop walk, Random-Walk-with-Restart
      relevance) and collapses off-spine polymorphic siblings to signatures; its
      MCP golden was re-captured (OD-4). New command `codegraph context` (CLI only,
      OD-10). New `[lua]` configuration (OD-11). `CODEGRAPH_PHASE_TIMINGS=1` prints
      per-phase timings to stderr. `status` reports a newer schema.
    - **Viewer** (preview): Steps, Screens, effects, branch conditions on the
      Symbol and Flow rails, and their layout fixes.
    - **Bench:** `--gen-go-std-methods`, and `--ab` phase timings, a load guard,
      more candidates and sync runs.
    
    What does not change:
    
    - The node-id formula (AGENTS.md invariant 3), the schema (10), the MCP tool
      list and its schemas, stdout purity, project containment (every read beside
      the index, `#include` files and Angular templates included, passes the scan's
      rules and a lexical containment check first), and the no-AI dependency
      boundary (`scripts/guardrail.sh`).
    - A project without `[lua]` settings gets a byte-identical Lua graph (OD-B83).
    
    ## Performance (W9-00)
    
    W9-00 decided the 26 deferred v1.5.0 strategies by rule (OD-9) and added row 27
    (OD-B89). The dispositions, with each campaign's builds and verdicts, are in
    `docs/upstream-sync/V1_5_PERF_DISPOSITIONS_2026-11-26.md`. Four are `ADOPTED`;
    the numbers are release builds against `2d56231`, at 32 and 4 threads:
    
    - **Row 2, resolve the next batch while the current one is written**
      (`305e07d`): typescript-large's reference resolution 11589.8 → 8379.7 ms
      (−27.70%) and 27897.8 → 23619.8 ms (−15.33%). Its cost on other corpora (peak
      RSS +2.3–5.8% in five of six cells) is accepted (OD-B97, OD-B98).
    - **Row 24, read each scope's receiver declarations once per file**
      (`1b8e42f`): reference resolution −14.29% and −29.11% on kong-medium, −6.02%
      and −14.68% on typescript-large.
    - **Row 7, sync one or two saved files after a short quiet window**
      (`4412d1b`): from saving tokio-medium's `lib.rs` to the server's
      `auto-synced` line 2097.2 → 385.4 ms and 2094.5 → 384.7 ms.
    - **Row 27, a sync reruns only the synthesis passes whose inputs changed**
      (`7c0cb28`, `e9d5d65`, `941561e`): the one-file sync wall on the whole
      TypeScript checkout 4267.9 → 2859.1 ms and 4313.4 → 2912.4 ms, ×0.742–0.837
      on nix-darwin, erl-cowboy and erl-rebar3, peak RSS ×1.0011–1.0185
      (`W9/w927/timing2/report.txt`). `synthesis_version` moves to 24, so an
      existing index runs the whole stage once on its first sync.
    
    Row 9 (parallel synthesis passes) passed its pre-screen and is deferred to the
    next round (OD-B93); the others are `ALREADY-HAVE`, `N/A` or
    `REJECTED_BY_PROFILE`.
    
    ## Index upgrade: extraction version 22 → 23
    
    `c5514d8` moves the extraction version before any graph change, so users
    rebuild once. An index v0.55 built reads as outdated and is rebuilt by
    `codegraph sync`, a daemon's catch-up or the first MCP access;
    `upgrade_from_v055` replays a real v0.55.2 index (official musl binary, sha256
    in its fixture README) through those paths and compares the result with a
    fresh `init`. The schema stays 10. A schema newer than the binary is refused by
    reads, `status`, sync, MCP, the daemon, `init` and `index --force` without a
    changed byte; `uninit --force` can still discard it (OD-B2).
    sunerpy authored Nov 26, 2026
    Configuration menu
    Copy the full SHA
    69afdf5 View commit details
    Browse the repository at this point in the history
  2. chore: release 0.56.0 (#344)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Nov 26, 2026
    Configuration menu
    Copy the full SHA
    73c8dd3 View commit details
    Browse the repository at this point in the history
Loading