📌 專案摘要與架構定位 📌 Executive Summary & Sidecar Architectural Positioning
本儲存庫為一項企業管治示範專案,展示如何運用 Microsoft 365 標準組件與確定性「治理即代碼」(Governance-as-Code)搭建無授權邊緣採集前置層(Sidecar Pattern)。
This repository is an Enterprise Demo showcasing a Zero-License Edge Intake (Sidecar) Pattern using M365 and deterministic Governance-as-Code.
企業內部已建置運作穩定的既有核心績效評估系統(Core Appraisal System),但基於授權成本與資安隔離考量,並未開放前線日薪/工地員工帳號登入。EnterpriseDemo-DailyStaffAppraisal 在完全不更動既有核心系統、亦不增加前線員工軟體授權的前提下,透過 Microsoft 365 標準連接器(Forms、Power Automate、SharePoint Online 及 Outlook) 搭建自動化前置採集與加權定級層。
While the enterprise operates a mature Core Appraisal System for HR archiving and payroll reconciliation, frontline daily-paid site workers are not provisioned with M365 licenses or core system logins. EnterpriseDemo-DailyStaffAppraisal acts as a non-invasive Zero-License Edge Intake Layer—automating self-assessment capture, URI-encoded supervisor routing, deterministic zero-score enforcement, and weighted grading prior to verified core system entry.
在合規治理定性上,本系統完全基於確定性條件邏輯(Deterministic Conditional Logic)與獲授權監工的實質人工評核,不採用任何機器學習或生成式 AI 演算法,從架構源頭規避《歐盟人工智能法案》(EU AI Act)附件三高風險 AI 監管門檻,並全面對齊香港《個人資料(私隱)條例》(第 486 章)、ISO/IEC 27001 及 ISO/IEC 27701 控制基準。
By relying strictly on deterministic conditional rules (Non-AI) and authenticated human-in-the-loop supervisory sign-off, the workflow intentionally remains outside the scope of High-Risk AI regulations (EU AI Act Annex III, ISO/IEC 42001) while enforcing strict compliance with Hong Kong PDPO (Cap. 486), ISO/IEC 27001, and ISO/IEC 27701.
🏛️ 流程生命週期與雙問卷接力閉環 🏛️ End-to-End Workflow Lifecycle & Closed-Loop Relay
為解決前線員工「無企業帳號登入」與傳統紙本評核「難以落實權重與防呆」的雙重痛點,系統透過雙問卷與雙自動化流程實現端到端閉環管理:
To reconcile anonymous frontline accessibility with authenticated supervisory accountability, the system orchestrates two forms and two cloud flows into a closed-loop pipeline:
公開問卷(Anyone can respond),4 節分支自動區分一般工種與工頭題目。Public form with 4-section conditional branching for general trades vs. foremen.
正規化員工編號,自動指派 W1/W2 範本,組裝 URI 編碼連結電郵通知監工。Normalizes Staff ID, assigns W1/W2 template, and emails URI-encoded Form B link.
限內部帳號登入(Only people in my org),自動帶出工友資料並要求填寫創新實證。M365 login required; pre-fills worker context and captures Q03 innovation proof.
第 3 題無具體事項自動覆寫為 0 分;SharePoint 即時計算加權總分與等級 A–E。Forces Q03 = 0 if unsubstantiated; calculates weighted total, %, and Grade A–E.
系統自動電郵通知 HR 及行政團隊核對計算結果,安全錄入既有核心評估系統。Notifies HR Admin with verified scores and direct list link for core system entry.
📋 業務治理與權限隔離矩陣 📋 Governance & Access Isolation Matrix
| 階段Stage | 責任角色Role | 承載平台Platform | 處置動作與內控審計機制Action & Governance Control |
|---|---|---|---|
| 一、前線自評1. Self-Appraisal | 日薪工友Daily Worker | Microsoft Forms(問卷 A)Microsoft Forms (Form A) | 免登入掃碼填報基本資料與自評分數;僅具單向寫入權限(Write-Only),無法讀取後端清單。Anonymous QR submission with 4-section branching; write-only ingress with zero backend read access. |
| 二、路由分流2. Dynamic Routing | 自動化流程一Flow 1 Engine | Power Automate | 執行 trim(toUpper()) 清洗編號,按職位自動判定 W1(100分)或 W2(150分),組裝 encodeUriComponent 預填連結。Normalizes Staff ID, classifies W1 (100pt) vs W2 (150pt), and builds URI-encoded pre-filled link. |
| 三、主管評核3. Supervisor Review | 地盤監工Site Supervisor | Microsoft Forms(問卷 B)Microsoft Forms (Form B) | 強制企業 M365 帳號登入驗證,留存提交者身份與 UTC 時間戳記;第 3 題須填寫創新具體事例。Enforces corporate M365 authentication and audit trail; requires concrete substantiation for Criterion 3. |
| 四、防呆定級4. Rule Enforcement | 流程二與資料庫Flow 2 & SharePoint | Power Automate + Lists | 自動檢核 Q03 實證黑名單,無實證強制計 0 分;4 個計算欄即時運算加權總分、百分比、5分制平均分及等級 A–E。Deterministic zero-score override for unsubstantiated Q03; auto-calculates weighted total, %, 5-pt avg, and Grade A–E. |
| 五、核心歸檔5. Core Archiving | HR 行政團隊HR Admin Team | Outlook + 既有核心系統Outlook + Core HR System | 接收完成通知電郵後,於受控權限之 SharePoint 清單核對取數並錄入既有核心評估系統,定期清理暫存紀錄。Reviews verified summary in restricted SharePoint list and reconciles into the legacy Core Appraisal System. |
🧮 互動式加權計分與「無實證即零分」防呆模擬器 🧮 Interactive Weighted Scoring & Zero-Score Governance Simulator
切換評估範本(W1 一般工種 100 分制 / W2 工頭 150 分制)或將第 3 題「創造力具體事項」改為「無 / N/A / 留空」,即時驗證確定性規則引擎的運算結果:
Toggle between W1 (100-pt) and W2 (150-pt) templates or enter 無 / N/A / blank in Q03 Justification to observe the deterministic governance engine in real time:
| # | 能力評估指標Competency Criterion | 權重Weight | 評分 (1–5)Rating (1–5) | 加權得分Weighted Score |
|---|
⚙️ 技術亮點與合規工程實踐 ⚙️ Technical & Compliance Engineering Highlights
1. 零授權邊緣採集前置層Zero-License Edge Intake
在不更動既有核心人事系統、亦不購買前線 M365 授權的前提下,透過標準連接器實現前線掃碼採集與自動定級。Bridges non-licensed frontline workers with an existing core appraisal system using pure M365 Standard Connectors.
2. 實證強制零分防呆引擎Zero-Score Rule Engine
透過 contains(createArray(...), trim(toLower(coalesce(...)))) 過濾無效敷衍字眼,杜絕無實證「人情分」。Deterministically overrides Q03 rating to 0 when justification text is blank or matches placeholder blacklists.
3. 雙軌動態模板與分支轉型Dynamic W1/W2 & Null-Safe Cast
按職位自動路由 10 題(W1)或 15 題(W2)範本,並以 if(empty(...), 0, int(...)) 防止跳題空字串引發執行期報錯。Auto-routes W1 (100-pt) vs W2 (150-pt) templates and applies null-safe integer casting for skipped branch questions.
4. URI 編碼預填網址接力URI-Encoded URL Relay
利用 encodeUriComponent() 安全封裝中文姓名與職位參數,確保預填連結在桌面及手機版 Outlook 穩定開啟。Encodes Traditional Chinese parameters via encodeUriComponent() so pre-filled Form B links never break across mail clients.
5. 確定性非 AI 治理邊界Non-AI Regulatory Scope-Out
刻意採用透明確定性算術規則與人工主管簽核,主動排除歐盟 AI 法案(EU AI Act)高風險 AI 系統合規負擔。Transparent rule-based arithmetic with human-in-the-loop review intentionally avoids High-Risk AI regulatory overhead.
6. PDPO 與 ISO 雙標準對齊PDPO & ISO Alignment
前端嵌入雙語《收集個人資料聲明》(PICS),後端實施最小權限清單隔離與審計時間戳記,對齊 Cap. 486 與 ISO 27001/27701。Embeds bilingual PICS notices, enforces write-only ingress isolation, and aligns with HK PDPO Cap. 486 and ISO 27001/27701.