personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: normalize env-dependent fields in API baseline tests

Extend the baseline normalization to force api_keys, runtime_env, and
provider_status configured/generate_ready fields to deterministic values,
preventing cross-machine flakiness when API keys are present locally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+22 -1
+1 -1
tests/baselines/api/settings/transcribe.json
··· 2 2 "api_keys": { 3 3 "gemini": false, 4 4 "revai": false, 5 - "whisper": true 5 + "whisper": false 6 6 }, 7 7 "backends": [ 8 8 {
+21
tests/verify_api.py
··· 438 438 if isinstance(status, dict) and "cogitate_cli" in status: 439 439 status["cogitate_cli_found"] = False 440 440 status["cogitate_ready"] = False 441 + status["configured"] = False 442 + status["generate_ready"] = False 441 443 cli = status.get("cogitate_cli", "") 442 444 issues = [ 443 445 i 444 446 for i in status.get("issues", []) 445 447 if "CLI not found" not in i 448 + and "not set" not in i 449 + and "not reachable" not in i 446 450 ] 447 451 if cli: 448 452 issues.append(f"{cli} CLI not found on PATH") 453 + # Re-add generic key-not-set issues per provider 454 + env_keys = { 455 + "anthropic": "ANTHROPIC_API_KEY", 456 + "google": "GOOGLE_API_KEY", 457 + "openai": "OPENAI_API_KEY", 458 + } 459 + if _name in env_keys: 460 + issues.append(f"{env_keys[_name]} not set") 461 + if _name == "ollama": 462 + issues.append( 463 + "Ollama not reachable at http://localhost:11434" 464 + ) 449 465 status["issues"] = sorted(issues) 466 + # Normalize env-dependent API key presence 467 + if key in ("api_keys", "runtime_env"): 468 + for k in result: 469 + if isinstance(result[k], bool): 470 + result[k] = False 450 471 return result 451 472 452 473 if isinstance(value, list):