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
Line-by-line audit of all 236 Go files against the /code rulebook, findings
adversarially verified before fixing.
Correctness-adjacent:
- utils.ResolveRef prefix path could resolve a null index entry and panic
downstream (exact/name paths already nil-checked); skip nil entries
- types.VM Resolved* methods deref NetworkConfigs[0] unguarded; add nil-safe
firstNIC() accessor
- snapshot export --to-dir flag help was mangled by pflag backquote handling
- cmd/vm/status watch loop and cmd/vm run cloneFromDir copy pointers unguarded
- firecracker console-relay failure now logs the actual error
- CNI conflist load errors are no longer silently dropped: stashed and
surfaced through errNoConflist at the point of failure
Consistency/modernisms:
- hand-rolled loops -> slices.ContainsFunc/DeleteFunc/Clone/Concat, maps.Copy,
utils.MapValues reuse
- qcow2/gzip magic bytes deduped into utils/magic.go (3 copies -> 1)
- dead network.ErrNotFound sentinel removed; metering const/var block order;
progress exported-above ordering; cmd.vm.* log tag consistency;
debug.go verb-less Printf -> Print/Println; BlobExt instead of ".qcow2"
Comments: 131 tightened to 1-2 lines (net -138 lines project-wide), dropping
restatement/narration while keeping constraint-bearing WHYs; two stale
comments corrected against actual behavior (MountSpec renders verbatim,
sparse fallback triggers on empty files).
0 commit comments