Loading…
Loading…
Tag
3 posts with this tag.
·9 min read
Copy-paste TypeScript patterns for AI agent logging and audit trails: structured span logging with OpenTelemetry, PII-safe trace storage, compliance-ready audit records, token usage tracking, and decision trail for human review. Working code.
·9 min read
Copy-paste TypeScript patterns for AI agent output validation: Zod schema enforcement, PII redaction, content policy filtering, JSON repair, hallucination guardrails, and cost circuit breakers. Working code.
·14 min read
Working TypeScript code for AI agent authorization: allowlist, scoped API tokens, RBAC, rate limiter, audit log, and human-in-the-loop gate. 6 standalone patterns, each under 80 lines, tested with Express and Next.js.