Skip to content

ci: agents work through one rules text and two scripts - #724

Merged
foxnne merged 1 commit into
mainfrom
ci/agent-prepare-finish
Oct 21, 2026
Merged

foxnne merged 1 commit into
mainfrom
ci/agent-prepare-finish

Conversation

@foxnne

@foxnne foxnne commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Made by OpenAI Codex as a fizzy worker; Claude reviews it before it is marked ready.

Codex's report

Added the shared worker contract, prepare/finish helpers, CONTRIBUTING links, and mock-based script tests.

Passed: formatting, helper tests, shell syntax, native build (73/73), unit tests (171/171), web (44/44), SDK check (35/35). Shellcheck isn’t installed.

Integration failed twice; retry reached 78/81 steps with allocator alignment and double-free panics in unchanged code. Failure log.

No SDK changes, commits, pushes, or PR creation.
🤖 Generated with Claude Code

@foxnne

foxnne commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T20:37:03.833073Z 32fda5f Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@foxnne
foxnne force-pushed the ci/agent-prepare-finish branch from 32fda5f to 26c2f3a Compare October 20, 2026 20:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32fda5f70f

ℹ️ 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".

Comment thread scripts/agent-finish Outdated
Comment on lines +61 to +62
for gate in test test-integration check-web test-sdk-version; do
run_gate scripts/zb build "$gate" --summary all

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run every required gate before publishing

For any change that fails zig build lint or zig build check-tests-reached, this loop still proceeds to commit, push, and create/update the PR because neither documented gate is invoked. CONTRIBUTING.md lists both as mandatory gates, and check-tests-reached specifically detects tests that the ordinary test build silently omits, so add both to the finish sequence and captured evidence.

AGENTS.md reference: AGENTS.md:L10-L11

Useful? React with 👍 / 👎.

Comment thread scripts/agent-prepare
git worktree add -b "$branch" "$workspace" origin/main >&2
cd "$workspace"
fi
if [[ $(uname -s) == Linux ]] && ! command -v zig >/dev/null 2>&1; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Normalize an installed but unsupported Zig version

On Linux with any zig already on PATH, this condition skips cloud-setup.sh even when the executable is not the repository-required 0.17.0. The setup script already detects and replaces mismatched versions, but it is never reached here, so a prepared worker can immediately fail every gate with an unsupported compiler; compare zig version with the pinned version rather than checking only command existence.

Useful? React with 👍 / 👎.

chmod +x "$tmp/bin/"* "$tmp/repo/scripts/"*
prepare=$tmp/repo/scripts/agent-prepare
finish=$tmp/repo/scripts/agent-finish
"$prepare" ci/example >"$tmp/output"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the initial prepare test independent of a host Zig

On a Linux host without Zig, this first prepare call follows the new no-Zig path, but the fake workspace does not contain scripts/cloud-setup.sh until the fixture created near the end of the test. The script therefore aborts here with “No such file or directory” before exercising any assertions; provide a fake Zig for the earlier cases or install the cloud-setup fixture before this call.

Useful? React with 👍 / 👎.

@foxnne
foxnne force-pushed the ci/agent-prepare-finish branch 2 times, most recently from 2839cfb to 494cfe4 Compare October 20, 2026 20:39
@foxnne
foxnne marked this pull request as ready for review October 20, 2026 21:09
@foxnne
foxnne added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 20, 2026
@foxnne
foxnne force-pushed the ci/agent-prepare-finish branch from 494cfe4 to 0641c31 Compare October 21, 2026 12:00
@foxnne
foxnne enabled auto-merge October 21, 2026 12:06
@foxnne
foxnne added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 03a8320 Oct 21, 2026
12 checks passed
@foxnne
foxnne deleted the ci/agent-prepare-finish branch October 21, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant