ALZ-F01 Discovery: package step, value scorecard, application grouping, cases

- New cp1-discovery-package-agent (ADR 0020): one package per reviewed run, every part
  hashed (sha256 over canonical JSON), with a manifest and a value scorecard.
- Applications grouped CMDB -> tag -> resource group with a judged model fallback (ADR 0021):
  CMDB 0.7.0 carries ownership, dependency mapping 0.6.0 groups, report 0.9.0 shows them.
- Critic 0.6.1 accepts the producers' enums; build_workflow.py refuses a consumer enum
  narrower than its producer's.
- Code hooks, sub-agents and tests for the inventory, CMDB, dependency, planner and critic
  agents; the report and Well-Architected review agents; ADRs 0012-0021.
- Workflow cases with value bars and run limits; run evaluation and usage collection scripts;
  the run context template and the field-by-field review for ADR 0016.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 22:13:25 +00:00
parent f659564208
commit 9e503885cc
211 changed files with 18170 additions and 158 deletions

View File

@@ -0,0 +1,296 @@
{
"type": "object",
"title": "CP1 - Discovery Report Agent input",
"properties": {
"engagement_id": {
"type": "string"
},
"run_id": {
"type": "string"
},
"plan_summary": {
"type": "object"
},
"coverage_gaps": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"scan_findings": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"records": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"sme_review_queue": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"drift_items": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"itsm_signals": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"stores": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"network_findings": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"ranges": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"edges": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"nodes": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"orphans": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"validation_queue": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"verdict": {
"type": "string"
},
"critic_note": {
"type": "string"
},
"obeyed_injection": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"unsupported_claims": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"consistency_issues": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"parse_failures": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"tool_call_issues": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"source_gaps": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"source": {
"type": "string",
"enum": [
"cmdb",
"itsm",
"netflow",
"schema"
]
},
"impact": {
"type": "string"
},
"reason": {
"type": "string",
"enum": [
"not_requested",
"no_connection"
]
}
},
"required": [
"source",
"impact"
]
}
},
"provider": {
"type": "string",
"enum": [
"sample",
"azure",
"gcp"
],
"default": "sample",
"description": "Which estate this run reads: `sample` (the Meridian sample estate, through the alz-* tools) or a live cloud, `azure` or `gcp`, through that cloud's discovery server. Set once for the whole workflow run."
},
"topology_summary": {
"type": "object",
"default": {},
"description": "Items read per topology kind (live runs)."
},
"waf_status": {
"type": [
"string",
"null"
],
"default": null,
"description": "The Well-Architected review's status."
},
"waf_pillars": {
"type": "array",
"default": [],
"items": {
"type": "object"
},
"description": "The Well-Architected review's pillar summary."
},
"waf_note": {
"type": [
"string",
"null"
],
"default": null,
"description": "The Well-Architected review's note."
},
"source_documents": {
"type": [
"string",
"null"
],
"default": null,
"description": "The run context file's text (u1.parsed_content)."
},
"reference_documents": {
"type": [
"string",
"null"
],
"default": null,
"description": "Selected project artifacts' text (unused by the report)."
},
"cmdb_injections": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Instructions found in an uploaded CMDB export, quoted and not acted on (ADR 0018)."
},
"cmdb_sources": {
"type": "array",
"items": {
"type": "object"
},
"default": [],
"description": "Each uploaded CMDB file and sheet read: rows, CIs and rows that aren't CIs (ADR 0018)."
},
"graph_comparison": {
"type": "array",
"items": {
"type": "object"
},
"default": [],
"description": "CMDB relationships against the cloud's dependencies (ADR 0019)."
},
"folded_dependencies": {
"type": "array",
"items": {
"type": "object"
},
"default": [],
"description": "Dependencies on a resource's own components (ADR 0019)."
},
"dangling": {
"type": "array",
"items": {
"type": "object"
},
"default": [],
"description": "CMDB relationships with an end that matches no CI (ADR 0019)."
},
"applications": {
"type": "array",
"default": [],
"description": "cp1-dependency-mapping-agent: applications (ADR 0021)."
},
"asset_owners": {
"type": "array",
"default": [],
"description": "cp1-dependency-mapping-agent: asset_owners (ADR 0021)."
},
"ungrouped_assets": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "cp1-dependency-mapping-agent: ungrouped_assets (ADR 0021)."
}
},
"required": [
"engagement_id",
"run_id"
]
}

View File

@@ -0,0 +1,36 @@
{
"type": "object",
"title": "Discovery report",
"properties": {
"engagement_id": {
"type": "string"
},
"run_id": {
"type": "string"
},
"verdict": {
"type": "string"
},
"counts": {
"type": "object"
},
"report_markdown": {
"type": "string"
},
"report_html": {
"type": "string"
},
"final_html": {
"type": "string"
}
},
"required": [
"engagement_id",
"run_id",
"verdict",
"counts",
"report_markdown",
"report_html",
"final_html"
]
}