# CP1 - Well-Architected Review Agent Reviews a live cloud estate against the six Well-Architected pillars in code: fixed checks on its configuration, the provider's own recommendations by pillar and impact, and guidance references, rendered as Markdown and HTML. A step of the workflow "CP1 - Agentic Landing Zone - Discovery", after the critic and before the report. Like the report agent, it answers from code (`app/waf.py`, called by the `pre_process` hook), so no model is involved and every figure can be recomputed from the evidence. With `provider` `sample` it replies "not applicable" without calling a tool. ## What it reads Only read-only tools on the existing servers, through the MCP gateway, with the project's stored connection: `Azure Discovery` or `Google Cloud Discovery` (servers, workloads, clusters, data stores, firewall or NSG rules, organisation policies, Azure resource locks, every page of the provider's recommendations, and one guidance reference per pillar from the server's own `_search_well_architected`, which takes only fixed pillars and topics). The checks judge only the scope entries in `records`. ## What it writes `waf_markdown` (the file), `waf_html` (the draft page) and `final_waf_html` (the page released after approval), plus the structured `pillars`, `checks` and `recommendations`. A pillar with no evidence is **not assessed**, never a pass. Calls that failed are listed in `call_issues` and in the review. ## Checks | Pillar | Checks | |---|---| | Security | SEC-01 no admin or database port open to the internet; SEC-02 no public server address; SEC-03 Secure Boot on; SEC-04 storage blocks public access; SEC-05 guardrail policies at the scope root | | Reliability | REL-01 compute not confined to one zone; REL-02 deletion protection (GCP) or resource locks (Azure); REL-03 database backups; REL-04 object versioning (GCP) | | Cost | COST-01 no stopped server holding paid resources; COST-02 cost-allocation labels | | Operations | OPS-01 owner or environment labels; OPS-02 storage access logging (GCP) | | Sustainability | SUS-01 no idle or stopped resources | | Performance | Provider recommendations only (no telemetry) | Tests: `python3 -m pytest tests/` (no runtime needed).