-
Notifications
You must be signed in to change notification settings - Fork 0
feat(analysis): add recurring pattern detection for governance events #318
Copy link
Copy link
Closed
Labels
P1Priority 1 — should havePriority 1 — should haveenhancementNew feature or requestNew feature or request
Description
Context
Morning summary(fagemx/thyra#224)需要查 Edda 發現重複出現的問題。例如:「Safety Chief 已經連續 3 天 rollback 活動獎勵,根因可能是 Event Chief 設定過高」。
What Needs to Happen
- 分析 API:GET /api/patterns?village_id=xxx&lookback_days=7
- 偵測:同類型 decision 重複出現(>= 3 次 within window)
- 偵測:同 chief 連續相同 action
- 偵測:rollback 頻率上升趨勢
- 回傳:pattern description + 出現次數 + 時間分布
- Phase 1 可用簡單 SQL 聚合
- Phase 2 可用 LLM 做更深度分析
References
- Cross-repo: feat(market): summary generator queries Edda for historical insights thyra#224 (summary queries for insights)
- Cross-repo: feat(chief): query Edda precedents before making decisions thyra#222 (chiefs can also query patterns)
Midnight Market: from logbook to intelligence
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1Priority 1 — should havePriority 1 — should haveenhancementNew feature or requestNew feature or request