(project: dict)
| 1033 | |
| 1034 | |
| 1035 | def troubleshooting(project: dict) -> str: |
| 1036 | items = [ |
| 1037 | f"Run `{project['validation']}` first so local tooling issues are visible early.", |
| 1038 | "If a command fails, check tool versions, working directory, and required environment variables.", |
| 1039 | ] |
| 1040 | if project["needs_cloud_credentials"] == "Yes": |
| 1041 | items.append( |
| 1042 | "For cloud failures, confirm account identity, region, quotas, and least-privilege IAM." |
| 1043 | ) |
| 1044 | if project["ci_cd"]: |
| 1045 | items.append( |
| 1046 | "For pipeline failures, check repository secrets, runner permissions, and pinned action versions." |
| 1047 | ) |
| 1048 | if project["deployability"] == "kubernetes_ready": |
| 1049 | items.append( |
| 1050 | "For Kubernetes failures, check the current context, namespace, pod events, and service endpoints." |
| 1051 | ) |
| 1052 | return "\n".join(f"- {item}" for item in items) |
| 1053 | |
| 1054 | |
| 1055 | def cleanup_guidance(project: dict) -> str: |
no outgoing calls
no test coverage detected