Document the controlling-terminal requirement for `BubblewrapWorkspace`

Closed
MP
1mo ago
+11-1

Refs #10743. Stacked on #10763, which is stacked on #10746.

Keep the timeout/cancellation fix and clarify its backend requirement: commands must run without a controlling terminal because the sandbox omits bwrap --new-session. The built-in local and SSH backends already satisfy this; custom backends must do so too.

  • State the requirement, terminal-input injection risk, and built-in backend behavior in the class docstring and both documentation copies.
  • Reword the implementation comment as a backend requirement rather than an unconditional assertion.
  • Addresses the parent PR review. No executable code, public API, or examples change.

Verification

  • Focused Bubblewrap documentation parity/snippet tests: 8 passed, 4 skipped (unchanged illustrative snippets).
  • Ruff lint/format checks and commit hooks pass.
  • Executable AST matches the previous commit after stripping docstrings.

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver. N/A: documentation-only clarification.
  • PR title is fit for the release changelog.