security(agents): harden Antigravity hook policy boundary - #1807
security(agents): harden Antigravity hook policy boundary#1807groupthinking with Copilot wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Security acceptance review — 2026-09-09 — TEST / live blockedReviewed implementation at Observed code gaps:
Google hook documentation, updated September 4 and retrieved September 9, distinguishes configuration discovery from enforcement; errors/timeouts allow execution and hooks do not cover custom functions/MCP. These restrictions remain independent of the fixture passing. Required next tests: reject escaping paths; prove provider-recognized config location and immutable source revision; mark mount/probe outcomes UNVERIFIED unless backed by trusted enforcement evidence; fail live validation when that evidence is missing. Retain external MCP/network policy enforcement. Do not infer that this comment verifies a specific provider mount API. State: high-priority security review remains open; no live test approved or run. Existing-head CI is action_required, not passed. Estimated next repair/review: 0.5–1 engineering day. |
Canonical issue
Handled by canonical issue automation.
Outcome
Antigravity executions can now attest that hook policy lives outside the agent-writable sandbox boundary. Receipts capture the mounted policy identity and the result of a controlled tamper attempt without treating hook timeout/error as a denial.
Scope
AntigravityHookPolicyso managed runs can mount hook config from a dedicated remote source instead of writable sandbox statereceipt.policyRisk
unverifiedwhen providers omit policy telemetry/home/runner/work/EventRelay/EventRelay/src/youtube_extension/services/agents/antigravity_backend.py/home/runner/work/EventRelay/EventRelay/tests/unit/test_antigravity_backend.pyVerification
List exact automated and manual checks, tied to the current head SHA.
59edb02python3 -m pytest --no-cov tests/unit/test_antigravity_backend.py -qpython3 -m ruff check src/youtube_extension/services/agents/antigravity_backend.py tests/unit/test_antigravity_backend.pyruntime-tools-secret_scanningon changed filesenvironment.sourcesand targets/workspace/hook-policy/.agents/hooks.jsonProduction evidence
Not applicable. This change only hardens configuration and receipt semantics for future managed runs; no live provider call or production mutation was performed.
Agent handoff