{
  "_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-0108",
    "kind": "repair",
    "objective": "Restore the Google write path so the build can create and plot Google Sheets again (measured by /api/google-health).",
    "detail": "Replaces WT-0104, whose acceptance was a sentence no runner could execute. Same two failures found 2026-09-02: (1) the clasp refresh token in ~/.clasprc.json and the gcloud ADC both return invalid_grant / invalid_rapt (organisation reauth policy), so the Apps Script API refuses a content push; (2) AIRUNNER_WEB_APP_URL answers a Google 404 HTML page, so APPS_SCRIPT_RUN fails on ping before any action is considered. Failure class credential_expiry_and_dead_deployment; layer google_oauth + apps_script web app deployment; missing invariant: nothing checked that the credential still mints a token or that the web app still answers. Repair staged: sheets_create and sheets_chart at apps-script/Code.gs (d0e40c3a0) take effect on the first successful push. The probe route /api/google-health asks the live APPS_SCRIPT_RUN lane to ping and answers 200 only on ok:true — it is the regression test and the acceptance test of this task, and it must be scheduled as a recurring probe once green.",
    "state": "open",
    "priority": 2,
    "revision": 1,
    "depends_on": [],
    "permitted_capabilities": [
      "CLI_CLASP",
      "APPS_SCRIPT_RUN",
      "DEPLOY",
      "FILE_PUT"
    ],
    "acceptance_tests": [
      {
        "id": "google_health_200",
        "type": "http_ok",
        "url": "/api/google-health"
      },
      {
        "id": "google_health_ping_ok",
        "type": "contains",
        "url": "/api/google-health",
        "needle": "\"apps_script_ping\": \"ok\""
      },
      {
        "id": "probe_documents_itself",
        "type": "contains",
        "url": "/api/google-health",
        "needle": "Acceptance probe for the Google write path"
      }
    ],
    "required_evidence": [
      "repair",
      "regression_test",
      "runtime_evidence"
    ],
    "parent_task": null,
    "supersedes": "WT-0104",
    "failure": null,
    "failure_count": 0,
    "last_result": null,
    "completed_at": null,
    "created_at": "2026-09-05T22:39:03-07:00",
    "updated_at": "2026-09-05T22:39:03-07:00",
    "audit": "/api/work/task/WT-0108/audit",
    "submit_to": "/api/work/task/WT-0108/submit"
  }
}