Skip to content

[PLAT-1901] Present tag-check findings by kind with reason chains - #297

Merged
kreneskyp merged 3 commits into
mainfrom
peter/plat-1901-quire-cli-present-tag-check-findings-from
Dec 4, 2026
Merged

kreneskyp merged 3 commits into
mainfrom
peter/plat-1901-quire-cli-present-tag-check-findings-from

Conversation

@kreneskyp

Copy link
Copy Markdown
Contributor

Presents the engine's requirement-link findings from quire impact --check-tags as four distinct kinds, each with its changed symbol and a reason chain. quire-cli only regroups and words what quire-rs returns (FR-099); no binder or spec-resolution logic is copied.

What changed

  • New src/commands/impact_tags.rs. With --check-tags the JSON report gains tag_check (coverage and entries). Each entry has kind (missing_link, invalid_id, unverifiable_id, non_binding_attribute), path, trace_id or symbol, line/source_line where known, and reason_chain. The engine's findings array is unchanged.
  • Human report: one block per finding (Missing link:, Invalid id:, Unverifiable id:, Non-binding attribute:), the affected changed symbol, the source line, Because: lines, a Rust-only scope line, and Tag check: no findings when clean. Tag findings no longer appear as Finding: {:?} dumps.
  • Unchanged: findings are report-only by default; --fail-on-tag-findings (requires --check-tags) still fails.
  • docs/how-to-analyze-change-impact.md describes the new section.

The affected symbol for invalid and unverifiable ids and for non-binding attributes is located by matching the head-side source line against the engine's changed symbols (presentation only). The engine finding carries only path, id and line.

Criteria

FR-049-AC-5 (tests tagged; the new functions carry #[implements("FR-049-AC-5")]). Related code checked: run and the previous is_tag_finding in impact.rs (moved into impact_tags.rs); FR-049-AC-2 JSON field list is only extended.

Tests run (focused)

ix-build ... cargo test --locked --test cli_impact -- --test-threads=4: 15 passed. New: one fixture each for missing link, invalid id, unverifiable id, non-binding attribute (including a path-qualified #[ix_trace_rs::implements(...)]), a clean fixture (also with --fail-on-tag-findings), and a no---check-tags fixture with no tag_check.

Engine behavior seen in the fixtures: a non-binding attribute also leaves its symbol with a missing link, so both entries appear for that symbol.

Not verified: tests were written alongside the implementation, not shown failing first on a clean tree. No full-suite or aggregate gate run.

🤖 Generated with Claude Code

… chain

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kreneskyp
kreneskyp requested a review from a team as a code owner December 4, 2026 18:46
kreneskyp and others added 2 commits December 4, 2026 11:22
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kreneskyp
kreneskyp merged commit 557233e into main Dec 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant