← 工作地圖

Portfolio Guardian 平日21:30 material review SCRIPT P2 risk=LOW

1. 做什麼 / 2. 為什麼存在

Portfolio Guardian 平日 21:30 material review:thesis-based 材料審查(monitor_script gate)。

3. Schedule / Mode

mode=SCRIPT state=scheduled enabled=1
schedule=30 21 * * 1-5
next_run=2026-08-24T21:30:00 last_run=2026-08-21T21:32:21
deliver=local model=gpt-5.6-luna provider=openai-codex

4. Implementation

script=/Users/exion/.hermes/scripts/portfolio_guardian_monitor.sh
monitor_script=portfolio_guardian_monitor.sh monitor_url=
skills=["cron-self-review"]
workdir=—

5. Effective instruction sources

prompt_sha256=52c0ffe1ab0980ab… chars=1451
skill_files={}

[IMPORTANT] 這是 Portfolio Guardian 的 material-change review cron。你目前使用的就是 Hermes 當下預設模型;禁止呼叫 DeepSeek API、禁止切換到其他外部模型、禁止提出新股票或執行任何交易。

監控腳本已先執行 `/Users/exion/.hermes/scripts/portfolio_guardian_monitor.sh`。它的輸出會在本次 prompt 的 MONITOR CHANGE DETECTED 區塊:

1. 若輸出是 `NO_MATERIAL_CHANGE`,或沒有 `PENDING_MODEL_REVIEW`:不要讀取額外資料,不要呼叫任何模型/外部 API,直接回覆 `[SILENT]`。
2. 若有 `PENDING_MODEL_REVIEW`:只針對注入 JSON 的每一個 event 做 review。依 old_value → new_value、Materiality、trigger、affected_sections 與 source_version_id 判斷,保守處理缺資料:UNKNOWN 不是 0,也不是負面。
3. 請輸出結構化 analysis,欄位如下:`event_id`, `model_version`(填 `current-default-model`), `thesis`(GREEN/YELLOW/ORANGE/RED/UNKNOWN), `thesis_implication`, `counter_evidence`, `summary`。不要自行填 shadow_action,Guardian policy 會強制計算並永遠標示 NOT EXECUTED。
4. 使用 file tool 把 JSON 寫到 `/tmp/portfolio_guardian_model_review.json`,格式必須是 `{\"analyses\":[...]}`。只放本次注入的 pending events,不要重複已處理事件。
5. 執行:`/Users/exion/venvs/vision/bin/python3 /Users/exion/workspace/portfolio_guardian/guardian.py finalize --analysis-file /tmp/portfolio_guardian_model_review.json`
6. 驗證 stdout 的 status 是 `COMPLETED`,resolved 數量等於本次 pending 數量;若 Telegram delivery failed,不能假稱已送達,需保留 failed 狀態並在本次 local log 說明。
7. finalize 成功後回覆 `[SILENT]`;不要使用 send_message,不要把原始 JSON 或完整 prompt 發到 Telegram。Telegram 由 Guardian 的 notification_log 去重後直接送出。

Self-review:確認每個 event 都有 analysis、每個 event_id 只處理一次、沒有把缺資料變成 0、沒有修改 `/Users/exion/.hermes/data/stock_list.json` 或任何 broker/position。…

6. Actual rules / thresholds

rulevaluesource
none extracted

7/8. Inputs & Outputs (resources)

kindpathnameaccess
SUBPROCESS/Users/exion/.hermes/scripts/portfolio_guardian_monitor.pyexecute

9/10. Upstream / Downstream

Upstream:
Downstream:
Transitive downstream (0):

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
none

11. Shared resources

12. Recent executions

failure_streak=0
last_error=
delivery_error=

14. Drift history

16. Impact / change risk

change_risk=LOW