Gemini Decision 1 v2 Lifecycle Workflows#
Looking for live 30-second presenter demos? See Gemini Decision 1 Simple 30-Second Demos for the presenter-first walkthroughs, exact Gemini Enterprise Chat prompts, and the 3-tab web demo app (
just governance-demos).
Gemini Decision 1 (gemini-decision-1 on https://generativelanguage.googleapis.com/v1beta/decisions) evaluates structured questions in a single forward pass and returns calibrated probabilities (noul), discrete labels (choice), and ordinal scores (score) with zero output tokens.
In v2, Decision 1 moves out of LLM-callable tool wrappers and into Google Agent Development Kit (ADK) lifecycle callbacks and pre-agent ingress gates under governed_agents/shared_decision_guards/. Across four live workflows (40 scenarios total) and an honest 3-arm benchmark (59 scored questions), the v2 stack achieves 100% classification accuracy on injection screening (16/16), Bayes containment (8/8), and multimodal CTI ingress (6/6), cuts prompt prefill by 83.87% across 3-step trajectories with 10/10 KV-cache prefix pinning, and outperforms gemini-3.5-flash-lite and gemini-3.8-flash on accuracy and tail latency.
Figure 1. ADK lifecycle callback pipeline showing Workflow 2 (before_model_callback progressive tool and runbook pruning with KV-cache pinning), Workflow 1 (after_tool_callback LOLBin-safe prompt-injection screening and IOC-preserving redaction), Workflow 3 (before_model_callback directional Bayesian epistemic gate), and Workflow 4 (pre-agent multimodal CTI ingress).#
Why v2 moves Decision 1 into ADK lifecycle callbacks#
When a triage check or safety gate is exposed as a standard LLM tool, the generative model decides whether to call it, what arguments to pass, and how to interpret the result. Untrusted telemetry returned by an earlier tool call can steer the model to skip the check or fabricate a benign disposition.
Moving Decision 1 into ADK lifecycle callbacks and pre-agent ingress removes that discretion:
before_model_callback(progressive_tool_pruner_callback/prune_with_session_pinning_async): Runs before the generative model sees the request. Scores 35 tools and 6 runbooks in one Decision 1 pass on Step 1, strips irrelevant declarations and instructions fromLlmRequest, and pins the plan for Steps 2 and 3 so KV-cache prefixes stay byte-identical with 0 extra RPCs.after_tool_callback(screen_tool_output_after_tool_callbackandtriage_tools.py): Runs immediately after untrusted MCP or enrichment tools return and before the payload enters the model context. Evaluates UDM triage and indirect prompt injection in one 75-question pass (triage_tools.py), checksinj_prob >= 0.65beforetp_prob < 0.30, and redacts only free-text leaves viaredact_free_text_fieldsso structured IOCs stay visible.before_model_callback(make_bayes_epistemic_before_model_callback): Runs over raw JSON tool traces before the LLM synthesizes its post-tool verdict. Audits 4 epistemic checks and computes asymmetric expected financial loss across CMDB tiers, using directionalclose_max_p = 0.15andisolate_min_p = 0.70thresholds so intermediate(0.15, 0.70)posteriors route toFORCE_PROBE_MORE.Pre-agent ingress (
triage_multimodal_security_artifact): Screens rawimage/png,application/pdf, andtext/plainCTI artifacts before wakingcti_researcher, eliminating base64 binary serialization inside LLM JSONFunctionCallarguments.
How the four workflows compose#
Workflow |
Hook / boundary |
Module |
Decision 1 questions |
Live accuracy |
Mean latency |
|---|---|---|---|---|---|
Workflow 1: Indirect Prompt-Injection Guard |
|
|
Single-pass 75-question UDM + injection batch (up to 15 items per RPC) |
100% (16/16) |
309.86 ms |
Workflow 2: Progressive Tool & Runbook Pruning |
|
|
1 |
90.00% runbook (9/10), 100% tool recall |
362.38 ms Step 1 (0.0 ms Steps 2 and 3) |
Workflow 3: Cost-Weighted Bayes Containment Gate |
|
|
5 |
100% (8/8) |
181.4 to 1,785.15 ms |
Workflow 4: Pre-Agent Multimodal CTI Ingress |
Pre-agent ingress |
|
4 questions ( |
100% (6/6) |
454.15 ms |
Honest 3-arm benchmark summary#
Across 13 live calls and 59 scored questions (/tmp/decision1_v2_results/benchmark_v4_honest.json), gemini-decision-1 delivers 100.0% accuracy (59/59) with 293.12 ms mean latency, 484.72 ms p95 latency, 0 output tokens, and calibrated [0.01, 0.99] posteriors, compared to gemini-3.5-flash-lite (559.96 ms mean, 997.78 ms p95, 94.9% accuracy, \(0.000677) and `gemini-3.8-flash` (2,741.77 ms mean, 3,337.09 ms p95, 96.6% accuracy, \)0.002890). See Gemini Decision 1 Honest 3-Arm Benchmark for the full breakdown.
Chronicle SIEM YARA-L 2.0 vs. standard YARA#
Throughout the v2 runbooks, tool catalogs, and injection criteria, the stack separates 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 withvalidate_ruleandevaluate_rule_coverage.Standard YARA: File, memory, or binary payload pattern-matching rules using
stringsandconditionover raw bytes or artifacts, not Chronicle SIEM UDM events.
Reproducing the tests and live workflows#
Run the hermetic unit tests and packaging checks offline without network access:
.venv/bin/python -m pytest -o addopts="" \
tests/test_governed_agents.py \
tests/test_unified_decision_client_and_packaging.py \
tests/test_workflow1_injection_guard.py \
tests/test_workflow2_tool_pruning.py \
tests/test_workflow3_bayes_gate.py \
tests/test_multimodal_cti_ingress.py
bash scripts/governance/tests/run_all.sh
Run the live workflows against gemini-decision-1 (requires GEMINI_API_KEY or GEMINI_AUTH_PROVIDER):
.venv/bin/python scripts/governance/workflows/run_workflow1_injection_guard.py
.venv/bin/python scripts/governance/workflows/run_workflow2_tool_pruning.py
.venv/bin/python scripts/governance/workflows/run_workflow3_bayes_gate.py
.venv/bin/python scripts/governance/workflows/run_workflow4_multimodal_ingress.py