Repository navigation
ci: sync the Antigravity reviewer with the hardened template - #56
Conversation
|
@codex review |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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, and rebuild the workflow from the template. Security: - agy runs in a bubblewrap jail (AGY_ISOLATION=bwrap): 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 --sandbox was verified NOT to confine reads. - Allowlisted environment (env -i, unbuffer started inside it); canonical paths; post-agy git ignores hooks. - agy output is scanned for anchored credential shapes before posting; on a match nothing is posted (fail closed). - The workflow skips with a warning, not red, when the default branch has no reviewer. Also carried: base print timeout 10m, AGY_ENV_PASSTHROUGH hardening, dry-run leak fix, and every template fix since this copy was taken. Squashed to one commit (an intermediate commit carried self-test sample literals that secret scanners flag). Verification: agy-review-selftest.sh all checks passed; actionlint clean; gitleaks on scripts/ no leaks. Local customizations preserved: AGY_PRINT_TIMEOUT 25m and AGY_PRINT_TIMEOUT_MAX_SECONDS 1500 for large diffs. AGY_LOCK_WAIT is raised 1800 -> 3060 and timeout-minutes 90 -> 110 so the lock wait outlasts another review's 3015 s hold and the 6075 s worst case fits the job, as the self-test requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32847c8 to
ac891fc
Compare
Round 3: adjudication and the isolation rolloutThe branch is squashed to one commit on template
This PR's own review still runs the default branch's scripts; the jail applies after merge. |
|
@codex review |
Antigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, scripts, self-tests, and documentation with the hardened upstream 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:10 UTCAntigravity review (Gemini via Ultra)This PR synchronizes the Antigravity PR reviewer scripts, documentation, self-test suite, and CI workflows with the hardened upstream template (adding a Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-23 01:17 UTCAntigravity review (Gemini via Ultra)Syncs the Antigravity PR reviewer workflow, scripts, and self-test suite with the hardened upstream template (adding a Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-23 00:57 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, scripts, self-tests, and documentation with the hardened upstream template (adding a Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 23:24 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, documentation, and scripts with the hardened template (adding a Blocking issues
Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 22:37 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer workflow, scripts, selftests, and documentation with the hardened upstream template (adding bubblewrap filesystem/D-Bus isolation, a TLS-intercepting egress proxy, allowlisted environment passthrough, and credential redaction) alongside minor CI workflow cleanups for Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 21:43 UTCAntigravity review (Gemini via Ultra)This PR syncs the Antigravity PR reviewer scripts, self-tests, workflow configuration, and documentation with the hardened template (adding Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 19:26 UTCAntigravity review (Gemini via Ultra)Syncs the Antigravity PR reviewer workflow, scripts, selftest, and documentation with the hardened template (adding bubblewrap/D-Bus isolation, an allowlisted environment, an isolated diff sandbox outside the checkout, output credential scanning, cumulative dropped-round tracking, and Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by Round reviewed at 2026-11-22 19:16 UTCAntigravity review (Gemini via Ultra)Synchronizes the self-hosted Antigravity PR review workflow, helper scripts, selftest suite, and documentation with the hardened template (sandboxed execution outside the checkout, allowlisted environment, output credential scanning, cumulative dropped-round tracking, Blocking issuesNone found. Suggestions
Nitpicks
Automated first-pass review by |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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>
Boot (riscv64), (riscv64, smp) and (riscv64, release) fail one second in with 'qemu-system-riscv64: command not found' (from the uploaded boot log). The ubuntu-26.04 runner image (20261116) ships QEMU 10.2, which moved qemu-system-riscv64 out of qemu-system-misc into its own package. main's last green run predates that image, so main is red on its next run too. The step now installs qemu-system-riscv when the image offers it (older images keep the binary in -misc), and the riscv64 matrix fails fast with a clear error if the binary is still missing. All 21 actionlint findings in ci.yml are cleared: - Bare-metal clippy: the -Zbuild-std flags are a quoted bash array instead of a deliberately unquoted string (SC2086). - CI Summary step (19 SC2086 + 1 SC2129): every needs.*.result and github.* value now arrives through env: rather than being interpolated into the script, the summary is written in one redirected block to a quoted "$GITHUB_STEP_SUMMARY", and a small status() helper replaces the repeated if/else. github.ref_name in particular was interpolated directly, and a branch name can contain shell syntax. Verification: actionlint reports 0 findings in every workflow. The rewritten summary step was dry-run with sample results: identical summary text, exit 1 when boot tests fail, exit 0 when only the non-blocking coverage upload fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Red checks: cause and fix (
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 b5c2e3d. 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>
Antigravity review (Gemini via Ultra)This PR 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 |
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: ebdb1b3e-19c1-4c75-a655-de2549329843) |
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: 24aa8746-1674-47c4-8ec1-76c1460c980b) |
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: b850af45-31c8-4245-a2b8-1247c34b16b7) |
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: 1bc4165f-f742-49d2-a3f7-0ecb58ec415a) |
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>
An explicit AGY_PRINT_TIMEOUT is used as given; the per-attempt cap applies only to a diff-scaled value, so the comment's claim that the cap bounds the pin was wrong. 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>
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>
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: b1bb21e5-eebf-4a31-a7e3-fa50898f8304) |
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>
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: 91443de8-178c-4d78-95b1-8fca0b052c98) |

Re-syncs the vendored Antigravity PR reviewer with the hardened
antigravity-pr-reviewtemplate (25701b0).Why
The reviewer runs
agywith--dangerously-skip-permissionson an untrusted diff. The old copy:.git/hooksor.git/configthat a later token-bearinggitcall would execute;GH_TOKENandGITHUB_TOKEN.agy's own
--sandboxturns out not to confine reads: it read a canary file in$HOME.Changes
$RUNNER_TEMP. Its environment is allowlisted, andunbufferis started inside that allowlist. Post-agygitignores hooks./procshowed the sandbox as agy's working directory and only--add-dir, noNAME=VALUEinunbuffer's argv, and planted canaries absent from both processes.AGY_PRINT_TIMEOUT: 25mandAGY_PRINT_TIMEOUT_MAX_SECONDS: 1500, for large diffs.AGY_LOCK_WAITgoes from 1800 to 3060 so it outlasts another review's 3015 s hold of the shared lock, andtimeout-minutesfrom 90 to 110 so the 6075 s worst case fits the job.Checks run
bash scripts/agy-review-selftest.sh: all checks passedactionlinton the workflowscripts/dev/gate.sh, run directly in this tree: exit 0, all steps passed, 5179 host tests passedRUN_TESTS_PREPUSH=0, the hook's documented switch for non-protected branches). Inside agit pushfrom a linked worktree,gate.shresolved its paths againstscripts/devand failed every path-dependent step, such astargets/x86_64-veridian.json not a valid file. Run directly in the same tree it passes. This PR changes no Rust.Note: 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
Medium Risk
Changes tighten self-hosted PR review security (agy jail, egress, secrets) and shared lock/timeouts on a maintainer machine; workflow skip behavior and long job caps affect when reviews run and how queues behave.
Overview
Re-syncs the vendored Antigravity PR reviewer with the hardened
antigravity-pr-reviewtemplate: expanded.github/AGY-REVIEWER.mddocuments bubblewrap isolation, filtered HTTPS egress, credential redaction, sandboxedagyruns (no checkout--add-dir), and allowlisted environment variables.The review workflow adds a “Check the reviewer is present” step that warns and skips when
scripts/agy-review.shis missing on the default branch, raisesAGY_LOCK_WAITto 3060s andtimeout-minutesto 110 (while keeping local 25m print timeout and 1500s per-attempt cap), and updates checkout comments for the new security model.scripts/_agy_comment_body.shgainsagy_body_dropped_count()so archived review comments preserve a cumulative “earlier rounds dropped” count across re-runs.scripts/agy-review-selftest.shgrows substantially with regression tests for jail/egress proxy behavior, credential scan/redaction, cleanup traps, lock-wait budgeting, and related invariants.Separate CI tweaks: clippy passes build-std flags as a bash array, boot tests install
qemu-system-riscvwhen the Ubuntu image splits it from misc, and the CI summary job feeds job results throughenvinstead of interpolating${{ }}into the shell script.Reviewed by Cursor Bugbot for commit a8d9352. Bugbot is set up for automated code reviews on this repo. Configure here.