feat(ptc): present provider execution guidance in logged program schema

This commit is contained in:
Tianyi Cui committed 2026-09-12 15:03:02 +08:00
1 parent c6b959783a
commit 2a08bf6ab9
17 files changed
+36 -15

No files matched your search

@@ -65,7 +65,7 @@ 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 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. Its `executionInstructions` describes fresh Node state, direct Node APIs, the empty program environment and file policy in the model-visible schema.
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.