Skip to content

feat(cli): rivet validate --variant for variant-scoped validation#147

Merged
avrabe merged 1 commit intomainfrom
worktree-agent-a73df6ce
Apr 14, 2026
Merged

feat(cli): rivet validate --variant for variant-scoped validation#147
avrabe merged 1 commit intomainfrom
worktree-agent-a73df6ce

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 14, 2026

Summary

rivet validate --model fm.yaml --variant v.yaml --binding bindings.yaml

Scopes validation to only the artifacts bound to the variant's effective features:

  1. Loads feature model, solves variant (constraint propagation)
  2. Collects bound artifact IDs from effective features via binding model
  3. Builds scoped store with only those artifacts
  4. Runs validation on scoped store
  5. Reports variant scope info in both text and JSON output

This is the final piece making the PLE system useful for audits — you can now ask
"is traceability complete for the EU + ADAS + ASIL-C variant specifically?"

Implements: REQ-045, REQ-046

🤖 Generated with Claude Code

Add --model, --variant, and --binding flags to `rivet validate` that
enable variant-scoped validation using the feature model constraint
solver. When all three flags are provided, the command:

1. Loads the feature model and solves the variant configuration
2. Uses the binding file to collect artifact IDs for effective features
3. Builds a scoped store containing only those artifacts
4. Runs validation against the scoped store instead of the full project

Includes error handling when only some of the three flags are provided,
variant scope info in both text and JSON output formats, and proper
diagnostic filtering for the salsa incremental path.

Implements: REQ-045, REQ-046

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit a06285f into main Apr 14, 2026
15 of 18 checks passed
@avrabe avrabe deleted the worktree-agent-a73df6ce branch April 14, 2026 03:26
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