sayan-oai
5685183570
Use captured environment state for permissions and daemon recovery ( #46568 )
...
## Why
When a selected environment is unavailable, permission fallbacks can use the turn's initial environment and workspace roots. Daemon recovery can also miss a local environment that finishes starting after the turn begins.
## What changed
- Resolve fallback permissions from thread defaults using the captured selection's workspace root URIs, including when setup is starting or has failed.
- Apply this resolution to Guardian reviews, permission instructions, and sandbox context selection.
- Capture daemon recovery from the latest step inputs and refresh environment readiness before checking recovery eligibility.
## Testing
Add regression tests for Guardian resolving project-root restrictions against an unavailable captured environment's workspace and for daemon recovery including a local environment that finishes starting during a turn.
GitOrigin-RevId: c76d83d786fdc9c444b78ecbc335b02a20805c58
2026-09-19 01:56:57 +00:00
..
2026-09-19 01:34:59 +00:00
2026-09-19 01:37:14 +00:00
2026-09-17 10:02:38 +00:00
2026-09-18 23:37:35 +00:00
2026-09-01 18:24:56 +00:00
2026-09-19 01:56:57 +00:00
2026-09-09 17:45:37 +00:00
2026-09-14 15:30:22 +00:00
2026-08-31 22:38:23 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:56:57 +00:00
2026-09-19 01:03:55 +00:00
2026-09-19 01:27:26 +00:00
2026-09-14 19:30:11 +00:00
2026-09-19 01:27:26 +00:00
2026-09-19 01:27:26 +00:00
2026-09-11 01:57:54 +00:00
2026-09-19 01:21:32 +00:00
2026-09-16 04:59:23 +00:00
2026-09-17 04:37:54 +00:00
2026-09-02 23:58:24 +00:00
2026-09-14 23:25:09 +00:00
2026-09-09 17:56:06 +00:00
2026-09-17 19:42:56 +00:00
2026-09-19 00:46:30 +00:00
2026-09-19 01:27:26 +00:00
2026-09-19 01:27:26 +00:00
2026-09-19 01:27:48 +00:00
2026-09-17 23:54:31 +00:00
2026-09-09 18:40:53 +00:00
2026-09-09 18:40:53 +00:00
2026-09-16 22:26:40 +00:00
2026-09-17 01:38:13 +00:00
2026-09-17 01:38:13 +00:00
2026-09-19 00:52:56 +00:00
2026-09-16 22:26:40 +00:00
2026-09-10 18:24:13 +00:00
2026-09-19 00:52:56 +00:00
2026-09-01 13:43:27 +00:00
2026-09-17 01:18:37 +00:00
2026-09-19 01:56:57 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-09-03 00:17:19 +00:00
2026-09-01 14:43:27 +00:00
2026-09-01 18:24:56 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-18 23:07:36 +00:00
2026-09-18 23:07:36 +00:00
2026-08-25 21:34:05 +00:00
2026-09-14 22:58:51 +00:00
2026-09-17 10:02:38 +00:00
2026-09-17 00:49:12 +00:00
2026-09-17 00:49:12 +00:00
2026-09-19 01:03:55 +00:00
2026-09-19 01:27:26 +00:00
2026-09-11 14:25:56 +00:00
2026-08-29 06:05:28 +00:00
2026-09-19 01:27:26 +00:00
2026-09-17 01:18:37 +00:00
2026-09-01 13:43:27 +00:00
2026-09-18 00:59:10 +00:00
2026-09-16 15:17:41 +00:00
2026-09-09 17:46:00 +00:00
2026-09-04 21:17:25 +00:00
2026-09-08 23:45:10 +00:00
2026-09-15 22:52:56 +00:00
2026-08-31 22:38:23 +00:00
2026-09-15 17:09:11 +00:00
2026-09-10 19:41:14 +00:00
2026-09-19 00:46:30 +00:00
2026-09-19 01:03:55 +00:00
2026-09-02 23:58:24 +00:00
2026-09-02 23:58:24 +00:00
2026-08-31 23:29:20 +00:00
2026-09-17 18:20:28 +00:00
2026-09-14 22:58:51 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-09 06:04:59 +00:00
2026-08-27 00:07:26 +00:00
2026-09-13 06:53:20 +00:00
2026-09-13 06:53:20 +00:00
2026-09-11 01:57:54 +00:00
2026-09-19 01:34:59 +00:00
2026-09-18 23:39:30 +00:00
2026-09-10 18:24:13 +00:00
2026-09-18 23:37:35 +00:00
2026-09-17 19:55:20 +00:00
2026-09-17 18:20:28 +00:00
2026-09-17 18:20:28 +00:00
2026-09-05 13:02:49 +00:00
2026-09-04 12:56:26 +00:00
2026-09-18 00:25:37 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-09 19:31:12 +00:00