Repository navigation
0.3.1
AST-Digger v0.3.1 Release Notes
AST-Digger v0.3.1 introduces Semantic Change Impact Analysis, Docstring Auditing, and Intent Verification (change-impact)! 🎉
AI coding agents and developers can now evaluate code modifications by AST syntax statements and cyclomatic complexity deltas (eliminating false positives from comments or blank lines), audit docstring completeness on changed symbols, and receive repository-agnostic advisories for documentation and ADR synchronization with built-in self-healing guardrails.
✨ What's New
-
🔍 Semantic Change Impact & Intent Verification (
change-impact):- AST Statement & Cyclomatic Complexity Deltas:
- Implemented AST-aware statement counting and branching complexity analysis (
internal/impact/analyzer.go) across Golang, Python, TypeScript, Rust, Java, and SQL. - Classifies change scale into 4 semantic tiers (
MINOR,MODERATE,SIGNIFICANT,EXTREME).
- Implemented AST-aware statement counting and branching complexity analysis (
- Diff-Aware Symbol Extraction & Docstring Auditing:
- Maps modified lines from git unified diff to AST symbols (
internal/impact/symbols.go), identifying added, modified, and deleted symbols. - Safely excludes deleted symbols from docstring auditing and audits docstring coverage according to visibility (
public/private) and scope (--require-doc=exported|all|none).
- Maps modified lines from git unified diff to AST symbols (
- Repository-Agnostic Documentation Advisories:
- Analyzes module boundaries and cross-cutting changes (
internal/impact/advisory.go) to generate contextual advisories (documentation_advisory), reminding agents to update architecture decision records (ADR) or module-level specifications without assuming specific file conventions.
- Analyzes module boundaries and cross-cutting changes (
- Self-Healing Guardrails for AI Agents:
- Added
--max-statements <N>and--fail-on-missing-docguardrails returning exit code2on violations. - Engineered a "report-first" design: complete text or JSON reports are streamed to
stdoutbefore exiting with code 2, empowering AI agents to inspect missing docstrings or oversized modules and self-correct autonomously.
- Added
- Agent-Native Structured JSON:
- Full JSON output support (
--json) conforming to theChangeImpactReportschema for CI/CD and multi-agent pipelines.
- Full JSON output support (
- AST Statement & Cyclomatic Complexity Deltas:
-
⚡ Zero-Disk-IO In-Memory Parsing:
- Extended
internal/parser.Parserinterface withParseBytes(source []byte, filePath string)across all supported language parsers. - Git tree objects (
git show base:file) and working tree buffers are parsed directly in memory without writing temporary files to disk. - Added unified parser factory
internal/parser.ForPath.
- Extended
-
🏛️ Architecture Decision Record (ADR):
- Recorded ADR-0006:
doc/adr/0006-semantic-change-impact-and-intent-verification.mdformalizing the semantic impact analysis architecture, AST delta heuristics, and report-first guardrail design.
- Recorded ADR-0006:
🌐 CLI & Agent-Context Integration
- Registered
change-impactintoagent-contextlive command discovery (CLI now offers 9 full-featured subcommands). - Updated
README.mdandSKILL.mdwith detailed command syntax, guardrail examples, JSON schema samples, and the 6-step agent workflow.