← Back to Pull requests

chore: reconcile repository truth, docs, CI, and release metadata #3

Closed
unknown closed this pull request without merging on Oct 01, 2026 03:21 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 21:36 UTC
Author

Why


Repository state had drifted across code, tests, configuration, documentation, release metadata, and CI. This final pass reconciles the PR against its final candidate and records what remains planned.

Current repository truth


  • The canonical user-facing application path is the FastAPI monolith (app.py); the service directories are components without full production/frontend integration evidence.

  • Production offline document ingestion, OCR, vector writers, scheduling, indexing, and feedback are not part of the checked-in PR candidate. run_offline.py rejects those ingestion modes. Issue #2 remains the follow-up.

  • RAGAS tooling exists, but its optional dependency is excluded from the default environment; no valid quality score or production benchmark is claimed.

  • PRD latency, P95/P99, QPS, throughput, and accuracy values are design targets or estimates unless a reproducible benchmark artifact exists.
  • What changed


  • Reconciled local-only commit d2c4539 by porting 18 BiEncoder reranker behavior tests and the peft_config.auto_discover setting consumed by LLMClient. The implementation was already present on the PR branch. Unused validation config and top-level lora_alpha were not copied: runtime code does not consume them, and adapter metadata is read from adapter assets.

  • Refreshed docs/repository-truth-audit.md with code, test, config, and CI evidence; statuses and actions now reflect the reconciled candidate. The candidate is recorded as symbolic HEAD and checked at validation time to avoid a self-referential stale commit SHA.

  • Reworded unverified performance improvements in PRD.md as design estimates.

  • Expanded scripts/check_repo_consistency.py to check canonical app/docs links and index, unsupported README ingestion commands, audit candidate/date/statuses, default contract collection, and tracked runtime state.
  • Local-state reconciliation


  • Preserved the original dirty checkout without staging, committing, or resetting it: 45 modified files, 11 untracked files, and 111 ignored entries were audited and recorded.

  • Created local-only safety ref backup/local-main-d2c4539-20261001 and saved a private snapshot outside the repository. Neither is pushed.

  • Broader local API/auth, pipeline, frontend, fine-tuning, evaluation, and deployment work remains local for separate review. Ignored offline source files do not have the required checked-in end-to-end evidence and do not change Issue #2's planned status.
  • What remains intentionally planned


  • Issue #2: production offline ingestion pipeline and end-to-end validation.

  • Founder merge approval for this PR. This PR has not been approved or merged.
  • Validation on final HEAD 965f308e78a837f58259f064fb985554448b0421


  • python3 -m pytest tests/ -v --tb=short — 578 passed, 0 failed, 0 skipped (17 warnings).

  • python3 -m pytest --collect-only -q — 578 collected.

  • ruff check . — passed.

  • ruff format --check . — passed (151 files already formatted).

  • python3 -m compileall -q . — passed.

  • python3 scripts/check_repo_consistency.py — passed.

  • git diff --check — passed; working tree clean after commit.

  • SERVICE_AUTH_TOKEN=validation REDIS_PASSWORD=validation ELASTICSEARCH_PASSWORD=validation GF_SECURITY_ADMIN_PASSWORD=validation JWT_SECRET=validation MINIO_ACCESS_KEY=validation MINIO_SECRET_KEY=validation docker compose config --quiet — passed with the existing obsolete version key warning.

  • GitHub Actions on this HEAD — CI Python 3.10 and 3.11, Ruff, pip-audit, and secret scan all passed.

  • Frontend build was not run because no frontend files changed.
  • Follow-ups


  • #2 — production offline ingestion pipeline.

  • #1 — remains open for founder approval; it will close through the PR's Closes #1 only when the PR is merged.
  • Closes #1

    Diff: 476 lines (+357 / -119) across 5 files Reviewer: Xander-Xai Review duration: 344m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 476 lines diff across 5 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.369
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.8% (MEDIUM) · Higher = larger blast radius
    45.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%