← Back to Pull requests

skills: greenfield judgement: re-record the apichecks golden lists Step 1 wrote #15006

Closed
unknown closed this pull request without merging on Nov 05, 2026 09:06 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 07:41 UTC
Author

Step 1 (prepopulate) runs WRITE_GOLDEN_OUTPUT=1 go test ./tests/apichecks/..., which records the Kind's untriaged fields in tests/apichecks/testdata/exceptions/alpha-missingfields.txt (and other exception lists) against the CRD as Step 1 left it. Step 2 (judgement/SKILL.md) then changes the CRD's fields. It never re-records those lists, and its verification -run list leaves out TestCRDFieldPresenceInTestsForAlpha, so the stale entries only fail in CI. scripts/validate-prereqs.sh runs no Go tests, so local validation can't catch it either.

Seen on #14996 (LiveStreamDVRSession, Step 2): spec.projectRef + spec.location became a required spec.parentRef and spec.labels went away, and CI needed a follow-up commit, 0e711b5 "update missingfields".

This changes judgement/SKILL.md:

  • adds a new step 5, before verification: re-record the golden lists (WRITE_GOLDEN_OUTPUT=1 go test ./tests/apichecks/...), keep only <Kind>'s lines, never keep changes to missingrefs.txt / multi_version_crd_diff/ (as the skill already says), keep naming_violations.txt changes only for the external-only <targetkind>_identity.go / _reference.go files that references/ tells the agent to create, re-run without WRITE_GOLDEN_OUTPUT, and commit with the step;

  • moves verification to step 6 and adds TestCRDFieldPresenceInTestsForAlpha to its -run list, so a stale entry fails locally. Verification runs after re-recording, so this test doesn't fail before the agent reaches the fix;

  • renumbers the journal step to 7.
  • Replaying #14996 at 4c047a6 (before 0e711b5): TestCRDFieldPresenceInTestsForAlpha fails; following step 5 regenerates alpha-missingfields.txt identically to 0e711b5, plus multi_version_crd_diff/IAPSettings.diff formatting churn that step 5 says to revert; the full go test ./tests/apichecks/... then passes. On master, the re-record command changes nothing.

    ``release-note
    NONE
    ``

    Diff: 243 lines (+182 / -61) across 3 files Reviewer: sdowell Review duration: 84m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 243 lines diff across 3 files
    0.39
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #15006"
    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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.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: 15.3% · Safe to merge
    15.3%