← Back to Pull requests

refactor(runtime): hardcode enable_secp256r1_precompile #1673

Merged
hamza-syndica merged 8 files (44 lines) on Jul 13, 2026 14:46 UTC
View on GitHub
hamza-syndica hamza-syndica commented on Jul 06, 2026 12:37 UTC
Author

Hardcodes the enable_secp256r1_precompile feature gate (SIMD-0075).

Prerequisites verified:

  • ✅ Active on mainnet since epoch 800

  • ✅ Hardcoded in Agave (v4.1.0-rc.1)

  • ✅ Cleaned up in Firedancer (cleaned_up = 1)
  • Changes:

  • Removed all conditional logic around enable_secp256r1_precompile

  • Simplified FeeDetails.init and calculateSignatureFee (removed enable_secp256r1 parameter)

  • Removed \.gate from PRECOMPILE table entry

  • Set required_feature to null in PRECOMPILES array

  • Set \.feature to null in ReservedAccounts

  • Simplified getSignatureCost (removed unused feature_set/slot params)

  • Updated features.zon status to \.hardcoded
  • Closes #1651

    Diff: 44 lines (+7 / -37) across 8 files Reviewer: yewman Review duration: 10209m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.36) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 44 lines diff across 8 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.45 · 3 substantive comment(s)
    0.45
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    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.228
    Real PR Conversation Timeline
    7 items
    codecov[bot] codecov[bot] commented on Jul 06, 2026 13:51 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    dnut dnut commented on code on Jul 08, 2026 21:36 UTC
    Code Review
    shared/runtime/check_transactions.zig:1
    @@ -58,14 +58,15 @@ pub fn checkFeePayer(
         PreparedAccount,
     }) {
         _ = lamports_per_signature; // ignored here - see comment below
    +    _ = feature_set; // enable_secp256r1_precompile hardcoded
    +    _ = slot; // enable_secp256r1_precompile hardcoded

    can you remove these params?

    dnut dnut requested changes on Jul 08, 2026 21:38 UTC
    Changes Requested Reviewer

    Requested changes.

    hamza-syndica hamza-syndica commented on code on Jul 10, 2026 12:13 UTC
    Code Review
    shared/runtime/check_transactions.zig:1
    @@ -58,14 +58,15 @@ pub fn checkFeePayer(
         PreparedAccount,
     }) {
         _ = lamports_per_signature; // ignored here - see comment below
    +    _ = feature_set; // enable_secp256r1_precompile hardcoded
    +    _ = slot; // enable_secp256r1_precompile hardcoded
    yewman yewman approved these changes on Jul 13, 2026 08:49 UTC
    Approved Reviewer

    Approved these changes.

    dnut dnut approved these changes on Jul 13, 2026 14:08 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    hamza-syndica hamza-syndica
    Labels
    risk: low confidence: 71.1% 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% (MEDIUM) · Higher = larger blast radius
    36%
    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: 71.1% · Lower = rushed or shallow review
    71.1%
    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: 10.4% · Safe to merge
    10.4%
    Repository