← All projects

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.

MeshgateAPPROVALS / SDK EXECUTIONDEMO DATA

Send onboarding packet

●   Pending approval

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

Meshgate · selected fields

Send the onboarding packet to a new vendor.

Encrypted inputs stay with the agent

FieldValue
channelEmail
recipientvendor@example.com
attachmentCount1

Guardrail decision

Why this was gated

require_approvalpriority 10
Matched:recipient is outside the workspace

A human decision is required before sending externally.

Rule matchedExternal recipient · action held
Meshgate’s SDK approval viewApp components rendered with sample data · no live actions

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.

Send onboarding packetIllustrative trace · not production data
  1. 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.

  2. 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.

  3. 03 · Human review

    Decide

    The reviewer sees the recipient, channel, attachment count, and matched rule. Meshgate records who approved or rejected the request.

  4. 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.

01 / Channel adapters
  • Email
  • SMS
  • Voicemail
Shared policy engineEvaluate · decide · record
02 / Safeguard modules
  • 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.