golang-logging

Pass

Audited by Gen Agent Trust Hub on Jul 13, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill defines standards for structured logging and observability in Golang, focusing on the use of the log/slog library and established high-performance alternatives like zap and zerolog.
  • [INDIRECT_PROMPT_INJECTION]: The skill demonstrates logging of external inputs such as HTTP headers and request paths. This is a standard and expected logging pattern for application observability.
  • Ingestion points: r.Header.Get("X-Request-Id") and r.URL.Path are used in references/slog-patterns.md to enrich log context.
  • Boundary markers: None explicitly defined in the provided code snippets.
  • Capability inventory: Application logs are written to standard output (os.Stdout) using a structured JSON handler.
  • Sanitization: The provided examples use slog.JSONHandler, which ensures that logged values are properly escaped within the JSON output structure.
Audit Metadata
Risk Level
SAFE
Analyzed
Jul 13, 2026, 06:45 AM
Security Audit — agent-trust-hub — golang-logging