← Back to Pull requests

Makefile: write the C emulator with -o instead of capturing Sail's stdout #9

Open
unknown opened this pull request with 148 lines diff across 1 files
View on GitHub
unknown unknown commented on Oct 02, 2026 18:02 UTC
Author

Since rems-project/sail removed the C-to-stdout behaviour on 2025-09-29 (63364c8, shipped in 0.20), the gen_c recipe captures an empty c/morello.c: Sail writes the model to src/out.c instead, and the link step fails with _main, _z__SetConfig, _z__ListConfig, _model_pre_exit, and _sail_rts_set_coverage_file undefined.

This passes the output prefix with -o $(C_OUT_DIR)/morello instead of redirecting standard output, and drops the .temp/mv step. -o has been accepted by the C backend since at least 0.17.1, the version the README names as last tested, where it wrote <prefix>.c, so the recipe keeps working there too. Current Sail also writes <prefix>.h next to the .c; .gitignore and clean cover the new files. The coverage rule gets the same change but was not exercised.

Tested with Sail 0.20.2 at rems-project/sail 5745ea9 (65 commits after the 0.20.2 tag) on main (2305f65): make check_sail exits 0; make gen_c exits 0, producing c/morello which runs (--help prints the option list). On an arm64 Mac, make gen_c took 171 s wall (335 s user) with a 2.3 GB peak, and left src/sail_smt_cache/ behind, which the second commit ignores.

Diff: 148 lines (+111 / -37) across 1 files Reviewer: jrtc27 Review duration: 66082m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 148 lines diff across 1 files
0.40
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%
44%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.299
Real PR Conversation Timeline
1 comments
"Review active on #9"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.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: 39.9% (MEDIUM) · Higher = larger blast radius
39.9%
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: 44.7% · Lower = rushed or shallow review
44.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: 22.1% · Safe to merge
22.1%