← Back to Pull requests

tools: port docsy-generate-conformance.py to Go #5438

Open
unknown opened this pull request with 203 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 30, 2026 12:05 UTC
Author

/kind cleanup
/area conformance-machinery

Adds tools/conformancetables, a Go + text/template port of hack/docsy-generate-conformance.py.
Adds a make conformance-data-go target and includes the package in make test. The Python script and conformance-data target are untouched so this PR doesn't change the site build.
I plan to switch the target and remove the script (and the pandas/semver/tabulate installs) in a follow-up.

How I checked it


I generated pages from both tools for v1.0-v1.6 and compared them table by table (ignoring row/column order). Row counts match in every table. The only differences are 209 cells on the v1.0 page and 4 cells on v1.6 (airlock 5.1.0), explained below.

Differences from the Python output


  • v1.0: Python shows every feature as ❌. v1.0 reports have no mode field and I believe the NaN mode stops the row lookup from matching. Go shows ✅ for supported features.

  • v1.6 airlock 5.1.0 has both a standard and an experimental report. Python kept whichever file came last in glob order; the Go version keeps the one with more supported features (ties go to the smaller filename).
  • Deliberate choices


  • Rows sorted by organization (case-insensitive), project, version (semver), mode so output no longer depends on glob order.

  • Feature columns are alphabetical.

  • The HTTPRoute 303R Status Code naming quirk from the old regex is kept so this stays a pure port. Happy to fix it here or in a follow-up, whichever reviewers prefer.

  • Template uses [[ ]] delimiters because Hugo's {{% alert %}} shortcode clashes with Go's default.
  • ``release-note
    NONE
    ``

    /label ail/1

    Diff: 203 lines (+152 / -51) across 2 files Reviewer: yashrajshuklaaa Review duration: 26165m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 203 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.318
    Real PR Conversation Timeline
    1 comments
    "Review active on #5438"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 36.3% (MEDIUM) · Higher = larger blast radius
    36.3%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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.3% · Safe to merge
    19.3%