Setup
The test sends the local pilot gateway a plain text key request, a JSON string, requests naming a source or mint.wasm resource, a string in a numeric sum argument, and a proposal with a prompt field. It then sends a valid structured sum request through the same pilot instance.
Observed result
Plain text and a JSON string receive HTTP 400 MALFORMED_REQUEST. Source, binary, and string-key requests receive HTTP 403 POLICY_DENIED. A prompt field receives HTTP 403 UNKNOWN_PROPOSAL_FIELD. None causes a resource effect. The valid structured request returns a result object with only program and value, containing sum and 11. Attack and success responses contain neither the synthetic key marker nor raw or base64-encoded bytes of the compiled guest modules. The runnable case is TestAdversarialProxyRejectsKeyAndSourceRequests in the Go SDK proxy tests.
The test checks the documented request route of this compiled demonstration pilot. Its sample worker is generic and uses structured local inputs. Circuit binary attestation, production process isolation, key storage, and language model behavior require separate evaluations.
SDK example: Run the proxy-secret-boundary case in the SDK source tree.