fix: keep snapshots free of host paths and use the documented error phases
- runtime_error_json reports module_id/relative_path/line/column only; an absolute host path is environment data and must not be embedded in a shareable Observation snapshot. - A bad --arg is a pre-start option error: report phase "options" as the schema defines instead of "prepare". - Document that any provider transport failure, including an over-budget request frame, kills and reaps the helper and is never retried.
This commit is contained in:
1 parent
847cf9fe33
commit
765c8350b0
5 files changed
+13
-17
No files matched your search
+3
-1
@@ -55,7 +55,9 @@ fields. Reject other format identifiers, unknown kinds and invalid payloads.
|
||||
Structural and selected-value events may stop at that point. Lifecycle
|
||||
and committed byte chunks remain subject to their own execution and
|
||||
output limits. The interpreter continues under unchanged program limits.
|
||||
- `run.completed` contains the explicit return using [Value Wire](value-wire.md).
|
||||
- Error locations in `run.failed` carry `module_id`, `relative_path`, `line` and
|
||||
`column`; a snapshot never embeds an absolute host path. `run.completed`
|
||||
contains the explicit return using [Value Wire](value-wire.md).
|
||||
A result containing a non-transferable handle has a null wire value and
|
||||
identifies its type. An explicit result, like a program print, can itself
|
||||
contain sensitive data. `run.failed` follows a started run and contains
|
||||
|
||||
@@ -223,6 +223,11 @@ Token lifecycle:
|
||||
6. Provider error codes map to existing categories: `permission.denied`,
|
||||
`resource.closed`, `resource.exhausted`, `resource.unsupported`, otherwise
|
||||
`host.error`.
|
||||
7. Any transport failure — including a request frame that exceeds the 1 MiB
|
||||
budget or a malformed reply — kills and reaps the helper. The peer is never
|
||||
reused after a protocol error, so a program that sends an oversized request
|
||||
must expect subsequent calls to that provider to fail closed rather than
|
||||
silently truncate the payload.
|
||||
|
||||
## 6. Authorization
|
||||
|
||||
|
||||
Reference in new issue
Block a user