Skip to content

Strengthen CI policy, review, and host lint checks. - #85

Merged
jon merged 5 commits into
mainfrom
work/audit-ci-guards
Oct 31, 2026
Merged

jon merged 5 commits into
mainfrom
work/audit-ci-guards

Conversation

@jon

@jon jon commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

CI builds the policy checker and loads the Codex signal parser from the pull request's base revision, then evaluates the proposed head. The review gate recognizes Codex receipt comments, checks the current head and draft state, retries API failures within its existing polling window, and attributes fork runs by their head repository. Failed or empty commit enumeration fails the per-commit job.

Linux and macOS also apply Staticcheck and both lint profiles to ordinary and integration-tagged Go. Bench identity, cleanup, and scratch-recovery helpers are split to meet the existing limits while preserving their protocol calls and restoration order.

Why

A proposed head could previously change the checker or signal parser used by the workflow. Loading those tools from the base preserves their behavior when the workflow invokes them. The workflow itself remains editable in a pull request, so these changes do not prevent a modified workflow from producing a successful check. Workflow and review-policy changes require maintainer review; CODEOWNERS identifies the maintainer but does not enforce approval.

Older draft-event reruns could skip the required review gate, and one transient timeline failure could end the wait early. Review-policy warnings and CODEOWNERS also cover gate scripts, lint and format settings, security and contribution guidance, and agent override files.

Integration tests were compiled without linting, and native macOS Go files were outside the Linux lint jobs.

Documentation

CONTRIBUTING describes the base checker and signal parser, the need for maintainer review of workflow changes, current-head review acceptance, and Linux and macOS lint coverage.

jon added 3 commits October 4, 2026 21:59
The gate scripts, lint and format settings, and agent override files
could change review behavior without a policy warning. Treat these
inputs as review policy and align CODEOWNERS with that scope so the
maintainer sees changes to the checks and their guidance.
A proposed head could run its own weakened checker or review evaluator.
Build the checker from the base revision and apply it to head data;
load the review evaluator from the base as well.

Require a current ready head before accepting a review, retry failed
API reads within the polling window, and attribute fork runs by their
head repository. Reject failed or empty commit enumeration so the
per-commit job cannot succeed without testing a commit.
CI compiled integration tests but never applied the lint profiles to
them, and macOS implementation files were outside the Linux lint jobs.
Run both profiles and Staticcheck on ordinary and integration-tagged
Go on Linux and macOS.

Split bench identity checks, cleanup, and scratch recovery into smaller
helpers so the integration tests meet the existing limits. Keep their
protocol calls and restoration order intact.
@jon

jon commented Oct 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 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-19T00:35:01.870780Z 849c4a3 Manual request
🔒 Security Review ✅ Completed 2026-10-05T15:36:08.695723Z 9cf3af0 PR opened
ℹ️ 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.

@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: 9cf3af0d42

ℹ️ 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 .github/workflows/test.yml Resolved
The base checkout supplies the jq signal parser, while polling and
acceptance remain in the pull-request workflow. Calling the whole gate a
base evaluator implies protection against changes to the workflow
itself.

Name the parser in the workflow and its test, and document that workflow
changes still require maintainer review. CODEOWNERS routes review but
does not enforce approval or prevent a same-name check from passing.
@jon

jon commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: c8ee3e9820

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

Clean Codex comments now start with a receipt marker, so the gate
ignores their result even when the reviewed commit matches the current
head. Strip the known marker before matching the existing clean-result
prefix; retain the bot identity, commit resolution and current-head
checks.

Keep plain result comments supported and reject unknown marker versions
or quoted receipts rather than treating arbitrary body text as a result.
@jon

jon commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 849c4a3efb

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

@jon
jon merged commit 2bcbda8 into main Oct 31, 2026
9 checks passed
@jon
jon deleted the work/audit-ci-guards branch October 31, 2026 20:02
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