fix(cogitate): mirror GOOGLE_API_KEY → GEMINI_API_KEY for AI Studio CLI subprocess
gemini-cli's getAuthTypeFromEnv() honors GEMINI_API_KEY for gemini-api-key
auto-mode; GOOGLE_API_KEY is recognized only for vertex-ai mode. Without
GEMINI_API_KEY, non-interactive `-p -` invocations fall through to
~/.gemini/settings.json's selectedType, which throws FatalAuthenticationError
(exit 41) on fresh installs that lack a cached oauth-personal session.
In build_cogitate_env's AI Studio branch, mirror the canonical key into the
child env when GOOGLE_API_KEY is set and GEMINI_API_KEY is not, so the CLI
auto-detects api-key auth the same way the Vertex branch asserts vertex-ai
via GEMINI_CLI_SYSTEM_SETTINGS_PATH.
Eliminates the hand-edit-journal.json workaround for new installs whose
wizard config sets only GOOGLE_API_KEY (the default).
Decision record: extro/records/decisions/260505-vpe-cogitate-google-api-key-mirror-shipped.md
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>