Technical Component Catalog
Open source libraries recommended for implementing ATF, ranked by pillar and maturity level.
Technology-agnostic patterns · Phased implementation stacks · Build order guidance
Agent Level Legend
Identity
“Who are you?”
| # | Library | Maturity | AI-Ready | Ease | Levels | Description |
|---|---|---|---|---|---|---|
| 1 | Authlib | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | 🟢🟡🟠🔴 | Full-featured OAuth2/OIDC framework. Python-native, excellent documentation. |
| 2 | PyJWT | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐⭐ | 🟢🟡🟠 | Lightweight JWT handling. Perfect for token-based identity. |
| 3 | Casbin | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | RBAC/ABAC authorization. Wide language support. |
| 4 | Python-FIDO2 | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | ⭐⭐⭐☆☆ | 🟠🔴 | FIDO2/WebAuthn for hardware-backed authentication. |
| 5 | PyOTP | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐⭐ | 🟠🔴 | Time-based OTP for additional verification flows. |
| 6 | FastAPI-Security | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐⭐ | 🟢🟡🟠 | Built-in FastAPI auth utilities with rate limiting. |
Start with PyJWT for simple API key validation. Identity primarily for audit trail.
Add Authlib for OAuth flows. Human approval requires clear identity chain.
Implement Casbin for role-based permissions. Actions require scoped authorization.
Full identity stack with PyOTP/FIDO2 for high-value operations.
Behavior
“What are you doing?”
| # | Library | Maturity | AI-Ready | Ease | Levels | Description |
|---|---|---|---|---|---|---|
| 1 | LangSmith | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | 🟢🟡🟠🔴 | Purpose-built for LLM/agent observability. Prompt chains, telemetry, trace visualization. |
| 2 | OpenInference | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | 🟢🟡🟠🔴 | Lightweight observability with OpenTelemetry support. |
| 3 | PyOD + structlog | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | 30+ anomaly algorithms combined with structured logging. |
| 4 | scikit-learn | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐⭐ | 🟢🟡🟠 | IsolationForest, OneClassSVM. Reliable anomaly detection starting point. |
| 5 | Prophet | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | Meta's time series forecasting for pattern detection. |
| 6 | River | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | 🟠🔴 | Online/streaming anomaly detection. Real-time, memory efficient. |
LangSmith or OpenInference for basic observability. Log everything, alert on nothing.
Add anomaly scoring with PyOD. Flag suspicious patterns for human review.
Real-time monitoring with threshold-based alerts. Actions trigger immediate notification.
Full behavioral baseline with drift detection. Autonomous escalation of edge cases.
Data Governance
“What are you eating? What are you serving?”
| # | Library | Maturity | AI-Ready | Ease | Levels | Description |
|---|---|---|---|---|---|---|
| 1 | Microsoft Presidio | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | Enterprise PII/PHI detection + anonymization. 30+ recognizers. |
| 2 | Great Expectations | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | 🟠🔴 | Best-in-class data validation, testing, and profiling. |
| 3 | Pydantic | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | 🟢🟡🟠🔴 | Data validation with type hints. Essential for agent I/O. |
| 4 | Guardrails AI | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | Output validation for LLMs. Schema enforcement, content filtering. |
| 5 | spaCy + custom NER | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | 🟠🔴 | Train custom entity recognition for domain-specific data. |
| 6 | detect-secrets | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐☆ | 🟢🟡🟠🔴 | Prevents secrets in code/text. Essential layer. |
Pydantic for input validation. Basic regex patterns for obvious PII.
Add Presidio for comprehensive PII scanning. Guardrails AI for output validation.
Full data pipeline validation with Great Expectations. Automated remediation.
Custom NER models for domain-specific data. Full DLP integration.
Segmentation
“Where can you go?”
| # | Library | Maturity | AI-Ready | Ease | Levels | Description |
|---|---|---|---|---|---|---|
| 1 | Open Policy Agent (OPA) | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | 🟠🔴 | Industry standard policy-as-code. Declarative, testable, auditable. |
| 2 | Casbin | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | RBAC/ABAC enforcement. Simpler than OPA, multiple models. |
| 3 | Kong Gateway | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐⭐☆☆ | 🟠🔴 | API gateway with plugin architecture for policy enforcement. |
| 4 | py-abac | ⭐⭐⭐☆☆ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐☆ | 🟡🟠 | Attribute-based policies. Fine-grained agent role control. |
| 5 | Traefik | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐☆ | 🟡🟠 | Simpler reverse proxy. Good for quick setups. |
| 6 | Flask-Limiter / slowapi | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐⭐ | 🟢🟡 | Rate limiting utility. Essential for resource usage control. |
Simple allowlists in config. Read-only access to predefined resources.
Casbin for role-based boundaries. Human approval required for expansion.
OPA policies define action scope. Automatic enforcement with notification.
Full policy-as-code with dynamic boundaries. Agent negotiates access within governance limits.
Incident Response
“What if you go rogue?”
| # | Library | Maturity | AI-Ready | Ease | Levels | Description |
|---|---|---|---|---|---|---|
| 1 | TheHive + Cortex | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐☆☆☆ | 🔴 | Complete IR platform. Full incident management, SOC workflows. |
| 2 | py-breaker + Sentry | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐☆ | 🟡🟠🔴 | Circuit breakers + error tracking. Production-proven. |
| 3 | tenacity | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐⭐ | 🟢🟡🟠 | Retry with exponential backoff. Essential utility. |
| 4 | Prometheus + Alertmanager | ⭐⭐⭐⭐⭐ | ⭐⭐⭐☆☆ | ⭐⭐⭐☆☆ | 🟠🔴 | Time-series monitoring + alerting for baselines and agent alerts. |
| 5 | structlog / Loguru | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐☆ | ⭐⭐⭐⭐⭐ | 🟢🟡🟠🔴 | Structured logging. Foundational for diagnostics and audit. |
| 6 | ntfy.sh / PagerDuty | ⭐⭐⭐⭐☆ | ⭐⭐⭐☆☆ | ⭐⭐⭐⭐⭐ | 🟡🟠🔴 | Notification/escalation systems for IR workflow integration. |
Structured logging + tenacity for retry. Incidents are informational only.
Circuit breakers halt processing pending human review.
Automated containment (circuit breaker + kill switch). Post-action notifications.
Full IR integration with TheHive/Cortex. Self-diagnosis and escalation.
Recommended Implementation Stacks
Phased stack recommendations from MVP to enterprise
MVP Stack (Phase 1)
Intern / Junior Agents| Identity | PyJWT |
| Behavior | structlog + LangSmith (or OpenInference) |
| Data Governance | Pydantic + regex patterns |
| Segmentation | Simple allowlists in config |
| Incident Response | tenacity + py-breaker + logging |
Production Stack (Phase 2)
Junior / Senior Agents| Identity | PyJWT + Authlib + Casbin |
| Behavior | LangSmith + PyOD (IsolationForest) + structlog |
| Data Governance | Microsoft Presidio + Pydantic + Guardrails AI |
| Segmentation | Casbin + rate limiting |
| Incident Response | py-breaker + Sentry + ntfy.sh |
Enterprise Stack (Phase 3)
Senior / Principal Agents| Identity | Authlib + PyOTP/FIDO2 + Casbin |
| Behavior | LangSmith + PyOD + River (streaming) + spaCy + structlog |
| Data Governance | Presidio + Great Expectations + custom NER + Guardrails AI |
| Segmentation | Open Policy Agent + Kong |
| Incident Response | py-breaker + Sentry + TheHive/Cortex + Prometheus |