Repository navigation
dgem v0.4.2
Gateway, CLI, policy-template, and agent-integration release (deploy/cloudrun/ serving container image is unchanged from v0.4.0).
Highlights
- SecOps & Responsible AI (RAI)
.json.tmplpolicies and Genkit Gov1.14.0examples (templates/,examples/,cmd/serve.go,cmd/mcp.go).
Adds seven executable decision policies with deterministic slot seeding ("seed_token": "fixed","samples": 1) —templates/secops_rag_quarantine.json.tmpl(4-tieruse-vs-mentionRAG prompt-injection posture),templates/secops_iam_change_audit.json.tmpl(IAM/RBAC/Terraform diff audit),templates/rai/prompt_safety_guardrail.json.tmpl(benign figurative/homonym context protection + jailbreak framing),templates/rai/response_safety_grader.json.tmpl(single-pass red-team grading),templates/rai/custom_content_policy.json.tmpl(configurableR1–R5moderation),templates/rai/unbiased_context_qa.json.tmpl(cannot_be_determinedabstention), andtemplates/rai/provenance_claim_check.json.tmpl(C2PA Content Credentials verification) — along withrai/short-name resolution and Decision Studio / MCP sample variables. Extendsexamples/dgemgenkitwith multi-stage conditional DAG execution (depends_on/ask_if,Passes,Skipped) and post-hoc(T, \tau)calibration helpers (ApplyTemperature,RawHesitation,CalibratedProb,ExceedsThreshold,CalibratedHesitation), adds standaloneexamples/genkit-secops-triage/andexamples/genkit-rai-guardrails/, and adds-preset secops_incidentand-preset rai_redteam_gradertoexamples/genkit-bulk-synth/. - Google Antigravity (
agyCLI & Python SDK)PreToolUsesafety gate (examples/agy-safety-gate/,templates/tool_safety_gate.json.tmpl,cmd/serve.go).
Adds a zero-dependency PythonPreToolUsetool-call classifier (dgem_gate.py,sdk_demo.py,hooks.example.json) and 2-slot orthogonal policy (action_hazard+intent_originwith"isolate": "all"),use-vs-mentionawareness,<untrusted_data>prompt-injection quarantine, Hesitation-gated (< 16%) Stage-2 Gemini escalation, fail-safe fallback to interactive"ask", and methodological evaluation-scope guidance. - Genkit
EndpointConfigand Cloud Run / local gateway script ergonomics (examples/dgemgenkit/,scripts/,Makefile).
Adds unifieddgemgenkit.EndpointConfig(DGEM_GATEWAY_URL,-gateway-url,-backend,-url,-model) supporting both directPOST /v1/systemonegateway targets and in-process/v1adapters across all Genkit Go examples, configurable service/SA/VPC environment bindings inscripts/setup_cloudrun_iam.sh, automatic Private Google Access enablement for VPC egress inscripts/deploy_cloudrun_vllm.sh,:latestimage tagging alongside commit-SHA tags inscripts/build_cloudrun_image.sh, andmake gateway-up/gateway-down/local-up/local-down/local-statustargets. - Gateway tracing and signed release contributor guidance (
AGENTS.md).
Documentsdgem.gateway.proxychild-span invariants, stale-while-revalidate:rawPredicthealth probing, and the SSH-signed annotated release tag workflow (make release VERSION=vX.Y.Z).
Install
Download a prebuilt archive below (dgem_v0.4.2_<os>_<arch>.tar.gz, verified against SHA256SUMS) or install with Go:
go install github.com/GoogleCloudPlatform/dgem@v0.4.2