decomposer: generate deliverable files for Inspect the single_agent template and target repository conventions to identify the required project structure, configuration, interfaces, and implementation patterns for the application landing zone agent.; Define the application landing zone agent's behavior, input and output contracts, document-generation workflow, and architecture-diagram requirements using the extracted template conventions.; Validate the implemented application_landing_zone_agent by running repository tests and checking the TSD document generation, draw.io diagram generation, agent packaging, configuration, and committed implementation against the defined contracts.; Commit and push the validated application_landing_zone_agent implementation to the target repository.
This commit is contained in:
14
validation/validate.py
Normal file
14
validation/validate.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Repository-level validation entrypoint."""
|
||||
import json, tempfile
|
||||
from pathlib import Path
|
||||
from landing_zone_agent.generator import generate
|
||||
from landing_zone_agent.validation import validate_drawio
|
||||
|
||||
with open("examples/requirements.json", encoding="utf-8") as f:
|
||||
result = generate(json.load(f))
|
||||
assert result["tsd"].startswith("# Technical Solution Design")
|
||||
assert validate_drawio(result["drawio"])
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
Path(d, "tsd.md").write_text(result["tsd"], encoding="utf-8")
|
||||
Path(d, "architecture.drawio").write_text(result["drawio"], encoding="utf-8")
|
||||
print("TSD, draw.io, and packaging contract checks passed")
|
||||
Reference in New Issue
Block a user