feat(analysis): Add structured dependency contract - #96
Conversation
Co-Authored-By: GPT-5.6 Sol <codex@openai.com>
c40bfc8 to
d16a372
Compare
|
Reviewed. Schema-versioning the deps output and sorting Three things: 1. 2. The inventory costs a second full filesystem walk. 3. Also: the Rust check is hardcoded into a generic constructor, so it'll need editing per language that gains partial coverage. Related to (1) — if the provenance vocabulary is shared, this could be data-driven instead. |
Consolidate the JordanCoin#93, JordanCoin#96, JordanCoin#97, and JordanCoin#99 maintainer corrections into one compatible scanner, graph, CLI, and MCP contract.\n\nPreserve provenance across recoverable scans and fallbacks, apply configured filters consistently, reuse one dependency graph inventory for coverage and rendering, and make unmatched Rust source coverage explicit.\n\nCo-Authored-By: GPT-5.6 Sol <codex@openai.com>
|
Superseded by #105, which landed as 9edb24a. Verified before closing: #105's file set is a strict superset of this PR's — every file here is present in the merged commit, none dropped. The consolidation was necessary because these four rewrote the same scanner entry points with incompatible intent; the merged branch settles all three contracts (one provenance vocabulary, one scanner entry point, fail-closed with a usable degraded path). Thanks for doing the reconciliation work. |
feat(analysis): Add structured dependency contract
What does this PR do?
Adds versioned, deterministic dependency JSON and MCP structured output for agentic coding in isolated worktrees and restricted sandboxes while preserving the existing text response. Coverage remains explicit, including known partial Rust analysis.
The contract lets CLI and MCP clients consume the same machine-readable dependency graph:
codemap --json --deps .Type of change
Checklist
go build && ./codemap .Additional notes
Also stabilizes the pre-existing Linux debounce test by making its write burst unambiguously shorter than the production debounce window.
Verification:
go test ./analysis ./scanner ./mcp . -count=1; Linux Go 1.25 race suite.Developed with carefully directed, manually reviewed AI assistance.
Co-Authored-By: GPT-5.6 Sol codex@openai.com