docs(observability): ApeRAG 可观测性需求对齐文档 v1#1952
Closed
earayu wants to merge 2 commits into
Closed
Conversation
per earayu2 飞书 directive (via @飞书 msg=d3042add): 汇总近期可观测性相关需求, 跟其他人讨论并对齐 — 先不考虑如何实现, 讨论完成发 PR 合并. ## scope (NOT 实现) - 全路径 4 layer capability map (API / worker / 业务执行 / LLM call) - 各层 capability 字段 + 关联维度 + 优先级 + 驱动场景 - LLM 调用账本独立 event family (per Weston msg=94df61b3 + 太钢 token 追问 + 私有大模型 cost) - privacy hard gate 跨 phase 共同基线 - 实施 phase 拆分 (P0 已 spec PR #1951 / P1+P2 trigger condition) - 跨域协作方对齐确认表 ## 驱动场景 - 太钢 token 消耗追问 (谭怀远 飞书): PG 无 usage 表 / LiteLLM callback 禁用 / 答不上来 - 私有大模型 cost 担忧 (ou_1d75b5... 飞书): 客户私有部署 cost 是对外可见运维必需品 - Singapore 大 PDF 现场 (Planetegg msg=1314ac59): per-window 耗时 / entity-relation 计数无可查询数据 - 财务分摊 + 容量预测 driving ## 优先级 (per 4 guardrail + 真实需求驱动) - P0: graph extraction 2 metric (window + document) - earayu2 已 confirm 立即启动 - P1: worker lane lifecycle + vector/fulltext indexing - P2: retrieval + LLM ledger (LLM ledger 优先级最高 P2, 跟 P1 几乎同时启动) - P3: HTTP request producer (defer) ## Privacy hard gate - 永远 NOT 进 attrs payload: chunk_text / query_text / prompt_text / completion_text / error_message / traceback - AST data-flow gate (NOT 全文 grep) 防误伤合法 extraction 路径 - error 类仅 error_code/error_type whitelist enum - DISABLE_TELEMETRY 部署级 opt-out format: 类比 task #31 Phase A 自然中文 onboarding doc, 面向决策者 + 跨域协作方对齐 capability/scope/trigger/privacy boundary. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Collaborator
Author
|
Testing / acceptance CR: LGTM ✅ I reviewed this as the macro requirements alignment doc, not an implementation spec. The important acceptance boundaries are clear enough:
Non-blocking NIT for future P2 spec: §3.2 lists LLM ledger fields as first-class fields, while §5 SQL examples read them from No blocker from my lane. |
… 1 cross-link per dongdong msg=5256ebed + ziang msg=e702bfb4 NIT (双 lane converge): - § 5 SQL 示例标 "概念示例" + cite "P2 spec lock 时 typed columns 优先, NOT JSON attrs" - 防实现方直接照抄 attrs JSON 写法导致 cost/token aggregation 慢查询 - llm_call_event 独立 ledger table (per § 3.1 Weston msg=94df61b3 设计) per huangheng msg=48b418c9 NIT 1: - § 9 跨域协作方对齐表加 huangheng row - 显式 cite Privacy hard gate framework 跟 PR #1951 § 3.1.5 attrs data-flow gate 一致 (Lesson #18 first-application demo) - 防 future onboarding 漂移 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
per earayu2 飞书 directive (via @飞书 DM msg=d3042add): 汇总近期可观测性相关需求, 整理详细文档, 跟其他人讨论并对齐 — 先不考虑如何实现, 讨论完成发 PR 合并.
核心驱动场景
文档定位
全路径 4 layer capability map
LLM 调用账本字段对齐
llm_call_event独立 event family:Privacy hard gate (跨 phase 共同基线)
Test plan / 跨域协作方对齐
🤖 Generated with Claude Code