Repository navigation
ci: sync the Antigravity reviewer with the hardened template - #338
Conversation
Re-sync scripts/agy-review.sh, _agy_print.sh, _agy_comment_body.sh and agy-review-selftest.sh byte for byte from the antigravity-pr-review template at 1451f73, refresh .github/AGY-REVIEWER.md where present, and rebuild the workflow from the template. Security (template d77b07c .. 1451f73): - agy runs in a bubblewrap jail (AGY_ISOLATION=bwrap, default): an empty private HOME (no MCP servers, skills, hooks, dotfiles or other repositories), read-only /usr and /etc, only the review sandbox writable, and a D-Bus that is an xdg-dbus-proxy allowing only agy's own Secret Service item. agy's own --sandbox was verified NOT to confine reads, and agy otherwise loads the host's MCP servers (REA, Blender) where a prompt-injected diff could drive them. - agy's output is scanned for credential shapes before posting; on a match nothing is posted (fail closed). Patterns are anchored so ordinary identifiers never match. - agy now runs from a private mktemp sandbox under RUNNER_TEMP, never from the checkout; the large-diff handoff file lives there and only the sandbox is passed to --add-dir. agy runs with --dangerously-skip-permissions on an untrusted diff, so a prompt injection could previously write .git/hooks or .git/config that a later token-bearing git call would execute. - agy gets an allowlisted environment (env -i plus the session variables its keyring-held Google login needs). No job token (GH_TOKEN, ACTIONS_RUNTIME_TOKEN, OIDC) or workflow env value reaches it, whatever its name. - Post-agy git calls ignore hooks and fsmonitor. - The workflow skips with a visible warning instead of failing red when the default branch has no reviewer. - AGY_ENV_PASSTHROUGH accepts only valid identifiers and never glob-expands; the sandbox path is canonical; an inline dry run no longer leaks it (template 2262811, from the reviews of the first re-sync PRs). Also carried: the base print timeout is 10m (was 5m; backported from three repositories that pinned 10-15m after timeouts), the cumulative dropped-round count and en-US spelling (template c9ded19, f492f3e), and every template fix since this copy was taken. The first-install bootstrap steps are omitted (the reviewer is already on the default branch; they trip CodeQL actions/untrusted-checkout), unless this repository vendors the workflow byte for byte. Verification: scripts/agy-review-selftest.sh "all checks passed" (including the new sandbox, allowlist and hook checks and the workflow timeout/lock budget); actionlint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49a0ef0f9b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Antigravity review (Gemini via Ultra)Syncs the Antigravity PR reviewer workflow, scripts, self-tests, and documentation with the hardened template (adding a Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Earlier review rounds (newest first)Round reviewed at 2026-11-23 03:51 UTCAntigravity review (Gemini via Ultra)Syncs the Antigravity PR reviewer workflow, scripts, self-tests, and documentation with the hardened template (adding bubblewrap filesystem/D-Bus isolation, a TLS-intercepting HTTP/1.1 egress proxy, credential redaction, and cumulative dropped-round tracking) while also updating Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-23 02:50 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, scripts, selftest, and documentation with the hardened template (adding bubblewrap filesystem/D-Bus isolation, an HTTPS MITM egress-filtering proxy, credential redaction, an isolated working directory outside the checkout, and cumulative dropped-round tracking), along with minor dependency bumps in Blocking issues
Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-23 01:10 UTCAntigravity review (Gemini via Ultra)This PR synchronizes the Antigravity PR reviewer workflow, scripts, and self-test suite with the hardened template, adding Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-23 00:37 UTCAntigravity review (Gemini via Ultra)Syncs the Antigravity PR reviewer workflow, documentation, and scripts with the hardened template, isolating Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 23:04 UTCAntigravity review (Gemini via Ultra)Hardens the self-hosted Antigravity PR reviewer by isolating Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 22:16 UTCAntigravity review (Gemini via Ultra)Syncs the Antigravity PR reviewer workflow, scripts, and self-tests with the hardened template, adding a Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 21:46 UTCAntigravity review (Gemini via Ultra)This PR hardens the self-hosted Antigravity PR reviewer by running Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 21:02 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, scripts, and self-test suite with the hardened template (adding a Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 19:34 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, scripts, selftests, and documentation with the hardened template (adding bubblewrap + Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by |
Re-syncs the vendored Antigravity reviewer scripts and .github/AGY-REVIEWER.md byte for byte from the antigravity-pr-review template at fd64ab3. Local workflow overrides are unchanged. New: the jail has no network of its own (AGY_EGRESS=filtered) - agy must be able to read its own Google login token, so the network was the remaining way to leak it. The jail now has only its own loopback. Its single route out is an allowlisting HTTPS CONNECT proxy outside the jail, reached through a bind-mounted Unix socket. - Exact host names only. `.googleapis.com` would include Cloud Storage, where anyone can own a writable bucket. - www.googleapis.com also serves the Cloud Storage API. That host is TLS-intercepted with a per-run CA whose key never enters the jail, and only a body-less GET /oauth2/v2/userinfo is forwarded, rebuilt by the proxy with its own Host header. Forwarding the client's Host would allow fronting to any Google service. - Verified from inside the jail. Refused: Cloud Storage upload and read (including path-traversal, encoded, HTTP/2, Host-fronting and smuggling variants), other hosts and ports, direct connections, raw TCP and DNS. A full review completes. - The job log prints egress verdict counts only. Denied host names go to a mode-600 log on the runner host, for diagnosing an agy update that needs a new host. Fixes from review round 4 on these re-sync PRs: - A jail that fails to start is no longer accepted as review output (Codex). - cleanup survives an already-exited proxy under set -e (Cursor). - Each capture is credential-scanned before any handler logs it (CodeRabbit). The public stderr tail is withheld if it carries a credential shape (Cursor). - An empty AGY_KEYRING_ATTRS (SearchItems {} matches every item) is refused (Cursor). - TMPDIR=/tmp inside the jail (Cursor). Top-level lib/bin links mirror the host layout, for Debian and Ubuntu (Codex). Verification: agy-review-selftest.sh all checks passed (now including offline TLS tests of the egress proxy); actionlint clean; gitleaks no leaks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RUSTSEC-2026-0592 (stack overflow in Url::origin() on nested blob: URLs) entered the advisory database after main's last green run, so Dependency Audit and Cargo Deny Check are red on any new push. url reaches the tree only through webbrowser -> egui-winit in rustysnes-frontend. A lockfile-only patch bump. Verification: cargo audit reports no vulnerabilities; cargo deny check advisories: ok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Red checks: cause and fix (
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aae5617b8e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because on-demand usage is turned off. To enable Bugbot Autofix, turn on on-demand usage and set a spend limit in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit aae5617. Configure here.
The vendored reviewer README now passes markdownlint defaults (0 errors, down from 77: MD013 line-length and MD060 table style). Prose is rewrapped to 80 columns, long code lines are rewritten, table delimiters use the compact style, and tables are fenced against MD013. It also corrects the security-model note on unbuffer: env -i now starts unbuffer itself. Also re-syncs the self-test labels to en-US spelling (template fd64ab3). Documentation and labels only; no behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dependency Audit scans both lockfiles. aae5617 bumped only the workspace Cargo.lock, so RUSTSEC-2026-0592 (url 2.5.8) still failed from fuzz/Cargo.lock. The fuzz crate now takes 2.5.9 as well. Verification: cargo audit --file fuzz/Cargo.lock reports no vulnerabilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 170d6de9-b56f-44c6-8947-df55a30d14f6) |
Re-syncs the vendored reviewer scripts and .github/AGY-REVIEWER.md byte for byte from the antigravity-pr-review template at 1d782bb. Local workflow overrides are unchanged. - Fronting fix (HIGH from this PR's review, reproduced live): only www.googleapis.com was intercepted, and Google's front end routes by Host on any googleapis connection, so a request to oauth2, aicode or daily-cloudcode-pa carrying `Host: storage.googleapis.com` reached Cloud Storage. Every allowed host is now TLS-intercepted. Each connection carries one HTTP/1.1 request, validated strictly and rebuilt with the proxy's own Host and a body forwarded exactly once. Fronting through all four hosts is verified blocked from inside the jail, and a full review completes. - AGY_EGRESS_PATH_RULES (host=/exact/path, literal) replaces AGY_EGRESS_INTERCEPT_HOST/_PATH. - Credential-shaped output is redacted to `[REDACTED: <kind>]` with a note in the comment, instead of failing the review. The scan cannot tell a secret from a test fixture. Anything redaction misses still fails closed. - Python >= 3.11 is checked. The jail refuses to launch agy when its egress bridge is down. The denied-host log keeps the newest 500 records, and streams are closed on every error path. - Self-test: the TLS cases no longer depend on curl, and a certificate failure is a FAIL. There are 20 offline proxy cases and full redaction coverage. Verification: agy-review-selftest.sh all checks passed; actionlint clean; markdownlint clean on AGY-REVIEWER.md; gitleaks no leaks in scripts/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: e8157db9-8964-44b7-ba84-8b01c40b64b0) |
Two follow-ups from the automated security review of 1d782bb: - Chunk trailers are read (bounded) and discarded; only the terminating CRLF goes upstream, so no header can be added after validation. - Credential redaction runs in memory instead of through a predictable "$f.redact" sibling file in a possibly shared TMPDIR. Verification: agy-review-selftest.sh all checks passed; actionlint clean. Live: a jailed review through the proxy posted (26 rebuilt requests), leaving nothing behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 57ea9e1b-510d-4519-b902-6fae0202d318) |
Re-syncs the vendored reviewer scripts and .github/AGY-REVIEWER.md byte for byte from the antigravity-pr-review template at accfc51. Local workflow overrides are unchanged. From CodeRabbit's review of CyberChef-MCP #184: - A backend error is classified on agy's raw capture, before redaction. A redaction marker is longer than the key it replaces, so a near-limit error could outgrow the size guard and be posted. - A private key whose BEGIN and END share one line no longer deletes the rest of the review. - The egress proxy drops fields named in Connection (RFC 9110) and answers Expect with 417 instead of stalling. - Self-test: the path-rule fixture contains a `.`, so literal and regex matching are told apart, and the denial count is exact. Verification: agy-review-selftest.sh all checks passed (each new check fails against f29c2ab); actionlint clean; markdownlint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 66db7340-19d7-4fc8-b6e8-ea2ecf7032d4) |
Re-syncs the vendored reviewer scripts and .github/AGY-REVIEWER.md byte for byte from the antigravity-pr-review template at 499bb51. Local workflow overrides are unchanged. From CodeRabbit's review of CyberChef-MCP #184: - A backend error is classified on agy's raw capture, before redaction. A redaction marker is longer than the key it replaces, so a near-limit error could outgrow the size guard and be posted. - Private-key redaction uses awk: a one-line block is replaced in place, and a block with no END line ends in a visible marker saying the rest of the review was removed, instead of a silent truncation. - The egress proxy drops fields named in Connection (RFC 9110) and answers Expect with 417 instead of stalling. - Self-test: the path-rule fixture contains a `.`, so literal and regex matching are told apart, and the denial count is exact. Verification: agy-review-selftest.sh all checks passed (each new check fails against f29c2ab); actionlint clean; markdownlint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 789938f8-b460-449f-891c-0f5bcc306d3b) |
Re-syncs scripts/agy-review-selftest.sh byte for byte from the antigravity-pr-review template at 8782d07. No other reviewer file changed; local workflow overrides are unchanged. - The chunked-trailer checks counted source text, so removing the terminating CRLF or forwarding a trailer through another write call left them green (CodeRabbit on CyberChef-MCP #184). They now run the real copy_chunked on an asyncio stream with a recording writer: a trailer is dropped, exactly `0\r\n\r\n` goes upstream, and the bytes of a following request stay unread. Both mutations turn them red. Verification: agy-review-selftest.sh all checks passed; actionlint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-syncs the vendored reviewer scripts byte for byte from the antigravity-pr-review template at 2a366ac (round 10 of the agy and CodeRabbit findings). Local workflow overrides are unchanged. - A second private key opened on the first key's END line was dropped from redaction; each line is now scanned left to right. - OpenAI sk-proj-/sk-svcacct- keys (base64url) are recognized. - The redaction note names every kind and is reset per attempt; the last guard scans the assembled comment body. - The egress proxy forwards Content-Length: 0 (Google answers an empty POST without it with 411). - Control bytes are stripped from the denied-host log; the agy lock is taken before the jail starts; cleanup reaps both proxies. - Self-test: two pipefail races (one made it flake) are removed, and the TLS cases are skipped by name on python < 3.11. Verification: agy-review-selftest.sh all checks passed; actionlint clean; a live jailed review from the same scripts completed and cleaned up after itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 243b43c2-1e81-4a2f-8799-f5c36c0bade2) |
Re-syncs the vendored reviewer scripts byte for byte from the antigravity-pr-review template at b940416 (round 11). Local workflow overrides are unchanged. - The archived earlier rounds are now redacted, and the assembled comment body is scanned after they are appended. 2a366ac's guard ran before the append and so never saw the archive. - Egress proxy: the CONNECT host is matched case-insensitively, bytes pipelined behind a CONNECT are refused, and a duplicate path rule for one host is refused. - Both proxies stop once agy finishes; a dead proxy ends the startup wait at once; a missing AGY_BIN is refused before the jail is built. Verification: agy-review-selftest.sh all checks passed; actionlint clean; a live jailed review from the same scripts completed and cleaned up after itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adjudication of the latest Antigravity roundsNo blocking issues remain. Each finding was checked against the cited code. The real ones were fixed in the
|
Re-syncs the vendored reviewer scripts byte for byte from the antigravity-pr-review template at a7d5273 (round 12). Local workflow overrides are unchanged. - AGY_KEYRING_ATTRS, AGY_EGRESS_ALLOW and AGY_EGRESS_PATH_RULES are split with `read -r -a` instead of an unquoted `for`, which globbed. Before, a wildcard such as `*.com` could expand to a file name in the checkout and pass the exact-host validation. - The public stderr tail is withheld when the whole agy log, not just the tail, carries a credential shape. Verification: agy-review-selftest.sh all checks passed; actionlint clean; a live jailed review from the same scripts completed and cleaned up after itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: f6cd6b20-20c4-44f2-a44f-1a99e031419a) |
Re-syncs the vendored reviewer scripts byte for byte from the antigravity-pr-review template at 023b552. Local workflow overrides are unchanged. - List settings (AGY_KEYRING_ATTRS, AGY_EGRESS_ALLOW, AGY_EGRESS_PATH_RULES) are read whole with `read -r -d '' -a`. A plain `read -a` stopped at the first newline, which could drop a later path rule (leaving that host unrestricted) or a keyring attribute. Verification: agy-review-selftest.sh all checks passed; actionlint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 7e9506fd-a4af-4cd8-b230-241032cc7c80) |

Re-syncs the vendored Antigravity PR reviewer with the hardened
antigravity-pr-reviewtemplate (1451f73).Why
The reviewer runs
agywith--dangerously-skip-permissionson an untrusted diff. The old copy ran it from the checkout, so a prompt injection could plant.git/hooksor.git/configthat a later token-bearinggitcall would execute. It also passed agy every job environment variable exceptGH_TOKENandGITHUB_TOKEN.Changes
HOME(no MCP servers, skills, hooks or other repositories), read-only/usrand/etc, and a D-Bus proxy that exposes only its own keyring item. Verified: in the jail agy cannot read~/.config/ghor any repository, has no MCP tools, and theghtoken's keyring item and the bulkGetSecretscall areAccessDenied.$RUNNER_TEMPwith an allowlisted environment, and post-agygitignores hooks. Verified live on ci: run only the jobs a change needs, and cache aggressively Orbic-Rayhunter#1:/procshowed the sandbox as cwd and the only--add-dir, and plantedACTIONS_RUNTIME_TOKENandDATABASE_URLcanaries were absent from agy's environment.Checks run
bash scripts/agy-review-selftest.sh: all checks passedactionlinton the workflowNote: this PR's own review runs the scripts already on the default branch; the new copy takes effect after merge.
🤖 Generated with Claude Code
Note
High Risk
The diff rewires how untrusted PR content reaches a privileged self-hosted runner (jail, egress proxy, env allowlist, and secret redaction); any mistake could break reviews or weaken isolation.
Overview
Replaces the vendored Antigravity PR reviewer with the hardened antigravity-pr-review template so
agyis no longer run against the checkout with a broad environment.agy execution now defaults to a bubblewrap jail (
AGY_ISOLATION=bwrap): empty privateHOME, read-only system dirs, D-Bus limited to agy's keyring item viaxdg-dbus-proxy, and optional filtered egress (CONNECT proxy with TLS termination, exact host allowlist, path rules, private denied-host log). Large diffs live in a$RUNNER_TEMPsandbox only (--add-dirnever points at the repo); agy gets anenv -iallowlist instead of stripping two token names. Credential-shaped output is redacted (or posting fails); job stderr tails can be withheld when they match.Workflow/docs: job timeout 80m,
AGY_LOCK_WAIT1860, base print timeout 10m; new step warns and skips whenscripts/agy-review.shis missing on the default branch. AGY-REVIEWER.md documents the jail, egress, and sandbox model (no more requiring/.agy-review-work/in.gitignore).Reviewer UX: archive dropped-round counts are cumulative across edits; empty archive
<details>is not emitted.agy-review-selftest.shgrows large coverage for jail shape, egress proxy behavior, redaction, cleanup/mktempordering,script(1)framing strip, and lock-vs-timeout budgets. Minor Cargo.lock URL crate bumps.Reviewed by Cursor Bugbot for commit 5eb2dce. Bugbot is set up for automated code reviews on this repo. Configure here.