Skip to content

jc-batch-probe: refuse selections that name a resident plane (Codex follow-up to #1643) - #1645

Merged
AdaWorldAPI merged 4 commits into
mainfrom
ccr-d3ce1263-ied9yh
Oct 21, 2026
Merged

AdaWorldAPI merged 4 commits into
mainfrom
ccr-d3ce1263-ied9yh

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #1643. The fix for its Codex finding was pushed after the PR had already merged at 7c9ead98, so it did not reach main.

Finding

A Rel::Plane(i) selection was accepted by Request::select, but the probe passes no resident masks, so it then failed inside the fold.

Change

Both paths now refuse such a selection with BatchError::ResidentPlane before anything runs, whether the plane stands alone or is nested inside And or Not. Resident planes are U2's let-planes, and Cost does not count plane reads, so supporting them here would understate the cost.

Versions are checked over the whole batch first, so a batch with a stale request is refused as VersionMismatch wherever a plane appears (Codex on this PR, 7704c80e).

Tests

  • 10 tests pass; clippy -D warnings is clean.
  • a_selection_naming_a_resident_plane_is_refused covers both forms on both paths.
  • a_version_mismatch_wins_over_a_resident_plane_anywhere_in_the_batch places the plane in request 2 and the stale request in request 7.
  • Three disable runs turn them red: dropping the plane check, stopping its recursion at Not, and checking planes before versions in one pass.
  • The board entry 2026-10-20-u1-jc-batch.md records the refusal, the precedence and the three disables.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VncKoyG6JkpsoqhqTGTv3f

A Rel::Plane(i) selection was accepted and then failed inside the fold,
because the probe passes no resident masks. Both paths now refuse it up front
with BatchError::ResidentPlane; resident planes are U2's let-planes, and Cost
does not count plane reads. Codex review on #1643.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VncKoyG6JkpsoqhqTGTv3f
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 19510abf-a161-449d-a144-608c7c857cf2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

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.

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review October 21, 2026 00:37
@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-21T00:39:04.346478Z 3321f57 Draft marked ready
ℹ️ 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: 3321f57101

ℹ️ 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 crates/jc-batch-probe/src/lib.rs Outdated
…lanes

The single in-order pass reported ResidentPlane for a batch whose plane came
before a stale request, breaking the documented VersionMismatch precedence.
Codex review on #1645.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VncKoyG6JkpsoqhqTGTv3f
@AdaWorldAPI
AdaWorldAPI merged commit 62b7bf7 into main Oct 21, 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