Skip to content

feat(inventory): fail-closed env YAML validate for Path A2 PR checks - #68

Merged
YoungDan merged 1 commit into
mainfrom
feat/env-metadata-validate
Sep 2, 2026
Merged

YoungDan merged 1 commit into
mainfrom
feat/env-metadata-validate

Conversation

@SaikrishnaGundeti

Copy link
Copy Markdown
Member

Summary

  • Adds deslicer inventory validate for thin tenant PR checks: CCA-style shape/dup/source_path/dest_dir validation on .deslicer/environments/*.yml, plus live host-group allowlisting via existing auth → Observer GET /api/v1/groups (not a hardcoded list).
  • Supports --environment, --dir, and human/JSON output (--log-format) consistent with inventory sync / list.
  • Keeps workflow logic in the CLI; does not add exclusive PR-file filtering (full reconcile remains execute semantics).

Stacking note

Test plan

  • cargo fmt
  • cargo clippy --all-targets -- -D warnings
  • cargo test (unit + e2e_inventory_validate)
  • CI Quality Gate green on this PR
  • Manual smoke: deslicer inventory validate --environment <stem> --dir <repo> against a known-good env YAML (expect exit 0) and an unknown inventory_group (expect exit 1 + suggestion)

What's next (Path A2)

Made with Cursor

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>
@SaikrishnaGundeti
SaikrishnaGundeti requested a review from a team as a code owner September 2, 2026 14:38
@YoungDan
YoungDan merged commit c46d0e8 into main Sep 2, 2026
11 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.

2 participants