feat: complete offline ingestion pipeline and reconcile repository truth #6
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 594 lines diff across 7 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.382
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6"
general
weight: 0.35
Xander-Xai
Summary
Completes the production offline ingestion pipeline tracked by Issue #2 and reconciles repository
documentation, config, contracts, and the consistency guard with that implementation. PR #5
(Phase 1 TXT slice) is merged into
main; this branch is rebased ontomain, so this PR containsonly the full-pipeline + reconciliation changes.
Implemented
DocumentProcessor(TXT/PDF/DOCX/XLSX) with scanned-PDF OCR routing.OCRProvider/ImageEmbedderand a deterministic visual-weight rule.default.cosmetics_docswriter with explicit mapping andsearch_afterpagination.create-index,ingest,incremental-build,full-rebuild,seal-epoch(legacy
ingest-textpreserved).scripts/smoke_bge_ingestion.py,@pytest.mark.model_smoke).Repository reconciliation
knowledge_version_epochexactlylike text retrieval; legacy missing-epoch points no longer leak into a non-default epoch.
seal-epochruns the canonical snapshot validator (Qdrant text/image + Elasticsearch) before sealing.create-index --recreate --yesnow recreates Qdrant text/image collections and the ES indexconsistently with its help text.
supported_extensionsand scheduler enable flags are consumed andvalidated; dead knobs removed; change detection documented as content-hash authoritative.
doc_id/chunk_idso they merge with Qdrant in RRF.offline/requirements-ocr.txtdocuments the optional PaddleOCR runtime boundary.elasticsearchclient pinned<9to match the 8.x deployment server.[Unreleased], data-admin/deployment/operations/pre-launch/userguides, repository truth audit, and
.env.examplereconciled to code truth.scripts/check_repo_consistency.pyupgraded into a drift guard (offline CLI docs, stale-claim guard,truth-audit row/status validation) with tests.
Review fixes (Codex)
All eight automated review findings are addressed and their threads resolved:
state-commit timing, incremental permission-mask detection, stale image-point clearing, unexpected
document validation, BM25 doc_id, ES pagination, Airflow timeout args, and serializable DAG results.
Validation
python3 -m pytest tests/ -q: 719 passed, 1 skippedpython3 -m pytest --collect-only -q: 720 collectedtests/offline/: 83 passedruff check ./ruff format --check .: pass (ruff 0.16.9)python3 -m compileall -q .: passpython3 scripts/check_repo_consistency.py: passgit diff --check: passdocker compose config(dummy secrets): passReal infrastructure integration
restricted auth=4); epoch-isolated CLIP hit=1; ES docs=6; incremental carried=11, processed=1, validated.
External model validation status
EXTERNAL_MODEL_ASSET_REQUIRED(harness implemented; assets absent).EXTERNAL_MODEL_ASSET_REQUIRED.NOT RUN(optional runtime not installed).NOT RUN(Airflow not installed).NOT RUN(no reproducible artifact).Known limitations
tests/contracts/offline_pipeline_contract.pypreserves older planned interfaces and is not collected.Issue #2 relationship
Issue #2 remains OPEN. Code + deterministic tests are complete; real-model smoke, real Airflow
execution, and production evaluation remain pending (or should be split into a validation issue).