Repository navigation
feat(linux): remove the startup opt-in requirement - #234
Conversation
## Problem Stable version tags publish only macOS, so Linux ARM64 packages cannot enter the stable release channel. ## Solution Publish both ARM64 archives and their checksums in stable and preview releases. Keep preview metadata, source restrictions, signing, tests, approval, and runtime opt-in. Generate Linux installation instructions for both channels and document release steps. ## Tests All 34 Python tests passed. ReleaseBundleTests pins both channel asset sets, rejects missing Linux or extra x86_64 assets, verifies checksums, and checks install instructions. ReleaseSourceTests preserves version and source restrictions. All 22 workflow shell blocks passed syntax checks. Build, signing, and approval jobs match base. Full Rust gates, hosted release rehearsal, publication, and actual-download installation were not run. The initial test run hit a shell PATH fixture failure; disabling startup files fixed it.
## Problem Linux startup requires an experimental environment opt-in, including published package instructions. ## Solution Remove the startup gate and exercise normal configuration and containment without the flag. Update package checks, CI, release instructions, and the design decision. Canonicalize the package smoke fixture path. ## Tests Workspace build, formatting, Clippy, no-default build, 34 Python tests, startup/library tests, and 10 package smoke checks passed on AL2023 ARM64. Full workspace: 4586 passed, 1 intermittent mount-refusal classification failure, 17 ignored; containment rerun 391 passed. Deterministic rerun with canonical HOME: 120 passed, 9 platform skips. Independent negative controls passed. Hosted checks pending.
|
Assessment: Comment (no blocking findings) I reviewed only the opt-in removal commit ( Assumptions and rules checked that held
Process: The PR template's "I have reviewed and understand every line of code" box is unchecked. The legacy-value matrix in |
## Problem The release preflight silently fails when selected source refuses startup before configuration validation. ## Solution Print an explicit failure and the captured command output when the expected configuration diagnostic is absent. ## Tests All 34 packaging and release Python tests passed. Independent review verified full-step shell syntax, current startup success, legacy refusal diagnostics, and missing-configuration acceptance rejection.
|
Assessment: Approve (no blocking findings), at head I re-reviewed Checks for the new branchI extracted lines 356–367 of the workflow exactly and ran them against four stub binaries:
Process (still open): The "I have reviewed and understand every line of code" checkbox is still unchecked. |
|
Assessment: Comment. No code findings at head I re-reviewed after the branch was reconciled with Assumptions and rules checked that held
Process: The ownership checkbox is now checked, but the note below it says Codex checked it and that this "does not attest that Kevin personally reviewed every line." |
|
Assessment: Comment. No blocking findings at Since Checks that held
Note on the repair (non-blocking, not this PR's defect): the two tests still call The ownership checkbox question from my last review no longer applies: the Codex note is gone from the description. |
|
Assessment: Comment. No blocking findings at Since Checks that held
When the example pins move past this change, their |
|
Important (non-blocking, but please fix before merge): After this PR lands, the new cloud deployment guide on Example: #132 ( Suggestion: Merge |
|
Assessment: Comment At Checks that held
|
Human readable section
Problem: Linux workload startup requires
EXPERIMENTAL_LINUX_SUPPORT=TRUE, even when the caller supplies a configuration.Solution: Remove that startup requirement. Linux runs through the existing hardening, configuration validation, and containment setup without the variable. Update automated tests, package smoke checks, and release instructions to exercise that path.
Trade-off: The environment variable no longer prevents accidental Linux use. Release readiness and security acceptance remain release-owner decisions. Linux ARM64 host requirements and native filesystem policy's separate experimental controls still apply.
Description
This implements Kevin's approved Linux Core launch change to remove the runtime opt-in. The interface approval covers this startup behavior only.
EXPERIMENTAL_LINUX_SUPPORT.Release selection: #231 merged on November 3, 2026. Its Linux ARM64 publication capability is already on
main.publish_linux=falseremains the default. Stable releases remain macOS-only unless the release owner explicitly selects Linux. A Linux preview requirespublish_linux=true.The startup change retains the supported Linux ARM64 scope and the existing release approval gates.
Related Issues
Related to #49. Builds on the publication capability merged in #231.
Type of Change
Breaking change: the Linux startup opt-in no longer has an effect.
Testing
Current main refresh at
cbfe0153(November 4)Head
cbfe015373a4ca8008ce60d816e23b5d4f2c76f4merges main2a723ba8aafa875c7facfdfc6178b6ace95e9e65without conflicts. The 13-file PR diff retains the same added and deleted lines as the previous head. Every other file matches current main, including the merged interpreter and executable-protection repairs (#262 and #295). Independent source review found no introduced defect or scope expansion.Fresh hosted checks are queued for the updated revision. Current-head test results and renewed human approval remain pending. No local build or runtime suite was repeated for this merge. Earlier validation below applies only to its named revisions.
Previous main refresh at
34aade7Head
34aade7a1bd7131635bda71013c7ede4f1559a5cmergesmainat67e378ae16f2a8457a6b856228343086f404e743, including #288's metadata repair and Linux test compilation fix. The merge required no conflict edits.The remaining 13-file diff preserves every added and deleted line of the reviewed startup change. The protected-parent test repair no longer appears in the diff because main already contains it.
Cargo.lockis unchanged.All 59 packaging tests, all 42 shell blocks in the three changed workflows, YAML parsing, workspace formatting, and scoped whitespace checks passed. Independent review verified the preserved diff and source tree
59ce85b5399e26816c93e84cc35c5894dadb061f.No full local workspace or runtime suite was repeated for this merge. Fresh hosted checks tested the updated head on Linux ARM64 and macOS. Both deterministic integration jobs passed: Linux recorded 131 passes and 9 platform skips; macOS recorded 128 passes and 12 platform skips. Each recorded all 140 cases, with no failures or setup errors. The repaired metadata case passed on both platforms. macOS workspace, Rust lint, native macOS tests, packaging, and CodeQL passed. The three Linux startup tests in this PR also passed.
The first Linux workspace attempt failed one unrelated cached-executable test:
cached_image_exec_uses_the_opened_directory_after_a_path_swapreturned OS error 26,Text file busy, while 685 other Box library tests passed. Its source is byte-identical in main and this PR. The same test passed in the concurrent Linux workspace control for #292, where all 686 Box library tests passed. A temporary writer inherited by a parallel test process is a plausible cause, but that cause is not proven here.The limited Linux retry passed at the unchanged head. CI Gate passed. The cached-executable test and all 686 Box library tests passed. No source changed for that retry. The first failure and its unproven explanation remain recorded. Automated review found no blocking issues in the preserved startup change.
The previous head's metadata test failures occurred before #288 merged. A rerun of that old run would retain its older tested revision. The fresh run above provides the new integration result. Renewed human approval remains required; squash auto-merge is enabled.
Earlier conflict repair at
8c70309dPublished head:
8c70309d670b46166783509a698ad48be216196c. The repair mergesmainate95d0c808f33d05afb246415fb9b57cf35cb0078.The published commit matches reviewed and tested tree
972ab980ae415d42cab1955de5dc4f1561f1e664.The diff against that main revision contains 14 files. It preserves the startup opt-in removal and main's newer tests, workflows, and release instructions.
Two existing
protect_parentstest calls used an obsolete function signature. The test-only compatibility repair supplies the current writable-grant target arguments.It retains both intended assertions and changes no production containment behavior.
-D warningsresult.The first workspace Clippy invocation failed with
E0061because main's two test calls lacked the current function arguments. The initial test-all invocation and output audit also failed.Those original results remain preserved. The test-only compatibility repair addresses compilation; its completed follow-up results are recorded above.
Runtime validation used unchanged production sources before that test-only edit. Follow-up formatting, Clippy, focused tests, and the full workspace run cover the final reviewed source.
The workspace omitted the real credential-daemon test because its service was absent. The alias test omitted its read assertion while retaining its write assertions.
The audit of the complete test-all wrapper log exited one because its summary repeats both diagnostics, producing two occurrences each.
That failed receipt remains preserved. The same audit passed against the untouched Cargo log, which records each expected omission once; no tests were rerun.
Ignored tests remain outside the pass result. No scripted examples remain; the manual SDK tutorial was not run.
Existing Shell test warnings and 66 existing dead-code warnings in the no-default-feature build remain disclosed.
The PR-scoped whitespace check passed. The whole-merge check found trailing whitespace in two unchanged design snapshots imported from main; those files were not edited.
Local execution used Amazon Linux 2023 ARM64, Rust/Cargo 1.98.1, two build jobs, two test threads, and
RUSTFLAGS=-C debuginfo=0.EXPERIMENTAL_LINUX_SUPPORTwas unset. Repository and running-process receipts confirm the toolchain.Hosted checks for earlier head
8c70309dfailed the shared metadata query case (SH-PROBE-PERMISSION) on Linux and macOS. Other required test jobs passed. Those jobs tested main before #288; the current refresh above includes that repair.The previous human approval was dismissed after that earlier push. Its automated review found no blocking code issue, but is not a formal human approval.
Earlier results below retain their original revision and execution limits.
Earlier validation at
afe82169The results in this subsection cover the earlier source, not the current conflict repair. Tested source: afe8216. Native Amazon Linux 2023 ARM64, kernel
6.12.113-138.209.amzn2023.aarch64, Rust1.98.1, ordinary user. The test environment omittedEXPERIMENTAL_LINUX_SUPPORT, used two build jobs and test threads, and setRUSTFLAGS=-C debuginfo=0./run/credsd/credsd.sockwas absent; its success count does not establish daemon integration. Ignored tests remain outside this result; this is not complete coverage.git diff --checkpassed.afe8216and CodeQL passed. Hosted ARM64 and macOS workspace tests, both deterministic suites, packaging, lint, and native macOS checks passed. The separate verdict-only job was skipped by the path filter. Automated re-review atafe8216reported no code findings with a Comment assessment. It asks the approving maintainer to settle the author ownership confirmation. The Codex attribution below remains explicit; human maintainer approval is still required.Those earlier hosted jobs checked out merge
daafa9be26beb0524b73ee2e9664a507edb365b2, combiningafe82169withmainate4ca8b8. Its tree matches the locally tested tree. Both deterministic reports recorded all 133 rows: Linux had 124 passes and 9 platform skips; macOS had 121 passes and 12 platform skips, with no failures or errors. Their revision field readsunknown; checkout logs and the Git commit record provide the revision above.Hosted ARM64 workspace logs disclose three limits: one diagnostic probe was absent and did not run; the alias-read assertion skipped while its write assertions ran; and the live credential-service test returned early because its service was absent. The macOS workspace log contains no skip diagnostics. Native macOS bridge checks skipped because the runner lacks the macOS 27 SDK. These results do not establish complete coverage, release acceptance, or security acceptance.
Historical validation before
afe82169The following results apply to the earlier revisions named here. They remain recorded, including the original full-workspace failure and platform skips; they are not evidence for the current revision.
TRUE,true,1,FALSE, whitespace, and non-UTF8 values. Configuration validation still fails as expected.justfileallowances.466116f(headabc221bwith basedb88268). Linux x86_64 workspace logs include existing namespace-prerequisite and unsupported-architecture skips; this is compile/startup evidence, not x86_64 containment qualification. ARM64 containment evidence comes from the hosted deterministic suite and the local AL2023 runs. The native macOS job skipped bridge checks because its SDK lacks macOS 27 support; this does not establish complete native-bridge coverage.4989fb2, combining this head with currentmainatbba49cc. Completed macOS workspace logs contain no failed-test or skip diagnostics. The platform limits above still apply.The archive above contains debug binaries. No production release, security acceptance, or released-download qualification is claimed.
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.