Repository navigation
impl(012): the smoke harness reads the transport's key from --key-file, with a direct transport - #400
Conversation
…e, with a direct transport
AI review (no-findings)Reviewing both changed files for correctness, security, and spec consistency.
Key ordering in
All refusals (bad transport, missing Key-check / write ordering: The new code accumulates serialised docs in
Argument parsing (
The updated prose accurately reflects the implementation: No concrete defects found. {"head": "01670e3931fed4db853559d0baf7a42549b4ee26", "verdict": "no-findings", "findings": []}Subject: 3084c8d...01670e3, diff digest 3787fbb16d5656034fc168a909aa51f354ec5b38cc9b98fa310fe27ef356691e, 1 call(s). An AI comment is not an approval. |
Implements spec 012 3.2 as amended by #393 (A-66) in
integrations/rustev-jev/examples/smoke.rs, the stage 2 smoke harness. No library code changes.--key-file <path>is required. The harness reads the selected transport's variable from it:AI_GATEWAY_API_KEYforgatewayandgateway_typesafe_base, andTYPESAFE_API_KEYfordirect. It never reads the key from the environment. The hard-coded R-27 path is gone.--transport gateway|gateway_typesafe_base|direct,gatewayby default.directneeds--pin(spec 022 3.2) and takes--endpoint,https://api.typesafe.aiby default.--pinand--endpointare refused on the Gateway transports.jev-directfor direct, and a per-transport provenance string in each written exchange.--outmust be absent or empty. Every exchange is checked for the key before any file is written, so a refusal writes nothing.Each refusal (no
RUSTEV_JEV_LIVE=1,directwithout--pin,--pinon the Gateway, an unknown transport, the variable missing from the key file, a non-empty--out, no--key-file) was exercised locally. Every one exits before the journal is opened or any call is sent. No live call was made by this change, and none runs in tests or CI.Spec 012's implementation record note for A-66 is updated, with the refreshed shards.