0112: Provider adapters are fixture-tested
Status: Proposed (default; pending owner confirmation)
Context
Live API behavior depends on credentials, network access and changing provider capabilities. Such calls cannot be deterministic gate tests and credentials must not enter the repository.
Decision
Test provider request encoding and stream-to-event mapping with checked-in fixtures and fake transports. Live calls are manual only, require explicit owner confirmation, and stay outside the gate. Do not store credentials in the repository; use secret references for transport. Report unsupported provider capabilities as explicit errors rather than silently degrading.
Consequences
Routine tests are reproducible and secret-free, while live smoke coverage is opt-in and must be identified as unverified until run.
Addendum: Process.run_input agent-only native
Status: Proposed, pending the maintainer's confirmation. OWNER FLAG: this is a new native beyond design D2.
Context
Passing the key and request body in argv exposes them through
/proc cmdline and subjects large bodies to
MAX_ARG_STRLEN.
Decision
Provide Process.run_input as an agent-only native
and pass curl its key and body in a quoted
curl --config - configuration on stdin, not argv.
Reject keys with control bytes. Disable curlrc, but allow ambient
proxy environment variables.
Consequences
The key and body no longer appear in curl's argv; stdin
handling requires a process pipe and curl's config-line size limit
remains unverified. The existing
scripts/agent-smoke.sh real Anthropic/curl smoke is
UNVERIFIED: it has never run, only fakes have
been used, and a live run needs the maintainer's confirmation and
a key.
Alternatives
A mode-0600 temporary file requires filesystem authority, cleanup and residual-secret handling. An environment variable can expose secrets through process environments and does not solve passing the body as curl configuration.