Skip to content

Call graph: small cross-language fixes — recursion qualifier, builtins, template holes, Go scoping, overload filter, and more (Part of #8161) - #8175

Merged
squid-protocol merged 18 commits into
mainfrom
callgraph/small-fixes
Nov 9, 2026
Merged

squid-protocol merged 18 commits into
mainfrom
callgraph/small-fixes

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

PR 2 of 4 for #8161. Fourteen self-contained commits; each carries its engine change, regression tests, regenerated call-graph baselines and re-blessed golden masters.

  1. X1: a same-name call through another receiver or scope is not recursion (super().m() in m, w.next.Close() in Close). Covers Go, TS/JS, Python, Java, Rust and C++.
  2. X2: builtin and stdlib guards.
    • Go builtins never link to repo methods.
    • Bare Go calls reach free functions only.
    • Std method names on an untyped receiver stay ambiguous (Go, Rust, C++).
  3. X6: calls inside TS/JS template literals and Python f-strings (core/template_holes.py); JS regex-literal backtick bug fixed.
  4. T1: a block-bodied arrow ends at its balanced brace, not at a nested function.
  5. T3a: a TS namespace alias never lands on an object-literal member (JS CommonJS exports.f members still do).
  6. R3: Rust Self::f() is a self call; super::f() is the parent module.
  7. G3: bare Go calls follow Go scoping: own file → own package → dot imports.
  8. J2: the overload guess fits the argument count; overload rows join the file graph (never the function graph).
  9. J5: parent clauses are split per parent (Java, Python Base, Mixin, metaclass=M, C#).
  10. Java: field types come from field declarations only, not other methods' locals (the lambda-parameter bug).
  11. C5: for C, the nearest-path pick among several definitions is confident (proximate; 363/363 right in the study).
  12. Y1: a Python module-level instance types its name in the file's functions.
  13. Y5: a Python reference opening a continuation line is a reference.
  14. README: "Accuracy, measured" covers all eight languages, with numbers read from the baselines at this commit.

Gate numbers, PR 1 → this PR (confident precision / recall):

language precision recall notes
typescript 99.5 → 100.0 68.8 → 82.3
javascript 99.3 → 99.4 77.8 → 87.9
c 100 → 100 47.5 → 50.1
go 98.7 → 98.9 (strict 90.3 → 94.6) 70.4 → 71.4
java 99.8 → 99.8 72.5 → 72.9 ambiguous precision 13.5 → 34.5
cpp 85.8 → 86.7 30.9 → 31.1
python (crucible) 99.9 → 99.9 51.2 → 52.8 all kinds 77.0 → 79.2
python (flask) 99.7 → 99.4 40.4 → 41.2
rust 93.7 → 93.7 60.4 → 60.7

Disclosed drops:

  • The X1 commit regenerated baselines over three movements.
    • C++ confident precision −0.6 pp: newly kept fmt::format-style calls get the argument-count overload guess. X2 then brings it above the PR 1 level.
    • Resolution recall in Go, Python and Rust: newly extracted names enter the denominator.
    • Ambiguous precision in Python and Rust: mostly unconfirmed rows, few wrong.
  • Each commit message has its own before → after.

Skipped: Y2 (Python property reads) is not small; it needs a property-aware resolver path, so it moves to PR 4.

Tests:

  • call_graph_resolution.py --ci passes for all eight languages.
  • pr_gates.py --fast 9/9.
  • tests/extraction + tests/core_engine: 18,259 passed, 1 failed. The failure (test_committed_fidelity_table_is_fresh_against_the_corpus) reads a stale local keyword-rosetta checkout and fails on main's tree too.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF

squid-protocol and others added 14 commits November 9, 2026 10:56
…, Part of #8161)

The detector dropped every callee spelled like its own unit, whatever the
receiver, so `super().m()` in `m`, `w.next.Close()` in Go's `Close`,
`self.repo.save()` in `save`, `Base::Put(k)` in `Put` and zod's
`inst.optional = () => optional(inst)` all vanished. Now a same-name call is
recursion only when it is bare or on the unit's own receiver (`self`, `this`,
`cls`, `Self`, `static`, the Go method's receiver variable); otherwise it is
kept with only its foreign qualifiers, and the resolver prunes any link that
still lands on the unit itself (as it already did for #5628 / #5699).

- Python: a `super(...)` receiver is recorded as `super`, so the resolver's
  parent-class walk runs (every subclass `__init__` regains its parent edge).
- JS/TS: a `member`-shaped unit (object-literal method, `inst.f =` arrow)
  counts as a method for the #5699 bare-name rule, and a bare `f(` past an
  arrow is a body call (a member-assignment header never spells `f(`).
- Objective-C is left out: the resolver cannot narrow by a send's receiver.

Gates (call_graph_resolution, before -> after):
- python crucible: recall 51.2 -> 52.6, resolution recall 97.8 -> 96.3,
  ambiguous precision 60.0 -> 45.0 (166 new unconfirmed receiver rows);
  flask lane: recall 40.4 -> 41.0, precision 99.7 -> 99.4
- typescript: recall 68.8 -> 70.4, resolution recall 88.6 -> 88.3
- javascript: recall 77.8 -> 78.0; java: recall 72.5 -> 72.7
- rust: recall 60.4 -> 60.7, precision 93.7 -> 93.5 (two `fmt` trait
  delegations land on another `fmt`), resolution recall 65.0 -> 61.2
- cpp: recall 30.9 -> 31.4, precision 85.8 -> 85.2 (newly kept
  `fmt::format`-style calls take the same arity-only overload guess as every
  other caller: 16 agree, 11 wrong), resolution recall 55.8 -> 54.6
- go: resolution recall 80.0 -> 78.9

Resolution recall falls by composition: the newly extracted names enter its
denominator before the resolver can type their receivers. Baselines
regenerated; golden masters re-blessed (calls_out_to and the call-derived
graph metrics move). Level-1 call_graph_accuracy is unchanged (it drops the
unit's own name on both sides).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
… Part of #8161)

- Go's predeclared functions (`len`, `append`, `cap`, `make`, `new`, `copy`,
  `delete`, `close`, `clear`, `min`, `max`, `panic`, `recover`, `print`,
  `println`, `complex`, `real`, `imag`) join `_BARE_BUILTINS`: a bare call
  never links to a repo method of that name (prometheus' #1 hub was
  `(*memChunk).len`, fed by 248 bare `len(`). A free function of the name in
  the caller's own package still shadows the builtin, as in Go.
- A Go method (`func (s *S) f(`) is now `member`-shaped, so a bare Go call
  reaches free functions only, like every other language with owners. A
  method's bare self-name call with no free function to reach stays pruned
  as recursion (#5699).
- Standard-library / interface method names on an UNTYPED receiver are the
  ambiguous `receiver` guess (the #3756 rule, extended): Go `Close`, `Error`,
  `String`, `Lock`/`Unlock`/`RLock`/`RUnlock`, `Load`, `Store`, `Next`,
  `Err`; Rust `len`, `iter`, `clone`, `into`, `unwrap`, `as_ref`, `fmt`;
  C++ `size`, `data`, `begin`, `end`, `push_back`, `c_str`. Java's
  `toString`/`equals`/`hashCode` were already listed.

Gates (call_graph_resolution, before -> after):
- go: precision 98.7 -> 98.8, strict precision 90.3 -> 94.5, ambiguous
  precision 61.2 -> 61.7, recall 70.4 -> 70.2, resolution recall 78.9 -> 78.6
- cpp: precision 85.2 -> 86.7, strict precision 75.1 -> 76.8, recall
  31.4 -> 31.1, resolution recall 54.6 -> 54.1
- rust: precision 93.5 -> 93.7, strict precision 88.1 -> 88.6, ambiguous
  precision 58.9 -> 56.9 (all from `fmt`: two `Display::fmt` delegations no
  longer land on another `fmt`; serde has no untyped `len`/`iter` link)
- typescript: resolution recall 88.3 -> 88.4; others unchanged.

Baselines regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…ls shielded (X6, Part of #8161)

The literal shield blanked a JS/TS template literal or a Python f-string
whole, so `${helper(n)}` and `f"{helper(n)}"` never reached the calls scan
(zod: 29 edges alone, ~125 more behind the arrow-span cut). The new
`template_holes` module does for them what `csharp_interpolation` does for
C# (#6266): each literal becomes `""` plus its hole expressions as `+(expr)`
terms before the shield runs, so nested strings and templates inside a hole
stay blanked and the call pattern finds the calls. Python handles r/b/f
prefixes, triple quotes, `{{` escapes and `!r` / `:spec` / `=` endings.

The JS/TS regex-literal bug is fixed with it: a `/.../` literal in value
position (after `( , = : [ ! & | ? { ; ~`, `=>`, or a keyword such as
`return`) is now shielded, in the literal shield and in the brace-safe
slicing stream (same length, the preceding character kept). A quote or
backtick inside one (`/^[a-z`{|}~-]+$/`) no longer pairs with a later one
and hides every unit in between (zod's core/regexes.ts, axios'
AxiosHeaders.js).

Gates (call_graph_resolution, before -> after):
- typescript: recall 70.4 -> 72.2, resolution recall 88.4 -> 88.7,
  ambiguous precision 20.0 -> 20.2; 1883 -> 1930 judged, precision 99.5
- javascript: recall 78.0 -> 81.8, resolution recall 90.1 -> 91.6, strict
  precision 97.4 -> 97.5; 415 -> 435 judged, precision 99.3
- python crucible: recall 52.6 -> 52.7; flask lane: recall 41.0 -> 41.2,
  resolution recall 88.8 -> 88.9
New confident links: 20 + 47 agree, 0 wrong (JS + TS). import_graph_accuracy
unchanged. Baselines regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…ed function (T1, Part of #8161)

`_ts_js_arrow_body_end` capped a `{` body at the next `func_start` match, so
`const C = () => { function g() {} ... }` ended at `g` and every call after
it belonged to no unit: zod's 61 `error` arrows in src/v4/locales (256
reference edges), and every React component that declares a handler with
`function`. #3642 (C8) already moves a nested unit's own calls out of its
parent, so the cap is no longer needed for correctness. An expression body
keeps the cap.

Gates (call_graph_resolution, before -> after):
- typescript: recall 72.2 -> 82.1, resolution recall 88.7 -> 89.8;
  1930 -> 2197 judged, precision 99.5 (unchanged)
- javascript: recall 81.8 -> 87.9, resolution recall 91.6 -> 91.9;
  435 -> 467 judged, precision 99.3 -> 99.4
tree_sitter_accuracy_audit and tri_comparison (typescript, javascript)
match their baselines. Baselines regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…ral member (T3a, Part of #8161)

`ns.f()` through `import * as ns` (#3788) took any owner-less definition of
`f` in the aliased module, members included: 9 of the 10 confident wrong
links on zod were `z.set(...)` landing on a descriptor's `set(...)` and
`z.toJSONSchema(...)` on a class-less object's method. The alias branch of
`_resolve_one` now leaves `member`-shaped definitions out in TypeScript. In
JavaScript a member yields to a real export but is kept when the module has
nothing else of the name, because a CommonJS module's exports ARE members
(`exports.f = function`; excluding them outright cost 4 correct axios links).

Gates (call_graph_resolution, before -> after):
- typescript: precision 99.5 -> 100.0, strict precision 99.5 -> 100.0,
  recall 82.1 -> 82.3, resolution recall 89.8 -> 89.9, ambiguous precision
  20.2 -> 20.0; 2197 -> 2190 judged
- javascript: unchanged
Baselines regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
… Part of #8161)

`Self` was no self receiver, so `Self::double(x)` inside an impl searched
methods only and found nothing (94 missed edges over the study's 3 repos).
`super` was read as a parent CLASS (`_SUPER_RECEIVERS`), so with no lineage
every `super::helper()` in a test module resolved to `none`. Now, in Rust:

- `Self::f()` takes the `self.f()` path (`_IMPL_SELF_LANGS`: any visible
  definition, the caller's own file first);
- `super::f()` is a bare lookup of a free function: the caller's own file
  first (an inline `mod tests` sits in its parent's file), then the files
  that can hold the parent module (`mod.rs`, `lib.rs` / `main.rs`,
  `<dir>.rs`) -- a sibling module's `f` is not reached; else the usual
  ladder, a lone definition elsewhere being `unseen`;
- `super::m::f()` drops the `super` segments and resolves `m::f()`.

Gates: rust (serde-rs/json) precision 93.7 and recall 60.7 unchanged, ambiguous
precision 56.9 -> 56.7 (3 new ambiguous rows): its
only `Self::` / `super::` sites have no rust-analyzer function to map to.
Baseline regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…ports (G3, Part of #8161)

A bare Go call ran the generic ladder: own file, then any IMPORTED file
(so `New()` in package util linked to an imported `labels.New`, 41
confident-wrong links on prometheus), then `unique`, then `nearest`/`tie`
(758 + 100 same-package calls left ambiguous on prometheus). Go puts only
the caller's own package, and the packages it dot-imports, in bare scope:

- own file -> `file`;
- own package directory -> `import`, confident even when other packages
  define the name (several files of the package defining it are build-tag
  variants: `tie`);
- dot-imported packages (`import . "pkg"`, now recorded as namespace
  imports `{". " + path: path}` and resolved like JS namespace aliases)
  -> `import`;
- anything else -> the ambiguous `unseen` guess. An ordinary import never
  reaches a bare call.

Gates (call_graph_resolution, go: cobra + gin, before -> after):
precision 98.8 -> 98.9, strict precision 94.5 -> 94.6, recall 70.2 -> 71.4,
resolution recall 78.6 -> 80.0, ambiguous precision 61.7 -> 58.0 (the 54
right same-package guesses became confident). +55 confident agree, -1
confident wrong. import_graph_accuracy unchanged. Baseline regenerated;
golden masters re-blessed. test_call_resolver's same-package case now
expects `import` (scoped) instead of `unique`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…ws join the file graph (J2, Part of #8161)

When a call's argument count still matches several overloads, the
ambiguous `overload` row kept the class's first overload as its guess,
whatever its arity (`indexOf(array, v)` guessed the 3-parameter
`indexOf(int[], int, int)`). The guess is now an overload the count fits.
In 1,637 of 1,637 gson overload rows the file was already right (every
candidate is in that file, on one class), so an `overload` row now joins the
FILE graph (`confident_file_pairs`): file PageRank and blast radius see the
calls into overload-heavy utility classes. It never joins the function
graph.

Gates (call_graph_resolution, before -> after):
- java: ambiguous precision 13.6 -> 34.3 (study prediction: 35.3);
  confident metrics unchanged (99.8 / 72.7)
- cpp: unchanged
Baselines regenerated; golden masters re-blessed (file-graph metrics move).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
… (J5, Part of #8161)

A class header's whole parent clause was recorded, and used, as ONE
lineage key: Java's `Holder<String> implements Scaled, Serializable` (62%
of gson's inheriting classes), Python's `Base, Mixin, metaclass=M`, C#'s
`Base<int>, IFoo`. It matched no class, so an inherited method reached by a
bare or `self.` call was unreachable (`hold()` in `Impl`: no row). The
resolver now reads each entry through `_parent_names`: type arguments,
subscripts and call parentheses go, the list splits on commas and keywords
(`extends`, `implements`, access specifiers), and a `name=value` keyword
argument is no parent. Applied in `_ancestry` and the per-file parent map
alike; the recorded class data is unchanged.

Gates (call_graph_resolution, before -> after):
- java: recall 72.7 -> 72.9, resolution recall 73.2 -> 73.3, ambiguous
  precision 34.3 -> 34.5; 5728 -> 5740 judged, precision 99.8
- python crucible: resolution recall 96.3 -> 96.4; 1880 -> 1881 judged
- cpp, typescript, javascript unchanged
Baselines regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…s' locals (Part of #8161)

A receiver a Java function does not declare is read as a field and typed
from the file's declarations. Those were read over the WHOLE file, locals of
every method included, so `os.forEach(c -> c.area())` on a `List<Other>`
took the type of another method's `Tool c` and made a false confident
`typed` link to `Tool.area`. The file-wide map is now built from
`_java_field_text`: the file with every method, constructor, lambda and
initializer body and every parenthesised list blanked (same length), so
only class-level field declarations remain. A name only other methods
declare gets no type (it used to get the "" of a clash when two of them
disagreed: test_detector's `twice` case is updated to say so).

Gates (call_graph_resolution, java): precision 99.8, recall 72.9 and the
other gated metrics unchanged; confident links scip-java resolves outside
the repo 105 -> 104. Baseline regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…ximate`, C5, Part of #8161)

In C, `nearest` almost always means "the variant in my own platform
directory": aix.c calling `uv_mutex_lock` links unix/thread.c, not
win/thread.c. Across the study's 5 C repos the picks were 363 of 363 agree,
0 wrong. For C only, `_ladder` now returns that pick as the new confident
step `proximate` (resolution `unique`; ranked after `unique`), so it joins
the function and file graphs. Every other language keeps the ambiguous
`nearest` guess. The edge-kind contract lists the new step.

Gates (call_graph_resolution, c: libuv + hiredis, before -> after):
recall 47.5 -> 50.1, resolution recall 51.8 -> 54.6; 6313 -> 6653 judged,
precision 100.0 and strict precision 100.0 unchanged. import_graph_accuracy
unchanged. test_call_resolver's generic nearest-guess case now uses C++.
Baseline regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…tions (Y1, Part of #8161)

`app = FastAPI()` at the top of a file typed `app` in every function only
when some module-level statement also called a method on it: the module
unit computed receiver types for the qualifiers it calls itself. A test
file whose decorators and calls all sit inside test functions (`@app.get`
nested, `client.get()`) got ambiguous `receiver` rows. The module unit now
types every column-0 binding (`name = ...`, `name: T = ...`) with the same
`_python_receiver_types` rule (a name bound twice differently stays "", and
the resolver keeps only a class it knows).

Gates (call_graph_resolution, python crucible, before -> after): recall
52.7 -> 52.8, resolution recall 96.4 -> 96.5, ambiguous precision
45.0 -> 35.3 (right receiver guesses became confident `typed` links);
1881 -> 1884 judged, precision 99.9; decorator links 575 -> 580 judged,
100% precise; recall over all kinds 78.5 -> 78.7. Flask lane unchanged.
Baseline regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…art of #8161)

`_python_references` stripped only spaces and tabs before a candidate, so a
function used as a value at the start of a continuation line -- Black's
`register(\n    handler,\n)`, a multi-line default `partial(\n gen_id\n)`,
`self._emit_pool_metrics,` -- left the text before it ending in a newline
and failed every position test. When the line before ends in `(` or `,`, the
newline is now skipped too; a name on a line of its own, or after a block's
`:`, is still no reference.

Gates (call_graph_resolution, python, before -> after): reference links
(not gated) crucible 345 -> 363 judged at 99.7%, flask 105 -> 117 judged at
100%; recall over all kinds 78.7 -> 79.2 (crucible). Gated call metrics
unchanged. Baseline regenerated; golden masters re-blessed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…the baselines (Part of #8161)

The "Accuracy, measured" call-resolution bullet listed only Python,
TypeScript and Java, with numbers from September (Java 93.2% precision /
44.2% recall; the baseline now says 99.8 / 72.9). It now gives all eight
measured languages -- C, C++, Go, Java, JavaScript, Python (crucible and the
flask lane), Rust, TypeScript -- each with its reference tool and version,
corpus, confident precision, judged links and recall, read from the
committed tests/call_graph_resolution_*baseline.json at this commit. The
recall-gap plan points at epic #8161; epic #3772 stays as the plan for
measuring more languages. The coverage chart is regenerated from the
baselines by its workflow and is not touched here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 4 commits November 9, 2026 11:20
…pdict read (Part of #8161)

The brace-safe stream's `fast_shield` asked `m.groupdict().get("jsrx")`
to see whether the X6 regex-literal alternative matched. dead_key_audit
reads that as a dict key with no writer (the named group lives in a regex
string). The alternative's literal is the pattern's last named group, so
`m.lastgroup == "jsrx"` says the same thing without a key read, and the
shield's output is unchanged (rx_pair.ts keeps both units; no golden moves).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…parent (fixes J5, Part of #8161)

The Java detector records `extends DoomColumnFunction<byte[],short[]>` as
`DoomColumnFunction<byte` (its regex stops at `[`). J5's `_parent_names`
required every list entry to be a whole identifier, so that unbalanced
entry was dropped, the class lost its only parent, and `_expand_super_ctor`
no longer turned a constructor's `super(...)` into a call to the parent's
constructor. DOOM-rosetta's mochadoom showed it: 71 `super(...)` edges
missing against the tree-sitter body oracle (recall 1.0 -> 0.986, PERFECT
-> 6/7). A list entry now names the identifier it starts with (an entry
holding `=` is still a keyword argument, not a parent); mochadoom is back
to recall 1.0 / PERFECT. Two regression cases join test_parent_list_split.

Gates: java 5740 -> 5741 judged, every gated metric unchanged (baseline
regenerated); golden masters unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
… holes as code (Part of #8161)

X6 made the engine scan JS template `${...}` and Python f-string `{...}`
holes. ts_callgraph_oracle still skipped every string node whole, so each
call in a hole became a scored "comment/string" engine-only edge: mood 1
(`{game_state.to_cobol_format()}`), room4doom 1 (`{len(verts)}`), sqldoom 7
(`{snapshot_health(...)}`, `{weight(...)}`, `{radius(...)}`,
`{stage_names(...)}`, `${stamp()}` x3). Each was read in the port's source:
all are real calls that run when the string is built, so the engine is right
and the oracle was wrong. The oracle now walks a string node's
`interpolation` / `template_substitution` children as code (a plain string
naming a function stays text); a regression test covers both languages.
mood, room4doom and sqldoom match their goldens again.

Re-blessed golden: cssdoom, src/renderer/scene/scene.js func_hash only:
`preloadTextures` complexity 9 -> 8. Verified in the source: the function
has 7 branch points (four `for`, three `if`), so 8 is right. The old 9
counted a `?` inside the regex literal `/url\(['"]?([^'")\s]+)['"]?\)/`,
which the X6 JS regex-literal shield now blanks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
…numbers (Part of #8161)

graph-accuracy-audit's call-python job failed the flask (`import_graph`)
lane: resolution recall 88.9 -> 88.3. The engine side is identical on CI
and locally (312 judged links, 99.4% precision); the difference is the
reference: pyan3 2.9.0 under CI's Python 3.12 yields 749 flask edges (326
named), the local run 752 (324), deterministic across hash seeds and with
the cache off, on the same flask commit d73fa1cd. The offset predates this
PR: on PR 1's head CI read 88.7 / 40.6 against the locally made baseline of
89.2 / 40.4, inside the 0.5 pp tolerance only by luck. The lane's section
now holds CI's numbers (taken from run 42649894567's JSON through
`gated_metrics`): pyan edges 749, recall 41.4, resolution recall 88.3,
recall with decorators 47.9, all kinds 63.6; the rest unchanged. The local
run (41.2 / 88.9) passes against it. The crucible lane already matched CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant