Correlation identifiers
Span vocabulary
harmonia.stage.executeharmonia.agent.invokeharmonia.agent.delegateharmonia.model.generateharmonia.output.validate
Durable agent activity
The Monitoring Agents view reads structured activity from the existing tenant-scoped Firestore job event stream. Each record identifies its kind (handoff, tool_call, retry, or failure), status, responsible role, safe public message, operation, and trace. Handoffs identify both roles; retries and failures carry a stable code, category, retryability, and bounded attempt counts.
Events are written only after the corresponding typed artifact passes deterministic validation and persistence. They describe what happened but cannot advance a stage, approve content, or authorize an effect.
Native ADK signals
WhenHARMONIA_TELEMETRY_ENABLED=true, the worker enables all three ADK Google Cloud exporters:
- structured ADK and GenAI logs in Cloud Logging;
- ADK invocation, workflow, tool, latency, and token metrics in Cloud Monitoring;
invoke_agent,invoke_workflow,execute_tool, andgenerate_contentspans in Cloud Trace.
harmonia-agent, the Google Cloud project, the Cloud Run revision, and the deployment environment. HARMONIA_TELEMETRY_SAMPLE_RATE controls parent-based trace sampling. See Google’s ADK references for logging, metrics, and traces.
Operator activity explorer
Open Monitoring → Agent activity to query the safe Firestore projection. It supports:- log, trace, and metric modes;
- agent, stage, outcome, severity, model, tool, job, trace, time-window, and free-text filters;
- opaque forward cursors with previous/next navigation;
- nested parent/child spans by trace ID;
- per-agent latency, invocation, failure, token, inference-call, and tool-call summaries for the current filtered page.
retentionDeleteAfter for the agent_activity collection group.
Privacy boundary
- Recorded
- Excluded
IDs, stages, roles, handoff endpoints, tool names, model names, counts, attempt numbers, durations, policy versions, outcomes, safe error codes/categories, and timestamps.
Local trace-contract tests prove propagation and redaction behavior. A judge-facing claim still requires authenticated Cloud Trace or log exports correlated with the same Firestore records.
