← Back to Pull requests

test: close the frontend CI and stale-path drift found by the published-entry audit #34

Closed
unknown closed this pull request without merging on Oct 04, 2026 17:09 UTC
View on GitHub
unknown unknown commented on Oct 04, 2026 16:19 UTC
Author

Final publication gate. Closes the three P0 findings from an entry-point audit of the published main.

Why

A reader entering the repository hits two self-contradictions, plus a deleted directory still written as a live path.

1. The frontend CI build was filed as PENDING. .github/workflows/ci.yml has run frontend-build (npm ci → npm run build) since PR #19, but docs/repository-truth-audit.md said "CI does not build the frontend here" and classified the built frontend as PENDING — while docs/main-branch-governance.md listed 前端构建校验 as a required check. Both are canonical docs, and the contradiction favours understating the repo.

The frontend now carries four claims that are never merged:

| | Claim | Level |
|---|---|---|
| A | React client + API metadata contract | REPO_VERIFIED |
| B | npm ci + npm run build in GitHub Actions | REPO_VERIFIED |
| C | frontend + real backend end-to-end runtime | PENDING |
| D | production deployment | PENDING |

A green frontend-build compiles a bundle. It observes no browser, no real backend and no deployed environment, so it cannot promote C or D. The committed Playwright demo capture drives the real UI against the synthetic docs/demo/mock_api.py — a demo capture, explicitly not C.

2. docs/superpowers/ was still a current path. PR #33 deleted the directory and relocated nothing, so the plans live only in Git history. PRD.md, the evidence map and the audit all named it in the present tense.

Guards, not just prose

  • check_frontend_evidence_classification derives (B) from ci.yml at runtime, so removing the job turns the sentence into drift instead of hiding behind an unenforced guard. Rejects denials of (B) and inflation into (C)/(D), in both languages.

  • check_removed_plan_path_is_historical requires a removal frame on every surviving mention, at sentence scope. superseded and historical describe the plans, not where the directory went, so they deliberately do not qualify.

  • The dead docs/superpowers/ exclusion in check_documented_paths is deleted. It was not merely obsolete — it silently skipped every docs/superpowers/... reference, so a doc could point at a deleted plan file indefinitely.
  • Three false negatives were found and closed during verification, each of which had made the guard decorative:

    1. The audit row's own PENDING cell is on the same physical line as the denial, so a generic negation window excused it.
    2. HISTORICAL_MARKERS matched ordinary prose ("there is no separate pytest target").
    3. "the row contains REPO_VERIFIED" cannot tell the CI build from the client contract, so demoting (B) still passed. It now parses level→qualifier pairs.

    Also in this PR

  • export-regression-candidates: reviewed negative feedback becomes a PENDING_REVIEW candidate with a stable case_id; only human-accepted candidates enter regression_dataset.jsonl. expected_behaviour/expected_evidence are human-supplied and fail closed — a model answer is never promoted to ground truth. Produces no RAGAS score.

  • docs/archive/ gives historical documentation an enforced home and banner. It is currently empty of moved plans; it is where a future superseded doc goes, not a relocation of docs/superpowers/.

  • SECURITY.md, stating the scope honestly: a public reference implementation, not a certified product.
  • Unchanged on purpose

    No evidence level was altered, no external runtime-validation tracker was touched, no Git history was rewritten, no historical plan was restored, and no Kubernetes / GraphRAG / Agent-MCP / Kafka / vector DB was added. No metric was created.

    Verification

    python scripts/check_repo_consistency.py     # passed
    pytest tests/ -q                             # 2091 passed, 15 skipped
    ruff check . && ruff format --check .        # clean
    git diff --check                             # clean
    grep -rn "does not build the frontend"       # 0
    grep -rn "docs/superpowers" <canonical docs> # all framed as removed paths
    

    ---

    <sub>Public-metadata normalization (governance round 2): career- and recruiting-framing wording was replaced with neutral technical wording. The technical background, the reason for each change, the outcome and every commit/PR/issue reference are unchanged. Document paths are kept as they were at the time; several were renamed later on main. Prior-organization operational figures were replaced by a reference to their HISTORICAL_PRODUCTION classification rather than restated.</sub>

    Diff: 568 lines (+426 / -142) across 7 files Reviewer: Xander-Xai Review duration: 50m
    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 · 568 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.380
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #34"
    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: 49.7% (MEDIUM) · Higher = larger blast radius
    49.7%
    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.7% · Safe to merge
    19.7%