# DS 251 KPI Evidence Handoff Package (artifact 201-A1) / KPI 證據交接包（作品 201-A1）

> **Synthetic data / 合成資料.** Work only from the course files (`power-demo-v1`). Use your learner code, not your real name. Do not enter company secrets, client personal data, real meter or tenant data, or any unauthorised sensitive information.
> 只使用課程檔案（`power-demo-v1`），以學員代碼代替真實姓名。請勿填入公司機密、客戶個資、真實電表或租戶資料，或任何未經授權的敏感資訊。

> **Human → AI → Human.** Code and AI tools may help you clean, compute and draft. You set the rules, recompute the numbers, check the evidence and remain accountable. Classroom output is a teaching review record, not professional assurance.
> 程式與 AI 工具可以協助清理、計算與起草；規則由你訂定、數字由你重算、證據由你查核，責任也由你承擔。課堂產出是教學覆核紀錄，不是專業確信。

Learner code / 學員代碼: `________`  Cohort code / 梯次代碼: `________`  Variant(s) run / 執行的變體: `F1 / F2 / F3`

## The ten fields / 十個欄位

### 1. KPI scope / KPI 範圍 (`kpiScope`)
The question, building, meter, both periods with time zone, and the KPI (daily kWh and coverage).
問題、建物、電表、兩個期間與時區，以及 KPI（每日 kWh 與完整率）。

### 2. AIoT flow / AIoT 流程 (`aiotFlow`)
Meter → gateway → MQTT broker → ingestion → downstream use. One transmission risk per step (resend, delay, unit mix, missing interval, wrong meter). Describe your diagram in words.
電表 → 閘道器 → MQTT Broker → 匯入服務 → 下游用途。每一步寫一項傳輸風險，並以文字描述你的流程圖。

### 3. Meter and periods / 電表與期間 (`meterAndPeriods`)
Registry entry, interval length and convention (left-closed, right-open, labelled by start), expected intervals per day and per period.
登錄表資料、區間長度與慣例（左閉右開、以起點標示）、每天與每期的預期區間數。

### 4. Data contract / 資料契約 (`dataContract`)
Logical key, time normalisation, accepted units and the Wh → kWh rule, accepted values, meter mapping, and the schema and transform versions.
邏輯唯一鍵、時間正規化、可接受的單位與 Wh → kWh 規則、可接受的數值、電表對應，以及 schema 與轉換版本。

### 5. Quality rules and decisions / 品質規則與判定 (`qualityRules`)
For each variant you ran: the rules triggered (rule id, severity, action, affected reading ids) and your decision (keep / observe only / block) with the reason.
對每個你執行的變體：觸發的規則（規則編號、嚴重度、處置、受影響的 reading id），以及你的判定（保留／只當觀測值／阻擋）與理由。

| Variant / 變體 | Rules found / 觸發規則 | Period C coverage / C 期完整率 | Decision and reason / 判定與理由 |
|---|---|---|---|
| F1 | | | |
| F2 | | | |
| F3 | | | |

### 6. KPI results and chart / KPI 結果與圖表 (`kpiResults`)
Period totals with coverage and status. The change percentage only if every comparability condition holds; otherwise say why it is withheld. Describe the chart (axes from zero, status labels in text) and give its table.
期間總量、完整率與狀態。只有所有可比較條件都成立時才寫變動率，否則說明暫緩的理由。描述圖表（縱軸從零開始、以文字標狀態）並附表格。

### 7. Evidence index / 證據索引 (`evidenceIndex`)
How each KPI row links to its source reading ids, data version and transform version. Give one traced example from KPI row to source rows.
每列 KPI 如何連到來源 reading id、資料版本與轉換版本。附一個從 KPI 列追到來源列的實例。

### 8. Limitations / 限制 (`limitations`)
Gaps, blocked days, what the change does not show (cause, weather, occupancy, holidays), and why Scope 2 is out of scope (no emission factor, no inventory boundary).
缺口、被阻擋的日期、變動率不能說明的事（原因、天氣、使用人數、假日），以及為何不處理 Scope 2（沒有排放係數與盤查邊界）。

### 9. Handoff manifest / 交接清單 (`handoffManifest`)
`schema_version`, `data_version`, `transform_version`, `package_origin` (`student`), `timezone`, the file list, and where the files are (the form, or the campus LMS if the form cannot hold them).
寫出上列欄位、檔案清單，以及檔案放在哪裡（表單，或表單放不下時的校內 LMS）。

### 10. Human review / 人工覆核 (`humanReview`)
Who recomputed which numbers (learner codes), what matched or differed, which version they checked against, and what you corrected.
誰重算了哪些數字（學員代碼）、哪些相符或不同、比對的版本，以及你修正了什麼。

## Rubric / 評分量規（DS 251 project part, 40 points / DS 251 專題部分，40 分）

| Module / 模組 | Item / 項目 | Points / 分數 | Fields / 欄位 | What earns the points / 給分依據 |
|---|---|---:|---|---|
| M1 | AIoT architecture and data definitions / AIoT 架構與資料定義 | 10 | 1–3 | Flow covers sensing, transmission, ingestion and downstream use; interval and kW versus kWh identified / 流程包含感測、傳輸、匯入與下游用途，辨識量測區間與 kW／kWh |
| M2 | Data contracts and quality checks / 資料契約與品質檢查 | 15 | 4–5 | Key and unit defined; resend, gap and conflict told apart; every decision keeps its reason / 定義唯一鍵與單位，區分重送、缺值與衝突，保存處理理由 |
| M3 | KPI and evidence handoff / KPI 與證據交接 | 15 | 6–10 | Energy, coverage and limits recomputable; chart and data versions traceable / 用電量、完整率與限制可重算，圖表與資料版本可回查 |

The campus course grades the project (DS 251 40 points, DS 252 60 points; taken alone, the score is converted to 100 with 70 recommended to pass). There is no platform certificate for DS 251 at present. You may revise and resubmit against the same rubric.
專題由校內課程評分（DS 251 40 分、DS 252 60 分；單獨修課時換算為 100 分，建議 70 分及格）。DS 251 目前沒有平台證書。可依同一份量規修訂後重新提交。

## Peer-recompute checklist / 同儕重算檢核表

Reviewer learner code / 覆核者學員代碼: `________`  Data version checked / 比對的資料版本: `________`

- [ ] The manifest names `schema_version`, `data_version`, `transform_version` and `package_origin`, and the files listed are present / 清單欄位齊全，列出的檔案都在
- [ ] One daily KPI row traced through `evidence-index.csv` to its source reading ids, and those rows found in the readings file / 一列每日 KPI 透過證據索引追到來源讀值，並在讀值檔找到那些列
- [ ] That day's kWh and coverage recomputed by hand or spreadsheet, applying the quality log (resends once, Wh ÷ 1,000, gaps not zero) / 套用品質紀錄手算或用試算表重算該日 kWh 與完整率
- [ ] One period total recomputed from the daily rows / 從每日列重算一個期間總量
- [ ] Every `partial`, `blocked` or `no_data` day is labelled in text in the chart and table / 圖表與表格以文字標出每個 partial、blocked 或 no_data 的日期
- [ ] A change percentage appears only if both periods are complete and comparable / 只有兩期都完整且可比較時才出現變動率
- [ ] No claim attributes the change to a measure, and no Scope 2 figure appears / 沒有把變化歸因到措施，也沒有 Scope 2 數字
- [ ] Result recorded: match / mismatch, the interval or rule behind any mismatch, and one improvement / 記錄結果：相符／不符、不符的區間或規則，以及一項改進建議
