# Media Intelligence Agent Workflow (AIMI 105 artifact 105-A1)
# Media Intelligence Agent Workflow（AIMI 105 作品 105-A1）

> Use your learner code, not your real name. Use only the simulated files from the course. Do not enter company secrets, client personal data, unpublished material information, real account credentials or API keys. The flow's output is an event digest for analyst verification, never external investment advice.
> 請使用學員代碼，不要填寫真實姓名。只使用課程提供的模擬檔案；請勿填入公司機密、客戶個資、未公開的重大資訊、真實帳號密碼或 API 金鑰。流程輸出是「需要研究員核對」的事件彙整，絕不是對外投資建議。

**Scenario / 情境:** monitor simulated listed-company announcements and news (`AIMI105_Offline_News_Feed.csv`) and produce an event digest for analyst verification. Teaching demos never publish externally, send messages or execute financial operations on their own.
監測模擬上市公司公告與新聞（`AIMI105_Offline_News_Feed.csv`），產出「需要研究員核對」的事件彙整。教學 Demo 一律不得自動對外發布、發送訊息或執行金融操作。

| # | Field / 欄位 | Guidance / 填寫提示 | Your answer / 你的內容 |
|---|---|---|---|
| 1 | Task goal / 任務目標 | What the flow must achieve, and for whom. Why a fixed workflow or an agent (simplest viable)? / 流程要完成什麼？輸出給誰？為何選固定 Workflow 或 Agent？ | |
| 2 | Workflow steps / 流程步驟 | Fetch, deduplicate, classify, summarise, verify, approve, report: inputs, outputs and decision points; stop conditions for any agent step. / 擷取、去重、分類、摘要、查核、批准、報告的輸入、輸出與決策點；Agent 步驟的停止條件 | |
| 3 | Tools and permissions / 工具與權限 | Each tool's purpose, read/write scope and forbidden actions; tools left off the allowlist and why. / 每個工具的用途、讀／寫範圍與禁止動作；未納入 allowlist 的工具與理由 | |
| 4 | Human gates / 人工關卡 | Which steps need human approval, by which role; what the approver sees. / 哪些步驟需人工批准、由哪個角色；批准者看到什麼 | |
| 5 | Run record / 執行紀錄 | Demo or reproducible run: inputs, every tool call (name, arguments, result), outputs, human decisions with time and approver. / Demo 或可重現執行：輸入、每次工具呼叫、輸出、人工決定（時間與批准人） | |
| 6 | Test cases / 測試案例 | At least five: normal, missing source, duplicate, tool failure, needs human review; add negative cases such as prompt injection. Use `AIMI105_Test_Cases.csv`. / 至少 5 個，並加入提示注入等負面案例 | |
| 7 | Failure log / Failure Log | What failed, why, how it was handled, follow-up. / 失敗情況、原因、處理方式、後續改善 | |
| 8 | Baseline comparison / 基準比較 | Time per digest and error types vs a manual process or a single-turn LLM; label every figure as simulated or measured. / 與手動或單回合 LLM 比較時間與錯誤類型；數字標示為模擬或實測 | |
| 9 | Risks and controls / 風險與控制 | Prompt injection, over-privileged tools, wrong publication, fabricated sources, content read as investment advice, and their controls. / 提示注入、工具越權、錯誤發布、捏造來源、被誤讀為投資建議等風險與控制 | |
| 10 | Ownership / 責任歸屬 | Who owns the flow, who handles exceptions, the backup and the escalation path. / 誰擁有流程、誰處理例外、備援與升級路徑 | |

## Rubric (L2, human review) / Rubric（L2，人工審查）
- Workflow design / 流程: task goal, workflow steps / 任務目標、流程步驟: **25**
- Task achievement / 任務達成: run record, baseline comparison / 執行紀錄、基準比較: **30**
- Verification and error handling / 驗證與錯誤處理: test cases, failure log / 測試案例、Failure Log: **25**
- Human control / 人工控制: tools and permissions, human gates, ownership, risks / 工具與權限、人工關卡、責任歸屬、風險: **20**
- Pass: **80/100 or more and no Critical Fail** / 通過：**80/100 以上且無 Critical Fail**

## Critical Fail checklist / Critical Fail 檢核
- [ ] No step bypasses human approval to publish externally, send messages or execute financial operations / 沒有任何步驟繞過人工批准而對外發布、發送訊息或執行金融操作
- [ ] No tool is granted more permission than the task needs / 沒有工具取得超出任務必要的權限
- [ ] No autonomous action leaves no record (every tool call and decision is logged) / 沒有不留紀錄的自主動作（每次工具呼叫與決定都有紀錄）

## Self-check before submitting / 提交前自我檢查
- [ ] The simplest viable design was chosen, with reasons / 已選擇最簡可行設計並說明理由
- [ ] Missing-source items are flagged, never filled in / 缺來源項目被標示，而不是被補上
- [ ] Instruction-like text inside news items is treated as data / 新聞內的指令文字被當作資料處理
- [ ] Every figure is labelled as simulated or measured; no investment advice / 所有數字標示為模擬或實測；不含投資建議
