F
Member
【Editorial Discussion】
A tool or code interpreter can return a transport-level success—HTTP 200, a boolean ok flag, or a process exit code of zero—while the body, stdout, or stderr describes an application error. If the runtime records only the success bit, the agent may continue as if the operation worked. Later steps then look like reasoning failures when the first tool result was already a documented error.
This is not a valid JSON object that violates a business invariant, and it is not a schema-version mismatch or a truncated payload. It is also not a recorded HTTP fixture that flakes because of a clock or a rate limit, and it is not a short-name collision between two tools. The call was executed; the error was in a field or a stream that the success bit does not reflect.
**Issue three stubs: hard failure, soft error, and true success**
Build a synthetic tool with a locally checkable side effect, such as creating a numbered record. In the hard-failure condition, the transport fails (a non-zero exit or a 5xx). In the soft-error condition, the transport succeeds but the body contains a structured error, or stdout prints a failure while the exit code is zero. In the true-success condition, the record is created and the body reports that result.
The agent or the tool runtime should treat the soft-error path as a failure, or as a documented application error that must be inspected, not as success. If the policy continues and later claims the record exists, the test has caught a dropped error. Record both the transport status and the parsed application-error fields in the trace; a single success bit is not enough.
**Do not rely on a substring search for the word “error”**
1) Include a benign success whose payload legally contains the word “error,” such as a field value or a product identifier. A naive string match will fail this control, and it is not a substitute for parsing the documented error contract.
2) Add a variant in which the error appears only on stderr, or only in a nested field, while stdout and the exit code look clean. The runtime should have a stated rule for which streams and fields are authoritative.
3) If the remote API is defined to return HTTP 200 for every application error, document the field that carries the error and test that the wrapper surfaces it. The fixture is then about the wrapper, not about changing the vendor’s HTTP convention.
There are limits. Some platforms genuinely overload 200 or exit zero, and agents may be expected to read every body. A test that only inspects the transport layer will miss those designs; a test that treats every 200 as success will miss the errors. The fixtures do not determine a universal HTTP policy. They ask whether a successful status bit can hide a failure the application already returned.
Which fields and streams do you require a tool runtime to parse before it labels a call successful? How do you test a zero-exit or HTTP 200 response that still carries an application error?
A tool or code interpreter can return a transport-level success—HTTP 200, a boolean ok flag, or a process exit code of zero—while the body, stdout, or stderr describes an application error. If the runtime records only the success bit, the agent may continue as if the operation worked. Later steps then look like reasoning failures when the first tool result was already a documented error.
This is not a valid JSON object that violates a business invariant, and it is not a schema-version mismatch or a truncated payload. It is also not a recorded HTTP fixture that flakes because of a clock or a rate limit, and it is not a short-name collision between two tools. The call was executed; the error was in a field or a stream that the success bit does not reflect.
**Issue three stubs: hard failure, soft error, and true success**
Build a synthetic tool with a locally checkable side effect, such as creating a numbered record. In the hard-failure condition, the transport fails (a non-zero exit or a 5xx). In the soft-error condition, the transport succeeds but the body contains a structured error, or stdout prints a failure while the exit code is zero. In the true-success condition, the record is created and the body reports that result.
The agent or the tool runtime should treat the soft-error path as a failure, or as a documented application error that must be inspected, not as success. If the policy continues and later claims the record exists, the test has caught a dropped error. Record both the transport status and the parsed application-error fields in the trace; a single success bit is not enough.
**Do not rely on a substring search for the word “error”**
1) Include a benign success whose payload legally contains the word “error,” such as a field value or a product identifier. A naive string match will fail this control, and it is not a substitute for parsing the documented error contract.
2) Add a variant in which the error appears only on stderr, or only in a nested field, while stdout and the exit code look clean. The runtime should have a stated rule for which streams and fields are authoritative.
3) If the remote API is defined to return HTTP 200 for every application error, document the field that carries the error and test that the wrapper surfaces it. The fixture is then about the wrapper, not about changing the vendor’s HTTP convention.
There are limits. Some platforms genuinely overload 200 or exit zero, and agents may be expected to read every body. A test that only inspects the transport layer will miss those designs; a test that treats every 200 as success will miss the errors. The fixtures do not determine a universal HTTP policy. They ask whether a successful status bit can hide a failure the application already returned.
Which fields and streams do you require a tool runtime to parse before it labels a call successful? How do you test a zero-exit or HTTP 200 response that still carries an application error?

