refactored: to utilise the google adk and production grade agent
Some checks failed
validation / verify (push) Failing after 10s

This commit is contained in:
2026-09-02 21:42:10 +01:00
parent b9a924cf4a
commit a24a44e28c
279 changed files with 12003 additions and 390 deletions

View File

@@ -71,22 +71,37 @@ def validate_repository_artifacts(target_dir: str) -> Dict[str, Any]:
Dict containing validation pass status and missing items list.
"""
root = Path(target_dir)
required = [
"docs/requirements.md",
"docs/architecture.md",
"architecture.mmd",
"solution-architecture-guide.md",
"terraform/main.tf",
"terraform/variables.tf",
]
def find_artifact(filename):
search_dirs = [
root / "deliverables" / "as-is",
root / "deliverables" / "target",
root / "deliverables" / "validation",
root / "deliverables" / "guides",
root / "deliverables",
root / "docs",
root,
]
for d in search_dirs:
candidate = d / filename
if candidate.is_file():
return candidate
return None
required_names = ["requirements.md", "architecture.md", "architecture.mmd", "solution-architecture-guide.md"]
missing = []
for rel_path in required:
if not (root / rel_path).is_file():
missing.append(rel_path)
guide_path = root / "solution-architecture-guide.md"
if guide_path.is_file():
for fname in required_names:
if not find_artifact(fname):
missing.append(fname)
if not (root / "terraform/main.tf").is_file():
missing.append("terraform/main.tf")
if not (root / "terraform/variables.tf").is_file():
missing.append("terraform/variables.tf")
guide_path = find_artifact("solution-architecture-guide.md")
if guide_path:
guide_text = guide_path.read_text(encoding="utf-8")
required_sections = ["Functional requirements", "Selected products", "Validation results", "Terraform", "Mermaid"]
for section in required_sections:
@@ -95,8 +110,8 @@ def validate_repository_artifacts(target_dir: str) -> Dict[str, Any]:
else:
missing.append("solution-architecture-guide.md missing")
mmd_path = root / "architecture.mmd"
if mmd_path.is_file():
mmd_path = find_artifact("architecture.mmd")
if mmd_path:
mmd_text = mmd_path.read_text(encoding="utf-8")
if not re.search(r"flowchart|graph", mmd_text):
missing.append("Invalid Mermaid graph directive in architecture.mmd")