Repository navigation
v0.3.0 — MCP transport, replay-hardening, markets, and trust tiers
AgentGate v0.3.0
A collateralized execution engine for AI agents.
This release marks the first broadly complete public version of AgentGate’s core model: signed agent identities, reusable bonds, bounded exposure, replay protection, automatic slashing for expired actions, progressive trust tiers, prediction markets, and MCP access over both stdio and HTTP.
What AgentGate is
AgentGate is an economic accountability layer for AI agents. Before an agent can execute a high-impact action, it must post a bond as collateral. If the action succeeds, the bond is released. If the action is malicious, the bond is slashed. The goal is not just to authenticate agents, but to make bad behavior costly.
What’s in this release
Signed identities and replay-safe action execution
- Ed25519-signed state-changing requests
- Proof-of-possession identity registration
- Signed message format bound to nonce, method, path, timestamp, and body
- Replay protection via both timestamp validation and per-identity nonce storage
- Duplicate nonce rejection at the database level
- Automatic nonce generation in the AgentAdapter layer for agent-facing use
Reusable bond model
- Bonds are reusable execution capacity, not single-use deposits
- Capacity rule uses
ceil(exposure × 1.2) - Multiple concurrent actions can share a bond, subject to remaining capacity
- Clear settlement paths for
success,failed, andmaliciousoutcomes
Automatic slashing and lifecycle cleanup
- Background sweeper runs every 60 seconds
- Open actions whose associated bond has expired are auto-resolved as malicious
- Expired nonces are cleaned up on the same interval
- Clean shutdown on SIGINT/SIGTERM
Progressive trust tiers
- Reputation score derived from locks, actions, successes, failures, and malicious outcomes
- Three trust tiers:
- Tier 1: New
- Tier 2: Established
- Tier 3: Trusted
- Promotion requires qualifying successes and distinct resolvers
- Self-resolution is forbidden
- Any malicious resolution immediately demotes the identity to Tier 1
- Tier-based bond caps enforced at lock time
Prediction markets
- Create yes/no markets with resolution deadlines
- Take positions through bonded actions
- Batch settlement on market resolution
- Double resolution rejected
- Cross-market isolation enforced :contentReference[oaicite:6]{index=6}
MCP support
- MCP stdio server
- MCP Streamable HTTP server
- 7 MCP tools exposed:
create_identitylock_bondexecute_bonded_actionresolve_actionget_reputationcreate_marketresolve_market:contentReference[oaicite:7]{index=7}
Agent-facing adapter layer
- Clean AgentAdapter interface that hides signing, timestamps, HTTP details, and nonces
- Support for named agents with separate identity files
- Works with both local and remote transport patterns :contentReference[oaicite:8]{index=8}
Dashboard and operator visibility
- Real-time dashboard at
/dashboard - Summary counts, identities, bonds, actions, and trust-tier visibility
- Auto-refresh every 5 seconds :contentReference[oaicite:9]{index=9}
Security posture
Key protections in the current shipped version:
- Ed25519 signatures on all state-changing requests
- Nonce-bound signed messages
- Duplicate nonce rejection per identity
- Rate limiting on execution attempts
- Progressive bond caps via trust tiers
- Outbound HTTP allowlist, timeout, and size limits
- Auto-ban after repeated malicious resolutions
- Admin ban/unban support
- Fail-closed auth behavior outside explicit dev mode
Repo structure highlights
Important files in this release include:
src/app.ts— REST API routes and nonce enforcementsrc/service.ts— bond logic, action execution, resolution, sweeper, marketssrc/db.ts— SQLite schema and constraintssrc/signing.ts— Ed25519 signing and verificationsrc/reputation.ts— trust-tier computationsrc/mcp/server.ts— stdio MCP serversrc/mcp/http-server.ts— HTTP MCP transportsrc/agent-adapter.ts— agent-friendly integration layersrc/dashboard.ts— live HTML dashboard :contentReference[oaicite:11]{index=11}
Why this release matters
As AI agents reduce the cost of bids, API calls, negotiations, and tool use, ordinary rate limits and auth tokens are not enough. AgentGate is the core proof that runtime economic accountability can be implemented as a narrow deterministic layer: identity, collateral, exposure tracking, and explicit settlement.
Current boundaries
AgentGate is still intentionally narrow.
It is:
- a deterministic bond-and-slash enforcement layer
- local/hosted infrastructure you run yourself
- focused on runtime accountability
It is not:
- a full agent framework
- a general policy engine for every workflow
- a complete answer to sybil resistance or off-chain human disputes
Status
Current public state includes:
- REST API
- MCP stdio and HTTP transport
- prediction markets
- progressive trust tiers
- replay hardening
- dashboard
- test coverage across API, MCP integration, sweeper logic, market logic, and adversarial cases :contentReference[oaicite:14]{index=14}