feat: relay stdio through pipes for foreground run and exec without a terminal #3798
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 119 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · 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.286
Real PR Conversation Timeline
1 comments
"Review active on #3798"
general
weight: 0.35
utam0k
Description
With
process.terminal=false, a foregroundyouki runoryouki execnow gives the process its own stdio pipes and relays them to youki's stdio, like runc'ssetupProcessPipes. The pipes are owned by the process user, so a non-root user can reopen/dev/stdout. For exec, the owner is mapped through the ID mappings of the container's init process.Type of Change
Testing
Related Issues
Closes #3527
Additional Context
I use AI assistance to generate tests.
Limitations
runwith a userns path other than /proc/<pid>/ns/user still inherits youki's stdio (#3833).