Repository navigation
feat(cli): add trace, impact, and Workspace package filter - #201
Merged
Merged
Conversation
Add cycle-safe shortest-path BFS over resolved runtime imports in codeint-metrics, structured TraceReport rendering (TOON, JSON, text) in codeint-report, the codeint trace CLI subcommand with --all and --max-paths, and the matching read-only trace tool in codeint mcp. Closes #179
Compute transitive reverse-dependency blast radius over the full resolved runtime import graph (preserving Test -> Production edges), supporting direct vs. transitive distances, fan-in/fan-out, transitive import weight, Production vs. Test separation, affected Workspace packages, multiple target paths, --depth caps, --changed <base> via native gix, text/JSON/TOON formats, and the matching MCP impact tool. Closes #180
Scope Metrics, Findings, Budgets, Regressions, and graph queries to a single Workspace package while preserving cross-package runtime import resolution. Closes #181
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds language-neutral import-graph query commands (
codeint tracefor shortest runtime import paths andcodeint impactfor transitive reverse-dependency blast radius including--changedvia nativegix), exposes matching read-onlytraceandimpacttools oncodeint mcp, and adds--packagemonorepo Workspace package filtering acrosscheck,diff,trace,impact, andmcp.Closes #170
Closes #179
Closes #180
Closes #181
Tier
Tier 2 from the tier check: default tier for application code across
crates/config,crates/git,crates/metrics,crates/report,crates/cli, anddocs/reference.md.Task
Spec #170 and sub-issues #179, #180, #181:
codeint traceshortest runtime import paths (--all,--max-paths, cycle-safe, disconnected handling, text/JSON/TOON) and MCPtracetool (codeint trace <from> <to>shortest runtime import paths in CLI and MCP #179)codeint impactreverse-dependency blast radius (direct vs. transitive distances, Production vs. Test separation, fan-in/fan-out, transitive import weight, affected Workspace packages,--depth,--changed, text/JSON/TOON) and MCPimpacttool (codeint impact <path>blast radius and--changed <base>in CLI and MCP #180)--packagefilter acrosscheck,diff,trace,impact, and MCP preserving cross-package import resolution accuracy (Monorepo--package <path>filter across check, diff, trace, and impact #181)Fail-first test
crates/cli/tests/trace.rs(trace_finds_shortest_runtime_import_path_in_cli_json_text_and_toon),crates/cli/tests/impact.rs(impact_reports_direct_and_transitive_dependents_separating_production_and_test), andcrates/cli/tests/package_filter.rs(check_package_scopes_metrics_findings_budgets_and_preserves_cross_package_imports)error: unrecognized subcommand 'trace',error: unrecognized subcommand 'impact',error: unexpected argument '--package' found)Checks
cargo test --workspace --lockedcargo clippy --workspace --all-targets -- -D warningscargo fmt --checkcodeint diff 407b0balefthookpre-commit and commit-msgcargo run --package xtask -- merged-result)Safety proof
check,diff,trend,guard, andmcpinvocations without--packagepreserve identical cache keys, measurements, and output formats.crates/cli/tests/check.rs,crates/cli/tests/diff.rs,crates/cli/tests/mcp.rs, andcrates/cli/tests/boundaries.rsall passed after mergingmain(407b0ba), andCommitMeasurementcache keys omitpackagewhenNone.interrogate: none run below Tier 3.Runtime evidence
End-to-end CLI and MCP integration tests executed the compiled
codeintbinary on revisionbb91f2facross TypeScript, Python, and Rust workspace fixtures and temporary Git repositories (trace,impact,package_filter,mcp,boundaries,guard, andreferencesuites all passed, andcodeint diff 407b0baexited 0 with zero regressions).Gaps