v2026.5.14: std.sync hardening
v2026.5.14: std.sync hardening
Section titled “v2026.5.14: std.sync hardening”The std.sync hardening sprint established the current Janus-native synchronization floor:
- typed
Atomic[T]wrapper over SPEC-059 intrinsics - Linux futex-backed
Parker - guard-based
Mutex[T] - bounded SPSC
Chan[T] - actor-shaped
Mailbox[Msg] - one-shot
CancelToken - timed and cancellable receive helpers
- SpinLock / SpinMutex dogfooding
Atomic[u32]
The compatibility pthread primitives remain in std.sync.mod.
Import Shape
Section titled “Import Shape”Use leaf modules directly:
use std.sync.atomics.mod as atomicsuse std.sync.parker as parkeruse std.sync.mutex as mtxuse std.sync.chan as chanuse std.sync.mailbox as mbuse std.sync.cancel as cancelLeaf re-exports from std.sync.mod are deferred until the cross-module Atomic[T] layout gap is fixed.
Verification Gates
Section titled “Verification Gates”The sprint is covered by focused gates:
./scripts/zb test-atomic-e2e./scripts/zb test-atomic-eligible./scripts/zb test-parker-roundtrip./scripts/zb test-mutex-smoke./scripts/zb test-chan-smoke./scripts/zb test-cancel-timeout-smoke./scripts/zb test-spinlock-smoke./scripts/zb test-spinmutex-smokeCurrent Limits
Section titled “Current Limits”Chan[T]andMailbox[Msg]are SPSC.- Multi-thread proof coverage is still in progress.
Atomic[bool]andMutex[bool]wait on the i1 atomic verifier gap.- NexusOS parker backend and source-level target dispatch remain future work.