| name | devops-compliance |
| description | Enforce end-to-end DevOps best practices, environment standardization, security audits, and state-gated pipeline verification for Antigravity projects. |
| category | devops |
| risk | safe |
| source | self |
| source_type | official |
| date_added | 2026-05-30 |
| author | Google DeepMind Advanced Agentic Coding |
| tags | ["devops","compliance","continuous-integration","security-audit","sandboxing","zero-trust"] |
DevOps Compliance Playbook
Overview
A guide for governing and enforcing secure, high-standard DevOps practices on Antigravity development projects. This playbook teaches how to maintain toolchain consistency, use unprivileged sandbox execution, run continuous pipeline verification, perform workflow security scans, check for context drift, and perform zero-trust stateful releases.
These practices are statefully enforced by the FidusGate Security Gateway (the agent harness). If an agent attempts high-risk actions (like code commits or publishing) without completing mandatory DevOps verification steps, the secure harness will programmatically block the action using Cedar authorization controls.
The Secure DevOps Lifecycle
To ensure product quality and security, Antigravity agents follow a strict, statefully gated linear engineering lifecycle:
flowchart LR
A[1. Bootstrap] --> B[2. Secure Develop]
B --> C[3. Test Emulation]
C --> D[4. Security Audit]
D --> E[5. Context Audit]
E --> F[6. Compliance Commit]
- Bootstrap & Toolchain Consistency: Standardize and verify project toolchains.
- Safe Development: Modify code files in isolated, unprivileged sandboxes.
- Continuous Test Emulation: Run local pipeline checks on every single code change.
- Static Security Auditing: Scan workflow configuration files for latent vulnerabilities.
- Context Drift Auditing: Keep local CLAUDE.md memory map fresh and in sync.
- Zero-Trust Secure Commits: Commit verified changes and log cryptographic audit records.
Step-by-Step Compliance Guide
Step 1: Bootstrap & Toolchain Verification
Before working on the codebase, verify that your environment tools and runtime versions are locked down:
Step 2: Isolated Safe Development
To mitigate runaway local execution risks, all modifications and tests MUST be executed inside an unprivileged Docker sandbox container:
Step 3: Continuous Test Emulation
The security gateway tracks whether the workspace is currently "Test Verified."
Step 4: Static Security Auditing
Scan CI/CD pipelines and GitHub workflows for potential security vulnerabilities (e.g. prompt injection, unsafe checkouts):
Step 5: Context Drift Auditing
Keep your scoped CLAUDE.md sheets fresh to ensure that context does not drift as you add features:
Step 6: Zero-Trust Secure Commits
Once all compliance conditions (Pipeline, Security, HAM Drift) have been statefully verified by the gateway, execute the commit within the sandbox:
- Commit the changes securely:
bash scripts/sandbox-execute.sh "git commit -m '<commit_message>'" "."
- Whenever a high-risk tool call is authorized, append a cryptographic writeback entry to
.memory/audit-log.md:
### [AUDIT] - <DATE> - <TIME>
- **Tool Name:** <tool_name>
- **Risk Tier:** <tier>
- **Permission decision:** <allow/deny>
- **Cedar Policy Digest:** <policy_sha256>
- **Signature Receipt Key:** <ed25519_kid>
Best Practices
- ✅ Do: Run
bash scripts/ci-verify.sh immediately after any file edit to keep the workspace verified.
- ✅ Do: Remediate High-severity workflow findings immediately by removing untrusted dynamic prompt interpolation.
- ✅ Do: Verify that
.memory/audit-log.md is appended cleanly.
- ❌ Don't: Attempt to perform raw git commit commands outside the sandbox or without running the tests first.
- ❌ Don't: Bypass the compliance gate by setting
DISABLE_DEVOPS_GATE=true in production environments.
Loop Protection & Circuit Breakers (Tier 2 Governance)
- Loop Limit: If a runtime installation, environment path configuration,
mise command, or local pipeline test fails consecutively 3 times during setup or verification, the agent MUST immediately cease execution loops.
- Action: Document the exact terminal outputs/logs, stop executing test loops, and escalate immediately to the human developer for manual intervention to prevent runaway CPU lockups and token burn.
Related Skills
@protect-mcp-governance — Access control policies and Ed25519 signed receipts.
@agentic-actions-auditor — Static security scanning for GitHub Actions workflows.
@mise-configurator — Standardizing development runtimes and configurations.