← Back to Pull requests

docs: remove remaining career material and third-party production facts #95

Closed
unknown closed this pull request without merging on Oct 14, 2026 16:42 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 16:03 UTC
Author

Why

The working tree still published prior-organization operational facts and career framing after the earlier boundary pass, and one PRD claim contradicted itself on the same line.

Two defects were found and fixed that the earlier pass did not cover:

1. docs/final-canonical-runtime-audit.md enumerated eleven prior-production figures in a single audit row (corpus sizes, image counts, product/ingredient counts, internal user count, peak and daily traffic, serving hardware model, model-migration history, internal award). Framing them as "not a repo result" still publishes them.
2. PRD.md:280 attributed the fusion weights to an external grid search plus online validation, on the same line that stated tuning was not implemented. docs/repository-drift-report.md already recorded this as "fixed"; the PRD was never actually edited.

Removed

| File | Removed |
|---|---|
| docs/final-canonical-runtime-audit.md | the eleven-figure row |
| docs/slo-runbook.md | serving hardware model, traffic range, model-migration history |
| docs/evidence-map.md | hardware model, migration history, award reference |
| docs/README.md, docs/repository-truth-audit.md, docs/repository-metadata.md | "former employer" framing, hardware model |
| docs/demo/README.md | "上一家公司语料" |
| docs/finalization/ (4 files) | dual-A5000 topology references |
| CHANGELOG.md, app.py, tests/test_runtime_api_metadata.py | hardware model in an audit entry and two code comments |
| docs/finalization/INTERVIEW_GUIDE.md, RESUME_CLAIMS.md | career material (from the earlier pass on this branch) |

HISTORICAL_PRODUCTION is kept as a taxonomy label that carries no figures. A generic dual-GPU design target is retained; a production hardware model is not.

Declared

  • DATA_PROVENANCE.md — per-file provenance, the sensitive-data audit result, the regulatory-content caveat, and the history-accessibility statement.

  • DATA_MANIFEST.json — machine-readable classification of all 11 tracked data assets.

  • Sidecar notes in tests/evaluation/, tests/evaluation/golden_set_v2/, offline/.
  • The synthetic fixtures quote real regulation names next to invented concentration limits, and assign "maximum permitted concentration" values to common functional ingredients that appear on no restricted-substance list. They are kept — they give retrieval, rerank and gate paths an input of realistic shape — and are now documented as fictional and unusable for compliance decisions. docs/finalization/DATA_REVIEW_BACKLOG.md lists the assertions needing a qualified reviewer.

    Guarded

    scripts/check_public_repository_boundary.py (87 tests), wired into the test and evaluation-guard jobs. It answers a question check_repo_consistency.py does not, and the two are kept separate on purpose:

  • catches career-material filenames and content, third-party identity, production hardware facts, business-scale figures, tuning provenance attributed to prior production, credential shapes, data-declaration presence, manifest/tree drift, and broken markdown references in boundary docs

  • explicitly does not flag Query Rewrite, Candidate Ranking, Checkpoint Resume, resume the ingestion run — asserted clean in tests, because a guard loosened for product terms is a guard that gets deleted

  • allow-lists placeholder credentials by value, not by file, so the same placeholder shape in application code is still reported

  • skips prose scanning in .jsonl fixtures and lockfiles
  • Added a Gitleaks history scan beside TruffleHog in security.yml. TruffleHog runs --only-verified by design and cannot see a revoked credential.

    Verification

    | Check | Result |
    |---|---|
    | ruff check . / ruff format --check . | pass |
    | pytest tests/ | 2982 passed, 17 skipped (was 2896 + 17) |
    | scripts/check_repo_consistency.py | pass |
    | scripts/check_public_repository_boundary.py | pass |
    | validate_golden_set / audit_annotations --allow-empty / pytest tests/evaluation/ | pass |
    | detect-secrets over tracked files | 0 real secrets |
    | Credential pattern scan over all 1583 reachable blobs, 30 refs | 1 hit: postgresql://user:pass@localhost in a commented-out example from commit 28fb68d — literal user:pass, no rotation needed |

    Not done, and why

  • Git history is not rewritten. Removed content stays reachable by SHA. git filter-repo, force-push and branch deletion are irreversible shared-history operations and need separate authorization. No real credential was found in history, so no rotation is indicated.

  • No AI-Career-Interview-OS change. That repository has derived artifacts under projects/beauty-industry-rag/ but not these two originals. Both remain fully recoverable from history (3477234, 5072ded); the task scoped writes to this repository, so the gap is reported rather than fixed here.

  • No architectural change. Retrieval, reranking, gating, RBAC, versioning and the evaluation harness are untouched.
  • Diff: 630 lines (+472 / -158) across 7 files Reviewer: Xander-Xai Review duration: 38m
    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 · 630 lines diff across 7 files
    0.50
    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.386
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #95"
    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: 50.4% (MEDIUM) · Higher = larger blast radius
    50.4%
    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: 19.9% · Safe to merge
    19.9%