Skip to main content

inventory.lz-cross-validate

Type: commands | Track: Enterprise | Version: 1.0.0

Run the Landing Zone Inventory 4-Way Cross-Validation pipeline across all AWS accounts. Orchestrates multi-account inventory with persona reports (CFO/CTO/CloudOps/FinOps), decommission candidate analysis, and 3-agent scoring (PO+CA+QA sequential). Docker-first execution via nnthanh101/runbooks:cloudops.


Quick Start

pip install runbooks

# Full inventory with all persona reports and decommission analysis
runbooks inventory workflow-multi-account --cross-validate --persona all

# FinOps persona only, no decommission analysis
runbooks inventory workflow-multi-account --cross-validate --persona finops --decommission false

For the full ADLC pipeline (coordination enforcement, 4-way cross-validation, 3-agent scoring), invoke /inventory:lz-cross-validate from the ADLC command interface.


Parameter Reference

ParameterCLI FlagDefaultDescription
Persona--personaallcfo, cto, cloudops, finops, all — generates all 4 reports
Decommission--decommissiontrueInclude decommission candidate analysis
Dry run--dry-runfalseShow what would be collected without executing

Phase Overview

PhaseNameDescription
0-COORDCoordination gateproduct-owner and cloud-architect logs required (BLOCKING)
0ASSO preflightProfile validity check across all LZ profiles
1Org-wide discoveryConfig Aggregator P1 path — all accounts in single query
2Cross-validation4-way variance check (Config Aggregator vs Resource Explorer vs direct API vs runbooks CLI)
3Persona reportsCFO / CTO / CloudOps / FinOps formatted output
4Decommission analysisSignal-scored candidates (E1-E7, S1-S7) per account
53-agent scoringPO + CA + QA sequential (not parallel — prevents race conditions)

Deliverables

ArtifactFormatAudience
Inventory summaryMarkdownHITL, CxO
CFO reportMarkdownCFO
CTO reportMarkdownCTO
CloudOps reportMarkdownCloudOps team
FinOps reportMarkdownFinOps team
Decommission candidatesCSVCloudOps, FinOps
Cross-validation resultJSONQA, Evidence
3-agent scoringJSONGovernance audit

Benefits

  1. Config Aggregator P1 path — org-wide inventory in a single query (prevents NARROW_SEARCH_SCOPE)
  2. 4-way cross-validation verifies inventory completeness — not just one data source
  3. Decommission analysis uses validated signals (E1-E7, S1-S7) — not estimated figures
  4. 3-agent scoring runs SEQUENTIALLY — prevents RACE_CONDITION_SCORING anti-pattern

When to Use

AttributeDetail
PersonaCloudOps Engineer
TriggerMulti-account inventory needed — monthly FinOps review requiring a validated count of all resources across the Landing Zone, or when a new account was added and the inventory baseline needs refreshing
Business Value4-way cross-validated inventory across all AWS accounts with persona-specific reports — replaces per-account manual inventory (67 accounts would take hours) with a single pipeline that runs in under 3 minutes and validates completeness
FrequencyMonthly

Example: As a CloudOps Engineer, I need a validated inventory across all Landing Zone accounts because the FinOps team requires a monthly resource count with decommission candidates identified before the cost optimization sprint. I run /inventory:lz-cross-validate which discovers all resources via Config Aggregator, cross-validates against 3 other sources, generates persona-specific reports, and produces a decommission candidate list with signal scores and savings attribution.

Enterprise-only. Contact sales for licensing details.