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
Fix ignored errors in security-sensitive operations #75
Several locations in the codebase ignore errors from operations where failure matters. This is the same class of error as issue NobleFactor/noblefactor-engprod#317 (stub functions returning success) - the code continues as if everything succeeded when it didn't.
Impact: If config load fails (permissions, corruption), the code overwrites with defaults, losing user settings.
Fix: Check error, warn user if load failed before overwriting.
3. npm command errors silently ignored
File:internal/starlark/npm.go:191, 237, 258
output, _:=cmd.Output()
Impact: If npm isn't installed or commands fail, functions return incorrect results (false negatives for package existence checks).
Fix: Return error or handle npm-not-found case explicitly.
Root Cause
Same as issue NobleFactor/noblefactor-engprod#317 pattern: prioritizing "keep going" over correctness. Errors are ignored to avoid disrupting flow, but this creates confusing downstream failures.
Acceptance Criteria
identity.LoadIdentities() errors are handled (propagate or warn)
config.Load() errors are checked before overwriting
npm command failures are handled appropriately
No _, _ := patterns on operations where failure matters
internal/starlark/npm.go no longer exists in the codebase. The npm command error ignoring item can be removed from this issue.
Remaining items
identity.LoadIdentities() at internal/writ/commands.go:604 — error still ignored with //nolint:errcheck // fallback: continue without identities
config.Load() at internal/model/config.go:234,328 — error still ignored with //nolint:errcheck // fallback: continue without value
Both use intentional //nolint annotations justifying the suppression as fallback behavior. Whether these are acceptable or should propagate errors is a design decision.
Activity
David-Noble-at-work commentedon Mar 11, 2026
Status Update (2026-03-10)
Item 3 is obsolete
internal/starlark/npm.gono longer exists in the codebase. The npm command error ignoring item can be removed from this issue.Remaining items
identity.LoadIdentities()atinternal/writ/commands.go:604— error still ignored with//nolint:errcheck // fallback: continue without identitiesconfig.Load()atinternal/model/config.go:234,328— error still ignored with//nolint:errcheck // fallback: continue without valueBoth use intentional
//nolintannotations justifying the suppression as fallback behavior. Whether these are acceptable or should propagate errors is a design decision.chore(docs): Architecture status audit, bug triage, GitHub issue anal…
David-Noble-at-work commentedon Mar 18, 2026
Resolved — 117 unhandled error results fixed in commit 5e4315d across 28 files. iox.Close, errors.Join patterns adopted. Covered by compensation, archive, and recovery error path tests.
test(flow): Add Plan receiver integration tests, close 6 resolved iss…
test(flow): Add Plan receiver integration tests, close 6 resolved iss…