- Truncate response body in error messages to 256 bytes to prevent
sensitive data leakage from upstream APIs (client.go)
- Replace unchecked strings.Split index with safe repoShortName helper
to prevent potential panic (cmd/monitor)
- Fix test assertions to match coreerr.E error format after prior refactor
Co-Authored-By: Virgil <virgil@lethean.io>
Replace all remaining fmt.Errorf and errors.New calls in production code
with structured coreerr.E(op, msg, err) from forge.lthn.ai/core/go-log.
Covers 10 files across the infra package and cmd/prod and cmd/monitor.
Co-Authored-By: Virgil <virgil@lethean.io>
Production infrastructure and security monitoring commands now
live alongside the infra library they depend on.
Co-Authored-By: Virgil <virgil@lethean.io>