Repository navigation
Let Triage read the machine through an opt-in read-only sandbox - #1717
Merged
Merged
Conversation
A read-only mount still lets the session connect to a host service, which can then write outside the worktree. The sandbox now loads a seccomp filter that returns EAFNOSUPPORT for AF_UNIX and io_uring_setup, on both the startup probe and the session. TCP stays available.
Combine factory-owned Triage filing and readiness with opt-in machine reads through the read-only sandbox. Regenerate prompt documentation and the user manual, and exercise sandboxed filing in the real Bubblewrap regression.
Preserve opt-in read-only machine access alongside forwardable Triage questionnaires. Keep questionnaire publication and notification in the shared investigation path, regenerate the manual and prompt site, and cover sandboxed filing with a questionnaire in the real Bubblewrap regression. Validation so far: cargo check --all-targets, cargo fmt --check, 13 prompt-generation tests, 17 Triage tests, 2 retained-home regressions and all 61 site checks pass. The required scripts/affected-tests origin/issue-1323 run is continuing through the full Rust suite.
This was referenced Nov 4, 2026
Merged
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.
Summary
Closes #1711
Test seams
thirdshift triageCLI, with a local Harness stand-in and real Bubblewrap: filesystem access, prompt scope, recommendation, failure diagnostics and cleanup.Evidence
unexpected argument after triage: --read-machine.After:
cargo test --test triage_run --test issue_1711_retained_home -- --test-threads=3passes all 17 Triage tests and both retained-home regressions. Real Bubblewrap coverage checks host reads, denied outside writes through direct paths, symlinks and host sockets, writable worktree/session state, unchanged credentials, and startup failures without fallback.After: both retained-home regressions pass after forwarding that home to native completion recovery.
origin/issue-1323conflicted in the shared investigation and hand-written Triage descriptions.After: merge commit
ea126d01preserves machine-read confinement and forwardable questionnaires. Its real-sandbox regression files both an ordinary issue and aneeds-infoissue, verifying the questionnaire in the issue body and readable Run notification. The documented manual and prompt generators were run.cargo check --all-targets,cargo fmt --checkand all 13 prompt tests pass. All 61 site checks pass locally (61.56s).ea126d010b24662b3ae7c47d23b66d42aa0356df: 3,653 passed, 77 skipped.cargo nextest runexecuted in 1,147.415s; compilation took about 62s, and the CI step took 1,211s including compilation.RUST_TEST_THREADS=3 NEXTEST_TEST_THREADS=3 /usr/bin/time -p scripts/affected-tests origin/issue-1323ran for 1,420.10s, including the site checks and cached compilation. All 1,622 Rust unit tests passed; integration tests progressed without an assertion failure. The overlapping local run was stopped once CI passed on the exact merge head, followingdocs/testing.md's reuse policy. Full-suite evidence comes from that CI run.Merge Danger
Door: two-way
Blast Radius: Triage
The opt-in requires Bubblewrap and working Linux user namespaces. A startup failure fails the Command without fallback. Default Triage keeps its existing launch. The private home and copied file-based login are removed with the throwaway worktree; the network remains available.
Unaddressed findings
Standards
None.
Spec
None. The native-completion finding was reproduced, fixed and covered by retained tests.
Security
None.
Security review outcome
No unaddressed introduced findings.
Review coverage
Standards: 0 findings. Spec: 1, fixed. Both reviewers read all 22 changed files, including generated outputs; no changed file was left unread and no generated output was excluded.
The review fixed point is
issue-1323on origin, pinned at8711c01639b33bbf3943578b7834f9b0ca7964fb. The local branch in another worktree was behind this GitHub base. Initial and follow-up reports and the original finding counts are retained in.thirdshift-review-fmCRtL/beside the Session evidence.Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh