docs: publish the runs of 2026-10-21

The evaluation (both cases three times: report, results, spread, each
run's Deliverables and lesson candidates) and the hand-off through the
Orchestration engine (report, the document of links, both agents' kept
files and records). Benchmark cases only, all fictional; no machine paths,
and the links carry no signatures. Other runs stay ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 09:25:03 +01:00
parent 1fed1cb538
commit 628b6ee170
159 changed files with 37817 additions and 2 deletions

View File

@@ -0,0 +1,603 @@
# Folders
resource "google_folder" "dev" {
display_name = "Development"
parent = "organizations/${var.org_id}"
}
resource "google_folder" "staging" {
display_name = "Staging"
parent = "organizations/${var.org_id}"
}
resource "google_folder" "production" {
display_name = "Production"
parent = "organizations/${var.org_id}"
}
# Host Project
resource "google_compute_shared_vpc_host_project" "host" {
project = var.project_id
}
# VPC Networks
resource "google_compute_network" "hub" {
name = "hub-inspection-network"
project = var.project_id
auto_create_subnetworks = false
routing_mode = "GLOBAL"
mtu = 1460
}
resource "google_compute_network" "dev" {
name = "dev-network"
project = var.project_id
auto_create_subnetworks = false
delete_default_routes_on_create = true
}
resource "google_compute_network" "staging" {
name = "staging-network"
project = var.project_id
auto_create_subnetworks = false
delete_default_routes_on_create = true
}
resource "google_compute_network" "production" {
name = "production-network"
project = var.project_id
auto_create_subnetworks = false
delete_default_routes_on_create = true
}
# Subnetworks
resource "google_compute_subnetwork" "dev" {
name = "dev-subnetwork"
project = var.project_id
region = var.primary_region
network = google_compute_network.dev.id
ip_cidr_range = "10.10.0.0/24"
private_ip_google_access = true
}
resource "google_compute_subnetwork" "staging" {
name = "staging-subnetwork"
project = var.project_id
region = var.primary_region
network = google_compute_network.staging.id
ip_cidr_range = "10.20.0.0/24"
private_ip_google_access = true
}
resource "google_compute_subnetwork" "production" {
name = "production-subnetwork"
project = var.project_id
region = var.primary_region
network = google_compute_network.production.id
ip_cidr_range = "10.30.0.0/24"
private_ip_google_access = true
}
resource "google_compute_subnetwork" "standby" {
name = "standby-subnetwork"
project = var.project_id
region = var.secondary_region
network = google_compute_network.hub.id
ip_cidr_range = "10.40.0.0/24"
}
# Peerings
resource "google_compute_network_peering" "hub_prod" {
name = "hub-to-prod"
network = google_compute_network.hub.id
peer_network = google_compute_network.production.id
}
resource "google_compute_network_peering" "hub_dev" {
name = "hub-to-dev"
network = google_compute_network.hub.id
peer_network = google_compute_network.dev.id
}
resource "google_compute_network_peering" "hub_stg" {
name = "hub-to-stg"
network = google_compute_network.hub.id
peer_network = google_compute_network.staging.id
}
# Cloud Interconnect
resource "google_compute_router" "interconnect_1" {
name = "interconnect-router-1"
project = var.project_id
region = var.primary_region
network = google_compute_network.hub.id
bgp {
asn = 65001
keepalive_interval = 20
advertise_mode = "CUSTOM"
advertised_ip_ranges {
range = "10.0.0.0/8"
}
advertised_ip_ranges {
range = "172.16.0.0/12"
}
advertised_ip_ranges {
range = "192.168.0.0/16"
}
}
}
resource "google_compute_router" "interconnect_2" {
name = "interconnect-router-2"
project = var.project_id
region = var.primary_region
network = google_compute_network.hub.id
bgp {
asn = 65001
keepalive_interval = 20
advertise_mode = "CUSTOM"
advertised_ip_ranges {
range = "10.0.0.0/8"
}
advertised_ip_ranges {
range = "172.16.0.0/12"
}
advertised_ip_ranges {
range = "192.168.0.0/16"
}
}
}
resource "google_compute_interconnect_attachment" "vlan_1" {
name = "vlan-attachment-1"
project = var.project_id
region = var.primary_region
router = google_compute_router.interconnect_1.id
type = "DEDICATED"
interconnect = "my-interconnect-1" # Mock interconnect
bandwidth = "BPS_10G"
edge_availability_domain = "AVAILABILITY_DOMAIN_1"
mtu = 1460
labels = {
env = "production"
cost-centre = "platform"
archetype = "network"
}
}
resource "google_compute_interconnect_attachment" "vlan_2" {
name = "vlan-attachment-2"
project = var.project_id
region = var.primary_region
router = google_compute_router.interconnect_2.id
type = "DEDICATED"
interconnect = "my-interconnect-2" # Mock interconnect
bandwidth = "BPS_10G"
edge_availability_domain = "AVAILABILITY_DOMAIN_2"
mtu = 1460
labels = {
env = "production"
cost-centre = "platform"
archetype = "network"
}
}
resource "google_compute_router" "standby" {
name = "standby-router"
project = var.project_id
region = var.secondary_region
network = google_compute_network.hub.id
bgp {
asn = 65002
}
}
resource "google_compute_interconnect_attachment" "standby_vlan" {
name = "standby-vlan"
project = var.project_id
region = var.secondary_region
router = google_compute_router.standby.id
type = "DEDICATED"
interconnect = "my-interconnect-3" # Mock interconnect
labels = {
env = "production"
cost-centre = "platform"
archetype = "network"
}
}
# NVA (Compute Engine)
resource "google_compute_instance_template" "nva" {
name = "nva-template"
project = var.project_id
machine_type = "e2-medium"
network_interface {
network = google_compute_network.hub.id
nic_type = "GVNIC"
}
disk {
source_image = "debian-cloud/debian-11"
auto_delete = true
boot = true
}
labels = {
env = "production"
cost-centre = "platform"
archetype = "security"
}
}
resource "google_compute_region_health_check" "nva" {
name = "nva-health-check"
project = var.project_id
region = var.primary_region
check_interval_sec = 5
tcp_health_check {
port = 80
}
}
resource "google_compute_region_instance_group_manager" "nva" {
name = "nva-mig"
project = var.project_id
region = var.primary_region
base_instance_name = "nva-instance"
distribution_policy_zones = ["europe-west2-a", "europe-west2-b"]
version {
instance_template = google_compute_instance_template.nva.id
}
auto_healing_policies {
health_check = google_compute_region_health_check.nva.id
initial_delay_sec = 300
}
}
resource "google_compute_forwarding_rule" "nva" {
name = "nva-forwarding-rule"
project = var.project_id
region = var.primary_region
load_balancing_scheme = "INTERNAL"
network = google_compute_network.hub.id
backend_service = google_compute_region_backend_service.nva.id
ports = ["80"]
labels = {
env = "production"
cost-centre = "platform"
archetype = "security"
}
}
resource "google_compute_region_backend_service" "nva" {
name = "nva-backend-service"
project = var.project_id
region = var.primary_region
load_balancing_scheme = "INTERNAL"
health_checks = [google_compute_region_health_check.nva.id]
backend {
group = google_compute_region_instance_group_manager.nva.instance_group
}
}
resource "google_compute_region_autoscaler" "nva" {
name = "nva-autoscaler"
project = var.project_id
region = var.primary_region
target = google_compute_region_instance_group_manager.nva.id
autoscaling_policy {
max_replicas = 5
min_replicas = 2
cooldown_period = 60
cpu_utilization {
target = 0.7
}
}
}
# Firewall
resource "google_compute_firewall" "inbound_deny" {
name = "inbound-deny"
project = var.project_id
network = google_compute_network.hub.id
direction = "INGRESS"
source_ranges = ["0.0.0.0/0"]
deny {
protocol = "all"
}
}
# Cloud Identity
resource "google_cloud_identity_group" "group" {
parent = "customers/C01234567" # Mock customer ID
display_name = "Pipeline Identity Group"
labels = {
"cloudidentity.googleapis.com/groups.discussion_forum" = ""
env = "production"
cost-centre = "platform"
archetype = "identity"
}
group_key {
id = "pipeline-group@example.com"
}
}
# Workload Identity Federation
resource "google_iam_workload_identity_pool" "wif_pool" {
project = var.project_id
workload_identity_pool_id = "github-wif-pool"
}
resource "google_iam_workload_identity_pool_provider" "wif_provider" {
project = var.project_id
workload_identity_pool_id = google_iam_workload_identity_pool.wif_pool.workload_identity_pool_id
workload_identity_pool_provider_id = "github-provider"
attribute_condition = "assertion.repository == 'my-org/my-repo'"
oidc {
issuer_uri = "https://token.actions.githubusercontent.com"
}
}
resource "google_service_account" "pipeline_sa" {
project = var.project_id
account_id = "pipeline-service-account"
}
resource "google_service_account_iam_member" "pipeline_wif" {
service_account_id = google_service_account.pipeline_sa.name
role = "roles/iam.workloadIdentityUser"
member = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.wif_pool.name}/*"
}
# Cloud KMS
resource "google_kms_key_ring" "primary" {
name = "kms-key-ring-primary"
project = var.project_id
location = var.primary_region
}
resource "google_kms_crypto_key" "primary" {
name = "kms-crypto-key-primary"
key_ring = google_kms_key_ring.primary.id
rotation_period = "7776000s"
labels = {
env = "production"
cost-centre = "platform"
archetype = "security"
}
}
resource "google_kms_key_ring" "standby" {
name = "kms-key-ring-standby"
project = var.project_id
location = var.secondary_region
}
resource "google_kms_crypto_key" "standby" {
name = "kms-crypto-key-standby"
key_ring = google_kms_key_ring.standby.id
rotation_period = "7776000s"
labels = {
env = "production"
cost-centre = "platform"
archetype = "security"
}
}
# Cloud Storage
resource "google_storage_bucket" "audit_log" {
name = "${var.project_id}-audit-logs"
project = var.project_id
location = "EU"
uniform_bucket_level_access = true
retention_policy {
retention_period = 31536000
is_locked = true
}
lifecycle_rule {
action {
type = "SetStorageClass"
storage_class = "COLDLINE"
}
condition {
age = 90
}
}
labels = {
env = "production"
cost-centre = "security"
archetype = "audit"
}
}
resource "google_logging_organization_sink" "org_sink" {
name = "org-log-sink"
org_id = var.org_id
destination = "storage.googleapis.com/${google_storage_bucket.audit_log.name}"
}
resource "google_storage_bucket" "tf_state" {
name = "${var.project_id}-tf-state"
project = var.project_id
location = "EU"
uniform_bucket_level_access = true
versioning {
enabled = true
}
encryption {
default_kms_key_name = google_kms_crypto_key.primary.id
}
lifecycle_rule {
action {
type = "Delete"
}
condition {
num_newer_versions = 5
}
}
labels = {
provisioned_by = "terraform"
env = "production"
cost-centre = "platform"
archetype = "management"
}
}
# Organization Policies
resource "google_org_policy_policy" "skip_default_network" {
name = "organizations/${var.org_id}/policies/compute.skipDefaultNetworkCreation"
parent = "organizations/${var.org_id}"
spec {
rules {
enforce = "TRUE"
}
}
}
resource "google_org_policy_policy" "vm_external_ip" {
name = "organizations/${var.org_id}/policies/compute.vmExternalIpAccess"
parent = "organizations/${var.org_id}"
spec {
rules {
deny_all = "TRUE"
}
}
}
resource "google_org_policy_policy" "resource_locations" {
name = "organizations/${var.org_id}/policies/gcp.resourceLocations"
parent = "organizations/${var.org_id}"
spec {
rules {
values {
allowed_values = ["in:europe-west2", "in:europe-west1"]
}
}
}
}
resource "google_org_policy_policy" "sa_keys" {
name = "organizations/${var.org_id}/policies/iam.disableServiceAccountKeyCreation"
parent = "organizations/${var.org_id}"
spec {
rules {
enforce = "TRUE"
}
}
}
resource "google_scc_organization_custom_module" "scc_config" {
organization = var.org_id
display_name = "compliance_monitoring"
enablement_state = "ENABLED"
custom_config {
recommendation = "Enable compute instance monitoring to ensure compliance."
predicate {
expression = "resource.type == 'compute.googleapis.com/Instance'"
}
resource_selector {
resource_types = ["compute.googleapis.com/Instance"]
}
severity = "HIGH"
}
}
resource "google_org_policy_policy" "prod_org_policy" {
name = "${google_folder.production.name}/policies/compute.restrictXpnProjectLienRemoval"
parent = google_folder.production.name
spec {
rules {
enforce = "TRUE"
}
}
}
resource "google_org_policy_policy" "ubla" {
name = "organizations/${var.org_id}/policies/storage.uniformBucketLevelAccess"
parent = "organizations/${var.org_id}"
spec {
rules {
enforce = "TRUE"
}
}
}
resource "google_org_policy_policy" "cmek_enforce" {
name = "organizations/${var.org_id}/policies/gcp.restrictNonCmekServices"
parent = "organizations/${var.org_id}"
spec {
rules {
enforce = "TRUE"
}
}
}
# Cloud Monitoring
resource "google_monitoring_alert_policy" "interconnect" {
display_name = "Interconnect BGP Session Down"
project = var.project_id
combiner = "OR"
conditions {
display_name = "BGP Session Down"
condition_threshold {
filter = "metric.type=\"interconnect.googleapis.com/network/bgp/session_up\" resource.type=\"interconnect\""
comparison = "COMPARISON_LT"
threshold_value = 1
duration = "60s"
}
}
}
resource "google_monitoring_alert_policy" "lb" {
display_name = "NVA Load Balancer Backend Health"
project = var.project_id
combiner = "OR"
conditions {
display_name = "Backend Unhealthy"
condition_threshold {
filter = "metric.type=\"loadbalancing.googleapis.com/https/backend_latencies\" resource.type=\"internal_tcp_udp_lb_rule\""
comparison = "COMPARISON_GT"
threshold_value = 500
duration = "60s"
}
}
}
resource "google_monitoring_alert_policy" "audit_logs" {
display_name = "Audit Log Sink Errors"
project = var.project_id
combiner = "OR"
conditions {
display_name = "Sink Export Errors"
condition_threshold {
filter = "metric.type=\"logging.googleapis.com/exports/error_count\" resource.type=\"logging_sink\""
comparison = "COMPARISON_GT"
threshold_value = 0
duration = "60s"
}
}
}
# Routes
resource "google_compute_route" "dev_nva" {
name = "dev-to-nva"
project = var.project_id
network = google_compute_network.dev.id
dest_range = "0.0.0.0/0"
next_hop_ilb = google_compute_forwarding_rule.nva.id
}
resource "google_compute_route" "staging_nva" {
name = "staging-to-nva"
project = var.project_id
network = google_compute_network.staging.id
dest_range = "0.0.0.0/0"
next_hop_ilb = google_compute_forwarding_rule.nva.id
}
resource "google_compute_route" "production_nva" {
name = "production-to-nva"
project = var.project_id
network = google_compute_network.production.id
dest_range = "0.0.0.0/0"
next_hop_ilb = google_compute_forwarding_rule.nva.id
}

View File

@@ -0,0 +1,31 @@
variable "project_id" {
type = string
description = "The project ID"
}
variable "region" {
type = string
description = "The default region"
}
variable "primary_region" {
type = string
description = "The primary region (europe-west2)"
default = "europe-west2"
}
variable "secondary_region" {
type = string
description = "The secondary region (europe-west1)"
default = "europe-west1"
}
variable "org_id" {
type = string
description = "The organization ID"
}
variable "billing_account" {
type = string
description = "The billing account ID"
}

View File

@@ -0,0 +1,15 @@
terraform {
required_version = ">= 1.9"
required_providers {
google = {
source = "hashicorp/google"
version = "8.6.0"
}
}
}
provider "google" {
project = var.project_id
region = var.region
}