fix(release): package the binary from the configured cargo target dir (#2317) #2451
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.59) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 203 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 89% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.318
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #2451"
general
weight: 0.35
chatgpt-codex-connector[bot]
Summary
scripts/package_native_release.shandscripts/capture_typed_activity_rail_e2e.shbuilt with cargo's configured target dir but read the binary fromrepo/target. WithCARGO_TARGET_DIRorbuild.target-dirset, a stale binary there could ship under the new version.--target-direxplicitly (CARGO_TARGET_DIR, elserepo/target) and read the binary from that same path. The build path and the read path cannot diverge.native_release_archives_are_reproducible_for_unix_and_windows_targetsnow packages withCARGO_TARGET_DIRset, a stale binary inrepo/target, and a fake cargo that writes where real cargo would. The bundle must hold the fresh build. The existing runs now clear an inheritedCARGO_TARGET_DIR.Validation
repo/targetbinary,CARGO_TARGET_DIRelsewhere): old script shippedstale; new script shippedfresh build.bash -non both scripts: pass. shellcheck: not installed locally.git diff --check: pass.cargo fmt --all -- --check: pass.node scripts/agent-plan.mjsprinted-Mode Full; no desktop/admin-game source changed, so I ranpowershell -File scripts/check_native_pr.ps1 -Mode Rust: pass.#![cfg(unix)]file, so it runs only in CI (CI Gate), not on the Windows host.Fixes #2317
🤖 Generated with Claude Code