Loading…
Loading…
Tag
5 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
Copy-paste TypeScript patterns for AI agent tool authorization: allowlists, scoped tokens, human-in-the-loop gates, rate limits, audit logging, and role-based access. Working code, not theory.
·14 min read
4 copy-paste TypeScript files for AI agent security: injection-detector.ts, circuit-breaker.ts, audit-logger.ts, tool-authorization.ts. Complete agent.ts integration + full Vitest test suite + incident response decision matrix.