← Back to Pull requests

refactor(runtime): hardcode accounts_lt_hash #1600

Merged
hamza-syndica merged 3 files (66 lines) on Jun 18, 2026 16:19 UTC
View on GitHub
hamza-syndica hamza-syndica commented on Jun 15, 2026 12:55 UTC
Author

Hardcode accounts_lt_hash feature (SIMD-0215) - confirmed hardcoded in both:

  • Agave: Feature gate removed; lattice hash is now unconditionally computed

  • Firedancer: a75575a412 - flamenco, features: clean up feature map
  • Closes #1585

    Diff: 66 lines (+25 / -41) across 3 files Reviewer: yewman Review duration: 4524m
    All Vouch review confidence checks passed
    Residual risk 0.08 = Change Risk (0.31) × (1 − Review Confidence (0.73)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.31 · 66 lines diff across 3 files
    0.31
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.48 · 5 substantive comment(s)
    0.48
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    72%
    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.252
    Real PR Conversation Timeline
    11 items
    codecov[bot] codecov[bot] commented on Jun 16, 2026 06:55 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>

    ajw221 ajw221 commented on code on Jun 17, 2026 13:46 UTC
    Code Review
    src/replay/freeze.zig:1

    because this can no longer return a null LtHash we should update the return type

    A related cleanup we should consider, whether it's in this PR or a followup one, is tightening SlotState.accounts_lt_hash from Mux(?LtHash) to Mux(LtHash). With hashSlot always producing a real value, every production initializer of this field is provably non-null: SlotState.GENESIS uses .IDENTITY; fromBankFields is fed manifest.bank_extra.accounts_lt_hash, which is typed non-optional in ExtraFields and whose bincode reader either returns a real hash, defaults to .IDENTITY on EOF, or fails with error.DeltaLtNotPresent; and fromFrozenParent inherits the parent's value. The only remaining null is in one test call at src/consensus/progress_map.zig:1255, and the sole reader (src/replay/service.zig:710) already unwraps with .?. So this should reduce to: changing the field type and the lt_hash: ?LtHash parameter on the two fromBankFields* constructors, swapping that one test to .IDENTITY, and dropping the .? in service.zig.

    also worth noting that the sibling field SlotConstants.parent_lt_hash (and HashSlotParams.parent_lt_hash) must stay ?LtHash, fromBankFields legitimately sets it to null for the snapshot-loaded root slot, which is short-circuited by the already-frozen check in freezeSlot before hashSlot runs, which is the invariant error.UnknownParentLtHash exists to protect

    ajw221 ajw221 commented on code on Jun 17, 2026 13:48 UTC
    Code Review
    src/replay/freeze.zig:1

    unrelated to this PR, but same as above

    ajw221 ajw221 commented on code on Jun 17, 2026 13:53 UTC
    Code Review
    src/replay/freeze.zig:1

    because of the changes mentioned below, this would no longer be null nor would it need a null check

    ajw221 ajw221 requested changes on Jun 17, 2026 14:07 UTC
    Changes Requested Reviewer

    Requested changes.

    hamza-syndica hamza-syndica commented on code on Jun 18, 2026 07:31 UTC
    Code Review
    hamza-syndica hamza-syndica commented on code on Jun 18, 2026 07:31 UTC
    Code Review
    hamza-syndica hamza-syndica commented on code on Jun 18, 2026 07:32 UTC
    Code Review
    src/replay/freeze.zig:1

    I think we have nothing to change here

    yewman yewman approved these changes on Jun 18, 2026 09:11 UTC
    Approved Reviewer

    Approved these changes.

    ajw221 ajw221 approved these changes on Jun 18, 2026 15:49 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    hamza-syndica hamza-syndica
    Labels
    risk: low confidence: 72.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: 31.1% (LOW) · Higher = larger blast radius
    31.1%
    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: 72.7% · Lower = rushed or shallow review
    72.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: 8.5% · Safe to merge
    8.5%
    Repository