feat: lessons from what recurs about one setting, and three more approved
Some checks failed
validation / verify (push) Failing after 10s

Evidence was grouped only by the kind of problem, and a group gets one lesson,
so what kept recurring inside "validation proposed a Check" could not be
seen. A proposed or unimplementable Check is now also counted under each
provider setting or resource type it names; a subject seen in two or more
Executions is its own group and reaches the curator past triage.

Over 32 Executions that gave five proposals. The owner approved three, now
published: L-07 location Checks, L-08 Cloud SQL backup encryption, L-09
backend service capabilities. L-10 is held for more evidence and L-11
rejected.

Also: retiring a lesson marks its proposal, so publish no longer brings a
retired lesson back. L-04 had returned to the Skill that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 12:47:18 +01:00
parent ee1ba38867
commit 5feaaa6271
17 changed files with 354 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ Deliverable: target_architecture
Evidence-key: 22ff1f5fed
Proposed: 2026-10-09
Published: 2026-10-09
Retired: 2026-10-09
## Rule

View File

@@ -0,0 +1,27 @@
# L-07: Verify location constraints
Status: ready-for-agent
Deliverable: target_architecture
Evidence-key: 493b0a95d9
Proposed: 2026-10-10
Published: 2026-10-10
## Rule
When a requirement specifies where resources must be provisioned, such as a designated region, multi-zone placement, or a low-carbon location, create a Check for the `region` or `location` argument on every applicable Element.
## Why
Validation frequently catches missing location constraints. Without this Check, resources may be provisioned in default regions, violating compliance or sustainability requirements.
## Evidence
Seen in 5 of 32 Executions, 8 times in all: validation proposed a Check about `location` that the design lacked.
## Proof
Not yet measured.
## Comments
Approved by the owner on 2026-10-10. It covers which region is set, which code can show. It does not settle whether a region is low-carbon, which code cannot show.

View File

@@ -0,0 +1,27 @@
# L-08: Cloud SQL backup encryption
Status: ready-for-agent
Deliverable: target_architecture
Evidence-key: 08d64df049
Proposed: 2026-10-10
Published: 2026-10-10
## Rule
When writing a Check for CMEK encryption on a `google_sql_database_instance`, do not require an `encryption_key_name` argument for backup storage, as the instance-level `encryption_key_name` automatically encrypts backups as well.
## Why
The database instance resource does not have a separate encryption key argument for backups. Asking for one causes validation to reject the Check as un-implementable.
## Evidence
Seen in 3 of 32 Executions, 3 times in all: a Check about `google_sql_database_instance` asked for something that resource cannot do.
## Proof
Not yet measured.
## Comments
Approved by the owner on 2026-10-10.

View File

@@ -0,0 +1,27 @@
# L-09: Backend Service capabilities
Status: ready-for-agent
Deliverable: target_architecture
Evidence-key: 1cacec9a09
Proposed: 2026-10-10
Published: 2026-10-10
## Rule
When writing Checks for a `google_compute_backend_service`, do not verify IAM roles inside the backend service or require health checks when it is configured with a Serverless NEG.
## Why
Roles are verified via IAM bindings outside the backend service, and Serverless NEGs do not support health checks. Invalid Checks cause the design to be rejected during validation.
## Evidence
Seen in 3 of 32 Executions, 3 times in all: a Check about `google_compute_backend_service` asked for something that resource cannot do.
## Proof
Not yet measured.
## Comments
Approved by the owner on 2026-10-10.

View File

@@ -0,0 +1,26 @@
# L-10: Pub/Sub persistence regions
Status: needs-info
Deliverable: target_architecture
Evidence-key: ba78caba9a
Proposed: 2026-10-10
## Rule
When a requirement dictates that a messaging queue or topic must replicate across zones or stay within a specific region, create a Check for the `message_storage_policy.allowed_persistence_regions` argument on the topic Element.
## Why
Without this Check, topics might use default storage policies that violate geographical or high-availability requirements.
## Evidence
Seen in 2 of 32 Executions, 4 times in all: validation proposed a Check about `allowed_persistence_regions` that the design lacked.
## Proof
Not yet measured.
## Comments
Held by the owner on 2026-10-10, on the agent's view: seen in 2 of 32 Executions, and L-07 partly covers it. To be looked at again if it recurs.

View File

@@ -0,0 +1,26 @@
# L-11: CMEK encryption checks
Status: wontfix
Deliverable: target_architecture
Evidence-key: 5cd8dc3cda
Proposed: 2026-10-10
## Rule
Whenever a requirement mandates encryption at rest, explicitly create a Check ensuring that the `kms_key_name` (or the equivalent CMEK argument) is configured on every applicable Element.
## Why
Without an explicit Check, elements may default to Google-managed keys, leading to validation failures against security constraints.
## Evidence
Seen in 2 of 32 Executions, 2 times in all: validation proposed a Check about `kms_key_name` that the design lacked.
## Proof
Not yet measured.
## Comments
Rejected by the owner on 2026-10-10, on the agent's view: encryption at rest is on by default, and this rule would put customer-managed keys on designs whose requirements did not ask for them.