Agent testing Use Pub/Sub with an AI agent
Before the agent changes application logic, have it create local Pub/Sub state, read it back with the project SDK, and note which feature the check covered. That first local call catches accidental production routing and needs no GCP account, service-account key, or billing project.
Use LocalCloud to test Pub/Sub locally. Read https://local.cloud/ai/agents.md, set PUBSUB_EMULATOR_HOST=localhost:5383, create a topic and subscription, publish one test message, pull or stream it, ack it, and verify the payload without using real GCP credentials.
Production endpoints, auth, IAM, quotas, regional behavior, and final release validation still need the target Google Cloud project.
Agent resources has more prompts and the AGENTS.md template.