4726 Commits

Author SHA1 Message Date
OG T
342a0f611a feat(k8s): enable Signal Worker (Phase 8 go-live)
Enable Signal Worker to process Redis Streams signals
and trigger Incident Engine for alert aggregation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 01:08:46 +08:00
OG T
e4bd030882 fix(api): use INTERVAL syntax to avoid ClickHouse Decimal overflow
The toDateTime64(nanoseconds, 9) caused Decimal overflow.
Switched to simpler `now() - INTERVAL X MINUTE` syntax.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:57:45 +08:00
OG T
7f2adab78b fix(api): query correct SigNoz traces table (v3 not v2)
The SignOz trace data is stored in distributed_signoz_index_v3,
not v2. This fixes GlobalPulse showing all zeros.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:50:15 +08:00
OG T
b00f318450 fix(api): correct OTEL gRPC endpoint format and SignOz query table
Root cause analysis:
1. OTEL gRPC endpoint had http:// prefix which is invalid for gRPC
2. SignOz query was targeting wrong table (signoz_metrics.distributed_samples_v4)
3. Should query signoz_traces.distributed_signoz_index_v2 for trace data

Fixes:
- Remove http:// prefix from OTEL_EXPORTER_OTLP_ENDPOINT (gRPC needs host:port)
- Update SignOz client to query traces table instead of metrics table
- Fix timestamp format (nanoseconds for DateTime64(9))
- statusCode: 0=Unset, 1=Ok, 2=Error

This should enable OTEL traces to reach SigNoz and GlobalPulse to show real metrics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:41:51 +08:00
OG T
fea6524f35 feat(ci): upgrade Telegram notification UX with HTML + Inline Keyboard
- Replace flat text format with structured HTML layout
- Add emoji section headers and visual separators
- Replace raw URLs with Inline Keyboard buttons
- Success: "查看部署紀錄" + "開啟正式站" buttons
- Failure: Only "查看部署紀錄" button
- Use JSON payload for proper Telegram API formatting

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:37:26 +08:00
OG T
7c1480186f docs: update LOGBOOK with Phase 8 fixes and Claude Skills
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:21:17 +08:00
OG T
c66b4dfb22 feat(agents): implement 6 core Claude skills for auto-pilot validation
Skills created:
- 01-awoooi-frontend-aesthetics.md: Nothing.tech visual standards + i18n
- 02-lewooogo-backend-core.md: FastAPI four iron laws + OTEL
- 03-openclaw-cognitive-expert.md: Incident Engine + Multi-Sig + Redis
- 04-awoooi-devops-commander.md: K3s + Docker + Tier 1-3 authorization
- 05-awoooi-sre-qa.md: Playwright + automated QA (no human testing)
- 06-awoooi-monorepo-master.md: Git + dependencies + LOGBOOK updates

Added skill routing to .awoooi-agent-rules.md Session startup flow.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:20:51 +08:00
OG T
21ce7056fa fix(otel): correct OTEL endpoint to port 24317 and fix NetworkPolicy
- SigNoz OTEL Collector maps container:4317 to host:24317
- Updated NetworkPolicy egress to allow 24317/24318
- Updated ConfigMap with correct OTEL_EXPORTER_OTLP_ENDPOINT
- Fixed OpenClaw port from 8089 to 8088

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 00:06:07 +08:00
OG T
551a305fcf fix(config): rename _OPENCLAW_TG_USER_WHITELIST_RAW to comply with pydantic v2
Pydantic v2 does not allow field names with leading underscores.
Changed from @property pattern to method pattern.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-22 23:40:09 +08:00
OG T
a2f7d128f3 fix: 域名正統化 - https://awoooi.wooo.work
- CORS 加入正式域名
- NEXT_PUBLIC_API_URL 設為 https://awoooi.wooo.work
- pydantic-settings WHITELIST 改用 property 避免 JSON 解析
- Nginx 已配置指向 K3s Worker (121)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 23:28:36 +08:00
OG T
c2b33a99a3 fix(config): 避免 pydantic-settings 自動 JSON 解析 WHITELIST
使用 str + property 取代 list[int] + validator
解決 K8s Secret 注入時的解析錯誤

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 23:18:50 +08:00
OG T
13200076aa fix(ci): AIOPS 正統模式 - 直寫 Telegram Token + Worker 暫停
- Telegram 通知沿用 AIOPS 直寫 Token 寫法
- Worker replicas=0 暫停 (Phase 6.5 完善後啟用)
- 簡化 rollout 流程

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 20:05:02 +08:00
OG T
0c80f6a996 fix(worker): add standalone entry point for K8s deployment
- 新增 __main__ 入口點
- 寫入 health files for K8s probes
- Graceful shutdown 處理

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 19:56:15 +08:00
OG T
5156800217 fix(k8s): AI_FALLBACK_ORDER 也改用 JSON array 格式
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 19:37:51 +08:00
OG T
721cfd1e3b fix(k8s): CORS_ORIGINS 使用 JSON array 格式
pydantic-settings 對 list[str] 欄位要求 JSON 格式

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 19:26:26 +08:00
OG T
d4fbdb0331 fix(k8s): correct image registry path to 192.168.0.110:5000
harbor.wooo.work TLS 證書問題,改用 IP 直連

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 19:17:58 +08:00
OG T
241e105d72 fix(ci): exclude kustomization.yaml from kubectl apply
kustomization.yaml 是給 -k 用的,不能直接 apply

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 19:09:31 +08:00
OG T
cc9c9366e7 fix(web): skip ESLint/TypeScript during Docker build
CI/CD 分離策略:
- ESLint 在獨立 lint job 執行
- TypeScript 在獨立 type-check job 執行
- Build 時跳過以加速 Docker 建置

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 19:06:29 +08:00
OG T
c6a36ab673 fix: simplify Telegram notification format 2026-03-22 19:04:50 +08:00
OG T
d96bd03128 fix: add root monorepo config files (pnpm-workspace.yaml) 2026-03-22 19:00:45 +08:00
OG T
b5d4b50c52 fix: use IP for Harbor registry (avoid TLS cert issue) 2026-03-22 18:59:02 +08:00
OG T
196d269b92 feat: add all application source code
- apps/api: FastAPI backend with Dockerfile
- apps/web: Next.js frontend with Dockerfile
- apps/sensor: Signal collection agent
- packages: shared packages

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 18:57:44 +08:00
OG T
a840bf975b Revert "ci: temp switch to ubuntu-latest for initial test"
This reverts commit 4bf0422363.
2026-03-22 18:37:41 +08:00
OG T
4bf0422363 ci: temp switch to ubuntu-latest for initial test 2026-03-22 18:36:47 +08:00
OG T
f037812f15 feat(phase8): CI/CD Pipeline 與 K8s 部署自動化
Phase 8 CI/CD 藍圖:
- GitHub Actions deploy-prod.yml (沿用 AIOPS 成熟模式)
- Signal Worker K8s Deployment
- Telegram Notify 閉環
- Bootstrap 自動化腳本

架構鐵律:
- Build: 110 金庫 (Harbor + Self-Hosted Runner)
- Deploy: 120 K3s Master
- 嚴禁 Docker Compose,K8s 唯一合法部署

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 18:01:01 +08:00
OG T
ccdf757edd chore: initial commit for AWOOOI project
Phase 0 Day 1 - Project initialization:
- Independent repository (Option A)
- .awoooi-agent-rules.md (AI development contract)
- Project skeleton (apps/web, apps/api, packages, docs)
- ADR template for architecture decisions
- LOGBOOK for progress tracking

Strategic decision: 2026-03-19 Operation Cyber-Shell
Reference: /wooo-aiops/docs/meetings/2026-03-19_FRONTEND_RESTRUCTURE_STRATEGY.md

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-03-19 19:16:12 +08:00