xiaowei
|
2e8ca614fd
|
feat: add static file bypass auth + graph.html API_BASE fix
- Add /static/* route bypass in auth middleware
- Localize d3.min.js (was CDN blocked)
- Fix graph.html API_BASE to server IP for remote access
- Add error logging in graph load function
- Deploy binary at /usr/local/bin/zhiyid (13.5MB, correct cmd/zhiyid path)
|
2026-05-29 21:59:41 +08:00 |
xiaowei
|
648e469dc9
|
feat: Prometheus 监控集成 — /metrics 端点 + 14 指标 + 8 告警规则
- 新增 internal/metrics/metrics.go: 14 个 Prometheus 指标
- server.go: /metrics 替换为 promhttp, 15s 后台同步
- go.mod: 新增 client_golang v1.23.2
- deploy/prometheus.yml: 抓取配置 (zhiyid:7821)
- deploy/prometheus-alerts.yml: 8 条告警规则
- deploy/prometheus.service: systemd unit
|
2026-05-29 02:51:46 +08:00 |
xiaowei
|
08848607fd
|
v3.8 完整代码: Go API + Rust sidecar + ONNX BGE + Client SDK
- 4 大修复: 缺口分类向量化 + Schema 23字段 + Consolidation走Rust IPC + Client SDK
- BGE ONNX: deploy/bge_embed_server.py + systemd unit,1024维本地推理
- Rust sidecar: 8模块完整,DBSCAN/衰减/修剪/质量回溯/整合报告
- Go: zhiyid 7821端口,37个API端点,多Agent架构
|
2026-05-29 01:07:05 +08:00 |
xiaowei
|
bedbe55ad5
|
fix: 6项设计差距补全 — 逐节对照50项→0差距
G1 Recall图谱+预取 (2.6 Step 5-6):
- RecallPipeline: SetGraphExpander + SetPrefetchPusher
- GraphExpander接口: 结果<5条时BFS扩展1跳
- PrefetchBridge: CO_OCCURS权重>0.6→WS推送prefetch.push
- graph_expander.go: InMemoryGraph实现接口
G2 RateLimit (2.7):
- auth.go: 滑动窗口限流, 429带Retry-After/X-RateLimit-Reset
- 120 req/min per agent
G3 WS事件 (2.8):
- ws_events.go: prefetch.push/gap.filled/memory.updated/quality.drop
- gap关闭时自动推送gap.filled
G4 自动蒸馏 (3.1):
- auto_distill.go: commit后→硬规则过滤→蒸馏→图谱更新→冲突→验证
- 降级蒸馏: 关键词提取 (无需LLM)
G5 version_history (3.3.3):
- CausalTracker.Entries() 暴露版本历史
- feedback/correct 路由层自动调用FillVersionHistory+因果链通知
G6 ephemeral命名空间 (1.3):
- /api/v1/admin/ephemeral/clean 端点
- 10分钟定时清理循环
go build: 0 errors, go test: 60 passed
|
2026-05-28 19:01:23 +08:00 |
xiaowei
|
6667d42e14
|
feat(M1): Go API 服务器骨架 + Auth 中间件 + /health 端点
M1.3: Go HTTP 服务器 (net/http, /health, Auth middleware)
M1.4: Protobuf IPC 定义 (Go↔Rust Consolidation 服务)
验收:
- /health → 200 {"status":"ok","service":"zhiyid","version":"0.1.0"}
- 无 X-API-Key → 401
- 正确 Key → 200
- 错误 Key → 401
文件:
- go/cmd/zhiyid/main.go (127 行, 优雅关闭)
- go/internal/api/server.go (31 行, 路由注册)
- go/internal/api/middleware/auth.go (38 行, X-API-Key)
- go/internal/api/routes/health.go (24 行)
- go/proto/consolidate.proto (72 行, 4 RPC)
|
2026-05-28 17:16:52 +08:00 |