Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 96c6b273a5
ℹ️ 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".
| /// NestedReference.checkedSize leading.val elem_size.val leaf_align.val elems.val | ||
| /// ``` | ||
| #[allow(clippy::arithmetic_side_effects, clippy::indexing_slicing)] | ||
| pub(super) fn size_for_metadata( |
There was a problem hiding this comment.
Route comparisons through the verified recursive oracle
The native comparison never calls this newly verified function: both test_model_via_dst_layout* tests still obtain their expected values from size_for_metadata_model, which shares only the two round_up calls, and a repo-wide Rust search finds nested_reference::size_for_metadata only at this definition. Consequently, a defect or later drift in recursive layer traversal or composition can pass every DstLayout comparison while the Lean proof covers a different, dead implementation; construct expected values with this function or directly compare the two oracles.
AGENTS.md reference: zerocopy/AGENTS.md:L58-L59
Useful? React with 👍 / 👎.
262867b to
a3dcd77
Compare
96c6b27 to
7a515c4
Compare
1cdbb70 to
d910834
Compare
d910834 to
b11ccc9
Compare
f2c6958 to
b1c2827
Compare
b1c2827 to
b47286f
Compare
309858b to
ef35d41
Compare
b47286f to
83e8f48
Compare
83e8f48 to
b8e50bf
Compare
ef35d41 to
57244d4
Compare
The nested-layout regression reference used the production padding helper, so an error shared by both calculations could evade comparison. Replace that rounding with independent remainder-based checked arithmetic. Add a recursive Rust reference over record-layer descriptors and prove its complete optional result against the unbounded semantics for arbitrary depth and metadata. Preserve inner field padding under packing and cover invalid descriptors, overflow and zero-sized elements. Arithmetic descriptors need not correspond to realizable Rust types. gherrit-pr-id: Gdb6nhuavogydrpjnu6lnfrefglg42v4c Agent-authored-by: AI agent acting on joshlf's behalf
57244d4 to
c02e275
Compare
b8e50bf to
1f88267
Compare
The nested-layout regression reference used the production padding helper,
so an error shared by both calculations could evade comparison. Replace
that rounding with independent remainder-based checked arithmetic.
Add a recursive Rust reference over record-layer descriptors and prove its
complete optional result against the unbounded semantics for arbitrary
depth and metadata. Preserve inner field padding under packing and cover
invalid descriptors, overflow and zero-sized elements. Arithmetic
descriptors need not correspond to realizable Rust types.
Authored by an AI agent acting on joshlf's behalf.
Latest Update: v31 — Compare vs v30
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/Gdb6nhuavogydrpjnu6lnfrefglg42v4c && git checkout -b pr-Gdb6nhuavogydrpjnu6lnfrefglg42v4c FETCH_HEADCheckout
git fetch origin refs/heads/Gdb6nhuavogydrpjnu6lnfrefglg42v4c && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/Gdb6nhuavogydrpjnu6lnfrefglg42v4c && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.