Repository navigation
test(containment): restore Linux Git and Cargo workflows - #136
Conversation
## Problem The Linux Git workflow is quarantined because its fixture declares unsupported tool exec grants. The suite cannot detect a regression in Git helper execution after PR #131. ## Solution Use supported filesystem grants and Git's installed helper directory. Run a real commit hook and verify the commit outside Box. Preserve agent, unconfigured-tool, read-only write, protected-path, and ungranted-program refusals. Remove only Git from quarantine and update runner and reducer checks. Cargo remains quarantined. No production interface or permission changes. ## Tests The Git case passes against current main 8390709 and fails on baseline 913f536 when the hook cannot execute. Harness unit tests: 90 passed on Linux and macOS; macOS required a serial rerun after two existing timing failures. macOS containment tests compile. Formatting passes. Clippy passes on macOS; Linux requires an allowance for the unchanged cn_native_egress.rs documentation warning. Restoring Git quarantine makes the new runner test fail. Full Linux suite remains red on two unchanged uncontained tracing-setup failures. Native Linux and cloud qualification are not claimed.
|
Assessment: Approve (Comment) Clean, well-scoped test restoration. CN-W-05 moves out of quarantine into a real Git workflow, and the quarantine list, runner, and reducer are updated consistently; no production source is touched. Review Categories
The denial checks plus independent host controls make this a genuinely regression-catching case rather than a happy-path smoke test. |
|
Assessment: Approve (Comment) Re-reviewed at Review notes
Both restored cases are large single |
|
Assessment: Approve (Comment) Re-reviewed the delta at Review notes
No new issues. My earlier |
|
Assessment: Approve Re-reviewed at All prior review feedback is now addressed (the |
Human readable section
Problem: The Linux suite skips Git and Cargo workflows, so it cannot detect regressions in helper execution after #131.
Solution: Restore both tests with supported grants and real helper execution. Verify denied access alongside successful commits and builds.
Trade-off: Linux test hosts need Git and the selected Rust/GCC toolchain. Cargo uses explicit compiler and library paths; production behavior is unchanged.
Description
Git initializes a repository, stages a file, commits through a real hook, and reads the log.
An independent host check verifies the commit. Its journal must name the exact Git executable.
Cargo compiles an offline crate through Rust and GCC, executes a build script, and runs the generated output.
It discovers the installed toolchain and GCC support directory, and creates a dedicated directory with selected linker-helper aliases.
Ubuntu linker scripts can name
/lib/...files while the fixture grants resolved library paths.The fixture stages installed
libc.soandlibm.solinker inputs beside its compiler helpers.It resolves absolute file references in private script copies and adds that directory to the linker search path.
Installed binary libraries remain unchanged. This tests the configured toolchain; it does not establish automatic distribution-wide linker compatibility.
The fixture uses existing read/write/file grants. It adds no Core configuration fields or automatic host access.
The test selects installed Cargo and Rust binaries directly; it does not test Rustup installation or registry downloads.
Both workflows check read-only write refusal, ungranted execution, protected configuration, direct-agent execution, and missing-tool refusal.
Cargo also verifies that a declared output runs while an undeclared copy beside it is refused.
Host controls establish that the programs and files work outside containment.
Exact journal assertions account for Box's home-relative path spelling.
The actual quarantine list is now empty. Runner and reducer tests require both workloads to run.
Generic quarantine integrity tests use a synthetic entry passed through private helpers; production entry points always use the actual compiled list.
A missing result, unexpected skip, duplicate result, or test failure still makes the verdict red.
Codex prepared this patch. A fresh independent adversarial review covered the combined change.
The existing automated Git review's diagnostic-message suggestion is addressed.
Native/cloud qualification and npm/server workflows remain separate work.
Related Issues
Follow-up to #131. Related helper validation: strands-agents/staging-boxy#115.
No issue closes through this PR.
Type of Change
Other: Restore automated test coverage.
Testing
Current correction head:
1736e62aa25808942a847081043b1a775de3df48. Fresh Linux and macOS deterministic checks passed.Local validation used product base
8390709, which includes merged #131. This PR changes only six files undertest-integ.b834c55/lib/aarch64-linux-gnu/libmvec.so.1913f536913f536The original full Linux run failed
cn_i_09andhost_trace_attaches_detaches_and_rejects_permissive_fault.Both fail in the unchanged host marker's tracing setup before containment. All other test targets passed.
No failure was suppressed. An empty quarantine list does not make this full-suite run green.
The 20 remaining skips are platform declarations.
The correction review also ran full containment locally: 42 passed and 37 failed.
That run lacked the CI runner's writable server placeholders. Its filesystem stress test then exhausted the private filesystem's file entries.
Later cases failed during setup; the policy target could not create temporary directories.
This run is RED and does not supersede the earlier successful seven-case runs. The successful hosted results above provide the standard-runner validation.
Linux Clippy used
-D warnings -A clippy::doc_lazy_continuationfor the unchanged warning incn_native_egress.rs.The earlier Git-only macOS run exceeded two network-test deadlines during concurrent compilation; its serial rerun and the combined unit run passed.
Commands included:
The original Linux execution used a privileged Debian ARM64 container on LinuxKit 7.0.12.
The Ubuntu correction also ran in a privileged Ubuntu 24.04 ARM64 container, as an ordinary user.
The shared Docker disk filled during validation; the successful Ubuntu run used an isolated ext4 filesystem backed by host disk.
Containment and file identity checks stayed enabled.
Hosted checks used merge
7257979be94ba03f25382b37871fd56301b7fc5f, combining this head witha86169182d80f4fd19ec0445aceaf7d1f0a86279.These results establish the selected workflows, not native Linux or cloud acceptance.
The automated reviewer rechecked
1736e62and reported no new issues. Its existing unused-helper suggestion remains nonblocking.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.