Print mode, success
The whole interface is the final text and an exit status.
-
driver print mode exits 00 ms
-
observer stdout is one string: "the answer is forty-two"0 ms
Recorded evidence · Chapter 31
The same scripted run through print, JSON and RPC on the shipped pi binary, and the same failure three ways.
← Read The Interface Is Not the AgentClaim
The same agent behind print, JSON and RPC does the same thing and gives the same answer. What differs is the observer and the failure contract.
Prediction, stated before the run
The final answer and the lifecycle events match across drivers. A failed response is an exit status in print mode, and lives only in the stream in JSON mode and in RPC.
Result: PASS 9 observations · OBSERVED · shipped binary
Evidence
| Observation | Expected | Observed | Outcome |
|---|---|---|---|
| All three interfaces end with the same final answer | identical |
identical |
held |
| JSON and RPC show the same lifecycle events in the same order | identical |
identical |
held |
| The tool ran under the driver | yes |
yes |
held |
| A failed response, print mode: exit status | non-zero |
1 |
held |
| A failed response, JSON mode: exit status | 0 |
0 |
held |
| A failed response, JSON mode: the failure is in the stream | stopReason error |
error |
held |
| A failed response, RPC: the prompt command succeeded | true |
true |
held |
| A failed response, RPC: the failure is in the stream | stopReason error |
error |
held |
| RPC acknowledges before the run: disposition | started |
started |
held |
Trace
The whole interface is the final text and an exit status.
Events on stdout. No command responses.
A response arrives first and means accepted. Events follow. The process stays up until stdin closes.
The failure is the exit status.
The failure is in the stream, and the exit status is 0.
The command succeeded; the model call did not. The failure is in the stream.
Provenance
examples/ch31-interface/binary.test.tsexamples/experiences/ch31.tsPinned to Pi 1.0.2. Drivers: --print, --mode json, and RPC over stdin and stdout, all against the shipped binary with a scripted provider. Claim class: observed. Source: examples/ch31-interface/binary.test.ts.
The recording drives the real pi process three ways with a scripted model. The agent does the same thing each time; what changes is who observes it and how a failure is reported.