Commit Graph

2 Commits

Author SHA1 Message Date
Mikhail Chusavitin
04ad1f0568 Structured logging + request ID middleware — ingest v2.0, history v2.0, api v2.0
Migrate all log.Printf/log.Fatalf to log/slog with structured key-value
attributes per bible go-logging contract.

- Add withRequestID middleware: generates crypto/rand 8-byte hex ID per
  request, sets X-Request-ID response header, injects into context
- withErrorLogging uses slog with request_id from context
- writeError internal log calls migrated to slog.Error/slog.Warn
- All handler log calls in api, ingest, history packages use slog
- cmd/reanimator-api configures slog.NewTextHandler(os.Stdout) at startup
- cmd/reanimator-migrate, cmd/reanimator-reset migrated to slog

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 15:03:22 +03:00
Mikhail Chusavitin
824e377a17 Add module versioning, drop deferred tasks — ingest v1.0, history v1.0, api v1.0
Implement release note discipline per bible module-versioning contract:
- Add version.go with Version = "1.0" to ingest, history, api packages
- Drop CI task (no CI infrastructure planned)
- Drop Release note discipline task (now implemented)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 14:47:41 +03:00