You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[soundness] hy-check(channel_liveness): function parameter capabilities (hy.send_cap[T] / hy.recv_cap[T]) untracked, bypassing linearity, affine transfer, and terminal lifecycle checks (#4200 regression) #4416
\\hy
// repro4_undrained_recv.hy — receive capability parameter leaked without draining
fn receiver(rx hy.recv_cap[int]) {
v := rx.recv()
_ = v
// rx is never drained or moved before function returns; messages abandoned!
}
**
epro1_unclosed_sender.hy**: Reject (\exit 1) with *\HYB-E4004* (\linear send capability 'tx' was not closed before scope exit).
**
epro2_double_move.hy**: Reject (\exit 1) with *\HYB-E3001* (\�ffine capability 'tx' moved more than once).
**
epro3_use_after_move.hy**: Reject (\exit 1) with *\HYB-E3001* (\use of moved linear capability 'tx').
**
epro4_undrained_recv.hy**: Reject (\exit 1) with *\HYB-E4005* (\linear receive capability 'rx' was not drained before scope exit).
**
epro5_unmoved_task_capture.hy**: Reject (\exit 1) with *\HYB-E3002* (\unmoved capture 'tx' across task boundary is forbidden; must be explicitly transferred with 'move').
Activity
fix(hy-check): track function parameter capabilities and enforce line…