Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ output schemas (see `spec/non-functional/NFR-006-cli-stability.md`).

## [Unreleased]

### Changed

- Adopt quire-rs 0.65.0 (tag `v0.65.0`). The checked semantic clause language is
`filament`, not `quire` (engine #814). `quire impact --check-tags` entries for
invalid, unverifiable and non-binding findings now carry the engine's changed
`symbol` and revision `side` (`base` or `head`); `source_line` is removed and
`line` is the engine's line, shown for non-binding attributes only. A symbol present on
both revisions now gives one entry per side, including for invalid and
unverifiable ids. The
`--dependency-move` runner `filter` is the engine's.

## [0.54.4] — 2026-11-30

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/main.rs"

[dependencies]
ix-cli-kit = { git = "https://github.com/agent-ix/ix-cli-kit", branch = "main", features = ["self-update"] }
quire-rs = { version = "=0.64.1", git = "https://github.com/agent-ix/quire-rs", tag = "v0.64.1" }
quire-rs = { version = "=0.65.0", git = "https://github.com/agent-ix/quire-rs", tag = "v0.65.0" }
ix-trace-rs = { version = "=0.1.0", git = "https://github.com/agent-ix/ix-trace-rs", rev = "2ce4ebf47f726b9d76388220545cd0abda8a5cfb" }
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions docs/how-to-analyze-change-impact.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ HEAD=$(git -C "$REPO" rev-parse HEAD)
--format json --check-tags
```

The report then includes missing, invalid, unavailable, and non-binding link findings. In JSON they are listed in `tag_check.entries`, each with its `kind` (`missing_link`, `invalid_id`, `unverifiable_id` or `non_binding_attribute`), path, the changed symbol and source line when they can be told, and a `reason_chain`. The human report prints one block per finding under the same four names. The check covers Rust sources only; a clean result says nothing about other languages. To make any such finding fail the command, add `--fail-on-tag-findings`. That option requires `--check-tags`.
The report then includes missing, invalid, unavailable, and non-binding link findings. In JSON they are listed in `tag_check.entries`, each with its `kind` (`missing_link`, `invalid_id`, `unverifiable_id` or `non_binding_attribute`), path, the changed `symbol` and its `side` (`base` or `head`) from the engine (not on `missing_link`), a `line` for `non_binding_attribute` only, and a `reason_chain`. A symbol present on both revisions gives one entry per side. The human report prints one block per finding under the same four names. The check covers Rust sources only; a clean result says nothing about other languages. To make any such finding fail the command, add `--fail-on-tag-findings`. That option requires `--check-tags`.

3. **Compare a dependency move.** Pass the local upstream repository and the old and new revisions for each dependency move:

Expand All @@ -54,4 +54,4 @@ The default JSON report contains `changed_symbols`, `selected_tests`, `related_i

## Verify the report

Check `selection_complete` before relying on the selected tests. For dependency moves, inspect each entry in `dependency_moves`; an empty `selected_tests` list is meaningful only when the report is resolved and its upstream inputs are available. Use the emitted `filter` values with your project's test runner when you decide to run the suggested tests. Each dependency-move row has a `filter`: the engine's test symbol, a name path inside its file. A test runner treats it as a substring and it carries no crate or target, so also read the row's `test_path` and select the package with `-p` or `--workspace`. The JSON `selected_tests` holds one row per chain from an upstream item to a test, so the same test appears in many rows; deduplicate on `filter` and `test_path`. The human report lists the test once with one `Reason:` line for each way the move reaches it. Upstream changes with no local reference are shown as unmatched. A test that is not listed is not shown to be unaffected.
Check `selection_complete` before relying on the selected tests. For dependency moves, inspect each entry in `dependency_moves`; an empty `selected_tests` list is meaningful only when the report is resolved and its upstream inputs are available. Use the emitted `filter` values with your project's test runner when you decide to run the suggested tests. Each dependency-move row has a `filter`: the engine's runner filter, a name path inside its file. A test runner treats it as a substring and it carries no crate or target, so also read the row's `test_path` and select the package with `-p` or `--workspace`. The JSON `selected_tests` holds one row per chain from an upstream item to a test, so the same test appears in many rows; deduplicate on `filter` and `test_path`. The human report lists the test once with one `Reason:` line for each way the move reaches it. Upstream changes with no local reference are shown as unmatched. A test that is not listed is not shown to be unaffected.
5 changes: 1 addition & 4 deletions src/commands/impact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ pub fn run(ctx: &Ctx, args: Args) -> Result<()> {
caller_search_depth: args.caller_depth,
})?;
let tag_findings = report.findings.iter().any(is_tag_finding);
let tag_check = args
.check_tags
.then(|| impact_tags::tag_check(&report, &head));
let tag_check = args.check_tags.then(|| impact_tags::tag_check(&report));
if !args.check_tags {
report.findings.retain(|finding| !is_tag_finding(finding));
}
Expand Down Expand Up @@ -332,7 +330,6 @@ fn dependency_moves(
traceability,
});
let mut value = serde_json::to_value(report)?;
impact_dependency::add_filters(&mut value);
if let Some(object) = value.as_object_mut() {
object.insert(
"repository_path".into(),
Expand Down
30 changes: 5 additions & 25 deletions src/commands/impact_dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,14 @@
//! `quire impact --dependency-move` (FR-049-AC-6).
//!
//! The engine decides which upstream files and items changed, which local symbols refer
//! to them and which tests are reached. This module only adds the runner filter to each
//! selected test and writes the result as text, one block per selected test.
//! to them, which tests are reached and the runner filter of each. This module only writes
//! the result as text, one block per selected test.

use std::collections::BTreeMap;

use ix_trace_rs::implements;
use serde_json::Value;

/// Names every selected test of one dependency move with the filter a Rust test runner takes.
///
/// The engine names a test by its qualified symbol, which is also the substring the runner
/// matches, so the filter is that name.
#[implements("FR-049-AC-6")]
pub fn add_filters(movement: &mut Value) {
let Some(tests) = movement
.get_mut("selected_tests")
.and_then(Value::as_array_mut)
else {
return;
};
for test in tests {
let filter = test["test_symbol"].clone();
if let Some(object) = test.as_object_mut() {
object.insert("filter".into(), filter);
}
}
}

/// The note printed after every dependency move: a short list is not a claim about the rest.
pub const NOT_LISTED: &str =
" Tests that are not listed are not shown to be unaffected; the engine only lists tests it reached.";
Expand Down Expand Up @@ -98,12 +78,12 @@ pub fn render_human(movement: &Value) -> Vec<String> {
let mut tests: BTreeMap<(String, String), Vec<&Value>> = BTreeMap::new();
for selected in movement["selected_tests"].as_array().into_iter().flatten() {
tests
.entry((text(selected, "test_path"), text(selected, "test_symbol")))
.entry((text(selected, "test_path"), text(selected, "filter")))
.or_default()
.push(selected);
}
for ((path, symbol), reasons) in tests {
lines.push(format!(" Selected test filter={symbol} ({path})"));
for ((path, filter), reasons) in tests {
lines.push(format!(" Selected test filter={filter} ({path})"));
for reason in reasons {
let call_path = reason["call_path"]
.as_array()
Expand Down
Loading