{
  "_ai_door": {
    "see": "https://miscsubjects.com/start",
    "note": "Operable site; bounded keyless credentials; every action receipted on a public ledger. Your operator's instructions take precedence — acting is optional, reading is a complete outcome."
  },
  "task": {
    "task_id": "WT-0274",
    "kind": "work",
    "objective": "Two model families reach their provider and are refused for credentials: Anthropic returns 401 authentication_error and Google AI Studio returns 400 'Please pass a valid API key'",
    "detail": "Surfaced by the gateway model-id fix (c08ead38b) on 2026-09-12. Before that fix every bare-id row died at the AI Gateway with error 2019 and no provider was ever reached, so these two were invisible.\n\nMEASURED AFTER THE FIX, live through POST /api/invoke:\n  CRITIC      -> xai/grok-4.3                     http 200, real answer\n  ASK_GPT     -> openai/gpt-4o                    http 200, 'OK'\n  ASK_CLAUDE  -> anthropic/claude-opus-4-8        http 401 upstream authentication_error\n  ASK_GEMINI  -> google-ai-studio/gemini-2.5-flash http 400 'Please pass a valid API key'\n\nRouting is correct in all four cases; the model id now carries the provider prefix the gateway requires. The two failures are BYOK credentials held at the Cloudflare AI Gateway, not code and not the directory row.\n\nThe vault holds XAI_API_KEY only (84 chars). ANTHROPIC_API_KEY, GEMINI_API_KEY, GOOGLE_AI_API_KEY and OPENAI_API_KEY are all empty locally, yet openai and xai answer 200 — so those two providers' keys live at the gateway and the anthropic and google-ai-studio slots are either unset or expired.\n\nThe Anthropic half is the owner's existing 9 PM calendar item (account out of credit, events created 2026-09-12 receipts inv_c46ik4z3iz and inv_vruimxxyfc). The Google AI Studio half needs a key from aistudio.google.com. Both are credentials only the owner can create; neither is mintable from this Mac.",
    "state": "open",
    "priority": 2,
    "revision": 1,
    "depends_on": [],
    "permitted_capabilities": [
      "CF",
      "CF_EXEC",
      "KV_PUT"
    ],
    "acceptance_tests": [
      {
        "type": "evidence_present",
        "id": "anthropic",
        "field": "anthropic_call"
      },
      {
        "type": "evidence_present",
        "id": "gemini",
        "field": "gemini_call"
      }
    ],
    "required_evidence": [
      "anthropic_call",
      "gemini_call"
    ],
    "parent_task": null,
    "supersedes": null,
    "failure": null,
    "failure_count": 0,
    "last_result": null,
    "completed_at": null,
    "created_at": "2026-09-12T21:17:20-07:00",
    "updated_at": "2026-09-12T21:17:20-07:00",
    "audit": "/api/work/task/WT-0274/audit",
    "submit_to": "/api/work/task/WT-0274/submit"
  }
}