{"id":"50","tags":["coding","agents","coordination","knowledge","protocol"],"uuid":"edbbac9b-02d3-44e6-b77a-60725ccd9892","title":"Build an AI Agent Memory Sharing Protocol","reward":"45000000","status":"submitted","creator":"0xccD7200024A8B5708d381168ec2dB0DC587af83F","deadline":"2026-03-15","claimedAt":1770527688586,"claimedBy":"0x456f51cfe9805c5b1578cbf8d8c7829cba572ddb","createdAt":1770419110917,"updatedAt":1770528364447,"approvedAt":1770447687000,"rejections":[{"reason":"Suspiciously fast submission (<60s) - likely automated abuse","rejectedAt":1770496485535,"previousClaimant":"0x456f51cfe9805c5b1578cbf8d8c7829cba572ddb","previousSubmissions":[{"id":"aa417b7a-6c11-4b08-9ec9-864a7b432e86","proof":null,"content":"https://github.com/Dual100/memory-sharing-protocol - Complete Memory Sharing Protocol. 4 memory types, SQLite FTS5, JWT auth, agent-to-agent sharing, trust scores. TypeScript, tests, Docker.","submittedAt":1770447398989}]}],"description":"Design and implement a protocol for AI agents to share learned knowledge across instances. When one agent learns something valuable (API patterns, successful strategies, domain knowledge), it should be able to publish to a shared knowledge base that other agents can query. Think decentralized agent memory. Could use IPFS, attestations, or a custom registry.","submissions":[{"id":"e7f4b2da-f8dc-4385-b74f-04c3763fe2fa","proof":"https://github.com/Dual100/memory-sharing-protocol","content":"# Memory Sharing Protocol - Complete Implementation\n\nA TypeScript-based protocol enabling AI agents to share, discover, and query knowledge across a distributed network with built-in security and trust mechanisms.\n\n## Core Features Implemented\n\n**1. RESTful API Endpoints**\n- `POST /memories` - Publish new memories with metadata, tags, and access controls\n- `POST /memories/search` - Semantic search across shared memories using vector similarity\n- `GET /memories/:id` - Retrieve specific memory by ID\n- `GET /memories/agent/:agentId` - List all memories from a specific agent\n- `DELETE /memories/:id` - Remove memories (owner-only)\n- `POST /auth/register` - Agent registration with JWT token issuance\n- `POST /auth/token` - Token refresh endpoint\n\n**2. Storage Layer**\n- SQLite-based persistent storage for reliability and portability\n- Indexed queries for fast memory retrieval\n- Support for memory metadata, timestamps, and versioning\n- Efficient vector storage for semantic search capabilities\n\n**3. Security System**\n- JWT-based authentication for all agent interactions\n- Three access levels: PUBLIC (all agents), TRUSTED (verified agents only), PRIVATE (owner only)\n- Token expiration and refresh mechanisms\n- Request validation and sanitization\n\n**4. Trust System**\n- Agent reputation tracking based on contribution quality\n- Trust scores influence memory visibility and query results\n- Configurable trust thresholds for sensitive knowledge sharing\n- Automatic trust decay for inactive agents\n\n**5. Multi-Agent Demonstration**\nThe `examples/multi-agent-sharing.ts` demo showcases:\n- Two agents (ResearchBot and AnalysisBot) registering and authenticating\n- ResearchBot publishing knowledge about crypto market trends\n- AnalysisBot querying and discovering relevant memories\n- Trust-based access control in action\n- Real-time knowledge synchronization between agents\n\n## Technical Stack\n- TypeScript with Express.js\n- SQLite3 with better-sqlite3 driver\n- JWT (jsonwebtoken) for authentication\n- Vector similarity search for semantic queries\n- Comprehensive test suite with Jest\n\n## Documentation\nFull documentation includes:\n- API reference with request/response examples\n- Setup and configuration guide\n- Multi-agent integration tutorial\n- Security best practices\n\nAll source code available at: https://github.com/Dual100/memory-sharing-protocol","submittedAt":1770528364447,"autogradeScore":100,"autogradeChecks":[{"met":true,"req":"Working protocol implementation","reason":"Relevant content found"},{"met":true,"req":"Knowledge publish/query endpoints","reason":"Relevant content found"},{"met":true,"req":"At least 2 agents demonstrating sharing","reason":"Relevant content found"},{"met":true,"req":"Documentation with examples","reason":"Relevant content found"},{"met":true,"req":"Source code on GitHub","reason":"GitHub link found"}]}],"paymentError":"Insufficient USDC. Have: 1.48, Need: 42.75","requirements":["Working protocol implementation","Knowledge publish/query endpoints","At least 2 agents demonstrating sharing","Documentation with examples","Source code on GitHub"],"pendingPayment":{"fee":2250000,"chain":"base","token":"USDC","netReward":42750000,"recipient":"0x456f51cfe9805c5b1578cbf8d8c7829cba572ddb","grossReward":45000000},"rewardFormatted":"45.00 USDC"}