Skip to content

Prove CastPlan selection and unchecked metadata arithmetic - #3844

Open
joshlf wants to merge 1 commit into
Grerckvocdnwpdtef665ubpieo6wlwfdjfrom
Gtab63hdyxorrg5am3uaygvri4dbs3cs5
Open

joshlf wants to merge 1 commit into
Grerckvocdnwpdtef665ubpieo6wlwfdjfrom
Gtab63hdyxorrg5am3uaygvri4dbs3cs5

Conversation

@joshlf

@joshlf joshlf commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Connect the extracted CastPlan methods to complete rounded sizes.
Accepted plans preserve size for every natural source count and retain the
destination alignment requirement. Prove both selection paths and the
exact affine metadata map when its multiplication and addition fit.
Rejection remains conservative.

Interpret unchecked overflow as forbidden execution with Aeneas's existing
undef tag. Check complete primitive definitions and prove that sequencing
and both total and partial contracts reject that failure. Mutation controls
challenge wrong failure tags and erasure hidden behind opaque helpers.

Retain independent arbitrary-outcome contract checks. The pinned translator
and external Rust interpretations remain trust premises; these claims do
not establish pointer construction or provenance.

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.

Version v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v31 v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base
⬇️ Download this PR

Branch

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

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Gtab63hdyxorrg5am3uaygvri4dbs3cs5

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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-08T10:26:13.727226Z 6d38d88 PR opened
🔒 Security Review ✅ Completed 2026-10-08T10:27:02.292738Z 6d38d88 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 8, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 50.61%. Comparing base (eda1edf) to head (9c84607).

Files with missing lines Patch % Lines
zerocopy/src/layout/cast_from.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                         @@
##           Grerckvocdnwpdtef665ubpieo6wlwfdj    #3844   +/-   ##
==================================================================
  Coverage                              50.61%   50.61%           
==================================================================
  Files                                     32       32           
  Lines                                   4556     4556           
==================================================================
  Hits                                    2306     2306           
  Misses                                  2250     2250           

☔ 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 Gtab63hdyxorrg5am3uaygvri4dbs3cs5 branch 2 times, most recently from 5dec377 to c01180d Compare October 9, 2026 00:08
@joshlf
joshlf force-pushed the Grerckvocdnwpdtef665ubpieo6wlwfdj branch from 9a256bd to 37d0f72 Compare October 9, 2026 00:08
@joshlf
joshlf force-pushed the Grerckvocdnwpdtef665ubpieo6wlwfdj branch from 57bf5e0 to 93270b1 Compare October 15, 2026 00:40
@joshlf
joshlf force-pushed the Gtab63hdyxorrg5am3uaygvri4dbs3cs5 branch from 2942a7f to 16f5e3d Compare October 15, 2026 00:40
@joshlf
joshlf force-pushed the Grerckvocdnwpdtef665ubpieo6wlwfdj branch from 93270b1 to f01acec Compare October 15, 2026 01:19
@joshlf
joshlf force-pushed the Gtab63hdyxorrg5am3uaygvri4dbs3cs5 branch from 16f5e3d to 664cff1 Compare October 15, 2026 01:19
@joshlf
joshlf force-pushed the Grerckvocdnwpdtef665ubpieo6wlwfdj branch from f01acec to 6163d88 Compare October 15, 2026 04:53
@joshlf
joshlf force-pushed the Gtab63hdyxorrg5am3uaygvri4dbs3cs5 branch from 664cff1 to 4278606 Compare October 15, 2026 04:53
@joshlf
joshlf force-pushed the Gtab63hdyxorrg5am3uaygvri4dbs3cs5 branch from 4278606 to 533300b Compare October 15, 2026 14:22
@joshlf
joshlf force-pushed the Grerckvocdnwpdtef665ubpieo6wlwfdj branch from 6163d88 to 4d8b758 Compare October 15, 2026 14:22
Connect the extracted CastPlan methods to complete rounded sizes.
Accepted plans preserve size for every natural source count and retain the
destination alignment requirement. Prove both selection paths and the
exact affine metadata map when its multiplication and addition fit.
Rejection remains conservative.

Interpret unchecked overflow as forbidden execution with Aeneas's existing
undef tag. Check complete primitive definitions and prove that sequencing
and both total and partial contracts reject that failure. Mutation controls
challenge wrong failure tags and erasure hidden behind opaque helpers.

Retain independent arbitrary-outcome contract checks. The pinned translator
and external Rust interpretations remain trust premises; these claims do
not establish pointer construction or provenance.

gherrit-pr-id: Gtab63hdyxorrg5am3uaygvri4dbs3cs5
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