Independent project / Agent infrastructure
Meshgate
A governance layer for agent communications
I built Meshgate to let agents work with messages without giving them blanket permission to send. Policy decides what needs review, people make the call, and the SDK enforces it where the action runs.
Send onboarding packet
Identity
Agent
Vendor ops agent
SDK context
Intent
send_vendor_packet
SDK context
Threshold
External recipients
Guardrail posture
Policy
Outbound communication
Invocation payload
Review context
Send the onboarding packet to a new vendor.
Encrypted inputs stay with the agent
| Field | Value |
|---|---|
| channel | Email |
| recipient | vendor@example.com |
| attachmentCount | 1 |
Guardrail decision
Why this was gated
recipient is outside the workspaceA human decision is required before sending externally.
01 / The approval boundary
A message can ask. It can’t authorize.
Inbound screening and outbound authorization solve different problems. Screening decides what to surface to the agent. Authorization decides what the agent may do even if a message passes screening. Follow the same onboarding packet shown above.
- 01 · Agent runtime
Propose
The agent proposes sending the packet. The SDK sends the action intent, a fingerprint of the original inputs, and the fields selected for policy or review.
- 02 · Meshgate policy
Hold
Meshgate’s policy requires review because the recipient is external. The SDK keeps the full inputs encrypted on the agent’s side while the action waits.
- 03 · Human review
Decide
The reviewer sees the recipient, channel, attachment count, and matched rule. Meshgate records who approved or rejected the request.
- 04 · Agent runtime
Verify, then resume
The notification wakes the SDK. It must verify the one-time token with Meshgate, then decrypt and check the original inputs before it can send.
Approval is not delivery. A reviewer decision, a verified resume, and a downstream delivery receipt are separate events. A review record alone doesn’t prove that a message was sent.
What crosses the trust boundary?
- Agent runtime
- Stores the encrypted inputs and keeps its encryption key local. Executes only after verification.
- Meshgate service
- Stores the fingerprint, selected review fields, and decision. Returns the per-approval value the SDK needs to decrypt the inputs, but only after successful verification.
What the SDK tests cover
- Recovery of a pending action after a restart.
- No execution after rejection or expiry.
- No execution from an approval notification alone.
- Rejection of inputs that fail the integrity check.
02 / Composable Compliance Engine
New channels without rebuilding the rules.
I separated channel adapters from safeguards so each can evolve on its own. Adapters handle how a message moves. The shared engine runs the checks that apply to that channel and direction, then records the decision and why it made it.
Pick a channel to see several safeguards it can use.
- ≡SMS
- ∿Voicemail
- ◇Content screening
- ⊘Opt-out rules
- ◌Voice disclosures
These are examples, not a fixed checklist. A single channel can use several modules. The policy engine chooses what applies to each action based on the channel and direction.
Voicemail extended the system.
Governed voicemail was added without changing the shared engine.
Email reused earlier work.
The email port reused opt-out logic first built for SMS.
03 / Explore Meshgate
Explore the product, code, and design decisions.
- Live productSee the inbox, approvals, and audit demos.
- Open-source TypeScript SDKRead the code, protocol, and tests behind the approval path.
- Your AI Agent’s Inbox Is Its Biggest Attack SurfaceWhy I built separate checks for inbound content and outbound actions.
- Your AI Agent Just Dropped Your Production DatabaseWhy sensitive actions need authorization outside the model.