docs: converge runtime, config and documentation truth #18
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.74) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.74 · 464 lines diff across 5 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.367
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.074
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #18"
general
weight: 0.35
Xander-Xai
Why
Repeated runtime changes caused configuration, runbooks, generated API docs,
RAG evaluation docs, interview material and historical snapshots to diverge.
The previous 2026-09-29 alignment report itself became a stale "current truth"
while contradicting the repo state it described. This PR reconciles code/config
truth with documentation and installs automated guards so future drift is
detected instead of accumulating.
What changed
- new current-facts entry point:
docs/reference/current-state.md(dynamic, never hardcodes HEAD)- README/CLAUDE.md: removed hardcoded audited-HEAD block; command-based verification; per-file test tables replaced by directory+command tables
-
docker-compose.ymlOPENAI_MODELdefault now matchescore/config.py(Qwen/Qwen3-8B);LLM_ROUTER_TIMEOUTtemplate made overridable with runtime-fallback note-
.env.exampledistinguishes runtime fallback vs deployment-recommended values- LLM provider runbook rewritten against current runtime (
/api/health, auth probe, evidence runner; provider SLA/latency/price downgraded toNOT_VERIFIED)-
docs/openapi.jsonvia newscripts/generate_openapi.py(+--checkdrift mode,make openapi-check)- api-reference corrected to 53 HTTP paths / 55 operations (49
/api/*ops)- dataset count derives from
tests/eval/rag_benchmark.jsonmetadata (649; metadata==len(queries) enforced)- historical 30-query metrics labelled dated snapshots; stale
rag/knowledge_base.pyline links re-pointed to current modules- ADR-003 →
Superseded by ADR-007; ADR-004 →Partially Superseded by ADR-008(bodies untouched)- dated plans / v5.3.1 checklists / root audit files banner-marked
HISTORICAL AUDIT SNAPSHOT- model-comparison split into Current implementation vs historical estimates
-
scripts/audit_doc_consistency.pydiscovery-based checks A–H (links, file refs, env coverage, canonical config, OpenAPI drift, benchmark metadata, stale terms/counts)tests/unit/test_doc_consistency.py, 22 cases)scripts/project_facts.py+make facts / audit-docs / openapi-checkVerification
python3 scripts/audit_doc_consistency.py→ OK (36 active docs), exit 0python3 scripts/generate_openapi.py --check→ OK (53 paths == app.openapi())1789 tests collected1784 passed, 5 skipped(5 = real_llm markers needing API key)npm test→ 60 passed (7 files)npm run build→ PASSruff check .: 131 pre-existing baseline findings (TASK_INTRODUCED = 0).npm run lint(biome) fails on pre-existingtheme-a11y.css !importantbaseline — unchanged on base.Evidence boundary
Unverified items remain explicitly NOT_VERIFIED / NOT_MEASURED.
Not changed