Skip to content

Prove record construction against independent Rust references - #3744

Open
joshlf wants to merge 1 commit into
G3ae3zf3etbretqebdewalwfyjb4kmdpofrom
Gnng6cftnqanivvm3mjiwcif6hovmkymt
Open

joshlf wants to merge 1 commit into
G3ae3zf3etbretqebdewalwfyjb4kmdpofrom
Gnng6cftnqanivvm3mjiwcif6hovmkymt

Conversation

@joshlf

@joshlf joshlf commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Prove record construction under the independent prefix construction domain and
connect results to recursive field placement. Retain
concrete admitted-domain witnesses; decoding does not assert that arbitrary raw
records describe realizable Rust layouts.

Prove the ordinary Rust assertion harness equating production sizing with the
independent nested reference for arbitrary depth and every machine metadata
count, including overflow and zero-size tails. Compare arbitrary field-list
construction against independent Rust extension/padding and every stored field.
Keep the explicit compiler premise and regression tests as the Rust boundary.

Validation: fresh pinned extraction and complete-model golden comparison;
independent golden/live Lean builds, required-contract checks, and the
transitive axiom audit.

Closes #3617

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


Latest Update: v28 — Compare vs v27

📚 Full Patch History

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

Version 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/Gnng6cftnqanivvm3mjiwcif6hovmkymt && git checkout -b pr-Gnng6cftnqanivvm3mjiwcif6hovmkymt FETCH_HEAD

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Gnng6cftnqanivvm3mjiwcif6hovmkymt

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 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-02T07:37:33.378381Z a65f6fd PR opened
🔒 Security Review ✅ Completed 2026-10-02T07:37:38.050319Z a65f6fd 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 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 114 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (G3ae3zf3etbretqebdewalwfyjb4kmdpo@926083d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
zerocopy/src/layout/nested_reference.rs 0.00% 67 Missing ⚠️
zerocopy/src/layout/composition_checks.rs 0.00% 43 Missing ⚠️
zerocopy/src/layout/mod.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@                         Coverage Diff                          @@
##             G3ae3zf3etbretqebdewalwfyjb4kmdpo    #3744   +/-   ##
====================================================================
  Coverage                                     ?   50.26%           
====================================================================
  Files                                        ?       27           
  Lines                                        ?     4560           
  Branches                                     ?        0           
====================================================================
  Hits                                         ?     2292           
  Misses                                       ?     2268           
  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 Gorv7wy3hyn76t7fgbuh776b3o6yz5teg branch from 06385f6 to a8122f4 Compare October 2, 2026 12:39
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from a65f6fd to 75932d0 Compare October 2, 2026 12:39
@joshlf
joshlf force-pushed the Gorv7wy3hyn76t7fgbuh776b3o6yz5teg branch from a8122f4 to d3ebdf7 Compare October 2, 2026 13:43
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from 75932d0 to 22a9841 Compare October 2, 2026 13:43
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from 22a9841 to 52afc2d Compare October 2, 2026 15:26
@joshlf
joshlf force-pushed the Gorv7wy3hyn76t7fgbuh776b3o6yz5teg branch from d3ebdf7 to 35256a4 Compare October 2, 2026 15:26
@joshlf joshlf changed the title Preserve nested DST padding and prove layout operations Prove record construction and close layout method coverage Oct 2, 2026
@joshlf
joshlf changed the base branch from Gorv7wy3hyn76t7fgbuh776b3o6yz5teg to Gurqevo3e4xhhk2x275sikrq6qmdyzyqb October 2, 2026 15:27
@joshlf
joshlf force-pushed the Gurqevo3e4xhhk2x275sikrq6qmdyzyqb branch from c1dbd14 to 5dcba4c Compare October 2, 2026 15:39
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch 2 times, most recently from 2e0f4c4 to d0f9bb1 Compare October 2, 2026 19:39
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from eb0e3ff to a6d0da2 Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gurqevo3e4xhhk2x275sikrq6qmdyzyqb branch from 39cee76 to 7be5eac Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from a6d0da2 to bf4795c Compare October 5, 2026 17:15
@joshlf
joshlf changed the base branch from Gurqevo3e4xhhk2x275sikrq6qmdyzyqb to G3ae3zf3etbretqebdewalwfyjb4kmdpo October 5, 2026 17:15
@joshlf
joshlf force-pushed the G3ae3zf3etbretqebdewalwfyjb4kmdpo branch from 981ac78 to 8993d2f Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from bf4795c to 1af9c78 Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from 1af9c78 to b288e34 Compare October 5, 2026 21:44
@joshlf
joshlf force-pushed the G3ae3zf3etbretqebdewalwfyjb4kmdpo branch 2 times, most recently from 5c28353 to 9d78357 Compare October 5, 2026 22:08
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from b288e34 to 57a1f5e Compare October 5, 2026 22:08
@joshlf
joshlf force-pushed the G3ae3zf3etbretqebdewalwfyjb4kmdpo branch from 9d78357 to 988364f Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from 57a1f5e to 49caa02 Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the G3ae3zf3etbretqebdewalwfyjb4kmdpo branch from 988364f to e99f974 Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the Gnng6cftnqanivvm3mjiwcif6hovmkymt branch from 49caa02 to 462bd5b Compare October 6, 2026 15:45
Prove record construction under the independent prefix construction domain and
connect results to recursive field placement. Retain
concrete admitted-domain witnesses; decoding does not assert that arbitrary raw
records describe realizable Rust layouts.

Prove the ordinary Rust assertion harness equating production sizing with the
independent nested reference for arbitrary depth and every machine metadata
count, including overflow and zero-size tails. Compare arbitrary field-list
construction against independent Rust extension/padding and every stored field.
Keep the explicit compiler premise and regression tests as the Rust boundary.

Validation: fresh pinned extraction and complete-model golden comparison;
independent golden/live Lean builds, required-contract checks, and the
transitive axiom audit.

Closes #3617

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