feat: establish the Target architecture as a graph before code
Design is now approved before any infrastructure code is written (ADR-0005). A new target-architect Specialist produces one graph of Elements, Relationships and Checks; the diagram is rendered from it, deployment guidance must account for every Check, and validation gives a verdict per Check. Requirements, components, products and recommendations carry ids in data files, and a submission with a gap in the Requirements chain is refused. Also in this commit: - Customer cases group Executions, with an intent history per case - lesson candidates are captured when an Execution ends - evaluation gains chain, verdict, judged and interactive checks, and per-case thresholds - Terraform providers are cached between checks - the requirements analyst proposes defaults instead of asking - the legacy-baseline case and the checks that only read it are removed - ADR-0006 (Change requests) accepted; ADR-0004 and ADR-0007 proposed - plans for iterations 4 to 7 under .agents/plans/ Unproven with a real model: no evaluation run has completed on this design. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,9 @@ class Settings(BaseSettings):
|
||||
# Local Terraform tools (fmt, validate, plan; never apply)
|
||||
TERRAFORM_BINARY: str = "terraform"
|
||||
TERRAFORM_TIMEOUT_SECONDS: float = 300
|
||||
TF_PLUGIN_CACHE_DIR: str | None = None
|
||||
# Where Terraform providers are kept between checks, so they download once.
|
||||
# Relative paths are under the repository root. Set it empty to disable the cache.
|
||||
TF_PLUGIN_CACHE_DIR: str = ".cache/terraform-plugins"
|
||||
|
||||
# Models: a request with no response in this time is abandoned and retried
|
||||
MODEL_TIMEOUT_SECONDS: float = 180
|
||||
@@ -51,12 +53,21 @@ class Settings(BaseSettings):
|
||||
SPECIALIST_BUDGET: int = 15
|
||||
MAX_REVISIONS: int = 3
|
||||
MAX_ORCHESTRATOR_TURNS: int = 100
|
||||
# Agent runs in flight at once, pillar advisors included (model rate limits)
|
||||
MAX_PARALLEL_SPECIALISTS: int = 4
|
||||
CHECKPOINTER: str = "sqlite" # memory | sqlite | postgres
|
||||
CHECKPOINT_DB_PATH: str = "checkpoints.db"
|
||||
|
||||
# Paths
|
||||
BASE_DIR: Path = Path(__file__).resolve().parent.parent
|
||||
|
||||
def terraform_plugin_cache(self) -> str | None:
|
||||
"""The provider cache directory as an absolute path; None when disabled."""
|
||||
if not self.TF_PLUGIN_CACHE_DIR.strip():
|
||||
return None
|
||||
path = Path(self.TF_PLUGIN_CACHE_DIR).expanduser()
|
||||
return str(path if path.is_absolute() else self.BASE_DIR / path)
|
||||
|
||||
def get_database_url(self) -> str:
|
||||
"""Construct database connection URL (PostgreSQL or SQLite fallback)."""
|
||||
if self.DATABASE_URL:
|
||||
|
||||
Reference in New Issue
Block a user