Skip to content

2.0 Governance, Identity & AgentOps — Overview & Release Lifecycle (Layer 4)

In 1. Workloads, Catalog & Gateways, we met the cast of runtime workloads in Layer 5: support-assistant, order-ops-specialist, the three Cloud Run MCP tool servers (knowledge-base, orders, customers, refunds, notifications), the internal HTTPS entry point (*.esmeralda.internal), and the optional Apigee X partner front door (partner.esmeralda.internal).

Now, in Section 2, we step into Layer 4 (layer-4-governance) and the day-to-day operational rhythm of AgentOps. Before a single line of agent or MCP tool code is allowed to handle a customer conversation in Layer 5, Layer 4 establishes the Trust Boundary: the central egress control plane, per-target access and optional content guardrails (Model Armor), and cross-project FinOps telemetry hub that govern every action an agent takes.


Subsections in Section 2

Subsection Title & Focus Who Should Read This
2.1 Zero-Trust Egress & The Central Agent Gateway Follows Camila Rocha's order support request as support-assistant and order-ops-specialist make outbound calls. Explains why enterprise AI requires a deny-by-default egress proxy (AGENT_TO_ANYWHERE), per-target SPIFFE principal:// IAP authorization, and an internal Root CA—followed by the complete, preserved technical deep dive and reference. Security Architects, NetOps, Platform Engineers, Agent Developers
2.2 Capability-Based & Semantic Governance Explains how Esmeralda limits the "Confused Deputy" problem at the tool layer with per-target IAP egress, the catalog caller guard and optional Model Armor, what the Natural Language Constraints (NLC) policy manifest describes (not enforced yet), why governance is declared by capability (governance.capabilities in env.yaml), and how optional Apigee X capabilities (partner-agents, partner-mcp, token-quota, usage-metering) plug in when external B2B partner APIs are needed. CISOs, Governance Leads, API Product Managers, SecOps
2.3 FinOps, Telemetry & Cross-Team Chargeback Shows how a CFO and Engineering VP trace the exact token cost, cache savings, and latency of Camila Rocha's order support inquiry across two separate teams' GCP projects using OpenTelemetry baggage (caller.project_id, caller.agent_name), central Cloud Logging sinks, BigQuery views (vw_monthly_agent_chargeback), and Golden Signals dashboards. FinOps Leads, CFO / Engineering Leadership, SREs
2.4 Day-2 Operations with the esmeralda CLI & MCP Server Walks through day-to-day platform operations—both for human engineers and AI coding assistants—using uv run esmeralda (status, doctor, units, plan, apply with the destroy guard, verify, logs, contracts, guard) and the read-only uv run esmeralda mcp server. Platform Operators, SREs, Developers using AI Coding Assistants

Why Multi-Track Layered Parallelism Matters

In many organizations, the first AI agent prototype succeeds in a single notebook—and then stalls for six months on the road to production. Why? Because every team gets locked into a single, serialized delivery queue:

  • The Customer Experience (CX) team wants to iterate on conversational prompts every afternoon.
  • The AI Center of Excellence (AI CoE) is refining order operations rules and database schemas for reusable specialist agents.
  • The AppDev Tools team is wrapping legacy store systems (orders, customer accounts, refunds) into Model Context Protocol (MCP) microservices.
  • SecOps and Governance need cryptographic proof that a prompt injection cannot exfiltrate customer PII or call unauthorized endpoints.
  • FinOps needs to know which business unit is spending tokens when a front-door agent delegates work to a shared specialist agent.
  • Partner API teams want to package selected capabilities for external fulfillment and marketplace partners with rate limits and monetization.

If these six tracks are coupled into a single project or a single deployment step, the fastest team moves at the speed of the slowest approval gate.

Esmeralda replaces serialized bottlenecks with Multi-Track Layered Parallelism. Each team works in its own dedicated GCP project (and, in production, its own Git repository), connected only through explicit, versioned platform contracts:

flowchart LR
    subgraph Track1["Track 1: NetOps & PlatformOps"]
        T1["Shared VPC, Private DNS<br/>(*.esmeralda.internal)<br/>& Internal HTTPS Entry Point"]
    end

    subgraph Track2["Track 2: SecOps & Governance"]
        T2["Central Agent Gateway,<br/>Agent Registry, IAP Egress,<br/>Model Armor (optional)"]
    end

    subgraph Track3["Track 3: FinOps & Observability"]
        T3["Hub-and-Spoke Log Sinks,<br/>OTel Baggage Attribution &<br/>BigQuery Chargeback Views"]
    end

    subgraph Track4["Track 4: AppDev Tools Team"]
        T4["Cloud Run MCP Servers<br/>(knowledge-base, orders, customers,<br/>refunds, notifications)"]
    end

    subgraph Track5["Track 5: AI CoE Team"]
        T5["Reusable A2A Specialist<br/>(order-ops-specialist)<br/>& Private Cloud SQL"]
    end

    subgraph Track6["Track 6: CX & Partner Teams"]
        T6["User-Facing ADK Orchestrator<br/>(support-assistant)<br/>& Optional Apigee Partner APIs"]
    end

    Track1 -->|"DNS + TLS Contract"| Track2
    Track2 -->|"SPIFFE + Registry Contract"| Track4 & Track5 & Track6
    Track4 & Track5 & Track6 -->|"OTel + Stdout Contract"| Track3

Who Owns What: Engineering Roles and Project Boundaries

Every track maps cleanly to a dedicated GCP project and team cost-allocation label:

Engineering Track (team label) Primary Responsibility Owned GCP Project Contract Surface With Other Tracks
NetOps (netops) Shared VPC, subnets, Cloud NAT, Private DNS (esmeralda.internal.). esm-<env>-net-host-<sfx> Publishes the reserved internal VIP (ilb-esmeralda-vip-<env>) and wildcard DNS (*.esmeralda.internal).
PlatformOps (platformops) Private internal HTTPS entry point and optional gateway adapters (direct, envoy). esm-<env>-gateway-<sfx> Routes https://<service>.esmeralda.internal to the target backend based on the catalog block in env.yaml.
SecOps & Governance (security-and-platformops) Central Agent Gateway, Agent Registry, semantic governance (NLC) policy manifest (not enforced), Model Armor, KMS, Secret Manager, BigQuery telemetry hub. esm-<env>-governance-<sfx> Publishes the agw_root_ca_bundle, evaluates SPIFFE principal:// identities against Agent Registry & IAP, and collects spoke logs.
Platform Engineering Shared CI/CD pipelines and container registries (Layer 0). esm-cicd-<sfx> Builds environment-neutral container images (esmeralda-containers) and promotes immutable sha256 digests (esmeralda-containers-release).
AppDev Tools Team (appdev-tools) Enterprise data connectors and MCP tool servers on Cloud Run. esm-<env>-mcps-<sfx> Exposes stateless MCP servers (knowledge-base, orders, customers, refunds, notifications) behind https://<svc>.esmeralda.internal/mcp.
AI CoE Team (ai-coe) Reusable A2A domain specialists and private relational state. esm-<env>-ai-coe-agents-<sfx> Publishes order-ops-specialist and its A2A Agent Card at https://order-ops-specialist.esmeralda.internal.
CX Team (cx) User-facing conversational orchestrators (ADK). esm-<env>-cx-agents-<sfx> Consumes the specialist via A2A_AGENT_URL without ever knowing its underlying engine ID, database IP, or MCP tool implementation.

Notice the decoupling between the CX Team and the AI CoE Team: support-assistant never calls order-ops-specialist by a raw Vertex AI Reasoning Engine resource ID, and it never calls MCP tools directly. It calls https://order-ops-specialist.esmeralda.internal, and the request flows through the Central Agent Gateway and the private entry point (see 2.1 Central Agent Gateway §4.2). The AI CoE team can redeploy, scale, or replace its specialist engine at 2:00 PM without requiring a single configuration change or redeployment from the CX team.


Why We Built the AgentOps Lifecycle This Way

Before diving into the repository layout and release pipeline, here are the core architectural decisions that shape Section 2:

Architectural Decision The Problem It Solves Why Esmeralda Chose This Approach
ADR-07: Central Agent Gateway (AGENT_TO_ANYWHERE) + SPIFFE Identity over Direct Cloud NAT Standard Cloud NAT allows a prompt-injected agent to exfiltrate customer PII to arbitrary external servers or enter runaway token loops without per-agent visibility. Every Reasoning Engine runs with an attested SPIFFE AGENT_IDENTITY. All outbound calls traverse the Central Agent Gateway in esm-<env>-governance-<sfx>, which enforces deny-by-default Agent Registry allowlisting, IAP roles/iap.egressor checks, and optional Model Armor inspection.
ADR-08: Decoupled Multi-Track Repositories Bound by Immutable sha256 Digests Putting platform Terraform, MCP microservices, and multiple teams' agents into a single monolithic release cycle means a tiny email tool tweak forces a full re-test of every agent—or worse, gives application developers IAM access to KMS and VPC state. Production teams work in decoupled repositories (Platform IaC, MCP Tools, Specialist Agents, Orchestrator Agents) that publish environment-neutral containers to Layer 0 Artifact Registry and bind into environments exclusively via immutable @sha256:... digests.
Environment-Neutral BYOC Containers + Deploy-Time CA Injection Baking dev certificates or URLs into a container image makes it impossible to promote the exact same binary artifact to prd. Images contain zero certificates or environment URLs. Layer 4 assembles the gateway inspection roots + internal Root CA into AGENT_GATEWAY_ROOT_CERTIFICATES, and esmeralda run installs them into the container's system trust store at startup (see 2.1 Central Agent Gateway §6).

Multi-Track Coordination in Action

How do these independent teams collaborate when Garimpo's customer support experience needs a new capability? Let's trace a realistic cross-team workflow where the CX team needs a reusable order operations specialist backed by a new MCP data connector:

sequenceDiagram
    autonumber
    actor CX as "CX Team (support-assistant)"
    participant PlatformOps as "PlatformOps / NetOps"
    participant SecOps as "SecOps & Governance"
    participant AppDev as "AppDev Tools Team (MCPs)"
    participant AICoE as "AI CoE Team (A2A specialists)"

    CX->>PlatformOps: 1. Request a reusable specialist dependency
    PlatformOps->>SecOps: 2. Check billing & IAM policies
    SecOps-->>PlatformOps: 3. Approve project boundary attachment
    PlatformOps->>AICoE: 4. Provision order-ops-specialist buckets & Cloud SQL
    AICoE->>CX: 5. Hand over gateway-abstracted URL (https://order-ops-specialist.esmeralda.internal)
    CX->>AppDev: 6. Request new backend data connector (MCP tool)
    AppDev->>PlatformOps: 7. Deploy new tool container to the mcps project
    PlatformOps->>SecOps: 8. Register tool in Agent Registry, grant run.invoker + iap.egressor
    SecOps-->>CX: 9. Access granted to new MCP tool
  1. Workload Request: The CX team requests a domain specialist capable of handling order operations.
  2. Platform & Security Review: PlatformOps and SecOps verify project boundaries, budget alerts, and identity separation.
  3. Infrastructure Provisioning: PlatformOps provisions the private Cloud SQL PostgreSQL instance (with its zero-bastion schema bootstrap job), GCS buckets, and service accounts in esm-<env>-ai-coe-agents-<sfx>.
  4. Stable Endpoint Handoff: The AI CoE team deploys order-ops-specialist, which registers its agent card in the governance Agent Registry. PlatformOps deploys gateways/direct and entrypoint (uv run esmeralda deploy gateways/direct entrypoint --env <env>) so order-ops-specialist.esmeralda.internal routes to the new engine. The CX team receives only the stable URL https://order-ops-specialist.esmeralda.internal (A2A_AGENT_URL).
  5. Tool Request & Deployment: When the specialist needs access to customer account data, the AppDev Tools team builds customers in esm-cicd-<sfx> and deploys it as an internal-LB Cloud Run service in esm-<env>-mcps-<sfx>, registered in Agent Registry as https://customers.esmeralda.internal/mcp.
  6. Least-Privilege Access Grant: PlatformOps lists the allowed callers in the catalog block of env.yaml and deploys the iap-egress unit (uv run esmeralda deploy iap-egress --env <env>), granting roles/run.invoker and per-target roles/iap.egressor only to the authorized agent identity.

The Decoupled Multi-Repository Strategy

While this open-source blueprint lives in a single repository so you can clone, explore, and deploy it in one sitting, running a multi-team enterprise platform inside a single monorepo creates release coupling and IAM privilege creep. For enterprise production, Esmeralda is designed to split cleanly across decoupled repository classes bound together by Layer 0 Artifact Registry digests:

flowchart TD
    subgraph Repos["Decoupled Git Repositories"]
        R_Platform["platform-infra-iac.git<br/>(Platform Engineers / Terragrunt Modules)"]
        R_Notify["mcp-notifications.git<br/>(AppDev Tools Team / Tool Python Code)"]
        R_Orders["mcp-orders.git<br/>(AppDev Tools Team / Tool Python Code)"]
        R_A2A["agent-order-ops-specialist.git<br/>(AI CoE Team / A2A Python Code)"]
        R_Root["agent-support-assistant.git<br/>(CX Team / Python ADK Code)"]
    end

    subgraph Pipelines["Shared CI/CD project (esm-cicd-SFX, Layer 0)"]
        CB["Cloud Build<br/>(sa-esmeralda-builder)"]
        AR_DEV["Artifact Registry<br/>esmeralda-containers (dev, mutable)"]
        AR_REL["Artifact Registry<br/>esmeralda-containers-release (immutable)"]
    end

    subgraph RunOps["Target Workload Deployments"]
        Run_Notify["Cloud Run: notifications"]
        Run_Orders["Cloud Run: orders"]
        Run_A2A["Vertex AI: order-ops-specialist<br/>(AI CoE A2A specialist)"]
        Run_Root["Vertex AI: support-assistant<br/>(CX orchestrator)"]
    end

    subgraph IaCOps["GitOps Platform Assembly"]
        TG["Terragrunt live dev / prd<br/>(Refers to platform-infra-iac.git)"]
    end

    R_Notify & R_Orders & R_A2A & R_Root -->|Build| CB
    CB -->|Push :dev-latest + :dev-gitsha| AR_DEV
    AR_DEV -->|esmeralda release promote: copy by digest| AR_REL
    AR_DEV -->|dev pulls by digest| Run_Notify & Run_Orders & Run_A2A & Run_Root
    AR_REL -->|prd pulls by digest| Run_Notify & Run_Orders & Run_A2A & Run_Root
    R_Platform -->|Commit Live Configurations| TG
    TG -->|Deploy Infrastructure & Workload Specs| Run_Notify & Run_Orders & Run_A2A & Run_Root

Directory-to-Repository Migration Map

When transitioning from this reference repository to decoupled team repositories, split folders along these exact boundaries:

Blueprint Folder (Monorepo) Target Production Git Repository Deployment Endpoint
infrastructure/modules/0-cicd/
infrastructure/modules/1-projects/
infrastructure/modules/2-networking/
infrastructure/modules/3-security/
infrastructure/modules/4-governance/
infrastructure/modules/5-workloads/
infrastructure/live/
platform-infra-iac.git GCP Projects, VPCs, KMS Keys, IAM Policies, and Terragrunt orchestrations
apps/services/envoy/ (optional adapter) platform-infra-iac.git (or a dedicated gateway-envoy.git) Cloud Run Service: envoy-gateway-{env} in esm-<env>-gateway-<sfx> (only when envoy is in gateways.enabled)
apps/services/notifications/ mcp-notifications.git Cloud Run Service: notifications-{env} in esm-<env>-mcps-<sfx>
apps/services/orders/ mcp-orders.git Cloud Run Service: orders-{env} in esm-<env>-mcps-<sfx>
apps/services/customers/ mcp-customers.git Cloud Run Service: customers-{env} in esm-<env>-mcps-<sfx>
apps/agents/order-ops-specialist/ agent-order-ops-specialist.git Vertex AI Reasoning Engine in esm-<env>-ai-coe-agents-<sfx>
apps/agents/support-assistant/ agent-support-assistant.git Vertex AI Reasoning Engine in esm-<env>-cx-agents-<sfx>

The Parameter Linkage Pattern

Application repositories never execute Terraform against cloud projects directly. Instead, platform-infra-iac.git acts as the declarative binder. Each environment declares which images to run in infrastructure/live/<env>/env.yaml:

# infrastructure/live/<env>/env.yaml (HCL locals, read by Terragrunt)
image_repository = "dev"         # dev → esmeralda-containers; prd uses "release" → esmeralda-containers-release
container_tag    = "dev-latest"  # prd: fallback only, used while release/prd.yaml does not exist
# prd only: every image pinned by digest from the release manifest (see "From dev to prd: Immutable Digest Promotion")
image_digests    = try(yamldecode(file("${get_repo_root()}/release/prd.yaml")).images, {})

Terragrunt constructs each workload's container URI from the Layer 0 repository outputs plus either the immutable digest in image_digests (<repo>/<image>@sha256:...) or the tag (<repo>/<image>:<container_tag>):

1. Tool Container Image (live/<env>/layer-5-workloads/services/customers/terragrunt.hcl)

locals {
  name    = basename(get_terragrunt_dir())                                      # catalog key: customers
  callers = try(local.env_vars.locals.catalog[local.name].callers, [])
  # Callers that are catalog agents (they call with their own Agent Identity), and the rest.
  agent_callers = [
    for caller in local.callers : caller
    if contains(["a2a", "adk"], try(local.env_vars.locals.catalog[caller].kind, ""))
  ]
  # Deprecated fallback (env.yaml legacy_shared_invoker): agents impersonate the shared invoker again.
  legacy_shared_invoker = try(local.env_vars.locals.legacy_shared_invoker, false)
}

inputs = {
  container_image   = "${<dev or release repository_url from layer-0-cicd>}/${local.image_ref}" # customers@sha256:... or customers:<tag>
  internal_hostname = "${local.name}.${dependency.networking.outputs.entrypoint_domain}"        # Agent Registry URL

  # run.invoker: each agent caller's Agent Identity principal (resolved through identity_refs), the
  # service accounts of the other callers (apigee-partner-mcp: the Apigee proxy runtime SA), and the
  # SA of each enabled adapter. legacy_shared_invoker adds the shared MCP invoker SA instead.
  invoker_service_accounts = distinct(compact(concat(
    [for caller in local.agent_callers : "${local.env_vars.locals.catalog[caller].unit}:agent_identity_principal"],
    [for caller in local.callers : (
      caller == "apigee-partner-mcp"
      ? (local.apigee_partner ? dependency.apigee.outputs.proxy_runtime_sa_email : "")
      : dependency.security.outputs["${replace(caller, "-", "_")}_sa_email"]
    ) if !contains(local.agent_callers, caller)],
    local.legacy_shared_invoker && length(local.agent_callers) > 0 ? [dependency.security.outputs.mcp_invoker_sa_email] : [],
    contains(local.gateways.enabled, "envoy") ? [try(dependency.security.outputs.envoy_sa_email, "")] : [],
  )))
}

2. Agent Container Digest Pinning (live/<env>/layer-5-workloads/agents/order-ops-specialist/terragrunt.hcl)

To prevent silent container drift and guarantee that Vertex AI Agent Runtime executes the exact binary validated by the owning team, the agent modules always deploy image@sha256:.... A digest from release/prd.yaml is passed straight through, while a mutable dev tag is resolved to its immutable SHA256 digest at plan time (data.google_artifact_registry_docker_image):

inputs = {
  agent_image_uri       = "${<dev or release repository_url>}/${local.image_ref}" # order-ops-specialist@sha256:... or :<tag>
  agent_service_account = dependency.security.outputs.order_ops_specialist_sa_email
}


From dev to prd: Immutable Digest Promotion Pipeline

In traditional software delivery, rebuilding an image from a Git branch for prd risks subtle dependency drift. In AI agent systems, where a minor library update can alter tool serialization or prompt formatting, rebuilding for production is even riskier.

Esmeralda enforces a strict Build Once, Promote by Digest lifecycle. Container images are built once in an environment-neutral form, verified end-to-end in dev, and promoted byte-for-byte into prd through an auditable Git release manifest (release/prd.yaml):

flowchart LR
    B["esmeralda build images<br/>tags dev-sha"] --> D["deploy dev<br/>esmeralda deploy --layer 5 --env dev"]
    D --> V["esmeralda verify --env dev<br/>gateway probes + both agents answer"]
    V --> P["esmeralda release promote<br/>--version vX.Y.Z --source dev-sha"]
    P --> PR["PR: release/prd.yaml"]
    PR --> PRD["deploy prd<br/>esmeralda deploy --layer 5 --env prd"]

Each step has a make shortcut: make build-images, make deploy-workloads ENV=<env>, make verify ENV=dev, make promote VERSION=… SOURCE=… VERIFIED=….

Step-by-Step Release Lifecycle

  1. Local Iteration & Unit Testing:
    • Developers iterate locally using make test-agents, make test-terraform, make run-mcp-local, and make test-*-local (or uv run esmeralda serve --local).
    • Before committing, .githooks/pre-commit runs uv run esmeralda guard --staged to verify repo hygiene.
  2. Build Once in Shared CI/CD (dev):
    • uv run esmeralda build <target> (e.g., uv run esmeralda build support-assistant or uv run esmeralda build images; shortcuts make build-*) submits a Cloud Build job in the shared Layer 0 project esm-cicd-<sfx> using sa-esmeralda-builder. Agent builds run make lock-check test test-terraform first unless --skip-tests; logs go to .esmeralda/build-logs/.
    • The image is pushed to the mutable dev repository (esmeralda-containers) with two tags: :dev-latest (or --tag) and :dev-<gitsha>.
  3. Deploy and Verify in dev:
    • uv run esmeralda deploy --layer 5 --env dev (or one unit: uv run esmeralda deploy <unit> --env dev) deploys Layer 5 unit by unit through the destroy guard, resolving each tag to its sha256 digest and running the serverless Cloud SQL schema bootstrap job, then checks the running digests.
    • uv run esmeralda verify --env dev (make verify ENV=dev) executes all gateway conformance probes through the internal entry point (make test-gateway) plus live end-to-end queries against both order-ops-specialist and support-assistant (make test-e2e).
  4. Promote by Digest (esmeralda release promote):
    • Once dev verification passes, run uv run esmeralda release promote --version vX.Y.Z --source dev-<gitsha> --verified <YYYY-MM-DD> (make promote VERSION=… SOURCE=… VERIFIED=…; code in esmeralda/ops/release.py). --verified defaults to today. Add --dry-run to check every digest and see what would change without copying or writing anything.
    • It resolves the sha256 digest of every workload image tagged dev-<gitsha> (the same image list esmeralda build images builds), checks every vX.Y.Z tag before copying anything, copies those exact digests into the immutable release repository (esmeralda-containers-release) as vX.Y.Z (writable only by sa-esmeralda-promoter), and writes release/prd.yaml.
    • Re-running the same promotion is an idempotent no-op (only promoted_at changes), while attempting to overwrite an existing vX.Y.Z tag with different bytes is rejected by both the CLI and Artifact Registry's immutable tag policy.
  5. Review and Merge the Release Manifest (release/prd.yaml):
    • The promoter opens a Pull Request with release/prd.yaml. Because the manifest stores only logical image names and sha256 digests (never hardcoded project IDs; the registry URL comes from Layer 0 outputs, as documented in esmeralda/ops/release_manifest.py), reviewers see a crisp diff of which components changed, from which commit, and when dev verified them.
  6. Deploy and Audit prd (esmeralda build --verify):
    • After merging release/prd.yaml, uv run esmeralda deploy --layer 5 --env prd reads image_digests from infrastructure/live/prd/env.yaml and deploys <release_repository>/<image>@sha256:....
    • uv run esmeralda build --verify --env prd (make verify-images ENV=prd, also run at the end of every Layer 5 deploy) inspects the live Cloud Run revisions and Vertex AI Reasoning Engines in prd and verifies that every running container digest matches release/prd.yaml; uv run esmeralda release status (make status-release) displays the active manifest at any time.
  7. Instant, Deterministic Rollback:
    • Rolling back prd is simply git revert on the release/prd.yaml PR followed by uv run esmeralda deploy --layer 5 --env prd. Because esmeralda-containers-release is immutable, every historical release digest remains permanently available.

The whole flow from the CLI:

uv run esmeralda build images
uv run esmeralda deploy --layer 5 --env dev
uv run esmeralda verify --env dev
uv run esmeralda release promote --version v1.2.0 --source dev-<gitsha>
uv run esmeralda release status
uv run esmeralda deploy --layer 5 --env prd --dry-run

Tip

Production Roadmap Extensions: In your enterprise CI/CD pipeline, you can wire Steps 1–4 into an automated post-merge workflow that opens the release/prd.yaml PR automatically after uv run esmeralda verify --env dev succeeds, and pair esmeralda-containers-release with Binary Authorization so prd admits only cryptographically attested digests.


Preview: Hub-and-Spoke Observability

How does Layer 4 observe all of these decoupled projects without giving developers direct access to production databases or raw infrastructure logs? Esmeralda uses a hub-and-spoke telemetry model (covered in full in 2.3 FinOps, Telemetry & Cross-Team Chargeback):

  • Spoke Sources:
    • MCP Tool Servers on Cloud Run emit structured HTTP request logs and export OpenTelemetry traces and metrics straight to the Cloud Telemetry API (telemetry.googleapis.com), with no collector in between.
    • AI Agent Reasoning Engines emit single-line JSON events (genai_token_consumption, mcp_tool_execution) to stdout alongside OpenTelemetry trace spans enriched with caller.project_id and caller.agent_name baggage.
    • Central Agent Gateway records every outbound allow/deny decision (logName:"gateway_requests") directly in the governance project.
  • Central Governance Hub (esm-<env>-governance-<sfx>):
    • Layer 4 installs a project-level log sink (google_logging_project_sink) in each of the five spoke projects (net-host, gateway, mcps, ai-coe-agents, cx-agents) that streams logs into the central BigQuery dataset esmeralda_telemetry_logs_<env>, and attaches all spoke projects to the governance Cloud Monitoring metrics scope.

Let's begin our tour of Layer 4 in 2.1 Zero-Trust Egress & The Central Agent Gateway, where we follow Garimpo's order support request (ORD-2026-4102) across the trust boundary.