Skip to content

feat(analysis): add recurring pattern detection for governance events #318

@fagemx

Description

@fagemx

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


Midnight Market: from logbook to intelligence

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Priority 1 — should haveenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions