{
  "schemaVersion": 1,
  "generatedAt": "2026-08-19T10:59:39.134Z",
  "ok": false,
  "mode": "local-only",
  "state": "needs_attention",
  "statusPath": "runs/2026-07-25/status.json",
  "projectRoot": ".",
  "runDir": "runs/2026-07-25",
  "canRunAutomatically": false,
  "nextBestAction": {
    "title": "處理 快速健檢",
    "href": "automation-check.html",
    "command": "npm --prefix \".\" run automation:check -- runs/2026-07-25/status.json",
    "reason": "22 steps"
  },
  "summary": {
    "articles": 3,
    "manualItems": 2,
    "highPriorityManual": 0,
    "latestRunStatus": "ok",
    "successRate": 75,
    "nextRunLocal": "2026年8月20日星期四 上午06:00 [GMT+8]",
    "countdown": "0 天 11 小時 0 分",
    "launchd": "loaded / not running / exit 0",
    "check": "needs check",
    "links": "992 ok / 0 error",
    "readiness": "ready",
    "dailyBrief": "3 papers",
    "openwiki": "3/3 linked",
    "externalApi": "disabled in main flow"
  },
  "live": {
    "runAndVerify": {
      "running": false,
      "currentStep": "",
      "currentStepStartedAt": "",
      "currentStepElapsedMs": 0,
      "steps": 41,
      "ok": true,
      "finishedAt": "2026-08-14T12:35:18.598Z"
    },
    "automationLocal": {
      "running": false,
      "currentStep": "",
      "currentStepStartedAt": "",
      "currentStepElapsedMs": 0,
      "steps": 38,
      "ok": true,
      "finishedAt": "2026-08-14T12:34:49.483Z"
    },
    "quickCheck": {
      "running": true,
      "currentStep": "state:html:early",
      "currentStepStartedAt": "2026-08-19T10:59:39.088Z",
      "currentStepElapsedMs": 0,
      "steps": 22,
      "ok": false,
      "finishedAt": ""
    }
  },
  "gates": [
    {
      "id": "launchd",
      "title": "macOS launchd 排程",
      "status": "ready",
      "ok": true,
      "detail": "loaded / not running / exit 0",
      "href": "automation-launchd.html"
    },
    {
      "id": "run-and-verify",
      "title": "完整流程驗收",
      "status": "ready",
      "ok": true,
      "detail": "41 steps",
      "href": "automation-run-and-verify.html"
    },
    {
      "id": "quick-check",
      "title": "快速健檢",
      "status": "needs_attention",
      "ok": false,
      "detail": "22 steps",
      "href": "automation-check.html"
    },
    {
      "id": "readiness",
      "title": "週四 06:00 readiness",
      "status": "ready",
      "ok": true,
      "detail": "11/11 ready",
      "href": "automation-readiness.html"
    },
    {
      "id": "links",
      "title": "本地連結",
      "status": "ready",
      "ok": true,
      "detail": "992 ok / 0 error",
      "href": "automation-links.html"
    },
    {
      "id": "ui-smoke",
      "title": "視覺層 smoke test",
      "status": "ready",
      "ok": true,
      "detail": "725 checks",
      "href": "automation-ui-smoke.html"
    },
    {
      "id": "daily-brief",
      "title": "10:00 閱讀入口",
      "status": "ready",
      "ok": true,
      "detail": "3 papers / 2 manual",
      "href": "daily-brief.html"
    },
    {
      "id": "status",
      "title": "交給排程狀態",
      "status": "ready",
      "ok": true,
      "detail": "ready",
      "href": "automation-status.html"
    },
    {
      "id": "freshness",
      "title": "報表新鮮度",
      "status": "ready",
      "ok": true,
      "detail": "44/51 fresh",
      "href": "automation-freshness.html"
    }
  ],
  "artifacts": [
    {
      "title": "控制中心",
      "href": "index.html",
      "description": "日常入口"
    },
    {
      "title": "10:00 Daily Brief",
      "href": "daily-brief.html",
      "description": "閱讀入口"
    },
    {
      "title": "n8n-like automation map",
      "href": "automation-map.html",
      "description": "節點視覺化"
    },
    {
      "title": "State JSON",
      "href": "automation-state.json",
      "description": "總狀態快照"
    },
    {
      "title": "Launchd report",
      "href": "automation-launchd.html",
      "description": "排程與 log"
    },
    {
      "title": "OpenWiki",
      "href": "openwiki/quickstart.md",
      "description": "本地論文 wiki"
    },
    {
      "title": "GPT handoff",
      "href": "runs/2026-07-25/gpt-pro-handoff.md",
      "description": "人工貼給 GPT Pro"
    },
    {
      "title": "Manual actions",
      "href": "manual-actions.html",
      "description": "人工待辦"
    }
  ],
  "articles": [
    {
      "title": "Total Hip Arthroplasty Infection Review",
      "journal": "Example Orthopaedic Journal",
      "published": "",
      "status": "",
      "relevance": "骨科",
      "studyType": "Meta-analysis",
      "subspecialty": "Adult Reconstruction",
      "wikiStatus": "updated",
      "wikiPath": "openwiki/papers/10.0000-example.tha-pji.md",
      "gptHandoff": "runs/2026-07-25/gpt-pro-handoff.md"
    },
    {
      "title": "Osteoporosis Drug Safety Update",
      "journal": "Example Medical Journal",
      "published": "",
      "status": "",
      "relevance": "可能相關",
      "studyType": "Systematic review",
      "subspecialty": "Bone Metabolism",
      "wikiStatus": "needs_review",
      "wikiPath": "openwiki/papers/10.0000-example.osteoporosis.md",
      "gptHandoff": "runs/2026-07-25/gpt-pro-handoff.md"
    },
    {
      "title": "Orthopaedic Trauma Image Case",
      "journal": "Example Clinical Images",
      "published": "",
      "status": "",
      "relevance": "骨科",
      "studyType": "Case / Image",
      "subspecialty": "Trauma",
      "wikiStatus": "needs_review",
      "wikiPath": "openwiki/papers/orthopaedic-trauma-image-case.md",
      "gptHandoff": "runs/2026-07-25/gpt-pro-handoff.md"
    }
  ],
  "manualActions": [
    {
      "id": "fixture-osteoporosis-safety:error:kjxt6e",
      "priority": "low",
      "type": "Status note",
      "title": "處理狀態備註",
      "paperTitle": "Osteoporosis Drug Safety Update",
      "reason": "影音轉錄失敗；不阻塞導讀",
      "doneWhen": "status.json 的 errors 已確認保留為人工缺口，或已移除已解決備註。",
      "files": [
        {
          "title": "status.json",
          "href": "runs/2026-07-25/status.json"
        },
        {
          "title": "report.md",
          "href": "runs/2026-07-25/report.md"
        }
      ],
      "commands": [
        "npm run check -- runs/2026-07-25/status.json"
      ]
    },
    {
      "id": "fixture-trauma-image:error:kos7zq",
      "priority": "low",
      "type": "Status note",
      "title": "處理狀態備註",
      "paperTitle": "Orthopaedic Trauma Image Case",
      "reason": "期刊登入 session 可能需重新登入",
      "doneWhen": "status.json 的 errors 已確認保留為人工缺口，或已移除已解決備註。",
      "files": [
        {
          "title": "status.json",
          "href": "runs/2026-07-25/status.json"
        },
        {
          "title": "report.md",
          "href": "runs/2026-07-25/report.md"
        }
      ],
      "commands": [
        "npm run check -- runs/2026-07-25/status.json"
      ]
    }
  ],
  "sourceReports": {
    "automation-status.json": true,
    "automation-launchd.json": true,
    "automation-check.json": true,
    "automation-readiness.json": true,
    "automation-links.json": true,
    "daily-brief.json": true,
    "automation-timeline.json": true,
    "automation-freshness.json": true,
    "automation-capabilities.json": true,
    "automation-impact.json": true,
    "automation-ui-smoke.json": true,
    "automation-run-and-verify.json": true,
    "automation-log.json": true
  },
  "commands": {
    "runAndVerify": "npm --prefix \".\" run automation:run-and-verify",
    "quickCheck": "npm --prefix \".\" run automation:check -- runs/2026-07-25/status.json",
    "installLaunchd": "npm --prefix \".\" run launchd:install",
    "kickstartLaunchd": "npm --prefix \".\" run launchd:kickstart",
    "refreshState": "npm --prefix \".\" run state:html -- runs/2026-07-25/status.json"
  },
  "notes": [
    "這是總狀態快照，給人和腳本快速判斷目前自動化是否可靠。",
    "主流程仍是 local-only；GPT Pro、Notion sync、live PubMed search 不在自動排程主流程內。",
    "manualItems 不阻塞 06:00 自動跑，也不阻塞 10:00 閱讀，只代表需要人工補完的品質項目。"
  ]
}
