- A holder whose cgroup v2 limit cannot be derived (its membership is
outside the cgroup2 mount of its mount namespace, or memory.max is
unreadable), with neither --memory-limit-mib nor GOMEMLIMIT, must start
on the 256 MiB default and record why (fails: exit 2 on the derivation
error). An explicit but invalid flag still refuses.
- Applying that limit must log exactly one WARN naming the reason and the
two ways to choose a limit, and status must report the reason; a derived
limit logs nothing (fails: no WARN, status empty).
- Seams: flags.memoryLimitFallback, applyMemoryLimit (now called after
logging is configured), ProcessMemoryStatus.SoftLimitFallback,
volume.SetSoftLimitFallback / SoftLimitFallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>