Repository navigation
feat: remove the Linux x86-64 startup opt-in - #523
Conversation
|
Important (blocks merge): Example:
After this PR, Suggestion: In this PR, replace that bullet with the new invariant: no startup opt-in on Linux, |
|
Assessment: Request Changes The code change is small and correct. On a native x86-64 Linux host, all 5 Assumptions and rules checked that held
Clear test matrix, and the release guard that rejects older packages is a good addition. |
Replace the stale crate invariant and test references so later changes preserve startup without the retired flag. Remove the experimental label from the README and CI comment. Runtime code and executable workflow settings are unchanged.
|
Assessment: Approve Re-review at Checks that held at this head
One item remains for maintainers, and no code change can settle it. The root |
|
Assessment: Approve Re-review at Checks that held
As before, the maintainer approval that the root |
Description
On Linux x86-64, Box stops workload startup and policy-schema generation unless the operator sets the Box environment variable
EXPERIMENTAL_X86_SUPPORTtoTRUE. This PR removes that requirement. Startup now proceeds after normal configuration validation and required sandbox setup. Existing process hardening and Linux sandbox restrictions still apply.Command-line and library tests cover startup with the variable unset and with deliberately varied values. Continuous integration and installation instructions stop setting the variable. Release verification rejects older x86 packages that still require it, and package smoke tests clear inherited values so the operator's environment cannot hide that regression.
The retired variable no longer prevents accidental x86 execution; operators still need to qualify their deployment. Box still refuses configurations that enable
native-filesystem-policyon x86. The release workflow'spublish_linux_x86archive selector retains itsfalsedefault. Affected documentation and the startup decision are updated; dependencies and lockfile versions are unchanged.Related Issues
Related #45. Publication and public-download verification remain separate work. The absolute-shell-path limitation in #508 is unchanged.
Type of Change
New feature
Testing
Runtime verification covers
c800a4f1, based on6f4a2e3. The follow-up commite3b9b795changes only contributor guidance, README wording, and a workflow comment; runtime code and tests are unchanged. Test commands unset bothEXPERIMENTAL_LINUX_SUPPORTandEXPERIMENTAL_X86_SUPPORT; matrix cases and comparison controls supply explicit values.The image cleanup in
0d05b710deletes three PNGs and their Draw.io sources; runtime code and tests are unchanged. Reference checks andgit diff --checkpassed for this cleanup; runtime suites were not rerun.cargo fmt --all --checkandcargo clippy --workspace --all-targets --all-features -- -D warnings.The hosted CI run also passed on runtime revision
c800a4f1. Ubuntu 24.04 x86-64 and ARM64 workspace suites reported 3,984 and 3,980 passes respectively, zero failures, and 15 ignored tests each. Both Linux containment suites passed. The macOS workspace and containment suites passed, but its bridge enforcement checks skipped because the runner lacks the macOS 27 SDK. The informational signed-receipt check reported a stale receipt; the full signed native enforcement suite did not run. Existing ignored tests and skip diagnostics remain in the logs; these results do not qualify a published package.Workspace tests used default Cargo output capture, which can hide prerequisite-skip messages. Independent feature and integration reviews found no product defect. Documentation review identified stale startup guidance; the follow-up corrects it and verifies all four named tests and the decision link.
Earlier validation and its limits
These results cover
053f28dd, based on1531af7b, before the rebase onto6f4a2e3. They do not establish full native-suite or package qualification ofc800a4f1.Three native failures came from an incomplete dependency cache, reproduced on the candidate and a comparison copy with the former startup check restored.
cargo fetch --lockedpreserved all 1,174 source hashes; those three checks then passed.The fourth was a Model Context Protocol (MCP) catalog-response timeout. The exact case passed quiet isolated runs with both variables unset on the candidate and the x86 variable set to
TRUEon the comparison copy. Its cause remains unconfirmed. These follow-ups are neither a clean full-suite repeat nor an exact-base comparison.Both suites retain seven ignored tests and the alias-read assertion skip: the test launcher cannot grant execution while denying read access. Its write assertions ran. This earlier validation did not run a macOS or cloud matrix. These checks do not establish complete application compatibility or a published release.
just check, orcargo test --workspace --all-features)cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warningsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.