test(tools): cover PTC standing policy and sandbox outcomes

This commit is contained in:
Tianyi Cui committed 2026-09-12 15:03:01 +08:00
1 parent 09e334622d
commit ca7f3a523d
5 files changed
+66 -2

No files matched your search

+2
View File
@@ -179,6 +179,8 @@ Failure kinds are **orthogonal outcomes reported independently** (per [defensive
* - `'worker-exit'` — the execution substrate died without settling (e.g. OOM).
* - `'invalid-output'` — the completion value was not lossless JSON.
* - `'output-limit'` — the serialized outer logs/value/diagnostic exceeded the configured cap.
* - `'protocol'` — the program sent invalid or over-budget control traffic.
* - `'sandbox-unavailable'` — required confinement could not be established.
*/
interface CodeRunFailure {
/** The failure class (see the interface doc for each kind's meaning). */