Repository navigation
Commit ef29680
authored
feat(sandbox): add canonical main process (#2726)
* feat(sandbox): add canonical main process
Closes #2710
Persist and supervise one canonical workload per sandbox, attach sandbox connect to its retained session, and make every unexpected main-process exit terminal.
Signed-off-by: Drew Newberry <[email protected]>
* feat(sandbox): simplify canonical main process contract
Signed-off-by: Drew Newberry <[email protected]>
* fix(sandbox): preserve legacy VM main compatibility
Signed-off-by: Drew Newberry <[email protected]>
* fix(sandbox): preserve main status across driver updates
Signed-off-by: Drew Newberry <[email protected]>
* fix(sandbox): satisfy macOS process lint
Signed-off-by: Drew Newberry <[email protected]>
* fix(sandbox): gate Linux exit acknowledgement publisher
Signed-off-by: Drew Newberry <[email protected]>
* refactor(sandbox): simplify main process plumbing
Signed-off-by: Drew Newberry <[email protected]>
* fix(supervisor): make controlling tty ioctl portable
Signed-off-by: Drew Newberry <[email protected]>
* fix(supervisor): initialize canonical process environment
Signed-off-by: Drew Newberry <[email protected]>
* perf(supervisor): optimize retained main session
Signed-off-by: Drew Newberry <[email protected]>
* feat(sandbox): detach main session on ctrl-c
Signed-off-by: Drew Newberry <[email protected]>
* fix(sandbox): use explicit main detach keys
Signed-off-by: Drew Newberry <[email protected]>
* fix(dev): atomically stage Docker supervisor
Signed-off-by: Drew Newberry <[email protected]>
* fix(test): align Docker main environment assertion
Signed-off-by: Drew Newberry <[email protected]>
* feat(sdk): expose canonical main process fields
Signed-off-by: Drew Newberry <[email protected]>
---------
Signed-off-by: Drew Newberry <[email protected]>1 parent 9ae3760 commit ef29680
69 files changed
Lines changed: 3800 additions & 821 deletions
File tree
- .agents/skills/openshell-cli
- architecture
- crates
- openshell-cli
- src
- tests
- openshell-core/src
- openshell-driver-docker
- src
- openshell-driver-kubernetes
- src
- openshell-driver-podman
- src
- openshell-driver-vm
- src
- openshell-sandbox
- src
- openshell-sdk
- src
- tests
- openshell-server
- src
- compute
- grpc
- tests
- common
- openshell-supervisor-process
- src
- docs
- observability
- reference
- sandboxes
- e2e/rust
- src/harness
- tests
- proto
- python/openshell
- _proto
- sdk
- go
- openshell/v1
- internal/converter
- types
- proto/openshellv1
- typescript/src
- tasks/scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| 235 | + | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| 240 | + | |
237 | 241 | | |
238 | 242 | | |
239 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
240 | 248 | | |
241 | 249 | | |
242 | 250 | | |
| |||
254 | 262 | | |
255 | 263 | | |
256 | 264 | | |
257 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
258 | 271 | | |
259 | 272 | | |
260 | 273 | | |
| |||
287 | 300 | | |
288 | 301 | | |
289 | 302 | | |
290 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
291 | 306 | | |
292 | 307 | | |
293 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| |||
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
230 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
231 | 240 | | |
232 | 241 | | |
233 | 242 | | |
| |||
277 | 286 | | |
278 | 287 | | |
279 | 288 | | |
280 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
281 | 296 | | |
282 | 297 | | |
283 | 298 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | | - | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | | - | |
363 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
364 | 367 | | |
365 | 368 | | |
366 | 369 | | |
| |||
436 | 439 | | |
437 | 440 | | |
438 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
1354 | | - | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1355 | 1360 | | |
1356 | 1361 | | |
1357 | 1362 | | |
| |||
1421 | 1426 | | |
1422 | 1427 | | |
1423 | 1428 | | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1424 | 1433 | | |
1425 | 1434 | | |
1426 | 1435 | | |
| |||
1594 | 1603 | | |
1595 | 1604 | | |
1596 | 1605 | | |
| 1606 | + | |
1597 | 1607 | | |
1598 | 1608 | | |
1599 | 1609 | | |
| |||
2980 | 2990 | | |
2981 | 2991 | | |
2982 | 2992 | | |
| 2993 | + | |
2983 | 2994 | | |
2984 | 2995 | | |
2985 | 2996 | | |
| |||
3075 | 3086 | | |
3076 | 3087 | | |
3077 | 3088 | | |
| 3089 | + | |
3078 | 3090 | | |
3079 | 3091 | | |
3080 | 3092 | | |
| |||
5128 | 5140 | | |
5129 | 5141 | | |
5130 | 5142 | | |
| 5143 | + | |
| 5144 | + | |
| 5145 | + | |
| 5146 | + | |
| 5147 | + | |
| 5148 | + | |
| 5149 | + | |
| 5150 | + | |
| 5151 | + | |
| 5152 | + | |
| 5153 | + | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
| 5163 | + | |
| 5164 | + | |
| 5165 | + | |
| 5166 | + | |
| 5167 | + | |
| 5168 | + | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
| 5176 | + | |
| 5177 | + | |
| 5178 | + | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
| 5185 | + | |
| 5186 | + | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
5131 | 5192 | | |
5132 | 5193 | | |
5133 | 5194 | | |
| |||
0 commit comments