Skill files9 files

references/

SKILL.md161 lines
1
---
2
name: agent-platform-architecture
3
description: >-
4
Designs, engineers, and validates enterprise Gemini platform
5
architectures. Use when designing multi-project
6
hierarchies (Host, Central Governance Hub, Runtime Spoke, Tool/MCP Spoke),
7
configuring Agent Gateway, authoring Agent Connectivity Templates (ALL_TRAFFIC
8
vs PRIVATE_RANGES_ONLY), deploying Secure Web Proxy (SWP) with Policy-Based
9
Routing (PBR) or Cross-Cloud mTLS Egress Hubs, configuring Private CA
10
TrustConfig with Internal ALB + Serverless NEG, implementing Unified Access
11
Policies (UAP Policy V2 CEL) and Semantic Governance (SGP), configuring 3P IdP
12
Token Exchange (EntraID/Ping/Okta via ext_proc + STS) or Agent Identity Auth
13
Manager (SPIFFE), enforcing Model Armor Floor Settings and Fail-Closed
14
guardrails, deploying Cross-Project Registry sync, binding ADK agents on Agent
15
Runtime, or executing Day-2 lifecycle operations. Don't use for read-only live
16
log triage or incident diagnosis, or generic Google Cloud Identity and Access
17
Management (IAM) debugging.
18
license: Apache-2.0
19
metadata:
20
version: "1.0.2"
21
category: AiAndMachineLearning
22
---
23
24
# Gemini platform Architecture and Engineering Guide
25
26
This skill is the reference system for designing, engineering, and validating enterprise-grade **Gemini platform** architectures across multi-project hierarchies, hybrid/cross-cloud networks, zero-trust identity boundaries, and inline safety/policy enforcement planes.
27
28
## Usage Attribution
29
30
When executing `gcloud`, REST API, or MCP commands directly against Google Cloud
31
with this skill, see [Usage Attribution](references/attribution.md) to attach a
32
standard non-PII Google Cloud skill identifier (carries no user, project, or
33
prompt data; users may opt out at any time).
34
35
> [!IMPORTANT] **Architectural Scope and Reference Discipline**: Use `SKILL.md` to
36
> select the target topology, egress mode, ingress pattern, and governance
37
> plane, then consult the authoritative `references/*.md` manual for exact CLI
38
> commands, REST/YAML schemas, Common Expression Language (CEL) expressions, and
39
> Python Agent Development Kit (ADK) runtime code (`references/*.md` is the
40
> single source of truth for all implementation syntax). When remote Model
41
> Context Protocol (MCP) tools (such as the Google Developer Knowledge MCP
42
> server or Google-managed MCP endpoints) are available, prefer remote MCP tool
43
> invocation over raw CLI/REST commands. Do not execute unrequested live
44
> mutations against customer projects when asked for architectural designs.
45
46
> [!CAUTION] **Human Approval Gate for Sensitive Operations**: Always prompt the
47
> user for explicit confirmation before executing commands or applying
48
> configurations that grant permissive Identity and Access Management (IAM)
49
> bindings (`roles/iap.egressor`, `roles/compute.networkUser`,
50
> `roles/networkservices.admin`), modify Organization Policies
51
> (`constraints/iam.managed.disableAccessPolicyBinding`), update Unified Access
52
> Policy (UAP) or VPC Service Controls (VPC-SC) policies, or delete resources
53
> (REST `DELETE ...?force=true` or CLI `--quiet`).
54
55
---
56
57
## Prerequisites, Authentication, Region, and Billing Setup
58
59
1. **Google Cloud SDK, Authentication, and Project Setup**:
60
- Install the
61
[Google Cloud SDK (`gcloud`)](https://cloud.google.com/sdk/docs/install)
62
and authenticate CLI and Application Default Credentials
63
(`gcloud auth login && gcloud auth application-default login`, or set
64
`GOOGLE_APPLICATION_CREDENTIALS`).
65
- Select or create the target project (`gcloud projects create
66
{project_id}` / `gcloud config set project {project_id}`), set the
67
default region (`gcloud config set compute/region {region}`, defaulting
68
to **`us-central1`**; see
69
[Google Cloud Locations](https://cloud.google.com/about/locations)), and
70
enable required APIs:
71
72
```bash
73
gcloud services enable aiplatform.googleapis.com agentregistry.googleapis.com \
74
agentidentity.googleapis.com agentidentitycredentials.googleapis.com \
75
networkservices.googleapis.com networksecurity.googleapis.com iap.googleapis.com \
76
modelarmor.googleapis.com compute.googleapis.com dns.googleapis.com \
77
certificatemanager.googleapis.com servicenetworking.googleapis.com
78
```
79
2. **Billing, Least-Privilege IAM, and Product Terminology**:
80
- Verify an active billing account is attached (`gcloud billing projects
81
describe {project_id} --format="value(billingEnabled)"`) across
82
`{host_project_id}`, `{gov_project_id}`, `{runtime_project_id}`, and
83
`{mcp_project_id}` (required even when evaluating free-tier allowances;
84
review [Google Cloud Pricing](https://cloud.google.com/pricing)).
85
- Grant explicit least-privilege IAM roles (`roles/aiplatform.user`,
86
`roles/networkservices.admin`, `roles/compute.networkAdmin`,
87
`roles/compute.networkUser`, `roles/iap.egressor`, or a custom role with
88
`networkservices.agentGateways.get,networkservices.agentGateways.use,networkservices.operations.get`)
89
rather than primitive `roles/owner` or `roles/editor`.
90
- Use approved product names: **Gemini platform**,
91
**Agent Runtime** (`reasoningEngines`), **Agent Gateway**
92
(`240.0.0.2:443`), **Agent Connectivity Template (ACT)**, **Agent
93
Registry**, and **Unified Access Policy (UAP Policy V2)** / **Semantic
94
Governance Policy (SGP)**.
95
96
---
97
98
## 3-Phase Architect Workflow and Decision Tree
99
100
```mermaid
101
graph TD
102
Start["Enterprise Gemini platform Architecture"] --> Q1{"1. Egress Destinations?"}
103
Q1 -->|"RFC 1918 + Google APIs Only"| Priv["ACT: vpcEgress = PRIVATE_RANGES_ONLY<br/>• Direct Private Google Access (PGA)"]
104
Q1 -->|"Public Internet, VPC-SC, or Non-RFC 1918 PUPI"| All["ACT: vpcEgress = ALL_TRAFFIC<br/>• 100% Egress via AGW VIP 240.0.0.2:443<br/>• Consolidate Core Google APIs FQDNs"]
105
All --> Q2{"2. Layer 7 URL List or Cross-Cloud mTLS?"}
106
Q2 -->|"No (Standard NAT)"| Nat["Direct Cloud NAT on PSC-I Subnet<br/>• ENDPOINT_TYPE_VM,ENDPOINT_TYPE_SWG"]
107
Q2 -->|"Yes (Next-Hop SWP)"| Swp["Next-Hop SWP (NEXT_HOP_ROUTING_MODE) + PBR<br/>• Internal and Google API DEFAULT_ROUTING bypasses<br/>• Default route via SWP ILB IP<br/>• Exclude PSC-I from manual Cloud NAT"]
108
```
109
110
1. **Phase 1 — Scope Verification and Architecture Discovery**:
111
- **Scope Boundaries and Single-Region Discovery**: Decline generic Google
112
Cloud IAM/Compute/Storage debugging unrelated to the Gemini platform
113
stack or requests to run broad multi-region live project scanning loops,
114
pointing instead to `gcloud ai reasoning-engines list --region={region}`.
115
- **Architecture Design and Engineering**: Identify the project
116
hierarchy (`Host`, `Governance Hub`, `Runtime Spoke`, `Tool/MCP Spoke`),
117
egress mode (`ALL_TRAFFIC` vs `PRIVATE_RANGES_ONLY`), policy plane (UAP
118
V2, SGP, Model Armor), and target output format (topology
119
specification, `gcloud` CLI commands, or REST/YAML manifests).
120
2. **Phase 2 — Draft Architecture Plan and Resource Mapping**:
121
- Synthesize the topology diagram, project/VPC layout, IAM bootstrap
122
matrix, and security controls using the **Domain Router and Symptom
123
Matrix**, and map each manual's canonical REST/YAML schema and CLI
124
commands into the target deployment artifacts.
125
3. **Phase 3 — Post-Deployment and Audit Log Verification**:
126
- Pair every architecture design with the **Post-Deployment and Cloud Audit
127
Log Verification** checklist
128
(`references/topologies_and_project_layouts.md`) and runtime query
129
validation (`references/agent_runtime_and_identity.md`).
130
131
---
132
133
## Domain Router and Symptom Matrix
134
135
Each reference manual in `references/` is the **single source of truth** for its
136
domain's CLI commands, REST/YAML schemas, quotas, and CEL expressions. Always
137
read the corresponding reference manual before generating configurations or
138
answering domain-specific questions:
139
140
Architecture Domain | Topics and Architectural Decisions Covered | Symptoms and Failure Modes Routed Here | Canonical Reference Manual
141
:---------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------
142
**1. Project Hierarchy, Shared VPC, VPC-SC, and Custom Routing** | Multi-project separation (`Host`, `Governance Hub`, `Runtime Spoke`, `Tool/MCP Spoke`), PSC-I subnet sizing, cross-project Service Agent IAM bootstrap, VPC-SC perimeters, non-RFC 1918 PUPI/peered custom route exchange, and post-deployment Cloud Audit Log verification. | PSC-I IP exhaustion, cross-project attachment or `addressGroup` permission denials, VPC-SC perimeter blocks, dropped non-RFC 1918 internal routes, or post-deployment verification. | [`references/topologies_and_project_layouts.md`](references/topologies_and_project_layouts.md)
143
**2. Agent Connectivity Template (ACT) and Agent Gateway** | Choosing `ALL_TRAFFIC` vs `PRIVATE_RANGES_ONLY`, ACT and Agent Gateway REST/YAML schemas, control-plane URI formatting, registry attachment limits, and container custom Root CA bundle trust. | Control-plane URI validation errors, registry attachment limit errors, or container TLS verification failures (`[SSL: UNEXPECTED_EOF_WHILE_READING]`). | [`references/agent_gateway_and_act.md`](references/agent_gateway_and_act.md)
144
**3. Outbound Routing, Next-Hop SWP, PBR, and Hybrid mTLS** | Source-range Policy-Based Routes (PBR) for PSC-I subnets, Next-Hop Secure Web Proxy (`NEXT_HOP_ROUTING_MODE`), `swg-autogen-nat` vs manual Cloud NAT coexistence, gRPC/A2A/WebSocket routing, Spanner SA impersonation, and Cross-Cloud mTLS Egress Hubs (`Hybrid NEG`). | Asymmetric return-routing drops between manual Cloud NAT and `swg-autogen-nat`, outbound URL filtering on PSC-I interfaces, or cross-cloud mTLS origination over Cloud Interconnect/VPN. | [`references/egress_routing_and_swp.md`](references/egress_routing_and_swp.md)
145
**4. Ingress ALB, URL Rewrites, Private CA, and 3P IdP STS** | Two-Tier and Single-Tier ALB ingress with URL Map `hostRewrite`/`pathPrefixRewrite`, Private CA `TrustConfig` with Regional Internal ALB + Serverless NEG for Cloud Run MCP servers, and 3P IdP (`EntraID`/`Ping`/`Okta`) token exchange via `LbTrafficExtension` (`ext_proc` + STS). | WebPKI root stripping (`NO_ADDITIONAL_ROOTS`), empty `:authority` drops on Serverless NEGs, `*.run.app` Google-managed certificate mismatches, or OAuth/IAP header collisions. | [`references/ingress_patterns_and_rewrites.md`](references/ingress_patterns_and_rewrites.md)
146
**5. UAP Policy V2, IAP V1, SGP, and Model Armor Governance** | Organization/Folder/Project UAP Policy V2 and IAP V1 CEL authorization rules, Semantic Governance Policy (SGP `CONTENT_AUTHZ`), custom `AuthzExtension` / `AuthzPolicy` targets, and fail-closed Model Armor Floor Settings, templates, and ADK callbacks. | `Egress request is not authorized` (`HTTP 403` / `status.code=7`) on MCP `initialize` or `tools/list`, `failed to parse the service URL` on `AuthzExtension`, binary gRPC parser crashes, or fail-open safety bypasses. | [`references/governance_security_policies.md`](references/governance_security_policies.md)
147
**6. Agent Registry, Consolidated `googleapis`, and Federation** | Consolidating core Google APIs FQDNs into a single `googleapis` service (`ALL_TRAFFIC`), registering MCP/A2A/REST services, extracting server-generated `registryResource` UUIDs for `roles/iap.egressor`, and Event-Driven Spoke-to-Hub Registry Federation. | `ALL_TRAFFIC` agent startup or telemetry blackholing, IAM binding target mismatches on Registry resources, OpenAPI/MCP spec size rejections, or multi-project catalog drift. | [`references/registry_and_federation.md`](references/registry_and_federation.md)
148
**7. ADK Runtime Packaging, Agent Identity, and Day-2 Operations**| Packaging ADK agents with `AGENT_IDENTITY` (SPIFFE) and Auth Manager, regional residency, BigQuery pre-execution cost guards, in-place ACT updates, reverse-dependency teardown, and external Cloud NAT IP verification. | Raw credential exposure, `HTTP 409 ABORTED` control-plane mutex locks, `HTTP 400 FAILED_PRECONDITION` (`FROM_AGENT_GATEWAY*` or `contains child resources: sessions`), or `X-Forwarded-For: 0.0.0.0` when probing `*.run.app`. | [`references/agent_runtime_and_identity.md`](references/agent_runtime_and_identity.md)
149
150
---
151
152
## Supporting Public Documentation Links
153
154
- [Agent Runtime Overview](https://docs.cloud.google.com/gemini-enterprise-agent-platform/agents.md.txt)
155
- [Agent Gateway Overview](https://docs.cloud.google.com/gemini-enterprise-agent-platform/govern/gateways/agent-gateway-overview.md.txt)
156
- [Policies Overview](https://docs.cloud.google.com/gemini-enterprise-agent-platform/govern/policies/overview.md.txt)
157
- [Agent Identity Overview](https://docs.cloud.google.com/gemini-enterprise-agent-platform/govern/agent-identity-overview.md.txt)
158
- [Agent Registry Overview](https://docs.cloud.google.com/gemini-enterprise-agent-platform/govern/agent-registry.md.txt)
159
- [Deploy Agent Gateway Runtime](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/runtime/agent-gateway-runtime-deploy.md.txt)
160
- [Private Service Connect Interface](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/runtime/private-service-connect-interface.md.txt)
161

© Google LLC · Apache 2.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 10,799 prompts

More by @OpenSourceBuffGuy

See all
qiskit prompt image

qiskit

Builds, transpiles, simulates and runs quantum circuits with Qiskit 2.x and IBM Quantum Runtime primitives, including noisy simulation and error mitigation.

agent-skill, code-generation, quantum-computing, python, best-practices, migration, tool-use, for-developers, for-researchers, simulator, api, code, documentation, testing, performance-optimization, advanced, long-form, scientific-computing, physics, qiskit

Managed Airflow DAG Authoring prompt image

Managed Airflow DAG Authoring

Guides writing and validating Apache Airflow DAGs for Managed Airflow (Cloud Composer): discovering the environment, Airflow 2 vs 3 compatibility and best practices.

agent-skill, airflow, python, data-engineering, google-cloud, best-practices, code-generation, workflow-automation, cloud, for-developers, for-data-analysts, plan-then-execute, tool-use, testing, scaffolding, step-by-step-guide, code, cloud-composer

Security Awareness Training Compliance Report prompt image

Security Awareness Training Compliance Report

Produces a security training compliance report from Defender for Office 365: completion rates, non-completers by department and phishing simulation results.

report, security-awareness, compliance, audit, for-security-professionals, security-operations, structured-output, data-analysis, human-resources, employee-training, cybersecurity, template, placeholders, microsoft-365, kpis, microsoft-defender

Reviews

Loading reviews…

Discussion

Loading comments…