feat(sigil-hook): Antigravity install is static-posture-only by default (#112)#157
Merged
Conversation
…lt (#112) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes
sigil-hook install --agent antigravityhonest about runtime hooks. On current Antigravity (agy>= 1.0.7) theagy plugin installPreToolUse command-hook does not fire (hardware-verified, #112), so the previous behavior — silently writing a plugin bundle and invokingagy— gave false assurance of runtime protection.New behavior:
install --agent antigravitywrites nothing, never invokesagy, and prints an honest message explaining that Sigil covers Antigravity via static configuration-posture scanning instead.--forcegate. The legacy bundle-install path is preserved behind a new--forceflag (for a futureagythat restores command-hooks). It warns that it may still be a no-op.--agent antigravity --enforceis rejected (exit code 2): there is no deny path to register on currentagy.No behavior change to the static AI Guard parser, the runtime adapter, or other agents — those edits are comment/preview-string honesty only.
Why
Hardware verification on real
agy1.0.7/1.0.8:agy plugin validatereportshooks: skipped (not found),plugin listshowscomponents: null, and an always-deny probe hook fired 0 times while the shell command ran normally. agy's hook subsystem is proto/SDK-internal, not an external command-hook plugin component. Full finding recorded on #112.Tests
--force; honest-message invariant (NOT installed/no files written/#112/--force/static).tests/install_antigravity_static.rs, HOME-isolated + fakeagy): no---forcewrites no bundle and never invokes agy;--forcewrites the bundle and calls agy;--enforceexits 2.cargo fmtclean ·clippy -D warningsclean ·cargo test -p sigil-hookgreen.Follow-up
A separate issue tracks refreshing the Antigravity static parser's expected values (
toolPermissionvalid set /sandbox_mode) against agy 1.0.8.Closes #112
🤖 Generated with Claude Code