Repository navigation
spec(012): the smoke harness reads the key per transport from a named key file (A-66) - #393
Conversation
… key file (A-66) Amends 3.2: the stage 2 smoke harness takes --key-file and --transport, reading AI_GATEWAY_API_KEY for the Gateway transports and TYPESAFE_API_KEY for direct. R-27s fixed key file no longer exists. Authorizes no direct live call.
AI review (no-findings)Reviewing the two changed files: Decision record (A-66): The decision is internally consistent. It records an owner request, states what is amended (spec 012 3.2), and explicitly limits scope ("authorizes no Spec 012 body amendment (3.2): The revised text:
Rationale block: The new rationale paragraph accurately summarizes the amendment, marks implementation as pending in Cross-reference consistency: A-66 ↔ spec 3.2 ↔ new rationale block are mutually consistent. The amendment annotation No concrete defects found. {"head": "287b338a43ac347f4fa7c501796c4ab6eee5c0b9", "verdict": "no-findings", "findings": []}Subject: bfe423c...287b338, diff digest 8c4cff0f89e0c1177439a85a842290658fe0f15b9d3216cb615ef23c8b9d9991, 1 call(s). An AI comment is not an approval. |
Spec 012: amend 3.2 so the stage 2 smoke harness reads the key for the selected transport from a key file the owner names, and can use
TYPESAFE_API_KEYfor thedirecttransport. Records the owner's request as A-66. Status and implementation are unchanged.Why
TYPESAFE_API_KEY, in addition toAI_GATEWAY_API_KEY(A-66).AI_GATEWAY_API_KEYis the Gateway credential;TYPESAFE_API_KEYbelongs to TypeSafe's own API, which is 3.2'sdirecttransport (POST <base>/v1/systemone, with a version pin). The adapter already implementsdirect; only the harness is fixed to the Gateway./Users/bart/.config/statecrafting/infra/vercel/.env) no longer exists on the owner's machine, so the harness takes--key-fileinstead of a fixed path, and still never reads the key from the environment.What changes
specs/012-jev-integration/spec.md: 3.2's key paragraph (--key-file, the variable per transport,--transportwithgatewayas default,directwith a version pin and only under spec 022 3.7 stage 2's owner authorization); an implementation record note.docs/decisions/00-founding-decisions.md: A-66..statecraft/derived/: refreshed for the spec edit.This authorizes no live call on
direct. The harness change follows inimpl(012).