Repository navigation
Conversation
|
Adversarial review complete (draft sweep). Findings addressed in e7a5203:
Verification: |
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7a5203cd5
ℹ️ 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".
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The prior suggestion (missing intermediates during candidate-CA verification) is resolved in Files Reviewed (4 files)
Previous Review Summaries (8 snapshots, latest commit ef01e1b)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit ef01e1b)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous review (commit e75a060)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous review (commit d8db523)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous review (commit 43e104a)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous review (commit 3a80191)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous review (commit dca2524)Status: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Previous review (commit c6d2ce1)Status: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous review (commit e7a5203)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (4 files)
Reviewed by deepseek-flash-latest · Input: 41.3K · Output: 8.8K · Cached: 253.6K Review guidance: REVIEW.md from base branch |
|
Addressed all four outstanding review findings in 94f9738:
Also verified end-to-end: with Java absent and bun below the gate range, the modified pre-push hook now skips the JetBrains typecheck with a warning and exits 0; |
|
Added Verified end-to-end in a sandbox with the old baked-in bun 1.3.12: |
|
Merge-readiness sweep complete: branch synced with current main (ffc0655, 0 behind), no merge conflicts, CI green on the latest head — including the previously flaky jetbrains |
edb8bd3 to
3a80191
Compare
07468b3 to
d8db523
Compare
…ments Add escape hatches for sandboxes missing tooling: - KILO_SKIP_BUN_VERSION_CHECK=1 skips the hard bun version gate (kept in sync in packages/script/src/index.ts) - The JetBrains typecheck is skipped with a warning when no Java is present - Add script/setup-sandbox.sh to bootstrap constrained/cloud environments: installs Java 21, trusts the sandbox TLS intercept CA for git/JVM/gh, and runs bun install - Document the constraints in AGENTS.md
- pre-push: treat JAVA_HOME set but non-executable as Java absent so the JetBrains check degrades gracefully instead of failing loudly - setup-sandbox: clear stale chain files, avoid spurious keytool warning on already-imported CA, and note when replacing an existing git http.sslCAInfo
Address review findings on the setup-sandbox bootstrap:
- Trust the intercept CA only after verifying the github.com chain against
the system trust store (-verify_return_error -verify_hostname), so an
attacker who can intercept DNS/TCP during bootstrap cannot inject a CA
that then gets installed globally for git and the JVM.
- Replace a stale JVM alias before reimporting: a changed proxy CA between
runs no longer silently leaves the obsolete certificate in cacerts.
- A failed apt-get Java install no longer aborts the rest of bootstrap
(setup_ca/setup_install now still run).
- The issuer-DN self-sign check compares the DN as a literal string
(grep -F) instead of a regex, so DNs containing '.', '+', '(' etc.
are matched correctly.
Ephemeral sandbox images bake an older system bun, so the pre-push hook's packageManager gate trips before anything else. setup_bun now reads the required range from package.json and upgrades a stale bun in place (`bun upgrade`), falling back to a KILO_SKIP_BUN_VERSION_CHECK warning when the upgrade is not possible (e.g. package-manager-managed bun). Also tidy the java summary line so a missing java prints "missing" instead of shell noise.
d8db523 to
e75a060
Compare
|
Review finding addressed in ef01e1b: |
|
Finding addressed in 8ebf467: candidate verification now passes the presented certificates between the leaf and the self-signed anchor via repeated |
|
Sweep note: branch is current with main (0 behind) and the review findings are resolved, but the latest CI run has a failure unrelated to this diff — |
… into chore/hook-graceful-degradation
What
Makes the pre-push hook and build tooling resilient in constrained/cloud dev environments that lack the full toolchain:
.husky/pre-push— honorKILO_SKIP_BUN_VERSION_CHECK=1to bypass the hard bun version gate (for sandboxes whose bun can't be upgraded), and skip the JetBrains typecheck with a warning when no Java is present.packages/script/src/index.ts— mirror the sameKILO_SKIP_BUN_VERSION_CHECK=1override (the hook and this script share the semver gate and are documented as "keep in sync").script/setup-sandbox.sh— new idempotent bootstrap for constrained environments: installs Java 21, trusts the sandbox TLS intercept CA for git/JVM/gh, and runsbun install.AGENTS.md— document the constraints and the escape hatches.Why
Cloud agent sandboxes and CI-less containers often ship a bun below the pinned version and no JDK, so every push fails the pre-push hook before any code quality signal. These changes let the hook degrade gracefully: the hard gates become skippable with an explicit opt-in env var, and the JetBrains check is skipped (with a warning) when Java is missing. The setup script restores the full toolchain when it's available.
The overrides are opt-in — default behavior (hard gate, JetBrains check) is unchanged, and CI runs the same checks independently.
Verification
bun run script/check-opencode-annotations.ts --worktree— passtsgo --noEmit -p packages/script/tsconfig.json— passKILO_SKIP_BUN_VERSION_CHECK=1(bun 1.3.12 vs required ^1.3.14)script/setup-sandbox.shran end-to-end in a sandbox (installed Java 21, configured githttp.sslCAInfo+ JVM cacerts,bun install)Note:
git pushfrom a sandbox may still need--no-verifywhen gradle can't download dependencies (e.g. TLS intercept), which the hook cannot detect.Draft: awaiting review.