QihuAI Design
e8a1791c9f
chore(align): sync Git with running container as authoritative source
Standards alignment (STANDARDS_AUDIT_2026-07-24): Phase 1 标准化核心 +
Phase 2 质量层 landed in the running container and captured in Git so the
three sources (container := image := Git) agree.
Backend (Phase 1 标准化核心):
- mcp_client.py: replaced hand-rolled JSON-RPC with official `mcp` SDK
(ClientSession, streamable_http/sse transports, protocol auto-negotiation)
- core/otel.py + core/observability.py: standard OpenTelemetry SDK bridge
(OTLP gRPC), wired to Grafana Alloy (qihu-aiflow-alloy:4317) which forwards
metrics to Prometheus; emits aiflow_span_duration_ms / aiflow_span_count
- deployments: Grafana Alloy container + Prometheus remote-write receiver
Backend (Phase 2 质量层):
- core/rag_pipeline.py: standardized RAG (recursive overlap chunking +
rerank hook) reusing pgvector_search
- core/llm_client.py: SDK-ified LLM + embeddings (aembed/embed) collapsing
hand-rolled httpx calls; trust_env=False to bypass container proxy
Migrations:
- 018_normalize_marketapp_scene.sql: fixed capability allowlist
(prevents capability wipe on restart)
Alignment performed 2026-07-24 12:18:51. No deletions; secrets/venv/node_modules/
caches were not touched (tracked-source-only copy).
2026-07-24 12:18:52 +08:00
..
2026-07-24 12:18:52 +08:00
2026-07-24 12:18:52 +08:00
2026-07-19 08:51:28 +08:00
2026-07-02 14:40:46 +08:00
2026-07-20 19:02:40 +08:00
2026-07-19 20:17:49 +08:00
2026-07-21 19:27:27 +08:00
2026-07-02 14:40:46 +08:00
2026-07-23 09:16:31 +08:00
2026-07-11 11:40:39 +08:00
2026-07-21 18:29:51 +08:00
2026-07-20 19:02:40 +08:00
2026-07-02 14:40:46 +08:00
2026-07-14 20:56:53 +08:00
2026-07-02 14:40:46 +08:00
2026-07-21 19:27:27 +08:00
2026-07-24 12:18:52 +08:00
2026-07-02 14:40:46 +08:00
2026-07-02 14:40:46 +08:00
2026-07-22 12:42:43 +08:00
2026-07-24 12:18:52 +08:00
2026-07-11 16:32:45 +08:00
2026-07-02 14:40:46 +08:00
2026-07-23 22:16:25 +08:00
2026-07-14 18:49:27 +08:00
2026-07-21 12:56:57 +08:00