docs: refresh project documentation #87
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #87"
general
weight: 0.35
Xander-Xai
Summary
Documentation refresh driven by a read-only audit of
fed45f0. Three of the five drift sites found are documented rather than fixed in this PR, because fixing them changes runtime behaviour and needs its own test and review cycle. One is fixed, because it is text that describes code that does not exist.New issues opened by the same audit: #84 (documentation synchronization), #85 (production validation checklist), #86 (evaluation benchmark).
What changed
Added
## 企业场景— the enterprise scenario: what the business problem is, the three constraints that make this a RAG problem rather than a fine-tuning problem (knowledge changes often, answers must be traceable, visibility is role-scoped), the four user journeys, and why RAG is the right shape.### 数据流程— a second Mermaid diagram covering offline knowledge build → epoch-versioned storage → online epoch-scoped retrieval, including the three things that are easy to miss: chunking is deterministic (so epochs are comparable and revertible), logical identity is separated from physical identity, and epoch activation is a human step the scheduler never performs.## Production Readiness— the condensed table the repo was missing: 已实现 (REPO_VERIFIED+LOCAL_REAL_VALIDATION) versus 未验证 (PENDING/DESIGN_TARGET), with each item's promotion criterion.docs/production-readiness.md— the per-capability authority behind that section. Three columns on purpose: code status, real-environment status, promotion criterion. A row can be verified in code and pending against real infrastructure; that gap is the point of the document.### 已知未收敛的实现细节— a new row in the 30-second table so the three known rough edges are visible in the first screen rather than discovered during review.Corrected
retrieval/parallel_recall.pyfuses with query-aware weights (regulation → BM25 1.5, visual → CLIP 2.0);core/pipeline.py:_merge_and_dedupthen re-scores with query-independentw_text/w_clip/w_ocrand reorders, partially cancelling the first. The call site at line 429 says "RRF 已在并行召回管理器中完成" — its comment contradicts its own body. Both the README and the architecture baseline previously implied one fusion. Now stated in both, with the intended convergence direction and a pointer to #84.rewrite-service,retrieval-service,generation-service,cache-service,monitoring-serviceadds only the project root tosys.pathand imports siblings by bare top-level name, failing withModuleNotFoundErrorunder the exact commands indocker-compose.microservices.yml(api-gatewaydoes it correctly). The README previously said "retained components", which reads as present-but-unintegrated; the accurate statement is "not startable as configured". Reproduced, not inferred.bm25_retriever.pydocstring described an ES < 8.0 fallback to a precomputedrole_bucketfield. No such fallback and no such field exist in the repository;_es_versionwas assigned and never read. Removed. Text only, no behaviour change.Disclosed
ce_top1_score/ce_top3_mean_scoreare 0, the Evidence Gate maximum is0.2·agreement + 0.2·doc_consistency ≤ 0.40, which is belowlow_confidence = 0.55— so on this repository as committed, every query is rejected. That is a gate degrading by not opening the gate, which is the correct direction, and it is also why the missing assets arePENDINGrather than cosmetic. The README previously marked the weightsPENDING, which invites the opposite reading. No test asserts this end-to-end consequence and no artifact demonstrates it; both tracked in #85 (VAL-DEGRADE-001), which needs no external environment.complexityandvisual_requiredare absent from all 301 golden-set entries, so the two features this repository is differentiated by cannot be scored. Tracked in #86.Not changed
HISTORICAL_PRODUCTION,HISTORICAL,REPO_VERIFIED,LOCAL_REAL_VALIDATION,DESIGN_TARGETandPENDINGkeep their existing meanings.Verification
Reviewer notes
Two things worth checking specifically, because they are the substantive claims rather than the formatting:
1. Is the double-fusion description in §核心工程能力 1 and
docs/architecture-baseline.mdaccurate against the code?2. Is the 0.40 / 0.55 Evidence Gate arithmetic in
docs/production-readiness.mdright? If so, #85VAL-DEGRADE-001becomes the highest-value validation in the repository, because it needs no environment and closes the largest interpretation gap.Refs #84