← Back to Pull requests

deploy/baremetal/testgenesis: staging TEST genesis material from a named TEST root (regalia-kms-223) #787

Open
unknown opened this pull request with 462 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 25, 2026 11:11 UTC
Author

Bead: regalia-kms-223. This draft supplies the TEST genesis generator needed for Part C, step A6. It includes a merge of main at 5cf92501. The generator and its tests are unchanged from the previous head.

TEST genesis and root guard

deploy/baremetal/testgenesis.py generates single-node staging TEST material in a private directory. It writes the card ceremony record and signing state, offline-keys and ownerauth records, TEST signing and WireGuard keys, site configuration, measurements, lockout value, and SHA-256 manifest. It reads the outputs back through the existing verifiers and checks that the generated keys match the records.

The CLI requires a root on the explicit TEST_ROOTS allow-list and a matching private key. The ceremony deny-list wins over the allow-list, and the CLI refuses unknown roots before reading the private key or creating output. The signed build record must have passed initrd review and must pin this TEST root alone. The tests cover unknown roots through the CLI, every deny-listed root even under a test allow-list override, a mismatched private key, and a missing or mismatched build-record pin. They use generated TEST keys. The review fixes also cover isolated invocation, private output, and cleanup after refusal or interruption.

Hosted evidence

  • At merge head d78c6fe5, three-node-leases passed all 20 checks and build-test ran 3,413 Python tests with 20 skips. The unknown-root, ceremony-root, and missing-pin refusal tests all passed. Secret scanning and govulncheck passed. The only failing check was ci-gate, which records the draft rejection and seven prerequisite jobs skipped on drafts. Leases job · Build-test log · Draft gate log
  • At 1dbfc699, the build-test log records 3,396 Python tests run with 20 skips, including passing TEST-root refusal tests. Build-test log

  • The leases log at 1dbfc699 records 6 passed and 1 failed. Both issuer-failover assertions passed. The failure occurred on issuer restart. The peer's tpm2-abrmd aborted with SIGABRT on the GLib g_hash_table_remove_node assertion. TPM capability enumeration then failed and the high-water anchor check refused to proceed. Leases log

  • The same GLib assertion, daemon abort, and fail-closed TPM error occurred on main at 0590b5c9 on November 18, during a later scenario. This predates the TEST genesis diff. The last change at 1dbfc699 only allow-listed a TEST filename for secret scanning. The exact trigger inside the resource manager remains unconfirmed. Main leases log

  • The historical ci-gate log explicitly records the draft gate. three-node-leases is a separate workflow job. Draft gate log
  • Remaining

    The PR stays draft. Final-head review and the required off-runner proof remain pending before the owner can advance it to the full CI gate. Part C A6 resumes after merge and the owner re-pins the interpreter exception. The resource-manager crash remains tracked in regalia-kms-9xw. No workflow was manually dispatched or rerun for this update.

    Diff: 462 lines (+346 / -116) across 5 files Reviewer: jobordu Review duration: 15189m
    All Vouch review confidence checks passed
    Residual risk 0.37 = Change Risk (0.69) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 462 lines diff across 5 files
    0.69
    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
    Diff Size diff_size
    0.367
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.069
    Real PR Conversation Timeline
    1 comments
    "Review active on #787"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 46.7% 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: 68.8% (HIGH) · Higher = larger blast radius
    68.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: 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: 36.6% · Moderate risk
    36.6%