Skip to content

CI: graph-accuracy-audit red on main since ~6 PM ET 11-21 (typescript import precision 100 -> 96.3, C call recall 55.3 -> 54.6); suspect #8933 #8962

Closed

Description

@squid-protocol

What is wrong

graph-accuracy-audit fails on every PR that triggers it since about 5:58-7:12 PM ET on 2026-11-21 (22:58-00:12 UTC), with the same two regressions, so no PR that runs it can go green (ci-gate reports failing: graph-accuracy-audit).

import_graph_accuracy: REGRESSION
  typescript: precision_pct 100.0 -> 96.3          (gate: import-graph-2)
call_graph_resolution: REGRESSION
  c: resolution_recall_pct 55.3 -> 54.6            (gate: call-c)

Evidence that it is main, not a PR

Suspect (not verified)

Commits that reached main in that window and could move which files a scan sees: #8933 "Aperture: prune ambiguous-named directories (log, classes, docs, ...) on evidence" (22:51 UTC). A pruned directory in a pinned TypeScript or C corpus repo would change exactly these two metrics. Also in the window: #8942, #8934, #8944, #8914 (Python bitwise, unlikely), the IDCAMS model commits.

Expected

Either the numbers are an intended consequence of #8933 and the two baselines are re-blessed with the PR that explains them, or #8933 (or another commit) has a bug and the regression is fixed. Until then every PR touching the audited paths is stuck.

Bisect: run python tests/tools/import_graph_accuracy.py and python tests/tools/call_graph_resolution.py c --samples 5 on main with and without 505e14a.

Activity

  1. added
    bug
    priority: high
    on Nov 22, 2026
  2. squid-protocol commented on Nov 22, 2026

    @squid-protocol
    OwnerAuthor

    Bisected the TypeScript import gate (verified, same pinned corpus, same command: python tests/tools/import_graph_accuracy.py typescript --ci, zod at 2bf7b0630d53):

    commit files scanned engine import edges precision FP gate
    08c8782 (the commit before #8933) 470 929 99.6% 4 OK
    505e14a (#8933, Aperture prunes ambiguous-named directories on evidence) 514 963 96.3% 36 REGRESSION (100.0 -> 96.3 vs baseline)

    So #8933 is the cause of the import-graph regression. It makes the scan read 44 more files in zod (directories that were always pruned, such as docs/, are now kept when there is no evidence against them), and those files add 32 false-positive import edges. Whether reading them is the better behaviour is the maintainers' call: either the baseline is re-blessed in a PR that says the new files are intended (and says why the extra edges are acceptable), or the new files should not produce edges.

    Not bisected: the C call-recall dip (55.3 -> 54.6); it appeared in the same runs and the same window, and is likely the same cause (the C gate scans the pinned C repos through the same Aperture), but I have not confirmed it.

  3. added a commit that references this issue on Nov 22, 2026
  4. squid-protocol commented on Nov 22, 2026

    @squid-protocol
    OwnerAuthor

    Both regressions bisected and a fix is up as a draft PR (tsconfig paths resolver for the import audit; re-bless of the C call baseline). The C dip is confirmed with libclang 18.1.1: 55.2 OK before #8933, 54.6 at #8933, caused by libuv's docs/code/*.c now being scanned (370 -> 455 files). Details in the PR.

  5. squid-protocol commented on Nov 22, 2026

    @squid-protocol
    OwnerAuthor

    Resolved on main by #8970 (tsconfig paths resolver for import_graph_accuracy.py + C call baseline re-bless after #8933) and #9028 (trigger graph-accuracy-audit on file-selection changes). graph-accuracy-audit is green again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions