← Back to Pull requests

advanced: Execute with the execution states of the VM context #1874

Merged
chfast merged 9 files (204 lines) on Dec 02, 2026 16:20 UTC
View on GitHub
chfast chfast commented on Dec 02, 2026 11:21 UTC
Author

Advanced takes the execution state of the call depth from the VM context, as Baseline does, and keeps only its own fields next to it. Previously, it allocated a new state, with its EVM stack and memory, on every call and ignored the context.

Diff: 204 lines (+96 / -108) across 9 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 298m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.47) × (1 − Review Confidence (0.79)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 204 lines diff across 9 files
0.47
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.65 · 1 substantive comment(s)
0.65
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
79%
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.318
Real PR Conversation Timeline
1 comments
lib/evmone/advanced_execution.cpp
"An Osaka-or-later EVMC execution without the transaction gas cap can reach depth 1025 via CALL/CREATE, but this lookup requires depth ≤1024 (`instructions_calls.cpp:222,287`). Once the reserved capacity is exhausted, debug builds assert and release builds reallocate the vector, leaving the returned pointer and active parent-state references dangling. Preserve deeper-call support by allocating a separate state above depth 1024, or use address-stable storage that supports larger depths."
architecture weight: 0.9
Assignees
chfast chfast
Labels
risk: low confidence: 79.4% 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: 46.6% (MEDIUM) · Higher = larger blast radius
46.6%
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: 79.4% · Lower = rushed or shallow review
79.4%
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: 9.6% · Safe to merge
9.6%
Repository