Skip to content

Latest commit

 

History

History
290 lines (225 loc) · 79.4 KB

File metadata and controls

290 lines (225 loc) · 79.4 KB

Scenario catalog

Minimal catalog of Tree-sitter scenarios with sample coverage.

Impact and diff pipeline

Scenario Sample Expected behavior Source Date added
Rename/move impact seeding tests/impact-analyzer.test.ts (should seed transitive impact for renamed files) Transitive seeding considers both oldPath and path for renamed files so dependents on either side are included. Internal regression test 2026-03-06
Binary and mode-only git diff metadata tests/streaming-parser.test.ts Diff parser records isBinary, modeChanged, and similarityIndex metadata so fallback logic can run when hunks are empty. Internal regression test 2026-03-06
Impact diagnostics counters tests/impact-diagnostics.test.ts Impact report includes diagnostics counters (refsScanned, filtering counters, fallback counters, symbol mapping counters). Internal regression test 2026-03-06
External package filtering tests/graph-reports.test.ts, tests/cli-regressions.test.ts inspect and unresolved suppress graph-only document links, supported-language standard libraries, URL imports, and dependency-manifest packages while bounding manifest traversal to the scoped project boundary. Internal regression test 2026-05-02
SQL review context guardrails tests/sql-review-context.test.ts SQL facts appear as review context when SQL files or changed SQL literals make them relevant, while stale migrations, seeds, dumps, and fixtures do not create source dependency impact by default. Internal regression test 2026-05-12
Cross-language call compatibility hints tests/impact-call-compatibility/cross-language.test.ts, tests/impact-analyzer.test.ts, tests/impact-cli.test.ts, tests/review.test.ts Changed callable signatures can attach callCompatibility hints for resolved provider-backed source-language callsites with high-confidence argument counts; JS-family callable arrows include parenthesized and single bare parameters; pretty output shows likely mismatches only. Internal regression test 2026-05-27
Method-local changed-symbol support tests/method-local-symbols.test.ts, tests/parser-efficiency-fixes.test.ts, tests/goto.test.ts, tests/references.test.ts, tests/impact-analyzer.test.ts Method-like declarations are indexed as function locals across supported source languages; body edits map to the method and parameter edits set method-level signatureChanged. Verified receiver method references cover JS/TS plus Java, C#, and Rust receiver forms proven by goto; method-level call compatibility remains JS/TS-only. Internal regression test 2026-05-27
Copy-similarity duplicate leads tests/impact-cli.test.ts, tests/duplicates.test.ts Raw or git diff copy/rename similarityIndex metadata is preserved on changed files and can boost scoped duplicate leads at 80 or higher when both source and destination files exist in the indexed snapshot. Internal regression test 2026-06-04

Project discovery

Scenario Sample Expected behavior Source Date added
Parent-scoped sibling child git repositories tests/cli-regressions.test.ts graph --root <parent> <child-a> <child-b> indexes source files from separate child git repositories into one dependency graph, resolves cross-child imports, and skips .git. Internal regression test 2026-06-10

Duplicate detection

Scenario Sample Expected behavior Source Date added
AST-shape duplicate evidence tests/duplicates.test.ts Same-language source units with matching parser-backed AST shapes report astShapeEqual metrics and matching AST shape reasons for renamed clones. Internal regression test 2026-06-04

Native grammar coverage

Scenario Sample Expected behavior Source Date added
Removed JS fallback package tests/package-metadata.test.ts, tests/release-script.test.ts The root package keeps native runtime support as an optional dependency, the native package carries the parser binaries, and the removed compatibility package is neither publishable nor present as a workspace. Internal regression test 2026-06-18
Reduced-mode recovery tests/logging-behavior.test.ts, tests/fallback-import-extraction.test.ts TypeScript import binding/specifier extraction recovers through regex when native is unavailable, reports reduced-mode recovery, and avoids per-file warning spam. Internal regression test 2026-06-12
Native-only source-language runtime coverage tests/detailed-symbol-native-only.test.ts, tests/chunkFile.behavior.test.ts, tests/native-query-scope.test.ts Native-loaded source-language indexing, AST grep, chunking, and module-specifier recovery stay off any non-native parser backend when the native addon is loaded, while still reporting degraded recovery in diagnostics. Internal regression test 2026-06-12
Native-only source-language semantic coverage tests/native-parser-ownership.test.ts Native-loaded source-language symbol listing, go-to-definition, find-references, and detailed symbol-edge extraction stay off any non-native parser backend while native mode is active. Internal regression test 2026-06-12
Native chunk/query ownership tests/native-query-ownership-parity.test.ts Native chunking and AST grep stay productive on representative fixtures, while reduced mode remains safe and non-throwing when native is disabled. Internal regression test 2026-06-12
Native semantic coverage tests/native-semantic-parity.test.ts Native semantics for representative fixtures stay stable for symbol extraction, go-to-definition, and references across supported source-language samples. Internal regression test 2026-06-12
Native import/specifier recovery tests/native-query-scope.test.ts, tests/fallback-import-extraction.test.ts Native query normalization stays stable, and reduced mode keeps regex/graph-only recovery limited to the languages and surfaces that explicitly support it. Internal regression test 2026-06-12
Java import coverage tests/native-semantic-parity.test.ts, tests/import-binding-regressions.test.ts Native extraction keeps Java imports, wildcard package imports, and static wildcard imports stable across the covered fixtures. Internal regression test 2026-06-12
C# import coverage tests/native-semantic-parity.test.ts, tests/languages/csharp.test.ts Native extraction keeps using imports and alias-based graph edges stable across the covered fixtures. Internal regression test 2026-06-12
Rust import coverage tests/native-semantic-parity.test.ts, tests/languages/rust.test.ts Native extraction keeps mod, use, aliased imports, and extern crate graph edges stable across the covered fixtures. Internal regression test 2026-06-12
Ruby import coverage tests/native-semantic-parity.test.ts, tests/languages/ruby.test.ts Native extraction keeps require_relative edges and nested module references stable across the covered fixtures. Internal regression test 2026-06-12
Kotlin import coverage tests/native-semantic-parity.test.ts, tests/import-binding-regressions.test.ts, tests/detailed-symbol-native-only.test.ts Native extraction keeps normalized Kotlin imports, alias imports, and wildcard-imported types stable across the covered fixtures. Internal regression test 2026-06-12
Swift/C/C++ symbol coverage tests/native-semantic-parity.test.ts, tests/languages/swift.test.ts, tests/languages/c.test.ts, tests/languages/cpp.test.ts Native extraction keeps representative imports and symbol shapes stable for Swift, C, and C++ fixtures, including the intentionally limited macro-expanded C typedef case documented below. Internal regression test 2026-06-12
CSS and stylesheet specifier coverage tests/native-query-scope.test.ts, tests/languages/css.test.ts, tests/languages/less.test.ts, tests/languages/scss.test.ts Native extraction keeps stylesheet import and url(...) specifier extraction stable for CSS-family fixtures. Internal regression test 2026-06-12
SFC specifier coverage tests/native-query-scope.test.ts, tests/native-semantic-parity.test.ts, tests/languages/vue.test.ts, tests/languages/svelte.test.ts Native extraction keeps Vue and Svelte inline-script, script-setup, and external-script specifier extraction stable while semantic navigation stays not_found. Internal regression test 2026-06-12
End-to-end semantic coverage tests/native-semantic-parity.test.ts Native semantics stay stable for the current source-language fixture set (TypeScript, TSX, JavaScript, Python, PHP, Go, Java, C#, Rust, Kotlin, Swift, Zig, C, C++, Ruby). Internal regression test 2026-06-12
Deep semantic stress coverage tests/native-semantic-parity.test.ts Native semantics stay stable on deeper fixtures for PHP grouped imports, fully-qualified Composer-backed references, function/class basename collisions, Composer autoload metadata, aliased and dot Go imports, Kotlin alias and wildcard imports, Java wildcard imports, Rust nested modules, Swift static-member imports, Zig @import namespace members, C advanced typedef fixtures, C++ namespace fixtures, and Ruby nested modules. Internal regression test 2026-06-12
TypeScript normalization-sensitive coverage tests/native-semantic-parity.test.ts Native semantics stay stable for export = and class-export fixtures that depend on native query normalization. Internal regression test 2026-06-12
Graph/specifier native coverage tests/native-query-scope.test.ts, tests/languages/html.test.ts, tests/languages/css.test.ts, tests/languages/vue.test.ts, tests/languages/svelte.test.ts Native graph/specifier behavior stays stable for representative HTML, CSS-family, Vue, and Svelte fixtures. Internal regression test 2026-06-12

C

Scenario Sample Expected behavior Source Date added
Header includes tests/samples/c/main.c Dependency graph includes edges to utils.h and helpers.h for #include directives. Internal parity fixture 2026-03-22
Typedefs, enums, macros, and declarations tests/samples/c/advanced.h Symbol extraction includes macro definitions, typedef-backed structs, enum types, enum constants, and declared functions from headers. Internal regression fixture 2026-03-22
Function-pointer typedef imports tests/samples/c/advanced-use.c, tests/samples/c/function-pointers.h Dependency graph, go-to-definition, and direct declaration references resolve the Comparator typedef through #include. Internal regression fixture 2026-03-23
Macro-expanded typedef limitation tests/samples/c/macro-typedef-use.c, tests/samples/c/macro-typedef.h Reference recovery intentionally does not claim macro-expanded Comparator invocation sites that do not surface the typedef token directly. Internal regression fixture 2026-03-23
Header go-to-definition tests/goto.test.ts Included function declarations and typedef-backed structs resolve to header definitions from main.c. Internal regression test 2026-03-23
Header references tests/references.test.ts Shared function references and typedef-backed type references resolve across headers and main.c use sites. Internal regression test 2026-03-23

C++

Scenario Sample Expected behavior Source Date added
Header includes tests/samples/cpp/main.cpp Dependency graph includes edges to utils.hpp and helpers.hpp for #include directives. Internal parity fixture 2026-03-22
Namespaces, aliases, enums, and templates tests/samples/cpp/advanced.hpp Symbol extraction includes namespaces, enum types, enum constants, using aliases, classes, and template functions. Internal regression fixture 2026-03-22
Namespace-qualified alias targets tests/samples/cpp/namespace-usage.cpp, tests/samples/cpp/namespaces.hpp Go-to-definition and references resolve namespace-qualified alias targets across the alias boundary. Internal regression fixture 2026-03-23
Header go-to-definition tests/goto.test.ts Included function declarations and struct types resolve from main.cpp into utils.hpp. Internal regression test 2026-03-23
Header references tests/references.test.ts Shared function and struct references resolve across main.cpp and the included headers. Internal regression test 2026-03-23

C#

Scenario Sample Expected behavior Source Date added
Using directives tests/samples/csharp/Main.cs Dependency graph includes edges to Utils.cs and Helpers.cs for using directives. https://github.com/tree-sitter/tree-sitter-c-sharp 2026-01-22
Alias using graph edges tests/samples/csharp/AliasOnly.cs, tests/samples/csharp/NamespaceAlias.cs Dependency graph keeps alias-based using directives pointed at their target type/namespace instead of the alias token. Alias-only semantic navigation is intentionally not claimed yet. Internal regression fixture 2026-03-29
Nested types, interfaces, and enums tests/samples/csharp/AdvancedTypes.cs Symbol extraction includes interfaces, nested classes, enums, enum members, and member methods inside namespace-scoped fixtures. Internal regression fixture 2026-03-22

CSS

Scenario Sample Expected behavior Source Date added
@import stylesheets tests/samples/css/main.css Dependency graph includes edges to base.css and theme.css for @import. https://github.com/tree-sitter/tree-sitter-css 2026-01-22

Go

Scenario Sample Expected behavior Source Date added
Package imports tests/samples/go/main.go Dependency graph includes edges to utils.go and helpers.go for import paths. https://github.com/tree-sitter/tree-sitter-go 2026-01-22
Aliased imports tests/samples/go/aliased-imports.go Dependency graph still resolves edges to utils.go and helpers.go when package imports use aliases. Internal regression fixture 2026-03-22
Aliased package-qualified types tests/samples/go/aliased-types.go Go-to-definition and references resolve package-qualified type uses imported through aliases. Internal regression fixture 2026-03-23
Dot imports and blank imports tests/samples/go/dot-imports.go Dependency graph keeps dot and blank imports visible, and dot-imported constructor navigation resolves through the imported package. Internal regression fixture 2026-03-23
Interface-typed package uses tests/samples/go/interfaces.go References for UtilityClass include interface-typed argument positions that point back into the imported package. Internal regression fixture 2026-03-23
Interfaces and generic types tests/samples/go/contracts.go Symbol extraction includes interface declarations, generic type declarations, and generic factory functions. Internal regression fixture 2026-03-22
Package go-to-definition tests/goto.test.ts Imported functions and package-qualified struct types resolve from main.go into utils.go. Internal regression test 2026-03-23
Package references tests/references.test.ts Exported functions and package-qualified struct-type references resolve across main.go and utils.go. Internal regression test 2026-03-23

HTML

Scenario Sample Expected behavior Source Date added
Script and stylesheet references tests/samples/html/index.html Dependency graph includes edges to app.js and styles.css via src and href. https://github.com/tree-sitter/tree-sitter-html 2026-01-22
Module-preload and module-script references tests/samples/html/modules.html Graph/specifier extraction keeps modulepreload, module scripts, and linked pages stable while semantic navigation stays not_found. Internal regression fixture 2026-03-23

Astro

Scenario Sample Expected behavior Source Date added
Frontmatter imports and local page links tests/samples/astro/page.astro Dependency graph resolves Astro frontmatter imports, inline script imports, and local HTML-style links to sibling Astro and Markdown files while semantic navigation stays not_found. Internal regression fixture 2026-04-20

Handlebars

Scenario Sample Expected behavior Source Date added
HTML-style links and relative partials tests/samples/hbs/page.hbs Dependency graph resolves static HTML-style links and relative Handlebars partial includes while ignoring dynamic path expressions such as {{dynamicPath}}. Internal regression fixture 2026-04-20

Markdown

Scenario Sample Expected behavior Source Date added
Inline, reference-style, and autolink document links tests/samples/markdown/index.md Dependency graph resolves inline links, reference-style links, autolinks, and raw HTML anchors to sibling Markdown or HTML files, while hash-only anchors, image links, and raw HTML/JSX tags stay out of the document graph. Internal regression fixture 2026-04-20

MDX

Scenario Sample Expected behavior Source Date added
Static imports, document links, and raw HTML anchors tests/samples/mdx/page.mdx Dependency graph resolves MDX static imports/exports, Markdown-style document links, and raw HTML anchors to local files while semantic navigation stays not_found. Internal regression fixture 2026-04-20

reStructuredText

Scenario Sample Expected behavior Source Date added
Inline links, target definitions, includes, and toctrees tests/samples/rst/index.rst Dependency graph resolves explicit reStructuredText links, named target definitions, include directives, and Sphinx-style toctree entries to local .rst files while semantic navigation stays not_found. Internal regression fixture 2026-04-20

AsciiDoc

Scenario Sample Expected behavior Source Date added
xref, link, include, and anchor references tests/samples/adoc/index.adoc Dependency graph resolves AsciiDoc xref, link, include, and <<target>> references to local .adoc files, while anchor-only cross references stay out of the file graph and semantic navigation remains not_found. Internal regression fixture 2026-04-20

Java

Scenario Sample Expected behavior Source Date added
Static imports tests/samples/java/static-imports.java Dependency graph includes edges to utils/Utils.java and helpers/Helpers.java for static imports. https://github.com/tree-sitter/tree-sitter-java 2026-01-22
Wildcard package imports tests/samples/java/WildcardImports.java, tests/samples/java/pkg/*.java, tests/java-import-resolution-regression.test.ts Dependency graph expands import pkg.*; across all source files in the imported package instead of picking one representative file, and wildcard-imported nested-type/interface/enum navigation stays correct across package fixtures. Internal regression fixture 2026-03-23
Static wildcard imports tests/samples/java/StaticWildcardImports.java, tests/samples/java/utils/Utils.java Dependency graph, go-to-definition, and references resolve Java static wildcard imports back to the declaring utility class. Internal regression fixture 2026-03-29
Nested classes and interfaces tests/samples/java/NestedTypes.java Symbol extraction includes nested classes, nested interfaces, and their member methods. Internal regression fixture 2026-03-22

JavaScript

Scenario Sample Expected behavior Source Date added
Dynamic import specifier tests/samples/javascript/dynamic-import.js Dependency graph includes edge to helpers.js when import() is used. https://github.com/tree-sitter/tree-sitter-javascript 2026-01-22
CommonJS import bindings tests/robust-fast-graph.test.ts, tests/native-tree-sitter.test.ts Native extraction keeps require() and destructured CommonJS import handling productive. Internal regression test 2026-06-12
AngularJS heuristic graph enrichment tests/angularjs-framework.test.ts Dependency graph adds heuristic edges for AngularJS templateUrl, controller-name references, and DI tokens only when files explicitly use angular.module(...), and avoids triggering on non-AngularJS config objects with similar field names. This coverage is kept in a dedicated framework suite rather than the generic JavaScript fixture set. Internal regression test 2026-03-30

Kotlin

Scenario Sample Expected behavior Source Date added
Package imports tests/samples/kotlin/main.kt Dependency graph includes edges to utils/helperFunction.kt and helpers/helperFromHelpers.kt. Internal parity fixture 2026-03-22
Alias and wildcard imports tests/samples/kotlin/Aliases.kt, tests/samples/kotlin/TypeConsumers.kt, tests/samples/kotlin/utils/*.kt, tests/kotlin-import-resolution-regression.test.ts Dependency graph expands import utils.* across all source files in the imported package, and direct import-binding extraction, go-to-definition, and references resolve aliased and wildcard-imported Kotlin symbols across files. Internal regression fixture 2026-03-23
Enums, type aliases, and top-level properties tests/samples/kotlin/Models.kt Symbol extraction includes enum declarations and enum entries, type aliases, top-level properties, and generic classes. Internal regression fixture 2026-03-22
Package go-to-definition tests/goto.test.ts Imported top-level functions and imported classes resolve from main.kt into utils/helperFunction.kt. Internal regression test 2026-03-23
Package references tests/references.test.ts Imported function and class references resolve across main.kt and utils/helperFunction.kt. Internal regression test 2026-03-23

LESS

Scenario Sample Expected behavior Source Date added
@import stylesheets tests/samples/less/main.less Dependency graph includes edges to variables.less and theme.less for @import. https://github.com/tree-sitter/tree-sitter-css 2026-01-22
Secondary Less imports tests/samples/less/secondary.less Native and reduced-mode graph/specifier extraction stay aligned for additional Less import fixtures while semantic navigation stays not_found. Internal regression fixture 2026-06-12

Python

Scenario Sample Expected behavior Source Date added
Relative from imports tests/samples/python/relative-imports.py Dependency graph includes edges to utils.py and helpers.py for relative from imports. https://github.com/tree-sitter/tree-sitter-python 2026-01-22
__all__ export filtering tests/languages/python-all.test.ts Export extraction respects __all__ tuple/list assignments and avoids false positives from nearby strings. Internal regression test 2026-03-22

PHP

Scenario Sample Expected behavior Source Date added
Direct include and require edges tests/samples/php/main.php, tests/samples/php/grouped-consumer.php, tests/samples/php/dir-include-consumer.php Dependency graph includes edges for require, require_once, include, and include_once when the target is statically resolvable, including constant-foldable paths such as __DIR__ . '/file.php'. Internal parity fixture 2026-04-28
Bracketed namespace blocks tests/samples/php/bracketed-consumer.php, tests/samples/php/multi-namespace/Library.php, tests/resolution.test.ts PHP symbol indexing and navigation handle files that declare more than one bracketed namespace block, including later namespace blocks in the same file. Internal regression fixture 2026-04-28
Grouped use aliases, functions, and constants tests/samples/php/grouped-consumer.php, tests/samples/php/src/Support/*, tests/import-binding-regressions.test.ts Import binding extraction, go-to-definition, and references resolve grouped class/function/constant imports, including aliases. Internal regression fixture 2026-04-28
Function imports with colliding class names tests/samples/php/function-import-consumer.php, tests/samples/php/src/Collision/*, tests/resolution.test.ts use function resolution preserves PHP import kind so navigation, references, and graph edges resolve to the function even when a class with the same basename exists in the namespace. Internal regression fixture 2026-04-28
Composer PSR-0, PSR-4, and autoload-dev resolution tests/samples/php/composer-consumer.php, tests/resolution.test.ts Namespace-qualified imports resolve through composer.json autoload.psr-4, autoload-dev.psr-4, and psr-0, including PSR-0 underscore-to-directory class-name mapping. Internal regression fixture 2026-04-28
Composer classmap and autoload.files resolution tests/resolution.test.ts Global-namespace class lookups resolve through Composer classmap, exclude-from-classmap stays enforced for classmap-backed lookups, autoload.files entries behave as implicit file dependencies and symbol sources for PHP files in the project, and classmap-backed lookups stay bounded to Composer-declared autoload surfaces. Internal regression test 2026-04-28
Composer classmap exclusion boundaries tests/samples/php/composer-excluded-*.php, tests/languages/php.test.ts, tests/goto.test.ts, tests/references.test.ts exclude-from-classmap filters only classmap-origin candidates; PSR-4 mapped classes and autoload.files entries remain resolvable even when their files live under an excluded classmap path. Internal regression fixture 2026-05-21
Fully-qualified Composer-backed references tests/samples/php/composer-qualified-consumer.php, tests/samples/php/composer-static-*.php, tests/samples/php/composer-type-qualified-consumer.php, tests/goto.test.ts, tests/references.test.ts Fully-qualified class references such as new App\\Domain\\Service(), App\\Domain\\Service::make(), App\\Domain\\Service::NAME, App\\Domain\\Service::$shared, and typed positions like App\\Domain\\Service $service resolve without a use statement and contribute navigation/reference hits plus dependency-graph edges where the usage is cross-file relevant. Internal regression fixture 2026-04-28
Shared semantic coverage tests/goto.test.ts, tests/references.test.ts Imported functions, classes, grouped aliases, fully-qualified Composer-backed class/static/type references, and Composer-mapped symbols resolve through the same shared navigation/reference pipeline used by other source languages. Internal regression test 2026-04-28
Enums and enum cases tests/samples/php/utils.php, tests/languages/php.test.ts Symbol extraction includes PHP enum declarations and enum cases alongside classes and functions. Internal regression fixture 2026-06-18

Ruby

Scenario Sample Expected behavior Source Date added
require_relative imports tests/samples/ruby/main.rb Dependency graph includes edges to utils.rb and helpers.rb for relative requires. https://github.com/tree-sitter/tree-sitter-ruby 2026-01-22
Nested modules and classes tests/samples/ruby/namespaced.rb, tests/samples/ruby/consumer.rb Graph edges, go-to-definition, and references cover nested Ruby modules and classes across files. Internal regression fixture 2026-03-23

Rust

Scenario Sample Expected behavior Source Date added
Module and use imports tests/samples/rust/main.rs Dependency graph includes edges to utils.rs and helpers.rs for mod and use. https://github.com/tree-sitter/tree-sitter-rust 2026-01-22
Aliased use imports tests/samples/rust/aliased-use.rs Dependency graph still resolves edges to utils.rs and helpers.rs when use imports are renamed with as. Internal regression fixture 2026-03-22
extern crate graph edges tests/samples/rust/extern-crate.rs Dependency graph keeps extern crate edges visible while aliased use navigation still resolves to the imported module file. Internal regression fixture 2026-03-29
Reexports and nested modules tests/samples/rust/reexports.rs, tests/samples/rust/nested.rs, tests/samples/rust/nested_service.rs Go-to-definition and references cover nested-module type resolution, and native semantic coverage keeps those nested/reexport fixtures stable. Internal regression fixture 2026-03-23
Traits, impls, enums, and exported types tests/samples/rust/models.rs Symbol extraction includes trait declarations, enum declarations, enum variants, impl-backed methods, and exported structs from Rust modules. Internal regression fixture 2026-03-22

SCSS

Scenario Sample Expected behavior Source Date added
@use partials tests/samples/scss/use-partials.scss Dependency graph includes edges to _variables.scss and _mixins.scss for @use. https://github.com/tree-sitter/tree-sitter-scss 2026-01-22
@forward partials tests/samples/scss/forward.scss Native and reduced-mode graph/specifier extraction stay aligned for @forward and @use as fixtures while semantic navigation stays not_found. Internal regression fixture 2026-06-12
Extensionless and explicit-extension partials tests/samples/scss/main.scss, tests/samples/scss/extensionless-forward.scss, tests/samples/scss/extensionless-import.scss, tests/samples/scss/uppercase-extension-import.scss Relative @use, @forward, and @import extensionless specifiers, plus explicit .scss specifiers with non-canonical extension casing, resolve to SCSS partials; missing partials, url(...) assets, and same-basename non-stylesheet files stay external. Internal regression fixture 2026-05-08

SQL

Scenario Sample Expected behavior Source Date added
Statement chunking tests/languages/sql.test.ts, tests/languages/samples/sql.sample.sql .sql files parse through Tree-sitter SQL and chunk into statement-level DDL, DML, and query blocks. Internal regression test 2026-05-12
Statement fact extraction tests/sql-fact-extraction.test.ts, tests/samples/sql/facts/* SQL files emit file-local facts for table, view, index, alter, constraints, CTE reads, rename, drop, truncate, merge, write, read, and join statements while preserving file, line range, role, and statement text. Internal regression test 2026-05-13
SQL repository indexing tests/languages/sql.test.ts, tests/samples/sql/graph/* A normal repository index discovers .sql files, extracts SQL object symbols, and includes SQL-to-SQL object edges. Internal regression test 2026-05-12
SQL edge precision tests/sql-artifact-graph.test.ts SQL-to-SQL edges are precise for exact object-name matches, heuristic for unambiguous qualified-to-basename fallback matches, and skipped for ambiguous basename guesses. Internal regression test 2026-05-13
Stale migration isolation tests/sql-artifact-graph.test.ts, tests/samples/sql/graph/* Repeated object mentions become SQL object candidates, not current schema claims or application-code dependency edges. Internal regression test 2026-05-12
Seed, fixture, and dump filters tests/sql-review-context.test.ts, tests/samples/sql/review/* Seed, fixture, and dump SQL remains visible as SQL facts when changed directly but does not create application impact in code-only PRs. Internal regression test 2026-05-12
Changed SQL literal bridge tests/sql-review-context.test.ts A changed code SQL literal can surface matching SQL object candidates as review context without enabling global string matching from code to SQL. Internal regression test 2026-05-12
SQL navigation tests/goto.test.ts, tests/references.test.ts SQL object names support go-to-definition and find-references across SQL files, including schema-qualified names and object-level alias/table-qualified references, while application-code strings stay out of global SQL navigation and column definitions remain unclaimed. Internal regression test 2026-05-13
SQL explain target disambiguation tests/agent-explain.test.ts SQL explain targets resolve exact object names first and resolve unqualified basenames only when they are unique across schemas. Internal regression test 2026-05-15

Svelte

Scenario Sample Expected behavior Source Date added
Inline script imports tests/samples/svelte/inline-script.svelte Dependency graph includes edge to logic.ts for inline script imports. https://github.com/tree-sitter/tree-sitter-svelte 2026-01-22
Reactive script imports tests/samples/svelte/reactive.svelte Native extraction keeps module-specifier recovery stable for reactive Svelte script blocks. Internal regression fixture 2026-06-12
TypeScript script imports tests/samples/svelte/TypeScriptWidget.svelte Graph/specifier extraction stays aligned for Svelte TypeScript script blocks and component imports while semantic navigation stays not_found. Internal regression fixture 2026-03-23
External script src imports tests/samples/svelte/App.svelte, tests/samples/svelte/ExternalScripts.svelte Dependency graph includes external <script src="./logic.ts"> edges, deduplicates repeated src, ignores empty src, and preserves remote URL externals without claiming template semantic navigation. Internal regression fixture 2026-05-08

TypeScript

Scenario Sample Expected behavior Source Date added
Dynamic import specifier tests/samples/typescript/dynamic-import.ts Dependency graph includes edge to helpers.ts when import() is used. https://github.com/tree-sitter/tree-sitter-typescript 2026-01-22
export = coverage tests/native-semantic-parity.test.ts Native export extraction stays stable for export = value and named class export fixtures. Internal regression test 2026-06-12
Enum navigation and references tests/goto.test.ts, tests/references.test.ts Exported TypeScript enums are indexed as type symbols, named imports resolve to enum declarations, and references include enum use sites. Internal regression test 2026-06-18

TSX

Scenario Sample Expected behavior Source Date added
Component imports tests/samples/tsx/App.tsx Dependency graph includes edges to components/Button.tsx and utils.ts for TSX imports. https://github.com/tree-sitter/tree-sitter-typescript 2026-01-22
Authored .jsx imports to .tsx sources tests/samples/tsx/JsxImportApp.tsx, tests/samples/tsx/components/Button.tsx Graph extraction, go-to-definition, references, and native semantic coverage treat authored .jsx specifiers as source links to sibling .tsx files. Internal regression fixture 2026-04-27

Vue

Scenario Sample Expected behavior Source Date added
Inline script imports tests/samples/vue/inline-script.vue Dependency graph includes edge to logic.ts for inline script imports. https://github.com/tree-sitter/tree-sitter-vue 2026-01-22
script setup imports tests/samples/vue/script-setup.vue Native extraction keeps module-specifier recovery stable for Vue script setup blocks. Internal regression fixture 2026-06-12
TypeScript script-block imports tests/samples/vue/TsScript.vue Graph/specifier extraction stays aligned for Vue TypeScript script blocks and sibling component imports while semantic navigation stays not_found. Internal regression fixture 2026-03-23
External script src imports tests/samples/vue/App.vue, tests/samples/vue/ExternalScripts.vue Dependency graph includes external <script src="./logic.ts"> edges, deduplicates repeated src, ignores empty src, and preserves remote URL externals without claiming template semantic navigation. Internal regression fixture 2026-05-08

Swift

Scenario Sample Expected behavior Source Date added
Module imports tests/samples/swift/main.swift Dependency graph includes edges to Utils.swift and Helpers.swift for imported symbols used in the fixture. Internal parity fixture 2026-03-22
Extensions, enums, and static members tests/samples/swift/Extensions.swift, tests/samples/swift/StaticMembers.swift, tests/samples/swift/AdvancedUsage.swift Symbol extraction covers enum declarations and cases; go-to-definition, references, and native semantic coverage cover imported static-member fixtures. Extension methods are extracted even when not all member navigation shapes are claimed yet. Internal regression fixture 2026-03-23
Protocols, type aliases, and subscripts tests/samples/swift/Protocols.swift Symbol extraction includes protocols, protocol members, type aliases, classes, and subscript-bearing implementations. Internal regression fixture 2026-03-22
Module go-to-definition tests/goto.test.ts Imported helper functions and structs resolve from main.swift into Utils.swift. Internal regression test 2026-03-23
Module references tests/references.test.ts Imported helper-function and struct references resolve consistently across main.swift and Utils.swift. Internal regression test 2026-03-23

Zig

Scenario Sample Expected behavior Source Date added
@import file edges tests/samples/zig/main.zig Dependency graph extraction resolves file-local @import("./file.zig") calls to sibling Zig source files. Internal parity fixture 2026-05-02
Namespace member access tests/samples/zig/main.zig, tests/samples/zig/helpers.zig Go-to-definition and references resolve function members through aliases created by const alias = @import("./module.zig"). Internal regression fixture 2026-05-02
Type alias members tests/samples/zig/main.zig, tests/samples/zig/math.zig Symbol extraction classifies type-valued pub const declarations as types, and navigation/references resolve module.TypeName usages. Internal regression fixture 2026-05-02
Native semantic coverage tests/languages/zig.test.ts, tests/native-semantic-parity.test.ts Native graph edges, symbol presence, go-to-definition, and find-references coverage stay stable for Zig fixtures. Internal regression test 2026-05-02