Gemini Decision 1 for Governed SOC Agents#
Gemini Decision 1 (gemini-decision-1 on https://generativelanguage.googleapis.com/v1beta/decisions) is a non-generative classification, scoring, and routing model purpose-built for structured triage. Instead of generating free-form JSON text tokens, Decision 1 evaluates one input payload against a dictionary of questions in a single forward pass and returns calibrated probabilities (noul), discrete labels (choice), and expected ordinal scores (score) with zero output tokens.
This guide documents how Decision 1 is integrated into the governed SecOps stack under governed_agents/ where it eliminates downstream LLM turns and filters high-volume telemetry before the generative model runs, how credentials and egress are governed via Agent Platform Auth Manager and the egress Agent Gateway, and what the apples-to-apples live benchmark (thinkingBudget=0) and Logstory replay demonstrate.
Architecture across the governed SOC stack#
Every Decision 1 call in governed_agents/ uses the canonical httpx REST client in governed_agents/shared_decision_guards/decision_client.py (re-exported by soc_orchestrator/decision_client.py, threat_hunter/decision_client.py, and cti_researcher/decision_client.py) rather than modifying the pinned google-adk==2.13.0 or google-genai==2.34.0 dependencies. The shared client supports both synchronous (evaluate_decisions) and asynchronous (aevaluate_decisions) calls, multimodal input parts (text, image, document, audio, video), HTTP 400 input-safety block detection (safety_blocked: True), and 300-second in-memory Auth Manager credential caching (GEMINI_AUTH_TOKEN_TTL_SECONDS). When neither GEMINI_AUTH_PROVIDER nor GEMINI_API_KEY is configured, it returns {"enabled": False, ...} so hermetic CI and unit tests pass without network access.
To ensure Vertex AI Reasoning Engine containers import shared_decision_guards without ModuleNotFoundError, both scripts/governance/package_agent.sh and terraform/40-package.tf bundle shared_decision_guards/ into every terraform/dist/<agent>.tar.gz archive and compute identical deterministic SHA-256 hashes over the sorted file list.
Figure 1. End-to-end architecture showing soc_orchestrator LlmResponse short-circuit routing, threat_hunter after_tool_callback pre-LLM UDM noise filtering, cti_researcher unstructured/multimodal CTI triage, and clean detection_engineer and tier2_responder baselines behind agw-secops-egress.#
Agent |
Decision 1 integration |
What it replaces or avoids |
Enforcement boundary |
|---|---|---|---|
|
|
On initial user turns ( |
Never blocks or self-refuses; falls back to |
|
|
Evaluates each returned UDM event/alert in parallel without |
Read-only Chronicle OneMCP hunt allowlist ( |
|
|
Evaluates unstructured threat prose, OSINT reports, PDFs, and screenshots ( |
Lateral isolation to |
|
Clean baseline (no Decision 1 tool) |
Uses Chronicle OneMCP |
Chronicle OneMCP validation allowlist; explicitly distinguishes YARA-L 2.0 from standard YARA |
|
Clean baseline (no Decision 1 tool) |
Executes containment tools directly without in-container self-gating |
Agent Gateway Semantic Governance enforces Tier-0 Crown Jewel policy ( |
Figure 2. soc_orchestrator LlmResponse short-circuit bypassing gemini-4-hydrogen on decisive single-specialist turns and threat_hunter after_tool_callback dropping low-signal UDM noise (P(tp) < 0.30) before gemini-3.8-flash runs.#
Figure 3. Updated terraform/agentcards/*.json skill inventory across all five governed Reasoning Engines (preflight_routing_triage, triage_unstructured_cti_artifact, after_tool_callback UDM filter, and clean detection_engineer and tier2_responder baselines).#
YARA-L 2.0 vs. standard YARA#
Across soc_orchestrator, threat_hunter, and detection_engineer, the stack explicitly distinguishes YARA-L 2.0 from standard YARA:
YARA-L 2.0 (Chronicle SIEM UDM): Event correlation rules evaluated over Unified Data Model (UDM) telemetry with
meta,events,match,outcome, andconditionsections, validated authoritatively by Chronicle OneMCPvalidate_rule.Standard YARA: File, memory, or binary payload pattern-matching rules using
stringsandconditionover raw bytes or artifacts, not Chronicle SIEM UDM event rules.
Auth Manager and Agent Gateway egress#
No static Gemini API key is placed in container environment variables or Terraform state:
Auth Manager (
terraform/20-authmanager.tf):terraform_data.gemini_auth_providercreates theagw-secops-gemini-api-keyAuthProvider in Agent Platform Auth Manager fromTF_VAR_gemini_api_key(never written to state).terraform_data.gemini_auth_provider_grantsequentially grantsroles/agentidentity.useron that provider to all five agents’ SPIFFE workload identities.Runtime credential retrieval with 300s TTL cache (
GEMINI_AUTH_PROVIDER):terraform/41-agents.tfinjectsGEMINI_AUTH_PROVIDER(the resource name) into each Reasoning Engine. At call time,decision_client.pyexchanges the agent’s SPIFFE workload identity token athttps://agentidentitycredentials.googleapis.com/v1/<provider>/credentials:retrieveand caches the token in process memory for 300 seconds (GEMINI_AUTH_TOKEN_TTL_SECONDS).Default-deny Agent Gateway (
terraform/10-registry-endpoints.tf):generativelanguage.googleapis.comis registered ingoogle_api_hosts_global(as<region>-g-generativelanguage) alongsideagentidentitycredentials.googleapis.comso engines reach the Decisions API throughagw-secops-egresswithout opening arbitrary egress.
Figure 4. Live 6/6 just governance-smoke-test verification and Auth Manager (agw-secops-gemini-api-key) + generativelanguage.googleapis.com Agent Registry binding.#
Figure 5. Live scripts/governance/verify_logs.sh gateway telemetry confirming 200 ALLOWED egress to generativelanguage.googleapis.com, agentidentitycredentials.googleapis.com, and chronicle.googleapis.com alongside 403 DENY enforcement for disallowed MCP tools.#
The three Decision 1 question types#
Every Decision 1 request batches multiple questions against a single input payload (either text or multimodal type: "text" / "image" / "document" parts) using three structured primitives:
noul(binary probability): Returns a calibrated probability in[0.0, 1.0]plusconfidence. Used for specialist routing flags (needs_cti,needs_threat_hunt,needs_detection_eng,needs_tier2_response),true_positivenoise-drop/escalation thresholds (< 0.30/>= 0.85),is_actionable_threat, andrequires_immediate_hunt.choice(single-label classification): Evaluates adict[str, str]of label descriptions and returns the winningchoice,confidence, and fullprobabilitiesdistribution over all labels. Used forworkflow_mode,threat_category,mitre_tactic, andnext_action.score(0-indexed ordinal rubric ++1.0shift): Evaluates an orderedlist[str]of rubric levels. Because Decision 1 returns a 0-indexed expected score (0.0toN-1),decision_client.pypreservesraw_scoreand shiftsscore = raw_score + 1.0to align with 1–5 operational scales (1.0–5.0forurgency,severity, andconfidence_score).
Figure 6. The three Decision 1 question types (noul, choice, and 0-indexed score shifted +1.0 to a 1.0–5.0 operational scale) mapped across soc_orchestrator, threat_hunter, and cti_researcher.#
Figure 7. Calibrated per-label probability distributions and confidence scores returned by Decision 1 across routing, UDM filtering, and unstructured CTI triage.#
Logstory RULES_SEARCH_WORKSHOP end-to-end replay#
To validate Decision 1 against realistic security telemetry in the test Google SecOps tenant, we replayed the Logstory RULES_SEARCH_WORKSHOP dataset (Windows PowerShell, Windows Event Log, and Sysmon process/network events) into Chronicle SIEM and ran live A2A queries against the deployed soc_orchestrator:
threat_hunter(_filter_udm_events_after_tool_callback): Retrieved the replayedRULES_SEARCH_WORKSHOPPowerShell/Sysmon events via Chronicle OneMCPudm_search. Routine OS/Defender DNS lookups (P(tp) < 0.30) are filtered before the LLM runs, while thentdsutil.execredential-dumping event (frank.kolzigonactivedir.stackedpads.local) is tagged[HIGH_CONFIDENCE_ESCALATE]withseverity_score = 3.95 / 5.0,79.96%true-positive probability,credential_access, andescalate_tier2.detection_engineer(validate_rule): Validatesdns_tunneling_distinct_subdomains_T1048directly via Chronicle OneMCPvalidate_rule(success: true,usesUdm: true).
Figure 8. Live A2A trace against the deployed soc_orchestrator showing RULES_SEARCH_WORKSHOP PowerShell/Sysmon UDM hunting and Chronicle OneMCP validate_rule (success: true).#
Live apples-to-apples benchmark (thinkingBudget=0)#
scripts/governance/benchmark_decision1.py benchmarks gemini-3.8-flash with thinkingBudget=0 (39 calls across 13 cases × 3 iterations) against gemini-decision-1 ($0.10/1M input, $0.00/1M output) across the three refactored SOC workloads (preflight, udm_filter, and cti_artifact):
Metric |
Generative ( |
Gemini Decision 1 ( |
Improvement |
|---|---|---|---|
Calls |
|
|
Same |
Total input tokens |
|
|
|
Total output tokens |
|
|
100% eliminated |
Mean latency (ms) |
|
|
13.0x faster |
p50 latency (ms) |
|
|
15.2x faster |
p95 latency (ms) |
|
|
11.4x faster |
Estimated cost (USD) |
|
|
3.6x cheaper |
Label accuracy |
|
|
100.0% accuracy ( |
Calibrated probabilities |
|
|
Native probability & confidence outputs |
Modeled end-to-end agent savings (estimates)#
The following end-to-end savings are modeled estimates derived from the benchmarked fast-path triggers rather than direct end-to-end wall-clock measurements:
Orchestrator short-circuit (
preflight):6/12calls bypassedgemini-4-hydrogen, saving an estimated ~12,120tokens and ~19,200 msof orchestrator reasoning latency.Pre-LLM UDM noise drop (
udm_filter):9/18events dropped (P(tp) < 0.30) and9/18fast-escalated (P(tp) >= 0.85), saving an estimated ~4,050downstreamgemini-3.8-flashinput tokens.
Figure 9. Apples-to-apples latency comparison (gemini-3.8-flash thinkingBudget=0 vs. gemini-decision-1) across 39 live calls: 247.11 ms vs. 3,218.01 ms mean (13.0x), 212.03 ms vs. 3,231.06 ms p50 (15.2x), and 404.58 ms vs. 4,595.49 ms p95 (11.4x).#
Figure 10. Aggregate token footprint (0 vs. 2,051 output tokens; 23,694 vs. 11,622 input tokens), cost ($0.002369 vs. $0.008614, 3.6x lower), 100.0% (177/177) vs. 96.6% (171/177) accuracy, and modeled gemini-4-hydrogen bypass and UDM noise-drop savings.#
Running the benchmark and tests#
# Offline unit tests (short-circuit routing, after_tool_callback UDM filter, multimodal CTI triage)
.venv/bin/python -m pytest -o addopts="" tests/test_governed_agents.py
# Dry-run the Decision 1 benchmark (validates payloads without API calls)
.venv/bin/python scripts/governance/benchmark_decision1.py --dry-run
# Live apples-to-apples benchmark (requires GEMINI_API_KEY or ADC + GEMINI_AUTH_PROVIDER)
.venv/bin/python scripts/governance/benchmark_decision1.py --gen-model gemini-3.8-flash --iterations 3 --json-out /tmp/bench_live_v3.json
See Case Study: Single-Pass Pre-Flight Short-Circuit and Pre-LLM UDM Filtering for sanitized POST /v1beta/decisions JSON payloads, or dive into the per-specialist guides:
For deployment and architecture details, see Agent Governance: Deploy, Verify, Operate and Agent governance design notes.