{ "type": "object", "title": "CP1 - Assessment Critic & Sign-off Router Agent input", "properties": { "engagement_id": { "type": "string", "description": "The engagement, e.g. ENG-MERIDIAN-001." }, "run_id": { "type": "string", "description": "The Assessment run; the same id across the workflow's steps." }, "discovery_execution_id": { "type": "string", "description": "The Discovery run's execution id, e.g. exec_0d5c0e2a7f01. Every reference to a Discovery record names it." }, "discovery_documents": { "type": [ "string", "null" ], "default": null, "description": "The Discovery run's step outputs as text: the Artifacts step's records, parsed by the parse step (p1.parsed_content). One JSON document per selected artifact, separated by a line '---'." }, "discovery_files": { "type": [ "array", "null" ], "default": null, "description": "The parse step's file_metadata (p1.file_metadata): the selected artifacts' names, in the order their text appears in discovery_documents." }, "rate_card_document": { "type": [ "string", "null" ], "default": null, "description": "The rate card's JSON, given as text in the run input rate_card_document (ADR 0009); see the Feature README." }, "applications": { "type": "array", "items": { "type": "object", "properties": { "application_id": { "type": "string" }, "name": { "type": [ "string", "null" ] }, "assets": { "type": "array", "items": { "type": "string" } } }, "required": [ "application_id", "assets" ] } }, "tasks": { "type": "array", "items": { "type": "object", "properties": { "task_id": { "type": "string" }, "type": { "type": "string", "enum": [ "profile_application", "score_risk", "assess_security_posture", "score_disposition", "validate" ] }, "assigned_agent": { "type": "string", "enum": [ "ALZ-ASM-02", "ALZ-ASM-03", "ALZ-ASM-05", "ALZ-ASM-04", "ALZ-ASM-06" ] }, "application_id": { "type": [ "string", "null" ] }, "depends_on": { "type": "array", "items": { "type": "string" } } }, "required": [ "task_id", "type", "assigned_agent", "depends_on" ] } }, "coverage_gaps": { "type": "array", "items": { "type": "object", "properties": { "application_id": { "type": "string" }, "reason_code": { "type": "string", "enum": [ "no_assets", "all_assets_discovery_gaps", "no_inventory_record", "conflicting_records", "no_application_mapping" ] }, "reason": { "type": "string" } }, "required": [ "application_id", "reason_code", "reason" ] } }, "preconditions": { "type": "object", "properties": { "discovery_completed": { "type": "boolean" }, "critic_verdict_pass": { "type": "boolean" }, "approval_recorded": { "type": "boolean" }, "inventory_present": { "type": "boolean" }, "dependency_map_present": { "type": "boolean" }, "rate_card_present": { "type": "boolean" }, "failed": { "type": "array", "items": { "type": "string" } } }, "required": [ "discovery_completed", "critic_verdict_pass", "approval_recorded", "inventory_present", "dependency_map_present", "rate_card_present", "failed" ] }, "profiles": { "type": "array", "items": { "type": "object", "properties": { "application_id": { "type": "string" }, "assets": { "type": "array", "items": { "type": "object", "properties": { "canonical_id": { "type": "string" }, "asset_class": { "type": "string" }, "os": { "type": [ "object", "null" ] }, "support_status": { "type": [ "string", "null" ], "enum": [ "supported", "extended_support", "out_of_support", null ] }, "end_of_support": { "type": [ "string", "null" ] }, "services": { "type": "array", "items": { "type": "string" } }, "hosting": { "type": "string", "enum": [ "cloud", "virtual", "physical", "appliance", "unknown" ] }, "evidence_ref": { "type": "string" } }, "required": [ "canonical_id", "hosting", "evidence_ref" ] } }, "depends_on": { "type": "array", "items": { "type": "string" } }, "dependents": { "type": "array", "items": { "type": "string" } }, "telemetry": { "type": "string", "enum": [ "none" ] }, "signals": { "type": "array", "items": { "type": "object", "properties": { "signal": { "type": "string", "enum": [ "platform_support", "hardware_coupling", "data_constraints", "dependency_exposure", "hosting_portability", "sizing", "performance_baseline" ] }, "value": { "type": "string" }, "basis": { "type": "string" }, "evidence_refs": { "type": "array", "items": { "type": "string" } }, "available": { "type": "boolean" } }, "required": [ "signal", "value", "basis", "evidence_refs", "available" ] } } }, "required": [ "application_id", "assets", "telemetry", "signals" ] } }, "profile_gaps": { "type": "array", "items": { "type": "object", "properties": { "application_id": { "type": "string" }, "reason": { "type": "string" } } } }, "scores": { "type": "array", "items": { "type": "object", "properties": { "application_id": { "type": "string" }, "score": { "type": "number", "minimum": 0, "maximum": 1 }, "partial": { "type": "boolean" }, "missing_factors": { "type": "array", "items": { "type": "string" } }, "factors": { "type": "array", "items": { "type": "object", "properties": { "factor": { "type": "string", "enum": [ "eol", "fan_in", "data", "change" ] }, "value": { "type": [ "number", "null" ] }, "weight": { "type": "number" }, "contribution": { "type": [ "number", "null" ] }, "basis": { "type": "string" }, "evidence_refs": { "type": "array", "items": { "type": "string" } } }, "required": [ "factor", "value", "weight", "contribution", "basis" ] } }, "high_risk": { "type": "boolean" }, "tail_rules": { "type": "array", "items": { "type": "string" } }, "unevaluable_triggers": { "type": "array", "items": { "type": "object", "properties": { "trigger": { "type": "string" }, "missing_fact": { "type": "string" }, "canonical_id": { "type": "string" } } } } }, "required": [ "application_id", "score", "partial", "missing_factors", "factors", "high_risk", "tail_rules" ] } }, "high_risk_tail": { "type": "array", "items": { "type": "string" } }, "in_cloud_estate": { "type": "boolean" }, "posture_status": { "type": [ "string", "null" ] }, "security_findings": { "type": "array", "items": { "type": "object", "properties": { "finding_id": { "type": "string" }, "control_id": { "type": "string" }, "application_id": { "type": [ "string", "null" ] }, "resource_ref": { "type": "string" }, "exploitability": { "type": "integer", "minimum": 1, "maximum": 3 }, "impact": { "type": "integer", "minimum": 1, "maximum": 3 }, "rank_score": { "type": "integer" }, "description": { "type": "string" }, "evidence_ref": { "type": "string" }, "advisory": { "type": "boolean", "const": true } }, "required": [ "finding_id", "control_id", "rank_score", "description", "evidence_ref", "advisory" ] } }, "dispositions": { "type": "array", "items": { "type": "object", "properties": { "application_id": { "type": "string" }, "disposition": { "type": "string", "enum": [ "retire", "repurchase", "replatform", "refactor", "retain", "relocate", "rehost" ] }, "interim_rule": { "type": "boolean" }, "rule_trace": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string", "enum": [ "retire", "repurchase", "replatform", "refactor", "retain", "relocate", "rehost" ] }, "matched": { "type": "boolean" }, "basis": { "type": "string" } }, "required": [ "category", "matched", "basis" ] } }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 }, "confidence_workings": { "type": "object", "properties": { "base": { "type": "number" }, "adjustments": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "delta": { "type": "number" }, "basis": { "type": "string" } } } }, "cap": { "type": [ "number", "null" ] }, "result": { "type": "number", "minimum": 0, "maximum": 1 } }, "required": [ "base", "adjustments", "result" ] }, "signoff_required": { "type": "boolean" }, "evidence_ref": { "type": "string", "pattern": "^discovery:[^/]+/ALZ-DSC-0[1-8]/.+" }, "evidence_refs": { "type": "array", "items": { "type": "string" } }, "tco_model": { "type": "object", "properties": { "currency": { "type": [ "string", "null" ] }, "current_annual": { "type": [ "number", "null" ] }, "target_annual": { "type": [ "number", "null" ] }, "annual_delta": { "type": [ "number", "null" ] }, "line_items": { "type": "array", "items": { "type": "object", "properties": { "canonical_id": { "type": "string" }, "current": { "type": [ "number", "null" ] }, "rate_id": { "type": [ "string", "null" ] }, "target": { "type": [ "number", "null" ] } } } }, "missing_inputs": { "type": "array", "items": { "type": "string" } }, "indicative": { "type": "boolean", "const": true } }, "required": [ "current_annual", "target_annual", "annual_delta", "line_items", "missing_inputs", "indicative" ] }, "licensing_note": { "type": [ "string", "null" ] }, "scoring_note": { "type": "string" } }, "required": [ "application_id", "disposition", "interim_rule", "rule_trace", "confidence", "confidence_workings", "signoff_required", "evidence_ref", "tco_model", "scoring_note" ] } }, "signoff_queue": { "type": "array", "items": { "type": "string" } }, "critic_model": { "type": "string" }, "executor_models": { "type": "array", "items": { "type": "string" } } }, "required": [ "engagement_id", "discovery_execution_id", "applications", "tasks", "dispositions", "signoff_queue" ] }