exec-sandbox 0.21.0__tar.gz → 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. exec_sandbox-1.0.1/.claude/settings.json +12 -0
  2. exec_sandbox-1.0.1/.codex/config.toml +8 -0
  3. exec_sandbox-1.0.1/.github/runs-on.yml +59 -0
  4. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/workflows/release.yml +2 -2
  5. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/workflows/test.yml +3 -0
  6. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.gitignore +1 -1
  7. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/CLAUDE.md +13 -0
  8. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/Makefile +15 -6
  9. exec_sandbox-1.0.1/PKG-INFO +949 -0
  10. exec_sandbox-1.0.1/README.md +889 -0
  11. exec_sandbox-1.0.1/SECURITY.md +21 -0
  12. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/cicd/version.sh +8 -1
  13. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/Cargo.lock +129 -197
  14. exec_sandbox-1.0.1/guest-agent/src/clock.rs +66 -0
  15. exec_sandbox-1.0.1/guest-agent/src/connection.rs +1046 -0
  16. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/constants.rs +60 -44
  17. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/error.rs +318 -193
  18. exec_sandbox-1.0.1/guest-agent/src/file_io.rs +1013 -0
  19. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/init.rs +669 -239
  20. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/main.rs +49 -55
  21. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/oom_guard.rs +69 -29
  22. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/packages.rs +150 -25
  23. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/execute.rs +590 -154
  24. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/mod.rs +0 -2
  25. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/scripts/js_repl.mjs +127 -57
  26. exec_sandbox-1.0.1/guest-agent/src/repl/scripts/python_repl.py +364 -0
  27. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/scripts/shell_repl.sh +2 -0
  28. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/spawn.rs +30 -28
  29. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/wrappers.rs +3 -1
  30. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/types.rs +35 -79
  31. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/validation.rs +76 -77
  32. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/Makefile +1 -1
  33. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/main.go +42 -29
  34. exec_sandbox-1.0.1/gvproxy-wrapper/main_test.go +89 -0
  35. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/images/kernel/alpine-virt-aarch64.config +11 -4
  36. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/images/kernel/alpine-virt-x86_64.config +12 -5
  37. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/images/kernel/exec-sandbox.config +109 -22
  38. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/pyproject.toml +19 -8
  39. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/benchmark_density.py +116 -170
  40. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/benchmark_latency.py +99 -118
  41. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/benchmark_optimizer.py +82 -146
  42. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-guest-agent.sh +0 -12
  43. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-images.sh +10 -13
  44. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-initramfs.sh +4 -13
  45. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-kernel.sh +18 -13
  46. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-qcow2.sh +35 -52
  47. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-qemu.sh +6 -2
  48. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-tiny-init.sh +0 -12
  49. exec_sandbox-1.0.1/scripts/build_package_catalogs.py +73 -0
  50. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/ci-resource-monitor.sh +15 -4
  51. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/ci_diagnose.py +16 -8
  52. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/extract-kernel.sh +13 -11
  53. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/extract-vmlinux.sh +5 -2
  54. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/upgrade-versions.sh +7 -3
  55. exec_sandbox-1.0.1/src/exec_sandbox/__init__.py +140 -0
  56. exec_sandbox-1.0.1/src/exec_sandbox/_imports.py +151 -0
  57. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/_logging.py +29 -18
  58. exec_sandbox-1.0.1/src/exec_sandbox/_version.py +12 -0
  59. exec_sandbox-1.0.1/src/exec_sandbox/admission.py +1738 -0
  60. exec_sandbox-1.0.1/src/exec_sandbox/aio_utils.py +136 -0
  61. exec_sandbox-1.0.1/src/exec_sandbox/asset_downloader.py +500 -0
  62. exec_sandbox-1.0.1/src/exec_sandbox/assets.py +518 -0
  63. exec_sandbox-1.0.1/src/exec_sandbox/base_cache_manager.py +287 -0
  64. exec_sandbox-1.0.1/src/exec_sandbox/cgroup.py +932 -0
  65. exec_sandbox-1.0.1/src/exec_sandbox/cli.py +1548 -0
  66. exec_sandbox-1.0.1/src/exec_sandbox/cli_keyring.py +180 -0
  67. exec_sandbox-1.0.1/src/exec_sandbox/config.py +220 -0
  68. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/constants.py +187 -181
  69. exec_sandbox-1.0.1/src/exec_sandbox/disk_snapshot_manager.py +1251 -0
  70. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/dns_filter.py +46 -36
  71. exec_sandbox-1.0.1/src/exec_sandbox/exceptions.py +525 -0
  72. exec_sandbox-1.0.1/src/exec_sandbox/files/__init__.py +2 -0
  73. exec_sandbox-1.0.1/src/exec_sandbox/files/disk.py +341 -0
  74. exec_sandbox-1.0.1/src/exec_sandbox/files/locks.py +439 -0
  75. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/guest_agent_protocol.py +79 -62
  76. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/guest_channel.py +354 -578
  77. exec_sandbox-1.0.1/src/exec_sandbox/gvproxy.py +394 -0
  78. exec_sandbox-1.0.1/src/exec_sandbox/hash_utils.py +91 -0
  79. exec_sandbox-1.0.1/src/exec_sandbox/images.py +242 -0
  80. exec_sandbox-1.0.1/src/exec_sandbox/instance/__init__.py +7 -0
  81. exec_sandbox-1.0.1/src/exec_sandbox/instance/codec.py +109 -0
  82. exec_sandbox-1.0.1/src/exec_sandbox/instance/commit.py +189 -0
  83. exec_sandbox-1.0.1/src/exec_sandbox/instance/head.py +121 -0
  84. exec_sandbox-1.0.1/src/exec_sandbox/instance/ids.py +51 -0
  85. exec_sandbox-1.0.1/src/exec_sandbox/instance/keyring.py +136 -0
  86. exec_sandbox-1.0.1/src/exec_sandbox/instance/local_store.py +746 -0
  87. exec_sandbox-1.0.1/src/exec_sandbox/instance/manager.py +1069 -0
  88. exec_sandbox-1.0.1/src/exec_sandbox/instance/models.py +152 -0
  89. exec_sandbox-1.0.1/src/exec_sandbox/instance/pack.py +300 -0
  90. exec_sandbox-1.0.1/src/exec_sandbox/instance/s3_store.py +475 -0
  91. exec_sandbox-1.0.1/src/exec_sandbox/instance/store.py +286 -0
  92. exec_sandbox-1.0.1/src/exec_sandbox/memory_snapshot_files.py +150 -0
  93. exec_sandbox-1.0.1/src/exec_sandbox/memory_snapshot_manager.py +751 -0
  94. exec_sandbox-1.0.1/src/exec_sandbox/migration_client.py +500 -0
  95. exec_sandbox-1.0.1/src/exec_sandbox/models.py +153 -0
  96. exec_sandbox-1.0.1/src/exec_sandbox/overlay_pool.py +386 -0
  97. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/package_validator.py +41 -55
  98. exec_sandbox-1.0.1/src/exec_sandbox/permission_utils.py +1169 -0
  99. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/platform_utils.py +148 -167
  100. exec_sandbox-1.0.1/src/exec_sandbox/port_forward.py +127 -0
  101. exec_sandbox-1.0.1/src/exec_sandbox/private_run_dir.py +539 -0
  102. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/process_registry.py +5 -4
  103. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/qemu_cmd.py +441 -213
  104. exec_sandbox-1.0.1/src/exec_sandbox/qemu_storage_daemon.py +837 -0
  105. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/qemu_vm.py +711 -615
  106. exec_sandbox-1.0.1/src/exec_sandbox/qmp_client.py +199 -0
  107. exec_sandbox-1.0.1/src/exec_sandbox/qmp_events.py +253 -0
  108. exec_sandbox-1.0.1/src/exec_sandbox/resource_cleanup.py +136 -0
  109. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/resources/pypi_top_10k.json +9730 -9730
  110. exec_sandbox-1.0.1/src/exec_sandbox/s3_parts.py +170 -0
  111. exec_sandbox-1.0.1/src/exec_sandbox/scheduler.py +980 -0
  112. exec_sandbox-1.0.1/src/exec_sandbox/session.py +757 -0
  113. exec_sandbox-1.0.1/src/exec_sandbox/settings.py +104 -0
  114. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/socket_auth.py +14 -30
  115. exec_sandbox-1.0.1/src/exec_sandbox/subprocess_utils.py +618 -0
  116. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/system_probes.py +416 -249
  117. exec_sandbox-1.0.1/src/exec_sandbox/validation.py +65 -0
  118. exec_sandbox-1.0.1/src/exec_sandbox/vm_manager.py +2410 -0
  119. exec_sandbox-1.0.1/src/exec_sandbox/vm_spec.py +105 -0
  120. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/vm_timing.py +10 -32
  121. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/vm_types.py +0 -5
  122. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/vm_working_directory.py +65 -77
  123. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/warm_vm_pool.py +221 -408
  124. exec_sandbox-1.0.1/stubs/backports/zstd.pyi +16 -0
  125. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/benchmarks/test_bench_core.py +10 -15
  126. exec_sandbox-1.0.1/tests/conftest.py +836 -0
  127. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/cpu_helpers.py +16 -35
  128. exec_sandbox-1.0.1/tests/fixtures/instance/vectors.json +87 -0
  129. exec_sandbox-1.0.1/tests/instance_fixtures.py +691 -0
  130. exec_sandbox-1.0.1/tests/instance_support.py +689 -0
  131. exec_sandbox-1.0.1/tests/keyring_support.py +76 -0
  132. exec_sandbox-1.0.1/tests/s3_faults.py +547 -0
  133. exec_sandbox-1.0.1/tests/test_admission.py +4111 -0
  134. exec_sandbox-1.0.1/tests/test_aio_utils.py +308 -0
  135. exec_sandbox-1.0.1/tests/test_asset_downloader.py +1169 -0
  136. exec_sandbox-1.0.1/tests/test_assets.py +732 -0
  137. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_bun_ffi_security.py +29 -35
  138. exec_sandbox-1.0.1/tests/test_cgroup.py +1285 -0
  139. exec_sandbox-1.0.1/tests/test_cli.py +3250 -0
  140. exec_sandbox-1.0.1/tests/test_cli_entry.py +89 -0
  141. exec_sandbox-1.0.1/tests/test_cli_instances_e2e.py +112 -0
  142. exec_sandbox-1.0.1/tests/test_cli_keyring.py +436 -0
  143. exec_sandbox-1.0.1/tests/test_config.py +161 -0
  144. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_consume_stream.py +56 -137
  145. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_dask_compatibility.py +20 -95
  146. exec_sandbox-1.0.1/tests/test_deadline_diagnostics.py +352 -0
  147. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_device_security.py +439 -1001
  148. exec_sandbox-1.0.1/tests/test_disk_snapshot_manager.py +2145 -0
  149. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_dns_filter.py +91 -55
  150. exec_sandbox-1.0.1/tests/test_dns_filtering.py +572 -0
  151. exec_sandbox-1.0.1/tests/test_dns_resolv_hijack.py +122 -0
  152. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_ech_proxy_behavior.py +64 -85
  153. exec_sandbox-1.0.1/tests/test_env_var_security.py +149 -0
  154. exec_sandbox-1.0.1/tests/test_etc_hardening.py +314 -0
  155. exec_sandbox-1.0.1/tests/test_exceptions.py +275 -0
  156. exec_sandbox-1.0.1/tests/test_execution_edge_cases.py +1207 -0
  157. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_file_io_buffers.py +32 -123
  158. exec_sandbox-1.0.1/tests/test_file_io_edge_cases.py +526 -0
  159. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_file_io_integrity.py +23 -98
  160. exec_sandbox-1.0.1/tests/test_file_io_security.py +195 -0
  161. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_file_io_streaming.py +130 -297
  162. exec_sandbox-1.0.1/tests/test_files_disk.py +409 -0
  163. exec_sandbox-1.0.1/tests/test_files_locks.py +774 -0
  164. exec_sandbox-1.0.1/tests/test_fork_output.py +109 -0
  165. exec_sandbox-1.0.1/tests/test_fork_stdout.py +270 -0
  166. exec_sandbox-1.0.1/tests/test_guest_agent_protocol.py +688 -0
  167. exec_sandbox-1.0.1/tests/test_guest_channel.py +208 -0
  168. exec_sandbox-1.0.1/tests/test_guest_clock.py +85 -0
  169. exec_sandbox-1.0.1/tests/test_guest_transport_lossless.py +57 -0
  170. exec_sandbox-1.0.1/tests/test_gvproxy.py +622 -0
  171. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_image_tools.py +23 -33
  172. exec_sandbox-1.0.1/tests/test_images.py +258 -0
  173. exec_sandbox-1.0.1/tests/test_instance_admin.py +306 -0
  174. exec_sandbox-1.0.1/tests/test_instance_chain.py +1315 -0
  175. exec_sandbox-1.0.1/tests/test_instance_commit.py +383 -0
  176. exec_sandbox-1.0.1/tests/test_instance_concurrency.py +275 -0
  177. exec_sandbox-1.0.1/tests/test_instance_e2e.py +667 -0
  178. exec_sandbox-1.0.1/tests/test_instance_format.py +455 -0
  179. exec_sandbox-1.0.1/tests/test_instance_generations.py +70 -0
  180. exec_sandbox-1.0.1/tests/test_instance_host_facts.py +143 -0
  181. exec_sandbox-1.0.1/tests/test_instance_lifecycle.py +1238 -0
  182. exec_sandbox-1.0.1/tests/test_instance_load_shutdown.py +89 -0
  183. exec_sandbox-1.0.1/tests/test_instance_local_store.py +931 -0
  184. exec_sandbox-1.0.1/tests/test_instance_matrix.py +144 -0
  185. exec_sandbox-1.0.1/tests/test_instance_pack.py +361 -0
  186. exec_sandbox-1.0.1/tests/test_instance_s3_store.py +803 -0
  187. exec_sandbox-1.0.1/tests/test_instance_settings.py +605 -0
  188. exec_sandbox-1.0.1/tests/test_instance_store_contract.py +274 -0
  189. exec_sandbox-1.0.1/tests/test_int_str_digits.py +53 -0
  190. exec_sandbox-1.0.1/tests/test_js_repl.py +163 -0
  191. exec_sandbox-1.0.1/tests/test_js_repl_script.py +76 -0
  192. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_kernel_attack_surface.py +177 -328
  193. exec_sandbox-1.0.1/tests/test_kernel_boot_time.py +35 -0
  194. exec_sandbox-1.0.1/tests/test_kernel_config.py +60 -0
  195. exec_sandbox-1.0.1/tests/test_l1_damaged_entry.py +56 -0
  196. exec_sandbox-1.0.1/tests/test_logging.py +33 -0
  197. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_loopback.py +54 -101
  198. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_memory_leaks.py +192 -211
  199. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_memory_optimization.py +91 -163
  200. exec_sandbox-1.0.1/tests/test_memory_snapshot_manager.py +2634 -0
  201. exec_sandbox-1.0.1/tests/test_migration_client.py +1229 -0
  202. exec_sandbox-1.0.1/tests/test_multiprocessing.py +75 -0
  203. exec_sandbox-1.0.1/tests/test_nonroot_repl.py +191 -0
  204. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_orphan_vm_cpu.py +72 -93
  205. exec_sandbox-1.0.1/tests/test_overlay_pool.py +884 -0
  206. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_package_validator.py +155 -180
  207. exec_sandbox-1.0.1/tests/test_patch_targets.py +437 -0
  208. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_payload_integrity.py +57 -176
  209. exec_sandbox-1.0.1/tests/test_permission_utils.py +2054 -0
  210. exec_sandbox-1.0.1/tests/test_pid1_zombie_reaping.py +130 -0
  211. exec_sandbox-1.0.1/tests/test_platform_gate.py +35 -0
  212. exec_sandbox-1.0.1/tests/test_platform_utils.py +502 -0
  213. exec_sandbox-1.0.1/tests/test_port_forward.py +645 -0
  214. exec_sandbox-1.0.1/tests/test_private_run_dir.py +1170 -0
  215. exec_sandbox-1.0.1/tests/test_process_registry.py +116 -0
  216. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_psutil_compatibility.py +147 -438
  217. exec_sandbox-1.0.1/tests/test_python_bytecode.py +29 -0
  218. exec_sandbox-1.0.1/tests/test_python_repl_script.py +285 -0
  219. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_qemu_attack_surface.py +71 -125
  220. exec_sandbox-1.0.1/tests/test_qemu_cmd.py +252 -0
  221. exec_sandbox-1.0.1/tests/test_qemu_sandbox_probe.py +156 -0
  222. exec_sandbox-1.0.1/tests/test_qemu_storage_daemon.py +1285 -0
  223. exec_sandbox-1.0.1/tests/test_qemu_vm_guest_wait.py +75 -0
  224. exec_sandbox-1.0.1/tests/test_qemu_vm_host_disk_full.py +708 -0
  225. exec_sandbox-1.0.1/tests/test_qemu_vm_identity.py +190 -0
  226. exec_sandbox-1.0.1/tests/test_qemu_vm_socket_access.py +84 -0
  227. exec_sandbox-1.0.1/tests/test_qmp_client.py +160 -0
  228. exec_sandbox-1.0.1/tests/test_qmp_events.py +298 -0
  229. exec_sandbox-1.0.1/tests/test_repl_namespace.py +49 -0
  230. exec_sandbox-1.0.1/tests/test_resource_cleanup.py +306 -0
  231. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_rng_l1_snapshot.py +51 -44
  232. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_rng_quality.py +46 -50
  233. exec_sandbox-1.0.1/tests/test_scheduler.py +2550 -0
  234. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_session.py +228 -413
  235. exec_sandbox-1.0.1/tests/test_session_guard_and_io.py +2950 -0
  236. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_signal_isolation.py +104 -266
  237. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_socket_auth.py +155 -313
  238. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_speculative_execution.py +53 -105
  239. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_streaming.py +133 -278
  240. exec_sandbox-1.0.1/tests/test_subprocess_utils.py +966 -0
  241. exec_sandbox-1.0.1/tests/test_system_probes.py +384 -0
  242. exec_sandbox-1.0.1/tests/test_validation.py +36 -0
  243. exec_sandbox-1.0.1/tests/test_vm_capacity.py +334 -0
  244. exec_sandbox-1.0.1/tests/test_vm_cleanup_ownership.py +344 -0
  245. exec_sandbox-1.0.1/tests/test_vm_manager.py +7517 -0
  246. exec_sandbox-1.0.1/tests/test_vm_spec.py +118 -0
  247. exec_sandbox-1.0.1/tests/test_vm_working_directory.py +458 -0
  248. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_warm_vm_pool.py +830 -733
  249. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_wasm_compatibility.py +65 -115
  250. exec_sandbox-1.0.1/tests/test_write_worker.py +302 -0
  251. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/Cargo.lock +193 -365
  252. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/src/device.rs +5 -5
  253. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/src/main.rs +167 -119
  254. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/src/sys.rs +1 -9
  255. exec_sandbox-1.0.1/uv.lock +3058 -0
  256. exec_sandbox-1.0.1/versions.lock +26 -0
  257. exec_sandbox-0.21.0/.github/runs-on.yml +0 -54
  258. exec_sandbox-0.21.0/PKG-INFO +0 -942
  259. exec_sandbox-0.21.0/README.md +0 -886
  260. exec_sandbox-0.21.0/SECURITY.md +0 -21
  261. exec_sandbox-0.21.0/guest-agent/src/connection.rs +0 -722
  262. exec_sandbox-0.21.0/guest-agent/src/file_io.rs +0 -606
  263. exec_sandbox-0.21.0/guest-agent/src/repl/scripts/python_repl.py +0 -197
  264. exec_sandbox-0.21.0/scripts/build_package_catalogs.py +0 -133
  265. exec_sandbox-0.21.0/src/exec_sandbox/__init__.py +0 -181
  266. exec_sandbox-0.21.0/src/exec_sandbox/_imports.py +0 -22
  267. exec_sandbox-0.21.0/src/exec_sandbox/admission.py +0 -728
  268. exec_sandbox-0.21.0/src/exec_sandbox/aio_utils.py +0 -64
  269. exec_sandbox-0.21.0/src/exec_sandbox/asset_downloader.py +0 -495
  270. exec_sandbox-0.21.0/src/exec_sandbox/assets.py +0 -603
  271. exec_sandbox-0.21.0/src/exec_sandbox/balloon_client.py +0 -421
  272. exec_sandbox-0.21.0/src/exec_sandbox/base_cache_manager.py +0 -168
  273. exec_sandbox-0.21.0/src/exec_sandbox/cgroup.py +0 -786
  274. exec_sandbox-0.21.0/src/exec_sandbox/cli.py +0 -1199
  275. exec_sandbox-0.21.0/src/exec_sandbox/config.py +0 -166
  276. exec_sandbox-0.21.0/src/exec_sandbox/disk_snapshot_manager.py +0 -867
  277. exec_sandbox-0.21.0/src/exec_sandbox/exceptions.py +0 -420
  278. exec_sandbox-0.21.0/src/exec_sandbox/gvproxy.py +0 -272
  279. exec_sandbox-0.21.0/src/exec_sandbox/hash_utils.py +0 -174
  280. exec_sandbox-0.21.0/src/exec_sandbox/lock_utils.py +0 -83
  281. exec_sandbox-0.21.0/src/exec_sandbox/memory_snapshot_manager.py +0 -579
  282. exec_sandbox-0.21.0/src/exec_sandbox/migration_client.py +0 -364
  283. exec_sandbox-0.21.0/src/exec_sandbox/models.py +0 -173
  284. exec_sandbox-0.21.0/src/exec_sandbox/overlay_pool.py +0 -530
  285. exec_sandbox-0.21.0/src/exec_sandbox/permission_utils.py +0 -657
  286. exec_sandbox-0.21.0/src/exec_sandbox/port_forward.py +0 -123
  287. exec_sandbox-0.21.0/src/exec_sandbox/qemu_storage_daemon.py +0 -746
  288. exec_sandbox-0.21.0/src/exec_sandbox/qmp_exchange.py +0 -92
  289. exec_sandbox-0.21.0/src/exec_sandbox/resource_cleanup.py +0 -322
  290. exec_sandbox-0.21.0/src/exec_sandbox/scheduler.py +0 -870
  291. exec_sandbox-0.21.0/src/exec_sandbox/session.py +0 -504
  292. exec_sandbox-0.21.0/src/exec_sandbox/settings.py +0 -74
  293. exec_sandbox-0.21.0/src/exec_sandbox/subprocess_utils.py +0 -340
  294. exec_sandbox-0.21.0/src/exec_sandbox/validation.py +0 -55
  295. exec_sandbox-0.21.0/src/exec_sandbox/vm_manager.py +0 -1982
  296. exec_sandbox-0.21.0/stubs/backports/zstd.pyi +0 -8
  297. exec_sandbox-0.21.0/tests/conftest.py +0 -602
  298. exec_sandbox-0.21.0/tests/test_admission.py +0 -1319
  299. exec_sandbox-0.21.0/tests/test_aio_utils.py +0 -124
  300. exec_sandbox-0.21.0/tests/test_asset_downloader.py +0 -953
  301. exec_sandbox-0.21.0/tests/test_assets.py +0 -1322
  302. exec_sandbox-0.21.0/tests/test_asyncio_cleanup.py +0 -382
  303. exec_sandbox-0.21.0/tests/test_balloon_client.py +0 -226
  304. exec_sandbox-0.21.0/tests/test_balloon_integration.py +0 -633
  305. exec_sandbox-0.21.0/tests/test_cgroup.py +0 -1378
  306. exec_sandbox-0.21.0/tests/test_cli.py +0 -2095
  307. exec_sandbox-0.21.0/tests/test_config.py +0 -152
  308. exec_sandbox-0.21.0/tests/test_disk_snapshot_manager.py +0 -1257
  309. exec_sandbox-0.21.0/tests/test_dns_filtering.py +0 -920
  310. exec_sandbox-0.21.0/tests/test_dns_resolv_hijack.py +0 -161
  311. exec_sandbox-0.21.0/tests/test_env_var_security.py +0 -308
  312. exec_sandbox-0.21.0/tests/test_etc_hardening.py +0 -520
  313. exec_sandbox-0.21.0/tests/test_execution_edge_cases.py +0 -1838
  314. exec_sandbox-0.21.0/tests/test_file_io_edge_cases.py +0 -677
  315. exec_sandbox-0.21.0/tests/test_file_io_security.py +0 -136
  316. exec_sandbox-0.21.0/tests/test_fork_output.py +0 -353
  317. exec_sandbox-0.21.0/tests/test_fork_stdout.py +0 -445
  318. exec_sandbox-0.21.0/tests/test_guest_agent_integration.py +0 -219
  319. exec_sandbox-0.21.0/tests/test_guest_agent_protocol.py +0 -1619
  320. exec_sandbox-0.21.0/tests/test_int_str_digits.py +0 -282
  321. exec_sandbox-0.21.0/tests/test_memory_snapshot_manager.py +0 -1541
  322. exec_sandbox-0.21.0/tests/test_migration_client.py +0 -778
  323. exec_sandbox-0.21.0/tests/test_multiprocessing.py +0 -70
  324. exec_sandbox-0.21.0/tests/test_nonroot_repl.py +0 -317
  325. exec_sandbox-0.21.0/tests/test_overlay_pool.py +0 -986
  326. exec_sandbox-0.21.0/tests/test_permission_utils.py +0 -842
  327. exec_sandbox-0.21.0/tests/test_pid1_zombie_reaping.py +0 -291
  328. exec_sandbox-0.21.0/tests/test_platform_utils.py +0 -572
  329. exec_sandbox-0.21.0/tests/test_port_forward.py +0 -800
  330. exec_sandbox-0.21.0/tests/test_process_registry.py +0 -128
  331. exec_sandbox-0.21.0/tests/test_qemu_storage_daemon.py +0 -889
  332. exec_sandbox-0.21.0/tests/test_resource_cleanup.py +0 -510
  333. exec_sandbox-0.21.0/tests/test_scheduler.py +0 -2226
  334. exec_sandbox-0.21.0/tests/test_session_guard_and_io.py +0 -2635
  335. exec_sandbox-0.21.0/tests/test_subprocess_utils.py +0 -580
  336. exec_sandbox-0.21.0/tests/test_vm_capacity.py +0 -234
  337. exec_sandbox-0.21.0/tests/test_vm_manager.py +0 -5883
  338. exec_sandbox-0.21.0/tests/test_vm_working_directory.py +0 -395
  339. exec_sandbox-0.21.0/tests/test_write_worker.py +0 -324
  340. exec_sandbox-0.21.0/uv.lock +0 -2522
  341. exec_sandbox-0.21.0/versions.lock +0 -26
  342. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.editorconfig +0 -0
  343. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-guest-agent/action.yml +0 -0
  344. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-gvproxy-wrapper/action.yml +0 -0
  345. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-tiny-init/action.yml +0 -0
  346. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-vm-images/action.yml +0 -0
  347. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/setup-vm-infra/action.yml +0 -0
  348. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/LICENSE +0 -0
  349. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/.gitignore +0 -0
  350. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/Cargo.toml +0 -0
  351. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/Makefile +0 -0
  352. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/.gitignore +0 -0
  353. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/go.mod +0 -0
  354. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/go.sum +0 -0
  355. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/py.typed +0 -0
  356. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/resources/npm_top_10k.json +0 -0
  357. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/stubs/backports/__init__.pyi +0 -0
  358. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/__init__.py +0 -0
  359. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/benchmarks/__init__.py +0 -0
  360. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/.gitignore +0 -0
  361. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/Cargo.toml +0 -0
  362. {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/Makefile +0 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/claude-code-settings.json",
3
+ "attribution": {
4
+ "commit": "",
5
+ "pr": ""
6
+ },
7
+ "permissions": {
8
+ "defaultMode": "auto"
9
+ },
10
+ "alwaysThinkingEnabled": true,
11
+ "effortLevel": "xhigh"
12
+ }
@@ -0,0 +1,8 @@
1
+ #:schema https://developers.openai.com/codex/config-schema.json
2
+
3
+ approval_policy = "on-request"
4
+ approvals_reviewer = "auto_review"
5
+ model_reasoning_effort = "max"
6
+ plan_mode_reasoning_effort = "max"
7
+ project_doc_fallback_filenames = ["CLAUDE.md"]
8
+ sandbox_mode = "danger-full-access"
@@ -0,0 +1,59 @@
1
+ # RunsOn runner profiles — diversify eligible EC2 capacity.
2
+ # Docs: https://runs-on.com/docs/runners/labels/
3
+ # https://runs-on.com/docs/runners/custom/
4
+ #
5
+ # Family entries are prefixes: c9 admits c9g, c9gd, and other matching variants.
6
+ # The image selects the architecture; CPU, RAM, regional offerings, and capacity
7
+ # further constrain selection. Listing a generation does not force its use.
8
+ #
9
+ # The 2–4 GiB per vCPU band avoids tiny burstable instances and excludes R-series
10
+ # shapes at these CPU counts. Job labels can override profile defaults.
11
+ # Family-list order does not prioritize newer generations.
12
+
13
+ runners:
14
+ # ARM64 (Graviton) — compute + general-purpose + burstable
15
+ 1cpu-linux-arm64: &arm64
16
+ cpu: 1
17
+ ram: [2, 4]
18
+ image: ubuntu24-full-arm64
19
+ family: ["c7", "m7", "r7", "c8", "m8", "t4g", "c9", "m9", "r9"]
20
+
21
+ 2cpu-linux-arm64:
22
+ <<: *arm64
23
+ cpu: 2
24
+ ram: [4, 8]
25
+
26
+ 4cpu-linux-arm64:
27
+ <<: *arm64
28
+ cpu: 4
29
+ ram: [8, 16]
30
+
31
+ 8cpu-linux-arm64:
32
+ <<: *arm64
33
+ cpu: 8
34
+ ram: [16, 32]
35
+
36
+ # x64 — Intel + AMD
37
+ # /nested-virt further restricts selection to supported x64 instance types;
38
+ # the profile's CPU/RAM filters still apply.
39
+ # https://runs-on.com/docs/runners/capabilities/nested-virtualization/
40
+ 1cpu-linux-x64: &x64
41
+ cpu: 1
42
+ ram: [2, 4]
43
+ image: ubuntu24-full-x64
44
+ family: ["c7", "m7", "r7", "c8", "m8", "r8", "c9", "m9", "r9"]
45
+
46
+ 2cpu-linux-x64:
47
+ <<: *x64
48
+ cpu: 2
49
+ ram: [4, 8]
50
+
51
+ 4cpu-linux-x64:
52
+ <<: *x64
53
+ cpu: 4
54
+ ram: [8, 16]
55
+
56
+ 8cpu-linux-x64:
57
+ <<: *x64
58
+ cpu: 8
59
+ ram: [16, 32]
@@ -136,7 +136,7 @@ jobs:
136
136
  path: dist/
137
137
 
138
138
  - name: Publish to TestPyPI
139
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
139
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
140
140
  with:
141
141
  repository-url: https://test.pypi.org/legacy/
142
142
  attestations: true
@@ -160,7 +160,7 @@ jobs:
160
160
  path: dist/
161
161
 
162
162
  - name: Publish to PyPI
163
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
163
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
164
164
  with:
165
165
  attestations: true
166
166
  print-hash: true
@@ -45,6 +45,9 @@ jobs:
45
45
  uv run pyright .
46
46
  uv run -m vulture src/ scripts/ --min-confidence 80
47
47
 
48
+ - name: Package checks
49
+ run: make test-package
50
+
48
51
  static-rust-guest-agent:
49
52
  name: Static / Rust (guest-agent)
50
53
  runs-on: ubuntu-24.04-arm
@@ -110,7 +110,7 @@ db.sqlite3
110
110
  db.sqlite3-journal
111
111
 
112
112
  # Flask stuff:
113
- instance/
113
+ /instance/
114
114
  .webassets-cache
115
115
 
116
116
  # Scrapy stuff:
@@ -2,6 +2,19 @@
2
2
 
3
3
  See @README for project overview and @Makefile for available commands for this project.
4
4
 
5
+ Always use ASD-STE100 Simplified Technical English in responses to the user.
6
+
7
+ ## Writing — Orwell’s six rules
8
+
9
+ For prose—not code, identifiers, commands, exact quotations, or error text—follow George Orwell’s rules from “Politics and the English Language”:
10
+
11
+ 1. Avoid stock metaphors, similes, and other figures of speech.
12
+ 2. Prefer a short, familiar word when it is equally precise.
13
+ 3. Cut every word that adds no meaning.
14
+ 4. Prefer active voice when it is clearer.
15
+ 5. Prefer everyday English to foreign phrases, needless scientific terms, or jargon; keep exact technical terms when precision requires them.
16
+ 6. Break any rule before making the prose unclear, inaccurate, unsafe, or unnatural.
17
+
5
18
  ## Code search — use `seek`
6
19
 
7
20
  Prefer `seek` over grep/ripgrep for code search. It returns BM25-ranked results with context and symbol tags.
@@ -58,7 +58,7 @@ install-seek:
58
58
  @curl -sSfL https://raw.githubusercontent.com/dualeai/seek/main/install.sh | sh
59
59
 
60
60
  install-deps:
61
- uv sync --extra dev --extra s3
61
+ uv sync --extra dev --extra s3 --extra cli
62
62
 
63
63
  # Build QEMU from source (Linux CI only — Ubuntu 24.04 ships 8.2.2 with ARM64 TCG bugs)
64
64
  # Usage: make build-qemu [QEMU_PREFIX=~/qemu-build]
@@ -100,7 +100,7 @@ build:
100
100
  @echo "🔨 Building QEMU images (arch=$(IMAGE_ARCH), variant=$(IMAGE_VARIANT))..."
101
101
  ./scripts/build-images.sh $$(echo "$(IMAGE_ARCH)" | sed 's/arm64/aarch64/') $(IMAGE_VARIANT)
102
102
 
103
- # Kept as alias for backwards compatibility and CI scripts.
103
+ # Alias of build.
104
104
  build-images: build
105
105
 
106
106
  # ============================================================================
@@ -118,13 +118,14 @@ test-static:
118
118
  uv run -m vulture src/ scripts/ --min-confidence 80
119
119
  shellcheck scripts/*.sh cicd/*.sh
120
120
  $(MAKE) test-kernel-hash-sync
121
+ $(MAKE) test-package
121
122
  $(MAKE) --directory guest-agent test-static
122
123
  $(MAKE) --directory tiny-init test-static
123
124
  $(MAKE) --directory gvproxy-wrapper test-static
124
125
 
125
126
  # Kernel hash functions must stay byte-identical between the two scripts:
126
127
  # extract-kernel.sh writes the .hash sidecar that build-kernel.sh reads —
127
- # divergence makes extract-kernel serve a stale vmlinux/initramfs silently.
128
+ # divergence makes extract-kernel.sh serve a stale vmlinuz/vmlinux silently.
128
129
  test-kernel-hash-sync:
129
130
  @a=$$(mktemp) && b=$$(mktemp) && \
130
131
  sed -n '/^compute_hash() {/,/^}/p' scripts/build-kernel.sh | tail -n +2 > "$$a" && \
@@ -132,6 +133,13 @@ test-kernel-hash-sync:
132
133
  { diff "$$a" "$$b" || { echo "ERROR: compute_hash (build-kernel.sh) and compute_kernel_hash (extract-kernel.sh) diverged"; rm -f "$$a" "$$b"; exit 1; }; } && \
133
134
  rm -f "$$a" "$$b"
134
135
 
136
+ # Build the sdist and wheel into a temporary folder, then run the twine check of
137
+ # release.yml (Verify build artifacts): a build-backend or metadata-version change
138
+ # fails here, before the merge, not at release time.
139
+ test-package:
140
+ @out=$$(mktemp -d) && \
141
+ { uv build --out-dir "$$out" && uv run twine check "$$out"/*; rc=$$?; rm -rf "$$out"; exit $$rc; }
142
+
135
143
  # CI resource monitor — wraps a command with background metrics collection.
136
144
  # Runs in a single shell: start monitor, run command, kill monitor, propagate exit code.
137
145
  # Usage: $(call ci-monitor-run,<command>)
@@ -200,8 +208,9 @@ bench-pool:
200
208
  uv run python scripts/benchmark_latency.py -n 10 --pool $(BENCH_POOL)
201
209
 
202
210
  # 2D overcommit optimizer — finds Pareto-optimal (CPU_OC, MEM_OC) configs.
203
- # Fires N VMs per combo across a 4x4 grid, ranks by Sharpe-like efficiency
204
- # (throughput / RSS fraction), and reports the efficient frontier.
211
+ # Fires N VMs per combo across a 4x4 grid, ranks by latency efficiency
212
+ # (10^6 / geometric mean of the admission, setup and exec p95), and reports
213
+ # the efficient frontier.
205
214
  # Run on a KVM-capable host for production-representative results.
206
215
  # Usage: make bench-optimizer [N_VMS=200]
207
216
  bench-optimizer:
@@ -210,7 +219,7 @@ bench-optimizer:
210
219
  # VM density benchmark — measures host memory cost per VM.
211
220
  # Boots N VMs, holds them alive, samples host memory to compute marginal cost.
212
221
  # Usage: make bench-density [N_VMS=10]
213
- # make bench-density-sweep # sweep N=5,10,20 VMs
222
+ # make bench-density-sweep # sweep N=3,5,10 VMs
214
223
  bench-density:
215
224
  uv run --script scripts/benchmark_density.py $(if $(N_VMS),-n $(N_VMS),) --workload
216
225