Files
gcp_solution_architecture_a…/tests/fixtures/coverage/case-02-target-architecture.json
Jonathan Boniface 5adc911a82 feat: keep an unchanged description, list conditions, review coverage with Jev
After case 02 (completed at 100%, but with two Revisions of the Target
architecture for gaps validation found one pass at a time):

- A Deliverable stands while what it was written from is unchanged. The
  architecture description is written from the Elements and Relationships,
  so a Revision that only adds or rewords Checks no longer runs the describer.
- Non-functional requirements and recommendations list their conditions,
  one entry per separate thing that must be true; submission requires them.
- A coverage review at submission (JEV_COVERAGE_REVIEW, off by default):
  for each condition, Jev chooses which Check verifies it, or none. Asked as
  one broad yes-or-no per requirement it could not tell a complete design
  from one with known gaps; asked as a choice per condition it raised all
  four known gaps of case 02 and nothing on the complete graph. An opt-in
  live test (LIVE_JEV=1) repeats that.
- The validator is told to report every gap in its first pass.

Plans record the case 02 run and both forms of the review with figures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:58:38 +01:00

604 lines
14 KiB
JSON

{
"elements": [
{
"name": "Ingestion Endpoint Service",
"product": "Cloud Run",
"resource_type": "google_cloud_run_v2_service",
"id": "E-1",
"component": "C-1"
},
{
"resource_type": "google_pubsub_topic",
"component": "C-2",
"product": "Cloud Pub/Sub",
"id": "E-2",
"name": "Asynchronous Ingestion Buffer Topic"
},
{
"id": "E-3",
"component": "C-3",
"product": "Cloud Run",
"resource_type": "google_cloud_run_v2_service",
"name": "Validation Worker"
},
{
"component": "C-4",
"name": "Validated Analytical Data Dataset",
"id": "E-4",
"resource_type": "google_bigquery_dataset",
"product": "BigQuery"
},
{
"id": "E-5",
"resource_type": "google_storage_bucket",
"component": "C-5",
"name": "Quarantine Storage Bucket",
"product": "Cloud Storage"
},
{
"product": "Cloud Logging and Monitoring",
"name": "Queue Lag Alert Policy",
"resource_type": "google_monitoring_alert_policy",
"id": "E-6",
"component": "C-6"
},
{
"component": "C-6",
"name": "Error Rate Alert Policy",
"product": "Cloud Logging and Monitoring",
"resource_type": "google_monitoring_alert_policy",
"id": "E-7"
},
{
"resource_type": "google_pubsub_subscription",
"component": "C-2",
"name": "Asynchronous Ingestion Subscription",
"id": "E-8",
"product": "Cloud Pub/Sub"
},
{
"resource_type": "google_pubsub_topic",
"product": "Cloud Pub/Sub",
"id": "E-9",
"component": "C-2",
"name": "Dead-Letter Topic"
},
{
"name": "Ingestion Service Account",
"id": "E-10",
"resource_type": "google_service_account",
"product": "IAM"
},
{
"product": "IAM",
"id": "E-11",
"name": "Validation Worker Service Account",
"resource_type": "google_service_account"
},
{
"product": "IAM",
"id": "E-12",
"resource_type": "google_service_account",
"name": "Pub/Sub Push Service Account"
},
{
"product": "Cloud KMS",
"name": "CMEK Crypto Key",
"id": "E-13",
"resource_type": "google_kms_crypto_key"
},
{
"name": "Load Balancer Backend",
"product": "Cloud Load Balancing",
"resource_type": "google_compute_backend_service",
"id": "E-14"
},
{
"product": "Cloud Armor",
"id": "E-15",
"name": "Cloud Armor Security Policy",
"resource_type": "google_compute_security_policy"
},
{
"id": "E-16",
"product": "Cloud Logging and Monitoring",
"name": "Audit Log Bucket Config",
"resource_type": "google_logging_project_bucket_config"
},
{
"resource_type": "google_monitoring_dashboard",
"product": "Cloud Logging and Monitoring",
"id": "E-17",
"component": "C-6",
"name": "Operational Dashboard"
},
{
"id": "E-18",
"component": "C-1",
"resource_type": "google_compute_ssl_policy",
"product": "Cloud Load Balancing",
"name": "Load Balancer SSL Policy"
},
{
"resource_type": "google_compute_target_https_proxy",
"product": "Cloud Load Balancing",
"name": "Load Balancer Target HTTPS Proxy",
"component": "C-1",
"id": "E-19"
},
{
"name": "Load Balancer URL Map",
"resource_type": "google_compute_url_map",
"id": "E-20",
"product": "Cloud Load Balancing",
"component": "C-1"
}
],
"relationships": [
{
"to": "E-2",
"id": "R-1",
"kind": "publishes to",
"from": "E-1"
},
{
"id": "R-2",
"kind": "runs as",
"from": "E-1",
"to": "E-10"
},
{
"to": "E-2",
"kind": "is granted access to",
"id": "R-3",
"from": "E-10"
},
{
"kind": "has subscription",
"from": "E-2",
"to": "E-8",
"id": "R-4"
},
{
"to": "E-3",
"id": "R-5",
"kind": "pushes to",
"from": "E-8"
},
{
"kind": "authenticates as",
"from": "E-8",
"id": "R-6",
"to": "E-12"
},
{
"kind": "is granted access to",
"from": "E-12",
"to": "E-3",
"id": "R-7"
},
{
"id": "R-8",
"to": "E-11",
"from": "E-3",
"kind": "runs as"
},
{
"to": "E-4",
"id": "R-9",
"from": "E-3",
"kind": "writes to"
},
{
"kind": "writes to",
"from": "E-3",
"to": "E-5",
"id": "R-10"
},
{
"id": "R-11",
"kind": "is granted access to",
"to": "E-4",
"from": "E-11"
},
{
"kind": "is granted access to",
"from": "E-11",
"to": "E-5",
"id": "R-12"
},
{
"kind": "routes dead letters to",
"from": "E-8",
"id": "R-13",
"to": "E-9"
},
{
"to": "E-13",
"id": "R-14",
"kind": "is encrypted with",
"from": "E-2"
},
{
"kind": "is encrypted with",
"from": "E-5",
"to": "E-13",
"id": "R-15"
},
{
"id": "R-16",
"from": "E-14",
"kind": "fronts",
"to": "E-1"
},
{
"kind": "uses policy",
"from": "E-14",
"to": "E-15",
"id": "R-17"
},
{
"from": "E-6",
"kind": "monitors",
"to": "E-8",
"id": "R-18"
},
{
"to": "E-1",
"kind": "monitors",
"from": "E-7",
"id": "R-19"
},
{
"id": "R-20",
"from": "E-7",
"kind": "monitors",
"to": "E-3"
},
{
"id": "R-21",
"kind": "routes to",
"from": "E-20",
"to": "E-14"
},
{
"to": "E-20",
"from": "E-19",
"kind": "uses map",
"id": "R-22"
},
{
"to": "E-18",
"kind": "uses policy",
"from": "E-19",
"id": "R-23"
}
],
"checks": [
{
"applies_to": "E-1",
"source": "DR-1",
"statement": "ingress is INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER",
"id": "K-1"
},
{
"id": "K-2",
"applies_to": "E-1",
"statement": "template.service_account points to E-10",
"source": "DR-2"
},
{
"source": "DR-12",
"applies_to": "E-1",
"statement": "template.containers.resources.startup_cpu_boost is true",
"id": "K-3"
},
{
"source": "DR-13",
"applies_to": "E-1",
"statement": "template.max_instance_request_concurrency is at least 80",
"id": "K-4"
},
{
"id": "K-5",
"applies_to": "E-1",
"statement": "location is a Low-CO2 region",
"source": "DR-14"
},
{
"applies_to": "E-2",
"statement": "kms_key_name points to E-13",
"source": "DR-5",
"id": "K-6"
},
{
"source": "DR-3",
"applies_to": "E-3",
"id": "K-7",
"statement": "template.service_account points to E-11"
},
{
"id": "K-8",
"statement": "template.containers.resources.startup_cpu_boost is true",
"applies_to": "E-3",
"source": "DR-12"
},
{
"applies_to": "E-3",
"id": "K-9",
"statement": "template.max_instance_request_concurrency is at least 80",
"source": "DR-13"
},
{
"id": "K-10",
"statement": "location is a Low-CO2 region",
"applies_to": "E-3",
"source": "DR-14"
},
{
"applies_to": "E-4",
"id": "K-11",
"statement": "location is set to a multi-region",
"source": "DR-9"
},
{
"id": "K-12",
"statement": "encryption.default_kms_key_name points to E-13",
"applies_to": "E-5",
"source": "DR-5"
},
{
"applies_to": "E-5",
"id": "K-13",
"statement": "uniform_bucket_level_access is true",
"source": "DR-6"
},
{
"applies_to": "E-5",
"statement": "public_access_prevention is enforced",
"source": "DR-6",
"id": "K-14"
},
{
"applies_to": "E-5",
"id": "K-15",
"statement": "location is set to a multi-region",
"source": "DR-9"
},
{
"applies_to": "E-5",
"source": "DR-11",
"id": "K-16",
"statement": "lifecycle_rule has action.type = Delete and condition.age = 30"
},
{
"source": "DR-10",
"id": "K-17",
"applies_to": "E-6",
"statement": "conditions block filters on oldest_unacked_message_age"
},
{
"id": "K-19",
"source": "DR-4",
"statement": "push_config.oidc_token.service_account_email points to E-12",
"applies_to": "E-8"
},
{
"id": "K-20",
"statement": "dead_letter_policy points to E-9",
"applies_to": "E-8",
"source": "DR-7"
},
{
"id": "K-21",
"source": "DR-7",
"applies_to": "E-8",
"statement": "dead_letter_policy.max_delivery_attempts is 5"
},
{
"statement": "retry_policy block is configured with minimum_backoff and maximum_backoff",
"id": "K-22",
"applies_to": "E-8",
"source": "DR-8"
},
{
"statement": "retention_days is at least 365",
"applies_to": "E-16",
"id": "K-23",
"source": "NFR-4"
},
{
"source": "NFR-4",
"statement": "locked is true",
"applies_to": "E-16",
"id": "K-24"
},
{
"id": "K-25",
"source": "NFR-10",
"applies_to": "E-17",
"statement": "dashboard_json contains widgets for queue depth, processing latency, and validation failure rate"
},
{
"statement": "role is roles/pubsub.publisher",
"id": "K-26",
"source": "NFR-2",
"applies_to": "R-3"
},
{
"id": "K-27",
"statement": "role is roles/run.invoker",
"source": "DR-4",
"applies_to": "R-7"
},
{
"source": "DR-3",
"id": "K-28",
"statement": "role is roles/bigquery.dataEditor",
"applies_to": "R-11"
},
{
"id": "K-29",
"source": "NFR-2",
"statement": "role is roles/storage.objectCreator",
"applies_to": "R-12"
},
{
"id": "K-30",
"source": "NFR-1",
"statement": "default_encryption_configuration is configured",
"applies_to": "E-4"
},
{
"applies_to": "E-1",
"statement": "template.scaling.min_instance_count is 0 or not set",
"source": "NFR-8",
"id": "K-31"
},
{
"source": "NFR-12",
"id": "K-32",
"statement": "template.scaling.max_instance_count is at least 100",
"applies_to": "E-1"
},
{
"applies_to": "E-9",
"id": "K-33",
"source": "DR-7",
"statement": "message_retention_duration is configured"
},
{
"statement": "account_id is configured",
"source": "DR-2",
"applies_to": "E-10",
"id": "K-34"
},
{
"statement": "account_id is configured",
"id": "K-35",
"applies_to": "E-11",
"source": "DR-3"
},
{
"id": "K-36",
"statement": "account_id is configured",
"applies_to": "E-12",
"source": "DR-4"
},
{
"applies_to": "E-13",
"statement": "rotation_period is configured",
"id": "K-37",
"source": "DR-5"
},
{
"source": "DR-1",
"id": "K-38",
"applies_to": "E-14",
"statement": "security_policy points to E-15"
},
{
"applies_to": "E-15",
"statement": "type is CLOUD_ARMOR",
"id": "K-39",
"source": "DR-1"
},
{
"source": "NFR-3",
"id": "K-40",
"applies_to": "E-5",
"statement": "public_access_prevention is enforced"
},
{
"statement": "location is configured",
"source": "NFR-5",
"id": "K-41",
"applies_to": "E-1"
},
{
"applies_to": "E-2",
"statement": "message_retention_duration is configured",
"source": "NFR-6",
"id": "K-42"
},
{
"applies_to": "E-4",
"statement": "location is set to a multi-region",
"id": "K-43",
"source": "NFR-7"
},
{
"statement": "lifecycle_rule has action.type = Delete and condition.age = 30",
"source": "NFR-9",
"id": "K-44",
"applies_to": "E-5"
},
{
"source": "NFR-11",
"applies_to": "E-6",
"id": "K-45",
"statement": "conditions block filters on oldest_unacked_message_age"
},
{
"statement": "template.containers.resources.startup_cpu_boost is true",
"source": "NFR-13",
"applies_to": "E-1",
"id": "K-46"
},
{
"source": "NFR-14",
"applies_to": "E-8",
"statement": "push_config is configured",
"id": "K-47"
},
{
"source": "NFR-8",
"id": "K-50",
"statement": "template.scaling.min_instance_count is 0",
"applies_to": "E-3"
},
{
"statement": "template.scaling.max_instance_count is configured to a baseline max",
"applies_to": "E-3",
"source": "NFR-8",
"id": "K-51"
},
{
"statement": "condition filters on validation worker Cloud Run 5xx errors",
"source": "DR-10",
"applies_to": "R-20",
"id": "K-52"
},
{
"source": "NFR-1",
"statement": "min_tls_version is TLS_1_2",
"id": "K-53",
"applies_to": "E-18"
},
{
"id": "K-54",
"source": "NFR-1",
"applies_to": "E-19",
"statement": "ssl_policy points to E-18"
},
{
"source": "NFR-1",
"statement": "url_map points to E-20",
"applies_to": "E-19",
"id": "K-55"
},
{
"id": "K-56",
"source": "NFR-1",
"applies_to": "E-20",
"statement": "default_service points to E-14"
},
{
"statement": "enabled is true",
"applies_to": "E-7",
"id": "K-57",
"source": "NFR-11"
}
],
"not_applicable": []
}