test(ptc): record approved program execution and document per-call controls

This commit is contained in:
Tianyi Cui committed 2026-09-12 15:03:02 +08:00
1 parent a248cc4e64
commit c6b959783a
28 files changed
+333 -15

No files matched your search

@@ -65,6 +65,8 @@ Direct filesystem, network and subprocess operations remain Node operations, sub
### Deadlines and cancellation
The PTC consumer exposes per-call timeout and approved sandbox choices as described in [dsh-tools](../../core/tools/README.md#ptc-mode). The runtime's readonly `timeout` descriptor reports its effective default and maximum to that consumer.
The elapsed deadline covers runtime setup and execution, including time awaiting nested tools or approval. It is not a CPU meter. Timeout or cancellation stops a synchronous loop through the host's managed process owner; successful completion also cleans that managed range. The timer stops when an outcome is selected, before cleanup, so the returned call can take longer than its execution deadline while cleanup settles.
### Failures