naormeit/Loom-Protocol ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python service called Loom Protocol that acts like a reservation layer for AI agents when they all want the same limited item at the same time.
I want an agent to send a simple intent, have it checked for safety and authority, and then either get an atomic lock or a clear conflict response that tells it what happened and when to try again. Please include a local API with a handshake endpoint, a small Python client SDK, packet signing with replay protection, and a thread safe local ledger so only one request wins under heavy collision. Also add tests for success, conflicts, unsafe requests, invalid packets, signing, and replay protection, plus a few demo scripts that show lots of agents competing for one scarce resource.
If it fits, make it work in a local mode first, and also leave a path for Azure based adapters for content safety, intent parsing, and Cosmos DB. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit