From 64b2ba50768d20ed5fd45817c87854ae6b02691b Mon Sep 17 00:00:00 2001 From: Jon Chery Date: Wed, 29 Jul 2026 21:23:54 +0000 Subject: [PATCH] docs(P18): complete module-standards-consistency phase (v1.13.21) ---ci--- project: acdl phase: 18 milestone: v1.14 status: complete requirements: covered: [REQ-152] partial: [] ---/ci--- --- modules/STANDARDS.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/modules/STANDARDS.md b/modules/STANDARDS.md index 5a4688b..3eda875 100644 --- a/modules/STANDARDS.md +++ b/modules/STANDARDS.md @@ -207,9 +207,12 @@ declares intra-refs from the subnet and route table to the VPC's - `aws:wafv2:webacl` - `aws:rds:instance` - `aws:kms:key`, `aws:kms:alias` -- The engine adapter's `TYPE_MAP` is the registry of stack types the - adapter can compile (see ยง8). A new stack type requires a `TYPE_MAP` - entry before the primitive can be deployed. +- The engine adapter is a **stateless assembler** (v1.11, D-098): it reads + the registry, emits a root `main.tf` instantiating each L1 as + `module "x" { source = "..." }` with resolved inputs and wired refs. There + is no `TYPE_MAP` (deleted in the v1.11 stateless rewrite). A new stack + type requires a `terraform/` dir in the L1 module + a registry entry with + a `terraform_dir` field. ## 3. L2 Module Standards @@ -580,8 +583,10 @@ must be checked before the module is registered and published. ### 9.4 Adapter (stateless assembler) - [ ] The new primitive's `terraform/` subdir exists with - `versions.tf`/`variables.tf`/`locals.tf`/`main.tf`/`outputs.tf` and - passes `terraform init + validate` standalone. + `versions.tf`/`variables.tf`/`main.tf`/`outputs.tf` and + passes `terraform init + validate` standalone. `locals.tf` is required + for multi-resource modules; trivial single-resource modules (e.g. + `kms-key`, `ecr`, `ecs-cluster`) may inline locals in `main.tf`. - [ ] `registry.json` has a `terraform_dir` field for the new primitive. - [ ] No adapter code changes are needed (the adapter is generic; it assembles any module with a `terraform_dir` in the registry).