Skip to content

Commit 342c0d4

Browse files
Qualify the final Python SDK wheel on macOS
2 parents cf9adf9 + 4ae0b98 commit 342c0d4

10 files changed

Lines changed: 890 additions & 27 deletions

‎.github/workflows/check-managed-macos-command.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
2626
with:
27-
ref: 18678197938664250c94ad585c791f484aed1295
27+
ref: 4ae0b987da5ad27b30c8e4e6878c680cbc3224b0
2828
persist-credentials: false
2929
- name: Verify exact SDK checkout
3030
run: |
31-
test "$(git rev-parse HEAD)" = '18678197938664250c94ad585c791f484aed1295'
32-
test "$(git rev-parse HEAD^{tree})" = '9a9ba0f4002f46bbd8a554e6f906236a53c3c205'
31+
test "$(git rev-parse HEAD)" = '4ae0b987da5ad27b30c8e4e6878c680cbc3224b0'
32+
test "$(git rev-parse HEAD^{tree})" = '9c7c48dc1bbc94595919d36ceb0625b939d8ea0c'
3333
git show -s --format='%H %T %s' HEAD
3434
- name: Select shared Cargo directories
3535
run: |
@@ -224,6 +224,7 @@ jobs:
224224
'tests/test_native_executor_local.py',
225225
'tests/test_native_yielded_executor_owner.py',
226226
'tests/test_native_executor_policies.py::test_force_stop_fences_sampling_before_executor_result_settles',
227+
'tests/test_native_compaction_admission.py::test_stop_during_compaction_setup_fences_provider_admission',
227228
'tests/test_supervised_worker_example.py::test_two_workers_revise_reconnect_recover_and_publish_once',
228229
])
229230
if status:
@@ -233,7 +234,10 @@ jobs:
233234
'test_macos_local_command_cannot_delegate_execution_to_launchd',
234235
'test_local_write_root_replacement_survives_portable_resume',
235236
'test_turn_write_policy_and_reopen_checks_the_applied_policy',
237+
'test_steer_twice_and_interrupt_running_local_command',
236238
'test_local_write_roots_cannot_overlap_native_runtime_home',
239+
'test_stop_during_compaction_setup_fences_provider_admission[False]',
240+
'test_stop_during_compaction_setup_fences_provider_admission[True]',
237241
'test_two_workers_revise_reconnect_recover_and_publish_once',
238242
}
239243
required.update(

‎docs/sdk/tools.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ Install the wheel and native helpers outside the workspace and any additional wr
451451

452452
Writes to host files are limited to `cwd` and the additional `writable_roots`. On Linux, a command can also write to a private temporary filesystem. Those writes disappear when the sandbox exits. The runtime resolves the paths on the executor. It keeps its protections for native metadata. For a linked Git worktree that needs to update Git state, explicitly grant the required Git directories after checking which paths they expose.
453453

454-
Pass `writable_roots` when constructing the local Environment or a compatible Linux or macOS WSS Environment. Passing it to the WSS constructor opts into the same strict write policy. The policy disables native sandbox escalation and permission requests that could widen the grants.
454+
Pass `writable_roots` when constructing the local Environment or a compatible Linux or macOS WSS Environment. For WSS, pass a non-`None` sequence to enable the strict write policy. Use `writable_roots=[]` to grant writes only in the working directory. Passing `None` uses the default WSS policy. The policy disables native sandbox escalation and permission requests that could widen the grants.
455455

456456
Use a supported local executor or Linux WSS executor to change write grants between turns. With macOS WSS, choose the write roots in the Environment when opening the Session. The SDK cannot confirm that processes from earlier remote commands have exited. You can resubmit an equivalent grant if the paths pass validation.
457457

458-
In a Session without `NativeAgents`, wait for the active turn and any descendant or background executor work to settle. Collect the results of any yielded tool cells before changing the roots. Then supply the complete replacement list on the next root turn. If an active root uses a symlink, the path must still resolve to the same directory when you submit it again. When adding a directory to the current root list, pass the canonical executor path from your application's configuration. Use the same rule when restoring a grant you removed. If the Session uses `NativeAgents`, set its write roots when opening it.
458+
In a Session without `NativeAgents`, wait for the active turn and any descendant or background executor work to settle. Collect the results of any yielded tool cells before changing the roots. Then supply the complete replacement list on the next root turn. If a current writable root uses a symlink, the path must still resolve to the same directory when you submit it again. When adding a directory to the current root list, pass the canonical executor path from your application's configuration. Use the same rule when restoring a grant you removed. If the Session uses `NativeAgents`, set its write roots when opening it.
459459

460460
```python
461461
# After earlier work settles.

0 commit comments

Comments
 (0)