Repository navigation
refactor: prepare containment handoff for Linux native policy - #186
Merged
Merged
Conversation
## Problem The Linux native adapter needs a containment handoff argument. Mixing its interface migration with the adapter obscures review of existing launch behavior. ## Solution Add the approved fourth optional argument to Containment::apply and migrate every backend and caller. Callers pass None. A supplied handoff returns UnsupportedCapability before backend selection. Update the public documentation. Include the dependent review branch in the existing CI pull-request filter. ## Tests Box and containment all-feature suites passed 1,513 tests with six existing ignores. The library callback executable passed, including its callback-created configuration case. an_unavailable_native_handoff_refuses_before_backend_selection checks the refusal and selection order. Build, formatting, diff checks, and strict owned-crate Clippy passed. Independent review found no remaining issues. No baseline test or assertion was removed. Full workspace and native macOS checks were not rerun on this standalone branch. Hosted checks and cloud qualification remain separate.
Co-authored-by: Kevin Orellana <[email protected]>
8 tasks done
9 of 10 tasks
kevin-orellana
enabled auto-merge (squash)
October 27, 2026 19:15
kevin-orellana
disabled auto-merge
October 27, 2026 19:16
This was referenced Oct 27, 2026
4 of 7 tasks
|
Assessment: Request Changes The signature extension is clean and the mechanical caller updates look correct and consistent. The one substantive concern is a new test whose negative assertion guards against a string the codebase never emits, so it passes vacuously and does not actually verify the behavior the PR claims (see inline comment on Review Categories
Nicely scoped preparation PR — the behavior-preserving |
This was referenced Oct 28, 2026
ferdingler
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human readable section
Problem: Linux filesystem checks need a way for a workload to register before it starts. The current containment call cannot carry that connection.
Solution: Add an optional registration connection to the containment function. Update the Linux, macOS, and test callers together.
Example: An existing Rust caller changes
Containment::apply(&config, None, None)toContainment::apply(&config, None, None, None). The finalNonemeans no native filesystem registration.Trade-off: Rust callers must add the fourth argument. This preparation does not enable Linux native filesystem policy. Supplying a registration connection still returns an unsupported-capability error.
Description
This is PR 1 of 4: #186 → #191 → #193 → #188. Merge this PR into
mainfirst.Containment::applyand the internal backend interface withnative_filesystem_handoff. Existing callers passNone, so their launch behavior stays the same.an_unavailable_native_handoff_refuses_before_backend_selectiontests that order.confirm_fd, already exists. Only the fourth argument is new.box_librarytest to verify that the readiness callback can create the configuration before Box reads it. This tests existing behavior.The other PRs use temporary review bases. After each prerequisite merges, update and retarget the next PR to
main. Do not merge into a staging branch.Related Issues
#127 tracks the Linux adapter. #191 adds kernel mechanisms, #193 connects policy operations, and #188 activates the feature.
#181 contains the original feature discussion. A new commit reversed its accidental merge into this preparation branch and restored the reviewed preparation tree.
Type of Change
Breaking change
Testing
Current head:
53b0f604178d1fdc3d3ea578bbe9a37ffd055714. This review changed no source in this PR.box_libraryexecutable passed on Rust 1.98.1.The repository interface review treats the fourth
Containment::applyargument as a deliberate breaking Rust interface change. Existing CLI andstrands_box::runcallers do not migrate. The migration example appears above.Fresh independent review followed the repository's
feature-criticchecklist. The boundeddocs-syncreview found no missing documentation for this preparation.Hosted checks, formal human approval, and merge approval remain separate. Authorization and identity-policy investigation was excluded; this is not full security sign-off. Cloud native qualification and performance testing remain separate work.
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.