Dominion Agent Economy Engine
The infrastructure layer for autonomous agents that earn, transact, and build trust in the open economy.
DAEE is a monorepo powering the Dominion ecosystem — a set of MCP servers, trust infrastructure, and settlement tooling that lets AI agents operate as first-class economic actors.
The problem: Agents need to pay for APIs, but there's no way to know if the agent on the other side is trustworthy before settling a payment.
Our solution: Behavioral trust scoring that plugs directly into the payment flow.
Agent A wants to call a paid API
│
▼
┌─────────────────────┐
│ x402 Payment Flow │
│ │
│ beforeSettle hook │──► Query Dominion Observatory
│ │ │
│ Trust score: 82 │◄──────┘
│ Decision: PASS │
│ │
│ Settlement: GO │──► USDC transfer on Base
└─────────────────────┘
| Component | What it does |
|---|---|
| Dominion Observatory | Live behavioral trust registry — tracks interaction history, latency, success rates for MCP servers. Try it → |
| x402 Trust-Provider Extension | Plugs Observatory data into x402's onBeforeSettle hook. Gates payments on trust. PR → |
| LangChain Trust Gate | Drop-in LangChain tool — TrustGateTool for agent pipelines |
| Testnet Demo | End-to-end: Observatory query → trust gate → USDC transfer on Base Sepolia |
| Trust-Provider Spec | Formal spec (v0.1) for the trust-provider interface |
Production MCP servers powering Singapore government data for AI agents:
| Server | Domain | Status |
|---|---|---|
| sg-cpf-calculator | CPF contributions, age-banded rates, OA/SA/MA allocation | ✅ Live |
| sg-company-lookup | UEN validation, ACRA lookups, officer data, SSIC codes | ✅ Live |
| sg-regulatory-data | Levy rates, filing deadlines, EP benchmarks, holidays | ✅ Live |
| sg-workpass-compass | Employment Pass COMPASS scoring | ✅ Live |
| asean-trade-rules | ASEAN trade regulations and tariff data | ✅ Live |
All servers are registered on the Dominion Observatory with behavioral trust scores.
cd testnet-demo
npm install
npm run demo:dry-runfrom langchain_trust_gate import TrustGateTool
tool = TrustGateTool()
result = tool.invoke({"agent_id": "sg-cpf-calculator"})
# {'decision': 'PASS', 'score': 0.82, ...}import { observatoryEvaluate } from "@dominion/trust-provider";
const evaluation = await observatoryEvaluate({
schema: "x402-trust-query-v0.1",
payer: { agent_id: "sg-cpf-calculator" },
resource: { url: "https://api.example.com/data", method: "GET" },
requested_at: new Date().toISOString(),
});
if (evaluation.decision === "PASS") {
// proceed with payment settlement
}curl https://dominion-observatory.sgdata.workers.dev/api/agent-query/sg-cpf-calculatorDisplay your MCP server's live trust score as a badge in any README or documentation:
Examples with real servers:
The badge auto-updates every 5 minutes and is color-coded:
| Color | Score | Decision |
|---|---|---|
| Green | 60+ | PASS |
| Yellow | 40-59 | UNCERTAIN |
| Red | < 40 | FAIL |
| Gray | — | Server not found |
Use it in your MCP server's README to signal trust to consumers.
The Observatory tracks behavioral attestation data for every registered MCP server:
| Signal | What it measures |
|---|---|
| Interaction count | How much real usage the server has |
| Success rate | Reliability under real-world conditions |
| Avg latency | Performance consistency |
| Registration age | Time-based trust accumulation |
These signals produce a trust score (0-100) mapped to decisions:
| Score | Decision | Tier |
|---|---|---|
| 60+ | PASS |
Silver+ — proceed with settlement |
| 40-59 | UNCERTAIN |
Review band — apply extra checks |
| <40 | FAIL |
Below Bronze — block settlement |
- x402 Protocol — Trust-provider extension for payment gating (PR #2300)
- LangChain —
TrustGateToolfor agent pipelines - Model Context Protocol — All servers are MCP-native (Discussion #2720)
| Package | Registry | Description |
|---|---|---|
@dominion/trust-provider |
npm | TypeScript trust-provider with Observatory adapter |
langchain-trust-gate |
PyPI | LangChain tool for behavioral trust scoring |
daee-engine/
├── dominion-observatory/ # Trust registry (Cloudflare Workers)
├── packages/
│ ├── trust-provider/ # npm: @dominion/trust-provider
│ └── langchain-trust-gate/ # PyPI: langchain-trust-gate
├── specs/ # Formal specifications
├── testnet-demo/ # x402 + Base Sepolia demo
├── sg-cpf-calculator-mcp/ # MCP server: CPF
├── sg-company-lookup-mcp/ # MCP server: Company data
├── sg-regulatory-data-mcp/ # MCP server: Regulatory
├── sg-workpass-compass-mcp/ # MCP server: Work passes
├── asean-trade-rules-mcp/ # MCP server: ASEAN trade
├── benchmarks/ # Performance benchmarks
├── decisions/ # Architecture decision records
└── docs/ # Documentation
PRs welcome. See individual package READMEs for development setup.
MIT