feat(inventory): fail-closed env YAML validate for Path A2 PR checks - #68
Merged
Merged
Conversation
Vendor-neutral `deslicer inventory validate` runs CCA-style structural checks on `.deslicer/environments/*.yml` and live host-group allowlisting via Observer, so thin tenant workflows can call the CLI instead of embedding validation logic. Co-authored-by: Cursor <cursoragent@cursor.com>
YoungDan
approved these changes
Sep 2, 2026
6 tasks
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
deslicer inventory validatefor thin tenant PR checks: CCA-style shape/dup/source_path/dest_dirvalidation on.deslicer/environments/*.yml, plus live host-group allowlisting via existing auth → ObserverGET /api/v1/groups(not a hardcoded list).--environment,--dir, and human/JSON output (--log-format) consistent withinventory sync/list.Stacking note
mainand does not depend on unmerged APIs from #65 (feat/dynamic-target-resolution). Can merge independently; Path A2 sequence still pairs with feat(change): resolve --target-group by inventory group name #65 for dynamic target resolution.Test plan
cargo fmtcargo clippy --all-targets -- -D warningscargo test(unit +e2e_inventory_validate)deslicer inventory validate --environment <stem> --dir <repo>against a known-good env YAML (expect exit 0) and an unknowninventory_group(expect exit 1 + suggestion)What's next (Path A2)
deslicer inventory validate(thin wrapper only)--target-group+ validate in one CI recipeMade with Cursor