{"by":"alexgarden","descendants":33,"id":47062824,"kids":[47064782,47063303,47071869,47071774,47148556,47065761,47065280,47064720,47065953,47093675,47065377,47068510,47065840,47083446],"score":40,"text":"Much of my work right now involves complex, long-running, multi-agentic teams of agents. I kept running into the same problem: “How do I keep these guys in line?”  Rules weren’t cutting it, and we needed a scalable, agentic-native STANDARD I could count on.  There wasn’t one.  So I built one.<p>Here are two open-source protocols that extend A2A, granting AI agents behavioral contracts and runtime integrity monitoring:<p>- Agent Alignment Protocol (AAP): What an agent can do &#x2F; has done.\n- Agent Integrity Protocol (AIP): What an agent is thinking about doing &#x2F; is allowed to do.<p>The problem: AI agents make autonomous decisions but have no standard way to declare what they&#x27;re allowed to do, prove they&#x27;re doing it, or detect when they&#x27;ve drifted. Observability tools tell you what happened. These protocols tell you whether what happened was okay.<p>Here&#x27;s a concrete example. Say you have an agent who handles customer support tickets. Its Alignment Card declares:<p>{\n  &quot;permitted&quot;: [&quot;read_tickets&quot;, &quot;draft_responses&quot;, &quot;escalate_to_human&quot;],\n  &quot;forbidden&quot;: [&quot;access_payment_data&quot;, &quot;issue_refunds&quot;, &quot;modify_account_settings&quot;],\n  &quot;escalation_triggers&quot;: [&quot;billing_request_over_500&quot;],\n  &quot;values&quot;: [&quot;accuracy&quot;, &quot;empathy&quot;, &quot;privacy&quot;]\n}<p>The agent gets a ticket: &quot;Can you refund my last three orders?&quot; The agent&#x27;s reasoning trace shows it considering a call to the payments API. AIP reads that thinking, compares it to the card, and produces an Integrity Checkpoint:<p>{\n  &quot;verdict&quot;: &quot;boundary_violation&quot;,\n  &quot;concerns&quot;: [&quot;forbidden_action: access_payment_data&quot;],\n  &quot;reasoning&quot;: &quot;Agent considered payments API access, which is explicitly forbidden. Should escalate to human.&quot;,\n  &quot;confidence&quot;: 0.95\n}<p>The agent gets nudged back before it acts. Not after. Not in a log you review during a 2:00 AM triage. Between this turn and the next.<p>That&#x27;s the core idea. AAP defines what agents should do (the contract). AIP watches what they&#x27;re actually thinking and flags when those diverge (the conscience). Over time, AIP builds a drift profile — if an agent that was cautious starts getting aggressive, the system notices.<p>When multiple agents work together, it gets more interesting. Agents exchange Alignment Cards and verify value compatibility before coordination begins. An agent that values &quot;move fast&quot; and one that values &quot;rollback safety&quot; registers low coherence, and the system surfaces that conflict before work starts. Live demo with four agents handling a production incident: <a href=\"https:&#x2F;&#x2F;mnemom.ai&#x2F;showcase\" rel=\"nofollow\">https:&#x2F;&#x2F;mnemom.ai&#x2F;showcase</a><p>The protocols are Apache-licensed, work with any Anthropic&#x2F;OpenAI&#x2F;Gemini agent, and ship as SDKs on npm and PyPI. A free gateway proxy (smoltbot) adds integrity checking to any agent with zero code changes.<p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;mnemom\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;mnemom</a> \nDocs: docs.mnemom.ai\nDemo video: <a href=\"https:&#x2F;&#x2F;youtu.be&#x2F;fmUxVZH09So\" rel=\"nofollow\">https:&#x2F;&#x2F;youtu.be&#x2F;fmUxVZH09So</a>","time":1771432436,"title":"Show HN: Trust Protocols for Anthropic/OpenAI/Gemini","type":"story","url":"https://www.mnemom.ai"}