Architecture & Technical Concepts
Deep dive: Control Plane, request flow, Activity Graph, and scaling
10 questions
Agentic AI creates attack surface that grows faster than traditional defenses can handle. Six fundamental challenges:
Challenge Why It's Hard No syntactic boundaries Instructions and data look the same to an LLM Non-deterministic execution Same prompt can produce different paths Semantic ambiguity Pattern matching can't catch meaning-based attacks Stateful manipulation Multi-turn context enables gradual compromise Dynamic prompt chains Derived prompts require policy composition Scattered verification Authorization, intent, and permissions spread across systems Traditional security tools weren't designed for this. You can't firewall natural language or detect malicious intent with regex.
MACAW's approach: Instead of trying to detect bad behavior, enforce policy at every boundary crossing with cryptographic verification.
The Control Plane is MACAW's cloud infrastructure that coordinates security across your agentic system:
┌─────────────────────────────────────────────────────────────────┐ │ MACAW Control Plane │ │ │ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ Identity │ │ Policy │ │ Agent │ │ │ │ Bridge │ │ Store │ │ Registry │ │ │ │ │ │ │ │ │ │ │ │ IdP integration│ │ MAPL policies│ │ Public keys, │ │ │ │ JWT mapping │ │ Hierarchies │ │ identities │ │ │ └──────────────┘ └──────────────┘ └──────────────┘ │ │ │ │ ┌──────────────┐ ┌──────────────┐ │ │ │ Logging │ │ Attestation │ │ │ │ Service │ │ Service │ │ │ │ │ │ │ │ │ │ Audit events │ │ Approval │ │ │ │ Hash chains │ │ workflows │ │ │ └──────────────┘ └──────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘Key design principle: The Control Plane is a routing and coordination layer, not an enforcement bottleneck. It routes requests and provides verification support, but policy enforcement happens at the endpoints (PEPs) for scale.
What the Control Plane does NOT store: Your prompts, parameters or content. These are checked at the enforcement point in your environment. Each invocation sends a signed telemetry record (who, which resource, the decision); parameters such as prompts are generally not included.
MACAW has three principal types representing "who is making the request":
Principal Type Description Identity Source User Human identity JWT from your IdP (Okta, Auth0, Azure AD, etc.) Service Backend service Service credentials, long-lived App Application Application credentials How they're used:
User principals: Alice calls an AI assistant Service principals: Background worker processes data App principals: Your SaaS app makes requests on behalf of usersIdentity flows through workflows: When Alice uses your app, her user identity propagates through every step - LLM calls, tool invocations, data access. Policies can be enforced based on who Alice is, not just which app is calling.
Every tool in MACAW gets its own Ed25519 keypair. This is a deliberate security design for byzantine fault tolerance:
Traditional approach: ┌─────────────────────────────────────────┐ │ Agent (one keypair) │ │ ┌───────┐ ┌───────┐ ┌───────┐ │ │ │Tool A │ │Tool B │ │Tool C │ │ │ └───────┘ └───────┘ └───────┘ │ └─────────────────────────────────────────┘ Problem: If agent is compromised, all tools are compromised MACAW approach: ┌─────────────────────────────────────────┐ │ Agent │ │ ┌───────┐ ┌───────┐ ┌───────┐ │ │ │Tool A │ │Tool B │ │Tool C │ │ │ │(key) │ │(key) │ │(key) │ │ │ └───────┘ └───────┘ └───────┘ │ └─────────────────────────────────────────┘ Benefit: If Tool A is compromised, Tools B and C can detect itWhy this matters:
- Smallest blast radius - Compromise of one tool doesn't compromise others
- Byzantine detection - Other tools can verify signatures and detect anomalies
- Non-repudiation - Each tool signs its own responses, creating proof of execution
- Independent verification - Tools don't trust each other; they verify
Tools are the smallest unit of cryptographic identity in MACAW.
Complete request flow from caller to execution:
┌──────────────┐ │ Caller │ 1. Signs request with private key │ (User/Service│ Includes: operation, parameters, identity │ /App) │ └──────┬───────┘ │ ▼ ┌──────────────────────────────────────────────────────────────┐ │ MACAW Control Plane │ │ │ │ • Routes request to appropriate callee │ │ • Provides identity verification support (registry lookup) │ │ • Logs request metadata (not content) │ │ • Can abort requests if needed │ │ │ │ Note: Control Plane does NOT enforce policy - that happens │ │ at the endpoint for scale │ └──────────────────────────────┬───────────────────────────────┘ │ ▼ ┌──────────────────────────────────────────────────────────────┐ │ Callee (with PEP) │ │ │ │ 2. Compute effective policy │ │ • Combine perspectives: caller intent, system rules, │ │ service/app policies, workflow delegation │ │ • Intersect all applicable policies │ │ │ │ 3. Multi-layer verification │ │ • Verify caller's signature (using registry) │ │ • Evaluate effective policy │ │ • Check pre-conditions │ │ • Check attestation requirements │ │ │ │ 4. If approved → Execute operation │ │ │ │ 5. Sign response with tool's private key │ │ │ │ 6. Check post-conditions │ │ │ └──────────────────────────────┬───────────────────────────────┘ │ ▼ ┌──────────────┐ │ Caller │ Receives signed response │ │ Can verify tool actually executed └──────────────┘Key insight: Enforcement happens at endpoints (the PEP), not in the Control Plane. This enables horizontal scaling without a central bottleneck.
MACAW computes effective policy by combining multiple perspectives - different viewpoints on what should be allowed:
Perspective What it captures Example Caller Intent What the caller says they want to do "I only need read access" System Rules Organization-wide constraints from roles/org "Finance team can access financial tools" Service/App Policy What the service itself allows "This API only exposes query operations" Workflow Delegation Permissions for multi-step workflows "Agent A delegates subset of permissions to Agent B" How perspectives combine:
Caller Intent: { tools: [read, write, delete] } System Rules: { tools: [read, write], based on role } Service Policy: { tools: [read, write, query] } ↓ INTERSECT (most restrictive wins) ↓ Effective Policy: { tools: [read, write] }Why this is powerful:
- Layered - Combines caller, system and service perspectives
- Flexible - Each perspective can be managed independently
- Secure - Intersection means you can only restrict, never expand
- Not cumbersome - Perspectives combine automatically at runtime
The Policy Enforcement Point (PEP) is where security is actually enforced. In MACAW, PEPs are embedded in tools, not in a central gateway.
Multi-layer verification at the PEP:
Request arrives at PEP │ ▼ ┌─────────────────────────────┐ │ 1. SIGNATURE VERIFICATION │ │ • Lookup caller's public key from registry │ • Verify signature on request │ • Reject if invalid └─────────────┬───────────────┘ │ ▼ ┌─────────────────────────────┐ │ 2. POLICY EVALUATION │ │ • Compute effective policy (all perspectives) │ • Check if operation is allowed │ • Validate parameter constraints └─────────────┬───────────────┘ │ ▼ ┌─────────────────────────────┐ │ 3. PRE-CONDITIONS │ │ • Check attestation requirements │ • Validate any required approvals │ • Verify workflow state └─────────────┬───────────────┘ │ ▼ ┌─────────────────────────────┐ │ 4. EXECUTE │ │ • Run the actual operation │ • Capture result └─────────────┬───────────────┘ │ ▼ ┌─────────────────────────────┐ │ 5. POST-CONDITIONS │ │ • Validate result constraints │ • Check output policies └─────────────┬───────────────┘ │ ▼ ┌─────────────────────────────┐ │ 6. SIGN & RETURN │ │ • Sign response with tool's key │ • Log to audit trail │ • Return to caller └─────────────────────────────┘Any layer can reject the request. This is defense in depth - multiple independent checks, not just one.
The Activity Graph is MACAW's real-time visualization of your entire agentic system:
┌─────────────────────────────────────────────────────────────────┐ │ Activity Graph │ │ │ │ [User: Alice] │ │ │ │ │ ▼ │ │ [App: ChatAssistant] ──────► [LLM: GPT-4] │ │ │ │ │ ├──────► [Tool: SearchAPI] │ │ │ │ │ └──────► [Tool: DatabaseQuery] │ │ │ │ │ ▼ │ │ [Data: CustomerDB] │ │ │ │ Legend: ● User ◆ App/Service ■ Tool □ Data │ └─────────────────────────────────────────────────────────────────┘What you see:
- Nodes - Agents, tools, data sources, users (colored by type)
- Edges - Invocations between nodes
- Real-time - Live updates as operations flow through your system
Click any node to see details: recent invocations, policy decisions, attestation status.
Why it matters: No log aggregation or query building - see your entire AI mesh live in one view.
MACAW captures all AI agent interactions through a two-tier logging architecture:
Tier 1: Events Log (High-volume telemetry)
- All interactions recorded in real-time
- Each invocation produces a signed telemetry record
- Exported to OTEL backends for live monitoring
Tier 2: Audit Log (Compliance-critical)
- Cryptographically signed entries
- Hash-chained for tamper-evidence
- Subset of events for regulatory requirements
Event Categories:
Category Events Captured Request request_received,tool_invoked,tool_invocation_deniedAgent agent_registered,agent_connected,agent_disconnectedPolicy policy_decision,policy_violation,policy_updatedError threat_blocked,invalid_signature,jwt_validation_failedPrompt prompt_created,prompt_derived(tracks lineage)Correlation: Events are correlated by
invocation_id, allowing you to trace complete request flows from initiation through policy evaluation to tool execution.Use cases:
- Debug why a request was denied
- Compliance audit trail
- Forensic investigation
- Real-time security monitoring
MACAW's architecture is designed for scale through distributed enforcement:
Traditional centralized approach: ┌──────────────────────────────────────────────────┐ │ Central Policy Gateway │ │ (bottleneck - all traffic flows through here) │ └──────────────────────────────────────────────────┘ ▲ ▲ ▲ ▲ │ │ │ │ Agent A Agent B Agent C Agent D MACAW distributed approach: ┌─────────────────────────────────────────────────────────────────┐ │ Control Plane (dumb router) │ │ Routes requests, provides registry/policy lookup, logs metadata │ └─────────────────────────────────────────────────────────────────┘ ▲ ▲ ▲ ▲ │ │ │ │ ┌────┴───┐ ┌───┴────┐ ┌──┴─────┐ ┌─┴──────┐ │Agent A │ │Agent B │ │Agent C │ │Agent D │ │ (PEP) │ │ (PEP) │ │ (PEP) │ │ (PEP) │ └────────┘ └────────┘ └────────┘ └────────┘ Enforcement happens HERE, at the edgeWhy this scales:
Aspect How MACAW handles it No central bottleneck Enforcement at endpoints, not in control plane Horizontal scaling Add more agents/tools, each has its own PEP Low latency Policy evaluation happens at the PEP Fault tolerance Independent PEPs, high-availability Control Plane (Enterprise) Geographic distribution PEPs can be anywhere, close to the action The Control Plane is intentionally a "dumb router" - it can abort requests if needed, but the heavy lifting (policy evaluation, signature verification, pre/post conditions) happens at the PEPs.