本卡屬 FR-166(母卡 CM-母卡號(建完補)),卡 P2-5,階段 P2 離線能做事、批 4。只改 evidence-agent。依賴:P2-1、P2-4。

這張卡做什麼(白話)

網路除錯的 API:儀表板、目標、開跑(超門檻要確認)、看結果、下載報告。

為什麼切這一張

薄層接 P2-4

reuse/extend/new

extend:掛既有 blueprint;守門 require_session('net-diag');寫入走 P2-1 的 local_runs

在哪裡

repo:~/Projects/Billows/Audit-Manager/evidence-agent
改既有:core/console/netdiag_routes.py(P1-4 已掛的空殼,填內容)

怎麼做

細節在 design.md 對應段(~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-166-2610-agent-standalone-console/design.md §5,開 design.html 看導覽),本段只列本卡要做到的點:

驗收(可親手做、可親眼看)

POST runs 勾全部回 estimate 超門檻需 confirm=true;未同步只准 cloud;報告 txt/pdf 下載過 scope;local_runs kind=diag

對照雛形:~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-166-2610-agent-standalone-console/prototype/index.html(上方「跟著走」)。

紀律