Prevent renaming writable ancestors of effective read-only roots while preserving explicit read-write overrides, filesystem case aliases, and unrelated child writes.
Exit before evaluating shell lists when the sandbox working directory cannot be entered. Add native and portable regressions for both boundaries and document the ancestor restriction.
Keep temporary work inside the granted workspace instead of exposing host scratch trees, enforce read-only roots, and pin the system sandbox launcher before PATH lookup. Preserve documented network access and the narrow system paths needed by shell and Git.
Add native macOS containment and launcher regressions plus shared backend contract coverage. Document scratch and custom-tool requirements without changing existing bwrap or Windows behavior.
On Windows runners, workspace and tmp paths contain backslashes which are escaped by _sbpl_quote into double backslashes in the generated SBPL profile. Use _sbpl_quote in TestSeatbeltBackend assertions and escape backslashes in quote test to ensure assertions pass on Windows.
`tools.exec.sandbox` only supported bubblewrap, which depends on Linux
kernel namespaces, so macOS had no process-level isolation for shell
commands: SECURITY.md told macOS users the sandbox was simply
unavailable.
Add a `seatbelt` backend that generates an SBPL profile for
sandbox-exec(1) with the same policy bwrap applies. The workspace is
read-write, the media directory is read-only, the workspace's parent is
unreadable so config.json and its API keys stay hidden, and everything
else is denied by default.
Two macOS details the profile has to get right, both found by running
the generated command rather than by reading the SBPL reference:
- sh(1) reads `/` while resolving a path, and `(subpath "/usr")` does
not cover the root itself. Without `(literal "/")` every wrapped
command aborts during shell startup.
- Denying the parent directory also blocks traversal into the
workspace, so commands fail with ENOTDIR before they run. The
ancestors of every allowed path are therefore re-allowed for
`file-read-metadata` only: they stay searchable, but the config
directory still cannot be listed or read.
Paths are SBPL-escaped so a quote or backslash in a workspace path
cannot terminate a literal early and widen the rules that follow it.
Network access stays unrestricted to match bwrap, which does not pass
`--unshare-net`. Windows keeps its existing warn-and-run-unsandboxed
path, and selecting `seatbelt` on Linux fails loudly on the missing
sandbox-exec(1) exactly as selecting `bwrap` does on macOS today.
Verified on macOS 26.6.2 against the real sandbox-exec(1): workspace
writes, media reads and /tmp scratch succeed, while writing media,
reading config.json, listing the config directory, writing outside the
workspace and reading ~/.ssh are all denied.
Refs #1448
Refs #2569
An in-flight response can contain the list captured before a skill was installed. Preserve one trailing refresh for picker opens that arrive during that request instead of silently dropping them, while keeping at most one request active.
Cover stale responses, coalesced trailing refreshes, and unmount cleanup after both success and failure.
Refresh the shared skill list when a dollar-reference picker opens so skills installed by the agent appear without reloading the page. Coalesce in-flight requests and preserve the last known list on transient failures.
Cover post-load discovery, Tab completion, removals, request deduplication, cleanup, and retry behavior with regression tests.
The Codex catalog gates model visibility by client version. Requests advertising 0.144.0 succeed but omit Astra for an otherwise eligible account. Use the validated 0.153.4 catalog version so account discovery can expose it without changing model defaults or fallback entries.
Pin the expected wire version independently in the regression test and cover both Astra and future account models while preserving hidden-model filtering.
MCP SDK 1.30 treats an open GET notification stream as an in-flight request, so the real-server fixture no longer expires its session and the shutdown regression waits forever for a reconnect that never starts.
Decline the optional notification stream with the protocol-defined HTTP 405 response while retaining real POST, DELETE, lifespan, idle expiry and reconnect handling. Assert that successful recovery replaces the tool wrapper so the first regression cannot pass without reconnecting.
Reproduced the failure with SDK 1.30 before the repair. Both 1.29 and 1.30 now pass, including five repeated 1.30 runs and 141 related MCP tests. Runtime code and timeout limits are unchanged.
Avoid a false-positive session-prefix match in the architecture guard without changing endpoint validation. Pass a null pointer as an integer to the native Windows pipe fixture, and name oversized-input cases explicitly so pytest does not exceed the Windows environment-variable limit.
Keep the real owner-authenticated roundtrip and oversized-payload assertions. Local CLI, architecture and gateway checks pass; native Windows verification is rerun in CI.
Remove numeric shortcuts and their labels so target selection has one visible navigation model: arrow keys followed by Enter. Keep Ctrl+C cancellation and attachment behavior unchanged.
Update the CLI guide and real-key regression tests to verify that 1 and 2 no longer move the highlight.
Reuse the existing questionary selector so users can highlight a target with arrow keys and confirm with Enter. Retain numeric shortcuts and the current Python executable label without changing discovery or attachment behavior.
Keep cancellation fail-closed with exit code 130. Exercise real navigation, EOF and Ctrl+C through both CLI launchers so cancelling cannot start a Python backend or attach to Desktop. Document the controls.
An older terminal can ignore the protocol probe flag and consume inherited gateway credentials or terminal input. Scrub its TUI environment and close stdin before probing, then pass only the selected Desktop resolver metadata to the compatible client.
Validate the complete ready frame before opening mutation gates, not just its identity metadata. Add failing-before regressions and scope the existing recovery test process stub so real lease cleanup remains testable without changing runtime ownership.
NAN-104 requires terminal chat and browser attachment without granting a client ownership of Desktop's gateway. Resolve bounded short-lived credentials over authenticated current-user IPC, pin both Desktop and gateway identities, and reject replacement instances or incompatible clients before any mutation.
Reuse the existing TUI artifact resolver behind a narrow Desktop-only entrypoint, keep credentials out of argv/environment/files, and preserve Python-mode reconnect and gateway leases. Add protocol, real-gateway, and anonymous IPC regression coverage; matching native-host and Windows acceptance remain release gates.
Windows browser dispatch can expose bootstrap credentials through BROWSER or native handler command arguments. Send the URL to an isolated helper over stdin and open an owner-only ACL-protected redirect file instead, with no raw-URL fallback.
Keep file ownership and bounded cleanup independent of CLI exit, reject unsafe storage, and cover shared callers, native API contracts, error paths and lifecycle regressions. Document the intentional Windows compatibility tightening; native Windows browser and ACL verification remains pending.
Browser bootstrap URLs contain credentials. Deliver them through native Launch Services instead of the open command, and fail without a subprocess or BROWSER fallback so shared WebUI callers cannot expose the URL in process arguments or errors.
Cover encoding, native failures, resource cleanup and Desktop dispatch with regression tests. Preserve existing browser behavior and leave TUI and non-macOS handoff changes outside this scoped repair.
Preserve current Python startup when Desktop is not ready before target selection, while refusing fallback after the user chooses Desktop. Keep retained launchers and virtual environment labels consistent.
Authenticate Windows pipe ownership before I/O and drain cancelled operations before releasing buffers. Add entrypoint, failure-path, transport and credential-safe browser regressions without changing backend lifecycle or configuration.
Keep Python and Desktop installations independent while allowing bare interactive commands to choose a running Desktop target. Validate the versioned per-user rendezvous before opening its WebUI, and preserve every explicit Python CLI invocation.
Desktop TUI attachment remains unavailable until its capability contract is published, so that selection fails explicitly without starting, replacing, or stopping a backend.
Refs NAN-104.
[skip ci]
- test_catalog_bounds_failure_only_keys failed 3/5 runs on Windows: all
three get() calls land within one time.monotonic() tick, so the eviction
victim in _reserve() is decided by hash-seeded set iteration order among
tied recency keys. Pin the catalog to a synthetic strictly-increasing
monotonic clock (the constructor already accepts one) so the oldest
entry is evicted deterministically. 5/5 stable after, 3/5 failures before.
- test_equivalent_workspace_paths_share_one_store requires directory
symlinks, which need admin/developer mode on Windows (WinError 1314).
Skip with the same pattern the file already uses for file symlinks.
- tests/agent/conftest.py: make_provider() assigned through a spec'd mock
by reading provider.estimate_prompt_tokens first, which raises
AttributeError because the attribute is not on the LLMProvider class
spec; assign a MagicMock directly instead. Latent - no test hit the
default-provider path until now.
* ci: parallelize tests and filter jobs by paths
* ci: allow manual workflow validation
* ci: isolate terminal output tests from xdist
* ci: speed up Windows test jobs
* ci: use tracked dependency manifest for uv cache
* ci: run Docker checks for Python build configuration changes