Skip to content

proof(release): exercise v0.1.0 no-Cargo portability - #1265

Closed
EffortlessSteven wants to merge 15 commits into
mainfrom
proof/release-portability-v0.1.0
Closed

EffortlessSteven wants to merge 15 commits into
mainfrom
proof/release-portability-v0.1.0

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Replaces the superseded 674-line shell/Python harness for #1071 with Rust xtask modules for live release identity, archive validation, bounded command capture, disposable runtime containers, packet inspection, typed receipts, and matrix reconciliation. The old script is removed. The manual workflow builds one controller and tests the immutable v0.1.0 release in Ubuntu 24.04 and Ubuntu 22.04; a separate clean container exercises the local Action's strict missing-asset failure.

The acceptance and review map are in docs/RELEASE_PORTABILITY_PLAN.md. Live release/tag/asset metadata and independently downloaded bytes must match the pinned published identities before execution. The historical initializer's two policy failures are checked separately from the explicit-config passing model-off packet. Runtime containers contain the verified binary and synthetic fixture, without Cargo, rustc, product source, or source fallback.

Policy receipts

  • Existing workflow/docs/TOML receipts cover these surfaces; policy/ci-lanes.toml records the dispatch-only lane.
  • Archive dependencies are locked and private to xtask. No product dependency or runtime changes.
  • No new suppression, widened glob, anonymous renewal, credential, branch-protection, release, tag, asset, resolver-default, or support-policy change.

Verification

Current source: 0fa66386a8b590994e9de369d58c664b3a49226f.

  • Pass: rustfmt, diff hygiene, strict xtask all-target Clippy, and 12 focused portability tests. Negative cases cover both assets' identity/size/digest/URL/name/omission/duplication; release ID/tag/draft/prerelease; tag identity/cycles/depth; archive layout, truncated gzip and expansion budget; checksum/product/version; resolver absence checks; and conflicting matrices.
  • Prior rewrite validation: locked workspace all-target/all-feature check and Clippy, policy-check and actionlint 1.7.12 passed. Fresh Windows binary1098 and authority6 tests passed; the full CLI run failed at the existing listener-reset fixture (54 pass/1 fail/1 ignored), tracked in test(cli): investigate intermittent Windows reset in listener-survival fixture #1296. No full Windows workspace pass is claimed.
  • Pass at predecessor 5f9d076937e9720d48e58ba2fa2f90759e0229df: manual run34176671668 completed runtime and resolver proof. Downloaded artifact10037496691 sha256:4f3cb4d6a1b931baaeec50375e1237193e28f9798a37b617e69cf9cfc23ef536 contains matching matrix/source identity, Ubuntu24.04 success and Ubuntu22.04 GLIBC_2.39 rejection. Artifact10037505384 sha256:f90795ae68d58d26babe7caf8813860185f234d9f8f6b02ac86c5cefabea5d6e confirms actual missing-asset step failure without Cargo/rustc/source fallback before or after.
  • Pass at5f9d076: independent baseline34176662688; downloaded artifact10037503658 sha256:0ec8c17c76520d8907076a703e11f22491b90f7abd436c07f1c091ec57ac2c18 binds all seven checks to the candidate and trusted workflow c4f034a.
  • Fail at5f9d076: ordinary gate34176664404, artifact10037561306 sha256:463e89c2095aacce7e0c2cc79b841ab88da889d200f79addd606f27ca7e97084, reports1192 new RIPR gaps and current producer projection contradictions. These are open blockers, not waived findings. RIPR's known test-code/oracle issue is fix(rust): do not probe test code and recognize exact new-module discriminators ripr#1453; that issue does not establish that every production finding is false.
  • Pass at current0fa6638: manual34177052129 (runtime10037619220 SHA256baf5279fe653f425bed5870e2887edf9795aceeeb2cf6eb229beb6bb04baf222; resolver10037625634 SHA256d2b8c6ebd893c04518ac83e46ddc7117e02e9e74795df60997c7fe95db864995) and independent baseline34177053209 (artifact10037629340 SHA2568f59786f0bb5c4eb382bc2dce0ad96aed582f0f08bbf9218938d1614b5c36fa7). All downloaded receipts bind this exact source; the baseline uses protected workflowc4f034a.
  • Fail at current0fa6638: gate34177054305, artifact10037684725 SHA256eb96ed20cb7661a506e16c760c74656e55c181be6dbb0479ba19bc4acb34337e.1192 RIPR findings and39 producer projection contradictions remain. Full evidence and independent review request: proof(release): exercise v0.1.0 no-Cargo portability #1265 (comment). The PR and three review threads remain open.

Original shell-harness run33166458366 at b1198e2 remains historical evidence only; it does not validate the Rust rewrite. Earlier rewrite dispatch failures (checksum label, synthetic fixture ownership, resolver checkout ownership) were fixed with observed diagnostics and focused tests.

CI budget

Ordinary PR uses existing gates. The opt-in portability workflow has two jobs capped at25+10 Linux minutes, one controller build, and sequential disposable containers. It neither publishes nor builds product source inside runtime containers.

Agent notes

The controller requires a new output directory and retains failed diagnostics without a successful final matrix. Command capture has a180-second CLI timeout and bounded in-memory reads; it does not claim an on-disk stream-size or general process-tree bound. Container teardown is separately bounded. The proof covers only this immutable asset and the named environments. Other platforms and current-product release readiness remain unproven. #1293 was reconciled separately by #1299; publication-byte prerequisite #1300 remains separate.

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 5fcf0cb6-1690-4692-8b2a-b68a79f96e90

📥 Commits

Reviewing files that changed from the base of the PR and between 33f4271 and 0fa6638.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (13)
  • .github/workflows/release-portability-proof.yml
  • docs/RELEASE_PORTABILITY_PLAN.md
  • policy/ci-lanes.toml
  • xtask/Cargo.toml
  • xtask/src/main.rs
  • xtask/src/release_portability/archive.rs
  • xtask/src/release_portability/metadata.rs
  • xtask/src/release_portability/mod.rs
  • xtask/src/release_portability/packet.rs
  • xtask/src/release_portability/process.rs
  • xtask/src/release_portability/receipts.rs
  • xtask/src/release_portability/resolver.rs
  • xtask/src/release_portability/runtime.rs

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.

Copy link
Copy Markdown
Member Author

Terminal proof receipt

Current head b1198e2c824d6f89292a99ce7c68ca066c1ca7f8 is green on both proof surfaces.

  • Release Portability Proof 33166458366: exact v0.1.0 archive and checksum, Ubuntu 24.04 pass, Ubuntu 22.04 GLIBC_2.39 exclusion, no-Cargo/no-rustc runtime, passing 224-artifact model-off packet, and all negative controls.
  • Runtime artifact 9683783560: sha256:68e114095efde9df949c6e21af91a0059cfe864e6717c1b790d0fc2260558ec2.
  • Resolver artifact 9683770641: sha256:3ab943fc20559a0a36717fe07ea8262e12c79d856f127541784f181be4046710; receipt records branch head b1198e2c… separately from workflow merge SHA 8e8e42f2….
  • UB Review Gate 33166458304: gate_outcome = pass, zero blocking reasons.
  • Gate artifact 9683985114: sha256:6034e7ef61df51fda42d816ac64c87ba556e010d4d58b68c33105376aee45aac.

The narrow release verdict is Ubuntu 24.04 x86_64/glibc 2.39 proven, Ubuntu 22.04/glibc 2.35 unsupported, and other distributions or architectures unproven. The empty providers/impact values are retained as a historical v0.1.0 init defect already fixed on main by #845; they are not folded into the portability verdict.

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@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: b1198e2c82

ℹ️ 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".

name: Release Portability Proof

on:
pull_request:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate the portability workflow behind the release risk pack

Triggering this workflow directly on every matching pull request makes two Docker-backed release-proof jobs run without a label or policy authorization, including repeated image/package downloads and immutable v0.1.0 checks that are unrelated to most action.yml edits. Route this through the existing release risk pack/label or add an explicit policy receipt so ordinary PRs do not automatically pay the expensive lane cost.

AGENTS.md reference: AGENTS.md:L10-L11

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repaired in 7a6571b: the workflow is workflow_dispatch-only, with a matching implemented lane entry in policy/ci-lanes.toml. Receipts bind dispatch actor/run/workflow/source. No automatic path-triggered Docker spend remains. actionlint passes. This thread stays open until fresh exact-head hosted and runtime proof complete.

Comment thread scripts/prove-release-portability.sh Outdated
Comment on lines +1 to +2
#!/usr/bin/env bash
set -euo pipefail

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Move the durable proof harness into Rust or xtask

This adds a 674-line Bash harness with substantial embedded Python as permanent repository automation, while the existing scripts/* ledger receipt is explicitly for pre-existing compatibility wrappers and says durable automation should migrate toward Rust/xtask. Implement the orchestration in xtask, or add a narrow owned exception demonstrating why that is impractical, rather than expanding the legacy shell surface under the broad receipt.

AGENTS.md reference: AGENTS.md:L5-L7

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repaired in 7a6571b: scripts/prove-release-portability.sh is deleted. Eight focused private xtask modules own metadata/archive/process/runtime/packet/resolver/matrix validation and typed receipts; main.rs only adds dispatch/help. Nine discriminating unit tests and the full52-test xtask suite pass. No shell exception is added. This thread stays open pending exact-head hosted proof.

Comment thread scripts/prove-release-portability.sh Outdated
Comment on lines +5 to +8
readonly RELEASE_COMMIT="743ae2b5d9b9532852f702a095cf363380c932a2"
readonly RELEASE_ASSET="ub-review-x86_64-unknown-linux-gnu.tar.gz"
readonly RELEASE_ASSET_ID="481332264"
readonly RELEASE_CHECKSUM_ASSET_ID="481332265"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Verify release metadata before recording it

The commit and asset IDs are trusted constants that are only copied into both row receipts and compared with each other; downloading the named URL and checking its digest does not prove that v0.1.0 resolves to this commit or that GitHub assigned these asset IDs. A typo or moved tag would therefore still produce a green matrix that falsely attests this release identity, so resolve and compare the tag/release metadata before emitting these fields.

AGENTS.md reference: AGENTS.md:L9-L9

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repaired in 7a6571b: the controller queries live release/tag/asset metadata, follows annotated tags, checks IDs/sizes/URLs/digests and the dereferenced pinned commit, then validates both downloaded files and the extracted product identity. The matrix joins independently resolved identity and authorization rather than repeated constants. Mutation tests reject missing/duplicate/moved/mismatched metadata. Fresh runtime receipts remain pending; prior runs are explicitly historical.

Copy link
Copy Markdown
Member Author

@codex Rework this PR into a mergeable, policy-compliant release-portability proof. Preserve the already-earned v0.1.0 runtime conclusion and retained run history, but do not keep the current 674-line shell/Python harness or automatic expensive PR behavior.

Current exact head: b1198e2c824d6f89292a99ce7c68ca066c1ca7f8.

Required repair:

  1. Move durable orchestration, validation, receipt construction, archive-layout checks, matrix reconciliation, and negative-control assertions into a focused Rust xtask module/command with typed serde structures and unit tests. Keep xtask/src/main.rs as dispatch/help, not another monolith. Delete scripts/prove-release-portability.sh; do not add a policy exception or replacement large script. A few explicit OS commands launched by Rust are acceptable, but shell must not remain the authority for the proof or receipts.
  2. Keep the supported/unsupported container boundary exact: Ubuntu 24.04/glibc 2.39 positive; Ubuntu 22.04/glibc 2.35 expected loader rejection; no Cargo, rustc, source checkout, or source fallback inside either runtime container. Preserve version/help, init-known-defect, doctor, model-off packet, JSON/NDJSON, checksum/layout, missing/tampered/wrong/duplicate/impostor, and resolver-no-fallback controls unless a control is demonstrably redundant. Do not turn immutable v0.1.0 behavior into a current-product claim.
  3. Resolve release identity from live GitHub metadata before execution. Query the v0.1.0 release/tag and assets, dereference the tag to its commit, select exact archive/checksum names, and validate GitHub asset IDs, sizes, download URLs, published digest/checksum, and product/version identity. Constants may express expected policy (tag/name/digest), but receipts must contain independently resolved metadata and comparisons; two copies of the same constant are not proof. Fail closed on missing, duplicate, moved, or mismatched metadata.
  4. Make the Docker-backed proof opt-in. Preserve workflow_dispatch; for pull requests, either route through the repository’s existing release-risk authorization or use a narrow explicit label/job guard consistent with current CI policy. Relevant path changes alone must not spend both Docker jobs. Record the trigger/authorization in the uploaded receipt. Do not create or change branch protection.
  5. Keep the workflow thin: checkout/setup, invoke the xtask command, exercise the local Action negative resolver where needed, upload receipts. Avoid duplicated receipt JSON in YAML. Pin actions as current repo policy requires and retain least privilege.
  6. Add discriminating Rust tests for metadata parsing/tag dereference, exact asset selection, duplicate/missing assets, digest/size mismatch, archive traversal/link/duplicate/wrong-root rejection, version mismatch, matrix reconciliation, and receipt determinism. Run rustfmt, focused xtask tests, locked all-target/all-feature check, full locked workspace tests, strict locked Clippy, xtask policy-check, YAML/actionlint or the repository’s workflow check, and git diff --check.

Update the PR body so prior run IDs are explicitly historical evidence from the superseded harness, not exact-head proof after the rewrite. Keep the PR open until a newly authorized exact-head portability run and normal gate are green. Reply to all three unresolved review threads with the concrete repair and do not resolve them before exact-head checks. Do not mutate the release, tag, assets, resolver defaults, or public support policy.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@EffortlessSteven

Copy link
Copy Markdown
Member Author

The Rust replacement is frozen for review at 0fa66386a8b590994e9de369d58c664b3a49226f.

  • Pass:12 focused Rust tests and strict xtask Clippy; the live metadata/archive controls now exercise each asset independently, malformed and excessive tag chains, wrong-version/stderr, truncated gzip, and the expansion budget.
  • Pass:manual34177052129, including Ubuntu24.04 runtime, Ubuntu22.04 loader rejection, all negative controls and the actual Action missing-asset/no-fallback resolver. Downloaded runtime artifact10037619220 SHA256baf5279fe653f425bed5870e2887edf9795aceeeb2cf6eb229beb6bb04baf222 and resolver10037625634 SHA256d2b8c6ebd893c04518ac83e46ddc7117e02e9e74795df60997c7fe95db864995 both bind source/workflow/run to this exact head.
  • Pass:independent baseline34177053209, seven isolated checks. Downloaded artifact10037629340 SHA2568f59786f0bb5c4eb382bc2dce0ad96aed582f0f08bbf9218938d1614b5c36fa7 binds candidate0fa6638 to protected workflowc4f034a.
  • Fail:ordinary gate34177054305, downloaded artifact10037684725 SHA256eb96ed20cb7661a506e16c760c74656e55c181be6dbb0479ba19bc4acb34337e. It binds reviewed mergec15c3d72623485aa3298a4608a4a4b013c6ed186 and reports1192 RIPR gaps (458 weakly_exposed,507 reachable_unrevealed,227 no_static_path), plus39 current producer projection contradictions. Separate producer reproduction and bounded next seam: runtime(task-ledger): reconcile derived queue portfolio lease and gate projections against frozen packets #957 (comment). Upstream test/oracle classification context: fix(rust): do not probe test code and recognize exact new-module discriminators ripr#1453; production findings still need individual adjudication.

The PR stays open and the original three threads stay unresolved until the requested exact-head ordinary gate succeeds. No threshold waiver or bulk suppression. The hosted Linux workspace suite passes; the separate Windows listener-reset failure remains #1296. Earlier shell and repaired-predecessor runs retain their historical identities.

@devin-ai-integration please review this final Rust implementation, particularly trust joins, bounded archive/process behavior, container ownership/cleanup, and whether the observed manual receipts satisfy the September5 request. Review is requested independently of the gate blockers; no release or public support promotion is authorized here.

Copy link
Copy Markdown
Member Author

Terminal disposition: retained historical evidence, not a current merge candidate

This branch remains valuable proof for the immutable v0.1.0 release, but it no longer represents the release/product state that main must ship.

Retained exact evidence:

source: 0fa66386a8b590994e9de369d58c664b3a49226f
manual portability run: 34177052129
runtime artifact: 10037619220
runtime SHA-256: baf5279fe653f425bed5870e2887edf9795aceeeb2cf6eb229beb6bb04baf222
resolver artifact: 10037625634
resolver SHA-256: d2b8c6ebd893c04518ac83e46ddc7117e02e9e74795df60997c7fe95db864995
protected-base baseline: 34177053209
baseline artifact: 10037629340
baseline SHA-256: 8f59786f0bb5c4eb382bc2dce0ad96aed582f0f08bbf9218938d1614b5c36fa7
candidate gate: 34177054305 (failed)
gate artifact: 10037684725
gate SHA-256: eb96ed20cb7661a506e16c760c74656e55c181be6dbb0479ba19bc4acb34337e

The proof establishes Ubuntu 24.04 no-Cargo execution for that historical asset, Ubuntu 22.04 rejection at the observed glibc boundary, and strict missing-asset failure without source fallback. It does not establish current-source portability, the next published asset, exact authorized-byte publication, broad Linux support, or current gate coherence.

Current ownership remains:

The Rust xtask implementation and historical receipts remain available at this exact branch/head for reconstruction into a fresh current-release slice. This PR is being closed without merge rather than rebased indefinitely or treated as current acceptance.

EffortlessSteven added a commit that referenced this pull request Nov 5, 2026
…#1652)

Dated freshness amendment for the runbook's current-state section (#1300
boundary landed via #1638/#1647; #1265 bullet corrected to its closed
historical disposition), a 2026-11-05 candidate-state paragraph in the
release notes, and a product-state row update recording the authorized
publication boundary and the assembled #816 candidate packet.
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.

1 participant