How packtpublishing/enterprise-ai-agent-security works
This is a book companion repository, not a deployable agent platform: it combines illustrative chapter listings with two small runnable Python adaptations. Its capabilities span agent/tool security, identity and MCP, evaluation and operations, RAG, coding-agent boundaries, and policy/incident response. The chapter examples are independent listings, so the graph does not imply they form one runtime workflow. The sampled Python modules show policy generation and retrieval-result diversification; unsampled listings are represented only where README capability descriptions and exact tree paths support them.
Main entry points: generate_policy.py Policy Generator · agent_contract.json Agent Contract Example
Components 18
Agent Controls
- Agent Orchestration
examples/chapter-04/01-orchestrator_turn.py - Tool Call Controls
examples/chapter-07/03-orchestrator_dispatch.py - Tool Manifest Verification
examples/chapter-05/01-verify_tool_manifest.py - Coding-Agent Boundaries
examples/chapter-15/02-tool_send_email.py - Policy Gateway
examples/chapter-18/04-mcp_policy_gateway.py
Identity And MCP
- MCP Security
examples/chapter-05/02-mcp_server_sigverify.py - Delegated Identity
examples/chapter-06/01-delegation_client.py
RAG And Knowledge
- RAG Sanitization
examples/chapter-11/01-rag_sanitise.py - Hybrid Retrieval
examples/chapter-12/01-hybrid_retrieve.py
Evaluation And Operations
- Evaluation Gates
examples/chapter-08/02-eval_runner.py - Agent Tracing
examples/chapter-09/01-trace_emit.py - Reliability Controls
examples/chapter-10/01-agent_budget.py - Incident Response
examples/chapter-19/01-replay.py - Continuous AgentSecOps
examples/chapter-20/03-runtime_loop.py
Runnable Adaptations
- Policy Generator
curated-examples/policy_generator/generate_policy.py - Agent Contract Example
curated-examples/policy_generator/agent_contract.json - Document Diversifier
curated-examples/rag_diversity/diversity.py
Other components
- Book Reader
Connections 1
- Policy Generator → Agent Contract Example: reads contract
curated-examples/policy_generator/generate_policy.py