diff --git a/.agents/references/shared/terraform-module-standards.md b/.agents/references/shared/terraform-module-standards.md index 41d8575..5dde536 100644 --- a/.agents/references/shared/terraform-module-standards.md +++ b/.agents/references/shared/terraform-module-standards.md @@ -37,6 +37,8 @@ These standards apply to both primitive and reference architecture modules. - Prefer `mise run ` when a suitable task exists. - Otherwise use `mise exec -- ` for Terraform, Go, pre-commit, and related tools. +- When creating a module with Terratest, set the Go version in `.tool-versions` and the `go` directive in `go.mod` to the latest stable version supported by Terratest and the repository tooling. Confirm the installed version with `mise exec -- go version`. +- From the module root, refresh the complete Go dependency graph with `mise exec -- go get -u ./...`, then run `mise exec -- go mod tidy`. Verify `mise exec -- go list -m -u all` reports no remaining available module upgrades; resolve incompatibilities in the Terratest code rather than retaining stale dependencies. - Run formatting and linting before broader test flows. - For examples, validate initialization, Terraform validation, and plan where credentials and backend constraints allow. - For Go tests, run `go mod tidy`, build or targeted tests, and broader Terratest only when the required cloud access is available. diff --git a/.agents/skills/primitive-module/SKILL.md b/.agents/skills/primitive-module/SKILL.md index 03a21e0..2c04a97 100644 --- a/.agents/skills/primitive-module/SKILL.md +++ b/.agents/skills/primitive-module/SKILL.md @@ -24,8 +24,9 @@ Use this skill for repositories named `tf--module_primitive- 4. Implement one primitive resource interface with explicit variable types, descriptions, validations, resource outputs, and provider constraints. 5. Build `examples/complete/` as the canonical secure usage example. 6. Keep `README.md` derived from `TEMPLATED_README.md`; replace the module-specific sections and preserve skeleton development boilerplate. -7. Add or update Terratest code so assertions verify specific expected values and security settings through provider APIs when applicable. -8. Run focused validation, then broader checks such as formatting, linting, Terraform init/validate/plan for the example, README generation, and Go test build or Terratest where practical. +7. Set the latest supported Go baseline and refresh the complete Go dependency graph as required by the shared Terraform module standards. +8. Add or update Terratest code so assertions verify specific expected values and security settings through provider APIs when applicable. +9. Run focused validation, then broader checks such as formatting, linting, Terraform init/validate/plan for the example, README generation, and Go test build or Terratest where practical. ## Completion Gate diff --git a/.agents/skills/reference-architecture/SKILL.md b/.agents/skills/reference-architecture/SKILL.md index 1875114..36a10d5 100644 --- a/.agents/skills/reference-architecture/SKILL.md +++ b/.agents/skills/reference-architecture/SKILL.md @@ -24,8 +24,9 @@ Use this skill for repositories named `tf--module_reference-