← Back to Pull requests

feat: convert snphost_config_commit to mixed-scope #283

Closed
unknown closed this pull request without merging on Aug 28, 2026 17:12 UTC
View on GitHub
unknown unknown commented on Jul 23, 2026 19:02 UTC
Author

Convert the host-only TCB config test into a mixed-scope test that verifies config changes are reflected in guest attestation reports, and adds a comprehensive doc about what SNP_COMMIT and SNP_CONFIG do + intended use.

Test by inspecting attestation reports in these cases:

1. Fresh VM (booted after config-set-lower): guest reported == host reported tcb guest current == host platform tcb signed by lowered host reported tcb
2. Live VM (same VM as 1 after config-reset): guest reported == restored host reported tcb guest current == host platform tcb

Only the alternate lower tcb VCEK is fetched, as normal is covered by 3.0.0-0 attestation test and don't want to trigger KDS rate-limit.

A final info-type config-reset ensures TCB cleanup regardless of test outcome.

Note:

  • Implemented Copilot's suggestion to catch VMProfileError instead of VMLaunchError, as VMProfileError is the parent of VMLaunchError, and profile.vm_launch() can throw either of those. Prevents a crash if we run into the ProfileError.

  • Example Certification Run: https://github.com/amd-aliem/sev-certify/issues/202
  • Diff: 138 lines (+103 / -35) across 1 files Reviewer: amd-kkin Review duration: 51730m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.61) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.61 · 138 lines diff across 1 files
    0.61
    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.295
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.061
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #283"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 60.7% (MEDIUM) · Higher = larger blast radius
    60.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: 24.0% · Safe to merge
    24.0%