{
  "schema_version": "1.0",
  "baseline": "V4",
  "updated_at": "2026-04-22",
  "owner_session": "B",
  "phase": "Phase 12E — AI Issue Analytics",
  "purpose": "How AI processes a signal → anomaly → issue → case → analysis → recommendation. Every output declares: AI-derived vs source-grounded · confidence · requires_human_review. Inside-out vs outside-in views separated.",
  "hard_rules": [
    "Every AI output here enters at T5 per source_taxonomy.json · promotion to T3/T4 requires human review",
    "Root-cause + contributing-factors analysis cite evidence (signal ref · dashboard ref · journey friction ref)",
    "Short/medium/long-term plans always tie a responsible owner",
    "Proactive vs reactive flag is mandatory per recommendation",
    "Faithfulness floor <0.70 → regenerate · <0.70 second time → decline (DOC-007 §7)"
  ],
  "pipeline_stages": [
    {
      "id":"stage-anomaly",
      "label_th":"ความผิดปกติ","label_en":"Anomaly","label_zh":"异常",
      "purpose_th":"ตรวจจับ signal ที่ deviate จาก benchmark · Z-score/EWMA/IQR per CLAUDE.md",
      "purpose_en":"Detect signals deviating from benchmark · Z-score/EWMA/IQR per CLAUDE.md",
      "purpose_zh":"侦测偏离基准的信号 · 按 CLAUDE.md 使用 Z-score/EWMA/IQR",
      "outputs":["anomaly_id","metric_ref","deviation","confidence"],
      "ai_derived": true, "requires_human_review": false,
      "honest_note": "Algorithm named in CLAUDE.md Phase 6 · A-owned implementation"
    },
    {
      "id":"stage-case-snapshot",
      "label_th":"สแนปช็อตเคส","label_en":"Case snapshot","label_zh":"案例快照",
      "purpose_th":"แช่แข็งบริบทของ anomaly เป็น case snapshot · signal + dashboard + actor + zone + time",
      "purpose_en":"Freeze the anomaly context as a case snapshot · signals + dashboards + actors + zone + time",
      "purpose_zh":"将异常上下文冻结为案例快照 · 信号 + 仪表板 + 角色 + 区域 + 时间",
      "outputs":["case_snapshot_id","frozen_at","visible_dashboards","filters","raw_data_hash"],
      "ai_derived": false, "requires_human_review": false,
      "honest_note": "This is a snapshot_model.json capture · not an AI output · but it precedes AI analysis"
    },
    {
      "id":"stage-issue-definition",
      "label_th":"นิยามประเด็น","label_en":"Issue definition","label_zh":"问题定义",
      "purpose_th":"AI สรุป 'ปัญหาคืออะไร' จาก snapshot · TH/EN/ZH",
      "purpose_en":"AI summarises 'what the issue is' from the snapshot · trilingual",
      "purpose_zh":"AI 从快照中总结'问题是什么' · 三语",
      "outputs":["issue_statement_th","issue_statement_en","issue_statement_zh","confidence"],
      "ai_derived": true, "requires_human_review": true,
      "honest_note": "Faithfulness floor applies · <0.70 retry once then decline"
    },
    {
      "id":"stage-inside-out-analysis",
      "label_th":"วิเคราะห์ inside-out","label_en":"Inside-out analysis","label_zh":"由内而外分析",
      "purpose_th":"AI ดูจาก runtime/operator view · เพราะอะไรในระบบไม่ทำงาน",
      "purpose_en":"AI from runtime/operator view · why the system isn't working",
      "purpose_zh":"AI 从运行/运营视角 · 分析系统为何失灵",
      "outputs":["runtime_gap_list","service_health_snapshot","queue_state"],
      "ai_derived": true, "requires_human_review": true
    },
    {
      "id":"stage-outside-in-analysis",
      "label_th":"วิเคราะห์ outside-in","label_en":"Outside-in analysis","label_zh":"由外而内分析",
      "purpose_th":"AI ดูจากมุมนักท่องเที่ยว/พลเมือง · ประสบการณ์คืออะไร",
      "purpose_en":"AI from tourist/citizen view · what was their experience",
      "purpose_zh":"AI 从游客/市民视角 · 他们的体验是什么",
      "outputs":["tourist_experience_summary","sentiment_breakdown","narrative"],
      "ai_derived": true, "requires_human_review": true
    },
    {
      "id":"stage-root-cause",
      "label_th":"สาเหตุหลัก","label_en":"Root cause","label_zh":"根本原因",
      "purpose_th":"AI เสนอสาเหตุที่น่าจะเป็น · พร้อม confidence + evidence",
      "purpose_en":"AI proposes likely root cause · with confidence + evidence",
      "purpose_zh":"AI 提出可能的根本原因 · 附置信度 + 证据",
      "outputs":["root_cause_candidate","confidence","evidence_refs"],
      "ai_derived": true, "requires_human_review": true,
      "honest_note": "AI never asserts a single root cause as fact · always 'candidate'"
    },
    {
      "id":"stage-contributing-factors",
      "label_th":"ปัจจัยส่งเสริม","label_en":"Contributing factors","label_zh":"辅助因素",
      "purpose_th":"AI ระบุปัจจัยอื่นที่ช่วยให้ปัญหาเกิดขึ้น · ≥3 ปัจจัย ทั่วถึง spatial/behavioral/segment",
      "purpose_en":"AI lists other factors contributing to the issue · ≥3 factors across spatial/behavioral/segment",
      "purpose_zh":"AI 列出促成问题的其他因素 · ≥3 个横跨空间/行为/细分",
      "outputs":["factor_list","spatial_refs","behavioral_refs","segment_refs"],
      "ai_derived": true, "requires_human_review": true
    },
    {
      "id":"stage-owner-mapping",
      "label_th":"มอบหมายเจ้าของ","label_en":"Owner mapping","label_zh":"责任人映射",
      "purpose_th":"จับคู่ root cause กับ actor/service/reviewer ที่ต้องรับผิดชอบ",
      "purpose_en":"Map root cause to actor/service/reviewer responsible",
      "purpose_zh":"将根本原因映射到负责的角色/服务/审核员",
      "outputs":["primary_owner","backup_owner","review_role"],
      "ai_derived": true, "requires_human_review": true,
      "honest_note": "Owner never auto-assigned without human confirmation — sensitive surface"
    },
    {
      "id":"stage-support-stakeholder",
      "label_th":"ผู้สนับสนุน","label_en":"Support stakeholder","label_zh":"支持相关方",
      "purpose_th":"ระบุผู้เกี่ยวข้องที่ต้องแจ้ง/สนับสนุน · ไม่ใช่ owner",
      "purpose_en":"List stakeholders who must be informed or support · not owners",
      "purpose_zh":"列出须通知或支持的相关方 · 非责任人",
      "outputs":["stakeholder_list","notification_channels"],
      "ai_derived": true, "requires_human_review": false
    },
    {
      "id":"stage-plans",
      "label_th":"แผนระยะสั้น/กลาง/ยาว","label_en":"Short/medium/long-term plans","label_zh":"短期/中期/长期方案",
      "purpose_th":"AI เสนอ 3 ชั้นแผน · ทุกตัวมี owner + proactive/reactive flag",
      "purpose_en":"AI proposes 3-tier plan · each with owner + proactive/reactive flag",
      "purpose_zh":"AI 提出 3 层方案 · 各含责任人 + 主动/被动标志",
      "outputs":["short_term_plan","medium_term_plan","long_term_plan","proactive_reactive_flags"],
      "ai_derived": true, "requires_human_review": true
    },
    {
      "id":"stage-ripple",
      "label_th":"ผลกระทบลูกโซ่","label_en":"Ripple impact","label_zh":"涟漪影响",
      "purpose_th":"AI คาดการณ์ผลกระทบต่อ actor/zone/service อื่นที่ไม่ได้อยู่ใน root cause ตรง",
      "purpose_en":"AI predicts impact on other actors/zones/services beyond direct root cause",
      "purpose_zh":"AI 预测对根因以外其他角色/区域/服务的影响",
      "outputs":["ripple_actors","ripple_zones","ripple_services","timing_horizon"],
      "ai_derived": true, "requires_human_review": true
    },
    {
      "id":"stage-follow-up",
      "label_th":"ติดตามผล","label_en":"Follow-up","label_zh":"后续跟进",
      "purpose_th":"กำหนดจังหวะการตรวจผลของแผน · recurrence alarm · vaccinate check",
      "purpose_en":"Set cadence for plan outcome check · recurrence alarm · vaccinate check",
      "purpose_zh":"设定方案结果检查节奏 · 复发警报 · 疫苗化检查",
      "outputs":["check_cadence","reopen_threshold","vaccinate_check_date"],
      "ai_derived": true, "requires_human_review": false
    }
  ],
  "dual_views": {
    "description_th":"ทุก case analysis รวมทั้ง inside-out + outside-in · ต้องแสดงคู่กัน · ห้ามโชว์เดี่ยว",
    "description_en":"Every case analysis includes both inside-out + outside-in · must display together · never one alone",
    "description_zh":"每个案例分析须同时包含由内而外 + 由外而内 · 必须一起展示 · 不得单独"
  },
  "proactive_vs_reactive_rule": {
    "proactive_th":"ก่อนเหตุเกิด · vaccinate · data vaccine · regulation update",
    "proactive_en":"Before incident · vaccinate · data vaccine · regulation update",
    "reactive_th":"หลังเหตุเกิด · stabilise · rehabilitate · 5-step immune response",
    "reactive_en":"After incident · stabilise · rehabilitate · 5-step immune response",
    "balance_rule":"Every case must produce ≥1 proactive plan (to prevent recurrence) · not only reactive"
  },
  "ai_labeling_discipline": {
    "every_output_must_declare":["ai_derived (bool)","confidence (low/medium/high)","requires_human_review (bool)","source_refs[]","faithfulness_score"],
    "promotion_path":"T5 → reviewer-signed → T4 or higher · never silent",
    "decline_rule":"If faithfulness < 0.70 after one retry · decline + suggest official source"
  },
  "phase_linkage": {
    "12F_sub1_navigator":"Every stage output that is ai_derived=true + requires_human_review=true appears in SUB-1 review queue",
    "case_issues_portal":"Case detail UI renders pipeline_stages 1-12 in order · see case_portal.json"
  }
}
