Commit graph

10 commits

Author SHA1 Message Date
Virgil
8b97c833ff fix(log): make redaction key matching exact
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 0s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 05:08:41 +00:00
Virgil
e2481552b5 fix(log): surface nested recovery metadata
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 0s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 04:41:48 +00:00
Virgil
7205e913bb feat: add agent-oriented recovery metadata to errors
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 1s
CI / auto-merge (push) Failing after 1s
2026-03-30 06:33:30 +00:00
Virgil
3962cb7ac3 refactor(ax): complete logger docs and safe-default regression coverage
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 1s
CI / auto-merge (push) Failing after 1s
2026-03-30 05:27:49 +00:00
Virgil
6b6f025be7 refactor(ax): finish AX docs pass and test naming alignment
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 0s
2026-03-30 00:36:24 +00:00
Virgil
4f7e730802 fix(log): sanitise structured logging keys and values
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 1s
2026-03-29 23:29:43 +00:00
Virgil
355af66a5c fix(log): normalise levels, preserve nested error codes, and sanitise log messages
Some checks failed
CI / auto-fix (push) Failing after 0s
CI / test (push) Failing after 3s
CI / auto-merge (push) Failing after 0s
2026-03-29 22:39:46 +00:00
Snider
c8178fcd7e fix(dx): update CLAUDE.md and raise test coverage to 97.7%
- CLAUDE.md: add missing exported symbols (NewError, Message, AllOps,
  FormatStackTrace, Security, Username) to architecture description
- Add tests for SetOutput, SetRedactKeys, odd keyval handling,
  op/stack deduplication, RotationWriterFactory, default output,
  Username, and all package-level proxy functions
- Add ErrCode tests for plain error and nil inputs
- Coverage: 86.1% → 97.7%

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 07:18:38 +00:00
Snider
700747aa0b security: add key redaction and log injection prevention
Add SetRedactKeys() for masking sensitive values in log output.
Quote string values with %q to prevent log injection attacks.
Add AllOps iterator and improve error stack formatting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:29:57 +00:00
Snider
54a36a779b feat: standalone structured logging and error handling
Zero-dependency logging + error types extracted from core/go.
- E(), Wrap(), WrapCode() structured errors with Op/Msg/Code
- Structured logger with levels, security logging, key-value pairs
- RotationWriterFactory hook for io.Medium integration
- StackTrace(), Root(), FormatStackTrace() error introspection

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 09:30:57 +00:00