Skip to content

Fix macOS kit test inputs and a PG008 bypass (follow-up to #76) - #78

Merged
ThatGuyMcd merged 2 commits into
mainfrom
fix/guard-followups
Oct 26, 2026
Merged

ThatGuyMcd merged 2 commits into
mainfrom
fix/guard-followups

Conversation

@swhitt

@swhitt swhitt commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

TL;DR: two fixes from Copilot's last review on #76 that landed after it merged.

🍎 macOS build kit Build-macOS.sh runs the new guard and hook tests via CTest, but the kit didn't ship their inputs, so kit builds failed at the test step. Now stages the pattern-guard fixtures and both hook configs, and the checkout-only hook tests skip in a copy with no .git
🛑 PG008 bypass Registering a patch in the manifest before writing it made PG007 read a missing file, and the edit hook then allowed it without checking PG008 (patches against first-party code). PG007 now hashes the planned content

Both have regression tests. On top of #77: check.py (Python 3.10 and 3.12), pre-commit and the guard all pass.

Build-macOS.sh runs these tests through CTest. Stage the pattern-guard
fixtures and both hook configs, and skip the hook tests that need a git
checkout when the copy has none.
A patch registered in the manifest before it was written made PG007 read a
missing file; the edit hook then allowed it without checking PG008.
@swhitt
swhitt requested a review from ThatGuyMcd as a code owner October 26, 2026 00:13
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review 🔄 Running since 2026-10-26T00:13:15.755659Z e51dd9f 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.

@ThatGuyMcd
ThatGuyMcd merged commit 1d46835 into main Oct 26, 2026
12 checks passed
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.

2 participants