Skip to content

fix: validate checkout roots without losing pathname bytes - #18

Merged
coisa merged 2 commits into
codex/extract-code-standardsfrom
codex/git-root-whitespace
Oct 22, 2026
Merged

coisa merged 2 commits into
codex/extract-code-standardsfrom
codex/git-root-whitespace

Conversation

@coisa

@coisa coisa commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Refs #2. A focused initial-CLI correction, deliberately based on #7 at9666d997c864e4e74b7ca0ca8cbce849091353a7; HEAD054a66913bd8f3726ae285688c4bcd5a3ae5ab0f. This branch leaves #16's current review identity unchanged.

A real checkout whose root ends in space/tab/newline was rejected because trim(--show-toplevel) destroyed significant pathname bytes. Validate Git's boolean working-tree state and relative prefix instead of decoding the absolute root name. Explicitly reject metadata/bare directories as well as nested directories; --show-prefix alone is insufficient inside .git and was caught before publication.

Two red→green regressions prove complete/changed selection with root whitespace and check preserving source bytes, plus .git/bare rejection. Full local composer check passed21 tests/102 assertions and18 PHP syntax/ECS files; strict Composer/actionlint/whitespace pass. Fresh independent read-only review approved this exact HEAD, reran the suite and separately exercised common/linked worktree roots, whitespace-only nested directories and linked-worktree metadata. Offline cache install used no plugins/scripts.

Hosted checks and actual Codex AND CodeRabbit current-head reviews remain required before merge. No manual CodeRabbit request competes with #16's hourly queue. The initial PR must contain both the requested Container/POPO composition and this validated path correction, then receive renewed checks/reviews on its resulting HEAD before main. No merge/release is implied by local preflight or stale/skipped reviews.

No consumer, credentials, security settings or self-hostedCI changed. A patch fragment records the correction; only the approved0.x Changelog/Actions lifecycle may publish versions.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 44989f9f-66ca-4c1f-9b96-37c8098858d6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T20:45:24.010934Z 054a669 PR opened
🔒 Security Review ✅ Completed 2026-10-21T20:46:53.339782Z 054a669 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.

@coisa
coisa merged commit 6e8b4f7 into codex/extract-code-standards Oct 22, 2026
4 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.

1 participant