← Back to Pull requests

[WEB-10297] Document referencing SDS library rules by ID #40515

Open
unknown opened this pull request with 205 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 07, 2026 13:51 UTC
Author

<!-- Note: Please remember to review the Datadog Documentation Contribution Guidelines if you have not yet done so. -->

What does this PR do? What is the motivation?

Library rule names can change, which breaks Terraform and API configurations that look up library rules by name. Each library rule has a stable standard pattern ID, but it was not documented.

  • scanning_rules/library_rules.md: adds a "Reference library rules by ID" section with a Terraform example (standard_pattern_id, provider v4.5.0+) and the API field (relationships.standard_pattern.data.id).

  • setup/telemetry_data.md: links to the new section from the Terraform note under "Add scanning rules".
  • Merge readiness

  • Ready for merge
  • AI assistance

    Drafted with Claude Code. Example ID verified against the AWS Access Key ID Scanner standard pattern.

    For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.

  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.
  • Additional notes

    The new section refers to a Rule ID column in the library rules table. That column is added by a companion change to the table's data source. Merge this PR after that change ships, or the column reference will not resolve on the page.

    🤖 Generated with Claude Code

    Diff: 205 lines (+153 / -52) across 2 files Reviewer: vinckama Review duration: 18340m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.41) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.41 · 205 lines diff across 2 files
    0.41
    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.319
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #40515"
    general weight: 0.35
    Reviewers
    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: 41.3% (MEDIUM) · Higher = larger blast radius
    41.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: 22% · Safe to merge
    22%