Skip to content

Prove the concrete CastUnsized layout gate - #3789

Open
joshlf wants to merge 1 commit into
Gii2clttpvhasvgyirv6rn3tj4ushk3hdfrom
G2cbw3wr4c5plt3vf5yzd54trtag3zhkh
Open

joshlf wants to merge 1 commit into
Gii2clttpvhasvgyirv6rn3tj4ushk3hdfrom
G2cbw3wr4c5plt3vf5yzd54trtag3zhkh

Conversation

@joshlf

@joshlf joshlf commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Move the actual CastUnsized layout decision into a pure helper consumed
by the associated constant. Prove sized equality and accepted DST
alignment, physical offset, and complete size sequences. Check an
independent Rust sizing harness, including overflow and zero-sized tails.
These are conditional numerical guarantees, not pointer-validity proofs.

Validation: pinned extraction; independent golden/live proofs,
required-contract checks and axiom audits; targeted Rust tests.

Agent-authored-by: AI agent acting on joshlf's behalf


Latest Update: v3 — Compare vs v2

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v2 v1 Base
v3 vs v2 vs v1 vs Base
v2 vs v1 vs Base
v1 vs Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh && git checkout -b pr-G2cbw3wr4c5plt3vf5yzd54trtag3zhkh FETCH_HEAD

Checkout

git fetch origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 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-06T00:34:47.170033Z d12c09b PR opened
🔒 Security Review ✅ Completed 2026-10-06T00:35:09.969795Z d12c09b 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.

@codecov-commenter

codecov-commenter commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 47 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (Gii2clttpvhasvgyirv6rn3tj4ushk3hd@4edd138). Learn more about missing BASE report.

Files with missing lines Patch % Lines
zerocopy/src/pointer/mod.rs 0.00% 47 Missing ⚠️
Additional details and impacted files
@@                         Coverage Diff                          @@
##             Gii2clttpvhasvgyirv6rn3tj4ushk3hd    #3789   +/-   ##
====================================================================
  Coverage                                     ?   53.72%           
====================================================================
  Files                                        ?       26           
  Lines                                        ?     4257           
  Branches                                     ?        0           
====================================================================
  Hits                                         ?     2287           
  Misses                                       ?     1970           
  Partials                                     ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf
joshlf force-pushed the Gii2clttpvhasvgyirv6rn3tj4ushk3hd branch from 4d1e8e4 to cfa326c Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the G2cbw3wr4c5plt3vf5yzd54trtag3zhkh branch from d12c09b to 00adb6d Compare October 6, 2026 15:45
Move the actual CastUnsized layout decision into a pure helper consumed
by the associated constant. Prove sized equality and accepted DST
alignment, physical offset, and complete size sequences. Check an
independent Rust sizing harness, including overflow and zero-sized tails.
These are conditional numerical guarantees, not pointer-validity proofs.

Validation: pinned extraction; independent golden/live proofs,
required-contract checks and axiom audits; targeted Rust tests.

gherrit-pr-id: G2cbw3wr4c5plt3vf5yzd54trtag3zhkh
Agent-authored-by: AI agent acting on joshlf's behalf

This branch has not been deployed

No deployments
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