Skip to content

v6.4.0

Choose a tag to compare

@magicdrive magicdrive released this 12 Oct 20:47
· 233 commits to main since this release
165c0b5

Ark v6.4.0 — Go Semantic Accuracy Hardening

Ark v6.4.0 delivers a major improvement in Go semantic reference resolution, significantly expanding reference coverage while strengthening resolution soundness.

In a fixed-corpus evaluation against an independent go/types oracle, reference recall improved from 35.85% to 92.53%, with 53,176 additional correctly resolved references and no previously correct references lost.

This release focuses on making Ark's code intelligence more complete and trustworthy for AI-assisted code exploration.

Highlights

Dramatically Improved Go Reference Coverage

Ark now extracts and resolves substantially more Go references, including:

  • Type references and type usages

  • Value references

  • Assignment and write references

  • Additional call references

  • References involving generic receivers and type parameters

  • References across package and import boundaries

These improvements provide richer semantic context for code navigation, reference discovery, and MCP-powered coding agents.

Stronger Resolution Soundness

The resolver has been hardened to avoid unsupported or overly confident resolution claims.

Key improvements include:

  • More accurate handling of package imports and aliases

  • Better lexical scope and shadowing behavior

  • Improved handling of generic receiver types

  • More conservative resolution of external-package references

  • Stronger evidence requirements for member and receiver resolution

In the evaluated corpus, false Strong resolutions decreased from 2 to 0, and false OutsideRepository classifications decreased from 315 to 0.

Independent Semantic Oracle Validation

Go reference accuracy is now tested against an independent oracle based on go/types, with additional synthetic regression tests.

The evaluation covers five Go codebases at fixed revisions, including Ark, golang.org/x/tools, golang.org/x/exp, Cobra, and go-cmp.

Metric | Before | v6.4.0 -- | -- | -- Reference recall | 35.85% | 92.53% Correctly resolved references | ~32.4K | ~85.6K False Strong resolutions | 2 | 0 False OutsideRepository classifications | 315 | 0

The recall comparison uses the same 90,355 reference instances before and after the changes. Results apply to the oracle-covered, Ark-representable reference set and should not be interpreted as universal Go language coverage.

Regression and Compatibility Improvements

  • Added reference-oracle and synthetic regression tests.

  • Expanded tests for imports, scoping, generic receivers, and reference extraction.

  • Updated Go index cache version from go-7 to go-8.

  • Updated language support and resolution model documentation.

  • Preserved the existing evidence-based resolution architecture without introducing a production dependency on Go's type checker.

Performance

The expanded reference extraction introduces moderate indexing overhead in the measured environments, while query latency remains effectively unchanged.

Cold indexing increased by approximately 3.9% on Ark and 5.7% on x/tools. Peak memory usage remained broadly stable.

Known Limitations

Some Go reference patterns remain incomplete, particularly:

  • Method values

  • Promoted methods through embedding

  • Method calls requiring inferred receiver types

  • Certain method expressions

  • Some build-configuration-dependent and cross-module references

Ark continues to avoid claiming exact resolution when sufficient semantic evidence is unavailable.

Validation

The release was validated with:

  • Full Go test suite

  • Race-enabled tests

  • go vet and staticcheck

  • Independent go/types oracle comparisons

  • Synthetic regression tests

  • Mutation testing

  • Multi-repository corpus evaluation

  • Independent implementation review

Full Changelog

v6.3.0...v6.4.0


Ark v6.4.0 makes Go code intelligence substantially more complete without sacrificing the conservative resolution principles that keep AI-assisted code exploration trustworthy.