fix(agentenv): settle cancelled long runs and preserve teardown receipts (#11095)

Bound AgentEnv long-run cancellation, preserve partial command facts and
complete computer teardown before resolving retained jobs. Includes the
supervisor and cleanup implementation from #10675 plus polled-receipt and
explicit-unknown exit-status fixes.

Validation: 14 Python controller tests, 31 host tests and 30 compiled
MCP/lifecycle tests passed. Static, documentation and discovery checks
passed. Real AgentEnv deployment was not exercised: runner unavailable.

Fixes #10676
Related: #10675

Co-authored-by: Adolanium <94890352+Adolanium@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-15 20:20:47 +08:00
1 parent 7dd24dc08c
commit ce9bdc526a
8 files changed
+704 -69

No files matched your search

+2
View File
@@ -164,6 +164,8 @@ export const answerSchema = z.looseObject({
output_bytes: z.int().nonnegative().optional(),
stdout_bytes: z.int().nonnegative().optional(),
stderr: z.string().optional(),
/** False when the supervisor published a result but the process group is not confirmed gone. */
settled: z.boolean().optional(),
apt: z
.looseObject({ lists: z.int().nonnegative(), error: z.string().optional() })
.optional(),